Can the members here attach their custombox1pal.php, so I can use them as a reference and example while doing mine. YOu see, I am not good at all at PHP, but if I see example of those of you how you used your custombox PHP files and I can than create my own, like adding a banner or an image or something. Thanks . That would be useful!
My profile birthday mod has a custom pal box attached in the thread. It's in the beta mods forum.... I think the pal box is posted as a reply to the thread.
Yeah, and I've released two pal boxes, Forum List Pal and RSS Newsfeed Pal which are both based on the custombox1pal.php script. They also include some code to make it easier to select which custom box it should be used as.
Come to think of it, I actually have a template script with those things included, I'll attach it to this post. Just rename the file to custombox1pal.php or whatever number you want to use it as, and change the config option $custombox in the script to that number.
This template file you attached, how am I suppose to add what ever I want so it to show in the Etnrance page?. For example if I want to add a clickable banner as an AD?. Or does it call an html file or something?
Crap, I hade written a long anser and closed the browser by mistake. Doh!
The idea with the custom pal boxes is to add content to the $TempStorage variable, the rest is taken care of by the other parts of the scripts. Just look for the following portion of the script:
Code
<br /> /*<br /> Write what ever functions and routines you want and have them store all information<br /> into the above string for storage to the cache string. The information will be echoed<br /> out to the browser at the end of this script.<br /> */<br />
Below that you can start adding content to the $TempStorage variable. For example like this:
Code
<br />$TempStorage = <<<CONTENT<br /><br />Add your own content here.<br /><br />CONTENT;<br />
Thats good, but thats content. What if I want a banner to append or an image which is clickable to another site of my choice. Is it right if I place an html code after the <<<CONTENT? Would it work?
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.