Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
[Updated to version 1.1b to fix a mistake with table prefix options.]
[Updated to version 1.2b to add a new option to show new posts only from a specific forum, i.e. a news forum]
[Updated to version 1.3b, to (hopefully) fix 2 digit group number permissions issue.]
So the good thing here is users who wish to submit their info to RSS SUBMISSION engines so users can look them up simply put the above links for people searching for feeds
Neat mod there Zackary, I am trying to incorporate a link to a page on this in my ubbt_registerednav. I would like to hve it come up in a popup window but I can't seem to get it to read the code right, can you guys tell me how to make this work? TIA
I am just learning about it myslef, best I can tell is that it's some sort of mached up news reader that uses RSS in place of NNTP (am I close?). I downloaded the free reader linked above, dropped the script in and it appears to work great. I guess if others want to pick up a news feed from your site this would be the way to give it to them.
I know this is easy... but I think my brain is on perma-vacation.
Dropped a note to my friend, he'll get back with the way to do this.
On another note, I noticed a couple mistakes I made in the file regarding table prefixes... please download the updated version on the first post of this thread.
Ok, new version posted again... (will be posted after I post this msg. )
New option -news (instead of -t or -y).
Added new config line newsboard, enter your news board keyword in there and your users will be able to see only new posts, from today, that are posted to the news board.
Sorry for the delay, my brain kicked in about 30 min ago... Turkey is a wonderful thing!
I have a forum that has read/write access only to group 11.
The account I use is not a member of group 11, but is a member of group 1.
$allowAccess ends up "yes" for posts in the forum that has access only to group 11.
The following statement fails when dealing with double digit groups: if (preg_match("/$Grouparray[$x]/", $dbReadPerm))
If I'm in group -1-, and read access is for group -11-, $Grouparray[$x] is '1' not '-1-'. so preg_match("1", "-11-") is true. Group 2 would match -12- etc.
"/$Grouparray[$x]/" needs to probably be "-/$Grouparray[$x]-/" instead to fix this.
Correct me if I'm wrong, but..... Line 121 should be changed
from this: from w3t_Posts as t1, w3t_Boards as t2
to this: from {$tbl_prefix}Posts as t1, {$tbl_prefix}Boards as t2
I'd second Omegatron's note about including some of the body. Also, I'd like to fetch the most recent 5 posts in the news forum, not necessarily just "today's" -- I don't have news every day and I want to ensure something shows up in other people's feeds. Know what I mean?
[]deltajo said: Zachary thanks a lot for this. I love it.
Correct me if I'm wrong, but..... Line 121 should be changed
from this: from w3t_Posts as t1, w3t_Boards as t2
to this: from {$tbl_prefix}Posts as t1, {$tbl_prefix}Boards as t2
I'd second Omegatron's note about including some of the body. Also, I'd like to fetch the most recent 5 posts in the news forum, not necessarily just "today's" -- I don't have news every day and I want to ensure something shows up in other people's feeds. Know what I mean?
Warning: Supplied argument is not a valid MySQL result resource in /u/admin/subwww/wtn-de/htdocs/ubbthreads/rss.php on line 75
Warning: Supplied argument is not a valid MySQL result resource in /u/admin/subwww/wtn-de/htdocs/ubbthreads/rss.php on line 76
Warning: Supplied argument is not a valid MySQL result resource in /u/admin/subwww/wtn-de/htdocs/ubbthreads/rss.php on line 77 http://www.wtn-de.com Review of postings from today. Warning: Supplied argument is not a valid MySQL result resource in /u/admin/subwww/wtn-de/htdocs/ubbthreads/rss.php on line 149
Warning: Supplied argument is not a valid MySQL result resource in /u/admin/subwww/wtn-de/htdocs/ubbthreads/rss.php on line 150
The problem might be the wrong table, I used: $tbl_prefix = "w3t_Posts"; //Custom table prefix for your threads install, leave blank if none
Been awhile since I looked at this addon, been insanely busy.
$tbl_prefix should only be the prefix you use for your tables. (for example $tbl_previx = "w3t_")
If you don't use a prefix you can leave it empty.
The $newsboard variable is the one where you'd put in the Keyword of the news forum you want to show the posts from in your RSS feed. (for example $newsboard = "News")
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.