* Updated September 15, 2005
ubbnews.php
Modification and Redistribution of this code without perission is prohibited
The Official Code can be found at
https://www.ubbdev.com/ubb/ultimatebb.php/topic/33/42.html Reads the UBB for the latest topic in a forum, and displays a teaster of it on a page
Required Parameter -- forum=## where ## is the forum number requested
Optional Parameter -- threads=# where # is the number of threads to tease (5 limit)
Optional Parameter -- surl=1 will turn on Spider Friendly URLs
(Requires 6.7.x)Usage: just do an include with "http://yourdomain.com/path/ubbnews.php?forum=##&threads=X(&surl=1)" where ## is the number of the forum without any leading zeros and X is a number between 1 and 5. You will need to put your noncgi path in the script so it may read the vars_config.inc.php for your UBB paths.
Download:
UBBDev Requires: 6.4+
Features:
- Counts your comments and puts the count next to the Comments Link
- Comments Link will give them UBB Reply Screen
- Read More takes them to the entire topic
- Will display 1 topic of no threads=X is added to the URL
- Feed multiple forums by doing multiple includes of the ubbnews.php
- Will NOT feed private forums
- Will display a message if your forum_##.threads file is missing
- Author's name links to their profile
- Spider Friendly URLs
Known Issues:
- Doesn't process Gramelins
This can be corrected by placing ubbnews.php in your noncgi directory- Sometimes doesn't process URL's correctly (I've seen it on rare occasions, but bumping the Max Characters setting noted in the code should cure it)
- You will receive a missing .threads error message after an upgrade. Rebuild your Forum Metadata on that forum to correct this error.
This may/may not work on earlier versions, so use at your own risk.
I put a hard limit of 5 in the PHP code to prevent the code from trying to tease every topic in the forum (Could kill performance). You can change this by editing
if ($threads > 5)
$threads = 5;
just change the 5 in both lines to whatever you want to cap it at. I honestly don't see a need to be over 10.
Also, this may show a bit of lag if you have thousands of topic in the forums. I haven't tested this on large forums.
August 26, 2005 NoticeUBBFeed was an unauthorized modification of the UBBNews code and I will provide NO support for UBBFeed, or my code contained in it. Posting here for support of UBBFeed will result in an unpleasant response.