Jamit Software Forum
Welcome, Guest. Please login or register.
October 24, 2021, 06:53:26 am

Login with username, password and session length
Search:     Advanced search
May 27th, 2009 - Jamit Software Launches the forum today!
3,080 Posts in 791 Topics by 1,829,168 Members
Latest Member: EmetDew
* Home Help Search Login Register
+  Jamit Software Forum
|-+  Jamit Job Board Customers
| |-+  User-to-User Support
| | |-+  rss+xml
« previous next »
Pages: [1] Print
Author Topic: rss+xml  (Read 3203 times)
rogerkouk
Jammers
Full Member
*
Posts: 24


« on: September 02, 2010, 10:03:25 pm »

Hi
I am using latest version 365 of JBB
File 'rss.php' creates 3 empty lines before output on line 91
Therefore the xml file is not populated and no rss feeds are available on the board
Anybody has the same problem?
Roger
Logged
rogerkouk
Jammers
Full Member
*
Posts: 24


« Reply #1 on: September 06, 2010, 12:34:39 am »

Following changes in file rss.php seem to have solved my problem

Around line 91 of file rss.php, I replaced existing code with following code:

Code:
$output =
/*"<".$q."xml version=\"1.0\" encoding=\"utf-8\" ".$q.">\n"
.*/ /* this line removed by me */
"<rss version=\"2.0\">\n"
   ."<channel>\n"

And around line 174, I replaced existing code with following code:

Code:
if ($out_to_file) {
$output .= "<".$q."xml version=\"1.0\" encoding=\"utf-8\" ".$q.">\n".$output; /* this line added by me */
$file = fopen (trim(JB_RSS_FEED_PATH), "wb");
fwrite ($file, ($output), strlen(($output)));
fclose ($file);
}

That might help users of JBB who encountered the same problem

Roger
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.043 seconds with 18 queries.