Previous Thread
Next Thread
Print Thread
Rating: 6
Joined: Sep 2000
Posts: 129
Member
Member
Offline
Joined: Sep 2000
Posts: 129
Mod Name / Version: rssThreads v.1.0

Description: Display your posts by RSS/XML on other website
Example: http://www.palminfocenter.com/view_story.asp?ID=5199



Working Under: UBB.Threads 6.0-6.1-6.2-6.3-6.4

Mod Status: Finished

Any pre-requisites:

Author(s): santana

Date: 12/12/03

Credits: Ovi Crisan of 2RSS.com

Files Altered: None

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.
Attachments
101688-rssThreads.zip (0 Bytes, 93 downloads)

Sponsored Links
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
Looks great, how would you go about telling it what to exclude? It's only picking up shoutbox posts.

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
All i get is a parse error http://rss.fmforums.com/ubbtrss.php

Joined: Sep 2000
Posts: 129
Member
Member
Offline
Joined: Sep 2000
Posts: 129
Hello

The error was:
=&Forum=All_Forums

change '&' sign with the '&'sign.


...... x ......
Using UBBt 6.4.2 + Digg Ajax Mod, Trust Ajax Mod, Captcha Regristation & Login mod, Checkusername Ajax mode.
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
Change Where?

Sponsored Links
Joined: Sep 2000
Posts: 129
Member
Member
Offline
Joined: Sep 2000
Posts: 129
[]oceanwest said:
Change Where? [/]

Hi.

1. Open your ubbtrss.php file, look for the URL you have put in there and find:
the '&' sign, change that to '&'

2. create an empty file ubbtrss.xml, upload and chmod 777

3. upload all of them in ASCII mode. (Your last error produce that you are uploading in binary mode.)

Let me know

This is your last error message:
<?xml version=.0\encoding=\UTF-8\?>

The '' sign should be '1' instead. Try to upload it with ascii mode.

Last edited by santana; 01/18/2004 10:16 PM.
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
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.

Joined: Sep 2000
Posts: 129
Member
Member
Offline
Joined: Sep 2000
Posts: 129
[]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 />

Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
heya santana!

i'm doing my best to pull this rss xml stream into a flash movie, but for whatever reason, it aint agreein!

i can get my ubb.classic xml stream to show (located here: http://bella.lunarpages.com/~robkam2/ubb/ContentIslands/1/rss10.xml

however, my ubb.threads one (here: http://www.robkamphausen.com/ubbthreads/ubbtrss.xml just doesn't show anything

Joined: Sep 2000
Posts: 129
Member
Member
Offline
Joined: Sep 2000
Posts: 129
Hi

I can see it. Here is the captured screen of your xml
Attachments
106422-1.gif (0 Bytes, 56 downloads)

Sponsored Links
Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
yeah

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?

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Oye como va! Gracias Santana!

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Are styles not able to be used when calling with JavaScript?

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
drkknight, I haven't tested it but the only difference which the program might not catch from what I could see is:
Code
<!DOCTYPE item [<br /><!ELEMENT item (#PCDATA)>]>
try to remove these two lines..

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
is it a bug that "Code:" comes to the end of the previous line instead of the next line, if I use [code ]without a line break in my message?

Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
[]
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).

Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
hmm... anyone know what version of rss this is?

i've found that the flash thingy i've got will only read 1.0 (not 2.0 or 0.92).

Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
or, more specifically, if it idn't 1.0, could it be modded to 1.0 ?

Joined: Jan 2005
Posts: 39
User
User
Offline
Joined: Jan 2005
Posts: 39
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

Powered by RSSlib[/]
What am I doing wrong?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)