How to create absolute url for a page/node?
You should use the l() and url() functions as specified in the answer to the question you link to. Those are core Drupal functions so nothing else is needed.