
Jabba wrote: Can this script be hacked to work for a phpbb stand alone site? http://dfwforums.net/backendforums2.zip Posted: Mon Oct 31, 2005 7:02 pm
admin(Mark) wrote: hi Jabba Yes you can use that with phpbb forums. You first need to connect to your database and run the query similar to that one in the file you sent to get the title, desc and link. If you know some xml, this should look familar. The following is the loop you should most be concerned with. [php:1:727dbb2ada] while(list($topic_id, $topic_title, $topic_last_post_id) = $db->sql_fetchrow($result)) { $result2 = $db->sql_query("SELECT post_text FROM ".$prefix."_bbposts_text WHERE post_id='$topic_last_post_id'"); list($desc) = $db->sql_fetchrow($result2);[/php:1:727dbb2ada] The title, description, link is contained within that loop. Posted: Tue Nov 01, 2005 7:39 pm
Jabba wrote: Thanks for the help. I modded that script, with a suggestion or two from you, to work on a phpbb site that desperately needed an RSS feed. http://p1s.net/rdf.php http://p1s.net/rss.php Thanks again. Posted: Tue Nov 01, 2005 10:25 pm
admin(Mark) wrote: well done Posted: Wed Nov 02, 2005 8:20 am
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||