Quote:
Originally posted by Kier
You can't pull PHP pages from an HTTP address, as the target HTTP server will process the PHP page and send HTML, rather than the source PHP code.
|
True - but that's fine. I'm trying to pull the html results of the PHP code generated by vBulletin in one domain and put them into another html page on another domain. For example, the code that creates the calendar in vBulletin is based upon the calendar template. I want to pull the results of the template (created in my forums on thelaw.com) and embed it into my home page on another domain (thelaw.com).
The problem I run into is that several templates may create one element, for example the calendar (calendarbit, calendarbit_today, etc.). You can't just paste php code from one template into the html page as <?php ?> code because there are calls to other templates which include functions, etc. which results in undefined functions or variables. I'm not sure I'm using includes correctly, if at all and I have to include templates which are located in the mySQL database, not in a file like the global.php. How would I include the calendar template so that I can call it and build the calendar? I see the variable $headinclude
but I don't see where the value for this variable is set and therefore it must be called in from another template that calls calendar... I know... I'm still a little green but I've got a good learning curve.