PDA

View Full Version : Recent Forum Topics on main page


abdobasha2004
09-29-2009, 11:47 AM
I would like a script or mod that grab The forum Rss feed and publish it on html page like my website main page, or other blog
I do not want widgets, I want the mpd to grab rss feed to get links from main page to threads

Lynne
09-29-2009, 03:26 PM
See these threads for methods to pull threads via javascript:
[HowTo] Display your latest threads on an external page using an RSS2 feed (http://www.vbulletin.com/forum/showthread.php?t=159044)
[HowTo] Display your latest threads on an external page using an XML feed (http://www.vbulletin.com/forum/showthread.php?t=158934)
[HowTo] Display your latest threads on an external page using an RSS feed (http://www.vbulletin.com/forum/showthread.php?t=158916)

abdobasha2004
09-29-2009, 05:02 PM
thanks a lot

--------------- Added 1254250341 at 1254250341 ---------------

2 issues
1- I want to limit the number to 10 links
2- The Arabic words can not be read ( I think there is problem with encoding)

--------------- Added 1254251221 at 1254251221 ---------------

also want to remove descreption

Lynne
09-29-2009, 07:11 PM
1- At least in the first thread I linked you to, it says it is for the 10 latest threads.

2- I don't know about that. You should ask for help over at vb.com for that since they deal with the languages.

3- Just don't include the description in the output. Usually someone wants something slightly different from the actual modification available. Just modify them to suite your needs.

abdobasha2004
09-29-2009, 07:25 PM
1- At least in the first thread I linked you to, it says it is for the 10 latest threads.

yes, it says : "This HowTo explains what needs to be done to include the 10 latest threads from your forums " HOWEVER it takes all threads in rss ,see example here (http://100fm6.com/rss.php), grab all feed - also I can not see any thing in the code that points to this limit!

2- You should ask for help over at vb.com
I managed to solve it my self, changed the page encoding to utf-8

3- when just removed description in the output it gave me fatal error and the file did not open

Lynne
09-29-2009, 10:43 PM
I'm not sure how the '10' is set. I think it may have to do with the fread statement, but you would have to ask over on vb.com to find out.

3- when just removed description in the output it gave me fatal error and the file did not open

i can't help if you don't show me the before and after of the line you changed so I can see what you did wrong.

abdobasha2004
09-30-2009, 01:40 AM
I changed the line : $rss2_output .= "<dt><strong><a href='" . trim($link) . "'>" . htmlspecialchars(trim($title)) . "</a></strong> - " . htmlspecialchars(trim($date)) ." <em>" . htmlspecialchars(trim($author)) . "</em></dt><dd>" . htmlspecialchars(trim($description)) . "</dd>";


to :
$rss2_output .= "<dt><strong><a href='" . trim($link) . "'>" . htmlspecialchars(trim($title)) . "</a></strong> - " . htmlspecialchars(trim($date)) ."

--------------- Added 1254279595 at 1254279595 ---------------

thanks I managed to remove descreption
the right code will be :

$rss2_output .= "<dt><strong><a href='" . trim($link) . "'>" . htmlspecialchars(trim($title)) . "</a></strong> - " . htmlspecialchars(trim($date)) ." <em>" . htmlspecialchars(trim($author)) . "</em></dt>";

thanks lynne