New Files: rss2js.php rsslib.php ubbtrss.php ubbtrss.xml
Database Altered: None
Info/Instructions: Instalation 1. Upload all files 2. chmod 777 ubbtrss.xml 3. Open ubbtrss.php and fill in the configuration fields 4. Run http://url/ubbtrss.php 5. Read readme files for javascript code
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.
I got it working, but is there a way to tell it which forums to choose from? It just seems to be random, and it's picking links from my shoutbox and a private forum.
[]DLWebmaestro said: I got it working, but is there a way to tell it which forums to choose from? It just seems to be random, and it's picking links from my shoutbox and a private forum. [/]
Hi
First, find out your board keywords by running the following SQL command: SELECT Bo_Keyword FROM w3t_Boards
Open your ubbtrss.php file and edit the following part:
Code
<br />$result = mysql_query ("select B_Board, B_Number, B_Main, B_Subject, Bo_Title, Bo_Keyword from w3t_Posts as p, w3t_Boards as b where p.B_Parent='0' AND p.B_Board = b.Bo_Keyword order by p.B_Main desc limit 0,10") or die (mysql_error());<br />
Here is an example: Your 'SELECT Bo_Keyword FROM w3t_Boards' statement returns the following keywords: chatting general test internal
And you want to inlcude only 'chatting' and 'general' forums, here is the mysql query that you want to put:
Code
<br />$result = mysql_query ("SELECT B_Board, B_Number, B_Main, B_Subject, Bo_Title, Bo_Keyword FROM w3t_Posts as p, w3t_Boards as b where p.B_Parent='0' AND p.B_Board <> 'test' AND p.B_Board <> 'internal' AND p.B_Board = b.Bo_Keyword order by p.B_Main DESC LIMIT 0,10") or die (mysql_error());<br />
i can see the xml for both (yours and the ubb.classic one). however, for whatever reason, the flash file can only read the ubb.classic one. when i try to use the ubb.threads xml file dynamically with my flash movie (which i simply use to display the content), nothing appears.
i was wondering if, perhaps, you noticed a difference 'tween the two xml files that might cause that oddity?
[] drkknight, I haven't tested it but the only difference which the program might not catch from what I could see is -- try to remove these two lines.. [/]
heya lk!
nope, unfortunately, after i removed those two lines from the php and remade the xml file from scratch, it still didn't pull up anything in the flash movie (but the classic xml string still works, for whatever reason).
I put the below script into the Generic Footer from my Admin Control Panel (with the correct url of course). []<script language="JavaScript" src="http://url_to_your/rss2js.php?rss_url=http://url_to_your/ubbtrss.xml&rss_target=_blank"></script>[/] But this is what it's displaying at the bottom of my forum: []Array
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.