Hey guys, I'm having a bit of problems with a Block I'm trying to make, ok heres it goes. I have code that I want into a block but the content goes outside of the block, this code below fetches an XML file to get the info it needs, Code is PHP. Any help would be greatly appreciated. For Live Proof visit
Only registered users can see links on this board! Get registered or login to the forums!
and scroll to the bottom should see the Block with the content outside. Thanks again
// Number of seconds before connection to XML times out
// (This can be left the way it is)
$CONNECTION_TIMEOUT = 10;
// Local file to store XML
// This file MUST be writable by web server
// You should create a blank file and CHMOD it to 666
$LOCAL_XML_FILENAME = "local_150840.xml";
if( !file_exists($LOCAL_XML_FILENAME) ) die("Text Link Ads script error: $LOCAL_XML_FILENAME does not exist. Please create a blank file named $LOCAL_XML_FILENAME.");
if( !is_writable($LOCAL_XML_FILENAME) ) die("Text Link Ads script error: $LOCAL_XML_FILENAME is not writable. Please set write permissions on $LOCAL_XML_FILENAME.");
Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
Posted:
Tue Oct 30, 2007 11:22 am
Block content has to be stored in a variable called $content. You may consider recoding those functions to return a string instead of echoing out stuff. Then your last line should look like this:
Just ran across this thread while looking for something else and noticed this applies to TLA Ads. See:
Only registered users can see links on this board! Get registered or login to the forums!
in the center above the last forum posts center block. If needed after all this time I can supply the PHP for the TLA Ad center block. Only thing I would need is the XML filename as it's different for each installation.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum