PDA

View Full Version : SPONSORED ADS Mod


VSDan
03-14-2007, 06:48 PM
If you use the SPONSORED ADS mod by linkforever.net, then there might be an issue. If you have enabled RSS feed, then you need to edit the sponsor_ads.php file: delete the blank lines (if they exist) at the top of the file (before <?php). These blank lines will break rss.php. Not sure if those blank lines are in the original code, but I did a job to repair RSS feed for client, and the cause was the blank lines in his copy of sponsor_ads.php - they broke XML header output. If you see leading blank lines in your copy of sponsor_ads.php, remove them. <?php should always be the first line in a PHP file - otherwise, can break things like RSS feeds (and other things as well like setcookie or other HEADER functions [content header, redirect, etc.] as no output like blank lines can be sent to browser before you send headers or try to set a cookie).

SasaVtec
03-14-2007, 08:32 PM
Thanks for that dan, I have 2 blank lines in mine

VSDan
03-14-2007, 09:00 PM
Thanks for the heads up! Then it seems to be existing issue in that file. Just delete those two blank lines, and you will be safe from any issues relating to them.