UBB.Dev
Posted By: Gizmo [7.4+] RSS Topic Creator v1.1 - 04/04/2010 6:35 AM
Author: Gizmo (James of VNC Web Design)

Requirements:
Valid UBB.Threads 7.4 install and license

[center]This will ONLY work with UBB.threads versions 7.4 and above.[/center]

About:
This mod will import RSS feeds as new topics. You can specify which forums the topics are posted to, and who posts them.

Installation instructions are included in the attached archive. Upload the files following the structure created in the archive.

Demo:
You can see this script in action on: My Dev Site and UGN Security.

File History
2600 - Initial 7.4+ cleanup.

Known Bugs
  • Will, at times, create duplicate topics; at times these are editorial revisions on some sites (Reuters for example) however.


NOTE
This mod is a port of an older UBB.threads7 mofification by Ian Spence which you can find here.

For Version 1.2 Please see Isaac's Post below.


Description: RSS Topic Creator v1.1
Attached File
RSS Topic Creator.zip  (50 downloads)
Posted By: Vic Re: [7.4+] RSS Topic Creator v1.1 - 04/04/2010 11:23 PM
I have thanked you already but ile say it again thankyou lol.

I have just added a rss feed but i put the wrong member to show who has posted the feeds so i had to delete the feed posts on my forum and i have now re added another feed but now its not reposting what i have deleted.

Also when it posts it says

A TORY councillor who defected from Labour was today suspended from his new party after making a homophobic comment on his Facebook website.

Source: [url=http://www.wirralnews.co.uk/wirral-news/local-wirral-news/2010/03/31/wirral-councillor-suspended-for-anti-gay-facebook-update-100252-26144094/]Wirral councillor suspended for 'anti-gay' Facebook update[/ url]

Instead of putting a link.
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 04/05/2010 1:14 AM
Well, that's expected behavior, it should try NOT to repost anything; there is a field in the database that holds the timestamp of the last time it "grabbed" the feed and it'll attempt not to repost anything before that timestamp.

You could try this query:
Code
UPDATE `your_db`.`prefix_TOPIC_FEEDS` SET `LAST_BUILD` = '0', `LAST_TOPIC_TIME` = '0' WHERE  `prefix_TOPIC_FEEDS`.`FEED_ID` =1;

As for the link, on what you posted it has a space before the end tag at the end, is that what it's doing on your site? could you link me to a story?
Posted By: Vic Re: [7.4+] RSS Topic Creator v1.1 - 04/05/2010 1:23 AM
Originally Posted by Gizmo
Well, that's expected behavior, it should try NOT to repost anything; there is a field in the database that holds the timestamp of the last time it "grabbed" the feed and it'll attempt not to repost anything before that timestamp.

You could try this query:
Code
UPDATE `your_db`.`prefix_TOPIC_FEEDS` SET `LAST_BUILD` = '0', `LAST_TOPIC_TIME` = '0' WHERE  `prefix_TOPIC_FEEDS`.`FEED_ID` =1;

As for the link, on what you posted it has a space before the end tag at the end, is that what it's doing on your site? could you link me to a story?

No i had to leave a space or it would of posted correctly lol.
Its just posting on my website like that instead of the proper link.

Also just tried that code above and it says SQL Error: Table 'web180-forum-2.prefix_TOPIC_FEEDS' doesn't exist
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 04/05/2010 2:31 AM
prefix_ needs to be changed to whatever your db prefix is
Posted By: Vic Re: [7.4+] RSS Topic Creator v1.1 - 04/05/2010 3:02 AM
Ok thanks.
The other problem as above is like i havnt got html activated for users on the forum but i have the feed isnt coming out as a link
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 04/05/2010 5:11 AM
I need to see it... it should parse out regardless of your html setting... on my test forums the aggregator is a standard user account
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 04/05/2010 5:38 AM
Be sure you have "Parse BBCode in feed" selected in the feed
Posted By: Vic Re: [7.4+] RSS Topic Creator v1.1 - 04/06/2010 6:42 PM
I have a problem.
Its not checking for more feeds every 15 minutes like i have set it. It updates once a day.
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 04/06/2010 8:37 PM
Is the source feed updating more than once a day? I know a lot of sites cache out their feed in the early morning and only do it once a day...
Posted By: Vic Re: [7.4+] RSS Topic Creator v1.1 - 04/06/2010 9:31 PM
Originally Posted by Gizmo
Is the source feed updating more than once a day? I know a lot of sites cache out their feed in the early morning and only do it once a day...

Its doing it once a day and thats it but when i look at the feed there is more news which could be added.
When i had Vbulletin it updated every 10 mins

(SORRY CAN THIS BE MOVED TO THE RSS FEED, I POSTED IN WRONG THREAD.)
Posted By: Robje Re: [7.4+] RSS Topic Creator v1.1 - 05/26/2010 7:49 PM
I don't receive any feeds. I added the lines in the source as described and added the files but nothing happens. Any idea how to check whether it is working right?
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 03/12/2011 4:04 AM
Hi Gizmo,

I installed it, but its not making any new posts.

I am trying to post earthquake updates from USGS. the feed is live, so at 15 minutes I should be seeing posts, but nothing.

Its now started working smile

Is there a way it can post some of the data from the source, rather than a link just to it? The link is good at the bottom, but I want some of the data on the post rather than just a link.
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 03/12/2011 6:36 AM
It's supposed to display data from the feed, could you provide me the URL so I can take a gander?
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 03/12/2011 6:51 AM
Well, your problem from your feed is that they're using the description tag to roll out the date versus providing data on the page itself; the description tag is what gets parsed by this script.

They should be using the pubdate variable to publish the date, and the description variable to provide data on the link.
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 03/12/2011 7:01 AM
Is it possible to tweak the scripts to parse the feed?

Also the atom feed just gets ignored..

http://earthquake.usgs.gov/earthquakes/catalogs/7day-M2.5.xml

Its got more info showing and a map, but nothing happens frown
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 03/12/2011 7:05 AM
Its NASA as well, all the feeds we need frown

http://www.aus-city.com/ubbthreads/ubbthreads.php?ubb=showflat&Number=52828&gonew=1#UNREAD

Shows a date as the topic and info frown


It won't work with any feed from NASA:

http://www.nasa.gov/rss/

Also there is a bug. Any posts made by the fetching, keep the date of where the source is. This means twitter never picks them up as they are old as my forum is UTC+11.

The posts need to have the current time and date just like they were posted by a person.
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 03/12/2011 10:49 AM
The RSS feed parses what it's supposed to; their feed displays data in a manner that isn't what the RSS spec says it should.

As for the ATOM feed, this script isn't designed to parse that at all... That's why it's politely ignored.

Basically it reads the title, description, and pubdate; description should hold data about the link, the title is the title of the story, and the pubdate should be the date associated with it.
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 03/12/2011 10:50 AM
I'm not sure why the nasa rss feed is all on one line, kind of interesting...
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 03/13/2011 6:17 AM
Can the topic creator me modified to accept ATOM feeds?

A lot of sites offer them.
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 03/13/2011 10:26 AM
You'd have to modify it to grab those tags versus rss tags... I really don't have the time currently to make a mod for that however...
Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 07/20/2011 5:58 PM
Hey Giz

I followed the instructions, created the forums, add ed myself as the Poster (2) and nothing is happening?

What am I doing wrong?
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 07/20/2011 9:41 PM
So you selected the forum to populate, and the feed? Could you post the feed that you're trying to use/
Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 07/20/2011 10:02 PM
Yes

http://feeds.feedburner.com/totalfilm/news?format=xml

I tried one I used before

http://www.starwars.com/data/headlines.xml

And that didn't work either.
Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 07/21/2011 1:49 AM
Actually Giz, I'm going to do a fresh install and then attempt the RSS creator again...I'll post here in the next hour or so to update you. smile
Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 07/21/2011 3:36 AM
Well, I did the Fresh Install and still nothing appearing. frown
Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 07/22/2011 12:24 AM
Think I'm just going to have to give up on this.

frown
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 08/09/2011 12:09 AM
I just reimaged my server to centos 6. I loaded up my backup and ubbthreads is working again. I had some directory permission issues.

Anyway the topic feeds has just stopped at the time of the backup. I checked the httpd logs, no errors.

Is there any files or directories that need 777 that the control panel check permissions is not picking up?

I can see this as the only cause.

I also cleared the cache in CP as the backup was full, all files and dir.

Thanks!
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 12/13/2012 11:39 PM
Updated to 7.5.7 and this has stopped working. Can we get an update please?
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 12/14/2012 12:43 AM
Originally Posted by AUS-CITY
Updated to 7.5.7 and this has stopped working. Can we get an update please?
Did you re-patch footer.tpl?
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 12/14/2012 1:09 AM
I have it installed on one of my sites still, I'm waiting to see if it updates :taps shoe:
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 12/14/2012 2:06 AM
Hi Gizmo,

Yes I repatched:

/templates/default/footer.tpl
/templates/default/admin/admin_adminmenu.tmpl
/languages/english/admin/generic.php

Triple checked them, its correct as per v1.1 docs.

Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 12/14/2012 2:59 AM
Hmm, I'm not sure; I just checked mine (the only file I have patched is the footer.tpl file, no cp changes) and it updated as it's supposed to here...

Do you have a link to the forum that's supposed to update and the feed it's supposed to read?
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 12/14/2012 3:24 AM
Hi Gizmo,

Okay its actually working, but nothing is being tweeted as all the RSS Feeds the forum generates have stopped.

Any ideas on that?

http://www.aus-city.com/ubbthreads/cache/rss40.xml

XML Parsing Error: XML or text declaration not at start of entity
Location: http://www.aus-city.com/ubbthreads/cache/rss40.xml
Line Number 2, Column 1:
^

But the file looks okay...






RSS Feed for AUS-CITY NATO Press Releases
http://www.aus-city.com/ubbthreads/ubbthreads.php
RSS Feed for AUS-CITY NATO Press Releases
AUS-CITY Message Forums - UBB.threads(tm)

Remarks by Secretary Panetta at Ali Al Salem Air Base, Kuwait
http://www.aus-city.com/ubbthreads/ubbthreads.php?ubb=showflat&Number=135168#Post135168

Webmaster:

]]>

Wed, 12 Dec 2012 23:05:51 GMT


Visit to NATO by the Prime Minister of the Netherlands
http://www.aus-city.com/ubbthreads/ubbthreads.php?ubb=showflat&Number=135066#Post135066

Webmaster:

]]>

Wed, 12 Dec 2012 22:44:40 GMT


Secretary General condemns North KoreaÂ’s rocket launch
http://www.aus-city.com/ubbthreads/ubbthreads.php?ubb=showflat&Number=135020#Post135020

Webmaster:

]]>

Wed, 12 Dec 2012 14:44:42 GMT


Euro-Atlantic Partnership Council pays respect to late Ambassador Milinkovic of Serbia
http://www.aus-city.com/ubbthreads/ubbthreads.php?ubb=showflat&Number=134763#Post134763

Webmaster:

]]>

Tue, 11 Dec 2012 16:05:20 GMT


North Atlantic Council expresses concern about North KoreaÂ’s intent to launch a ballistic missile
http://www.aus-city.com/ubbthreads/ubbthreads.php?ubb=showflat&Number=133696#Post133696

Webmaster:

]]>

Wed, 05 Dec 2012 20:11:48 GMT


Remarks by Secretary Panetta at Walter Reed National Military Medical Center, Washington, D.C.
http://www.aus-city.com/ubbthreads/ubbthreads.php?ubb=showflat&Number=133562#Post133562

Webmaster:

]]>

Tue, 04 Dec 2012 23:06:53 GMT


NATO Foreign Ministers's statement on Patriot deployment to Turkey
http://www.aus-city.com/ubbthreads/ubbthreads.php?ubb=showflat&Number=133561#Post133561

Webmaster:

]]>

Tue, 04 Dec 2012 23:01:54 GMT


Remarks by Deputy Secretary Carter at the Cooperative Threat Reduction Symposium at National Defense University, Washing
http://www.aus-city.com/ubbthreads/ubbthreads.php?ubb=showflat&Number=133421#Post133421

Webmaster:

]]>

Tue, 04 Dec 2012 12:59:34 GMT


Remarks by Deputy Secretary Carter at the Von der Heyden Fellows Program Endowment Fund Lecture Series at Duke Universit
http://www.aus-city.com/ubbthreads/ubbthreads.php?ubb=showflat&Number=132736#Post132736

Webmaster:

]]>

Fri, 30 Nov 2012 19:47:07 GMT


NATO Press Release(2012)147 - Visit to NATO by the Minister of Foreign Affairs of Pakistan
http://www.aus-city.com/ubbthreads/ubbthreads.php?ubb=showflat&Number=132716#Post132716

Webmaster:

]]>

Fri, 30 Nov 2012 17:33:49 GMT


Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 12/14/2012 4:17 AM
Fixed, its a ubbthreads bug. There is an added space in the rss feed template..

"{* Script Version 7.5.7 *} "

It should be:
"{* Script Version 7.5.7 *}"
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 12/14/2012 4:47 AM
That setting should be for outputting forum data as RSS feeds; the RSS Topic Creator imports RSS feeds to your forum from an RSS feed...
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 12/14/2012 5:04 AM
Yes that is correct wink

I thought it was the Topic Creator at fault as our twitter updates stopped. But as it turned out it was working, but the template in the update from ubbthreads has the extra space that was corrupting the RSS feeds, and hence no twitter updates from the forum.

I added the fault to the thread in ubbthreads/bugs, so it should be moved to a known bug and the template file fixed in the zip.
Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 05/28/2013 3:19 PM
Hey Giz

Me again.

Same issue as before.

Done everything as I'm supposed to but no show on the forum I want the Topics to appear.

Help

http://cinemagalaxy.co.uk/ubbthreads.php/forums/5/1/News_Articles.html
Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 05/28/2013 7:00 PM
Do you think it may have something to do with the forum being installed on the site root or should that not make a difference?
Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 05/28/2013 8:40 PM
I checked my error logs and got this:

[Tue May 28 07:05:47 2013] [error] [client 0.0.0.0] SoftException in Application.cpp:601: Directory "/home/myuser/public_html/mydirectory/cache_builders" is writeable by group, referer: http://cinemagalaxy.co.uk/ubbthreads.php/forums/5/1/News_Articles.html
Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 05/28/2013 9:23 PM
Also, its a wordpress feed so don't know if that's an issue
Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 05/28/2013 9:34 PM
And now it works but with only one feed.

I'm puzzled.
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 05/28/2013 10:01 PM
Originally Posted by SGHB1138
Do you think it may have something to do with the forum being installed on the site root or should that not make a difference?
Shouldn't make a difference.

Originally Posted by SGHB1138
[Tue May 28 07:05:47 2013] [error] [client 0.0.0.0] SoftException in Application.cpp:601: Directory "/home/myuser/public_html/mydirectory/cache_builders" is writeable by group, referer: http://cinemagalaxy.co.uk/ubbthreads.php/forums/5/1/News_Articles.html
I'm not sure on this one, I went and googled it and found this that references that it's likely a permission issue.

Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 05/28/2013 10:30 PM
Yeah, I checked that too.

But UBB states that cache_builders has to have a CHMOD permission of 0777

I set it at 0755 and nothing happened and then set it back to 0777 and then one feed worked but not the other
Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 05/29/2013 5:49 AM
So, I changed the permissions to 0755 of cache_builders and then back to 0777 and the other rss feed is now produced.

Even more puzzled than before.
Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 05/29/2013 5:51 AM
How do I get it to show the full text of the article?
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 05/29/2013 6:52 AM
It SHOULD post the entire body of the "description" field of the feed in question; if the feed truncates the display (which they commonly do) you can't import what's not there...
Posted By: Stephen G Re: [7.4+] RSS Topic Creator v1.1 - 05/29/2013 6:54 AM
Oh well. I just can't get it to work.

Pity.

I really liked this mod.

smile
Posted By: Mark_S Re: [7.4+] RSS Topic Creator v1.1 - 06/19/2013 10:22 PM
I cant believe only 36 downloads have taken place.
This is so cool this add on and should be stock my 2p.

Ive just tested it on my dev board and works great.
I just need to find the time to update my main site.

Good work Giz rockband
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 08/04/2017 4:07 PM
Hey Gizmo,

Does this work with 7.6.0?

Better to ask than try to upgrade and break the board smile

Cheers!
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 08/04/2017 6:13 PM
I did not write this script, I simply ported it up through the v7.4 system in 2010; you're going to have to try it out yourself to see if it works as I don't have it configured anywhere.

I can tell you that very little has changed in the database from v7.5.9 and v7.6; so if it was working in v7.5.9 for you it should continue to do so once it's reinstalled on v7.6.0.
Posted By: kf6zpl Re: [7.4+] RSS Topic Creator v1.1 - 08/08/2017 7:15 PM
As an FYI, RSS Topic Creator does work with 7.6.0

I had to re-patch the files required to be edited.

Then, spend several frustration hours tracking down a typo I introduced.....

But, it does work when the files are modified correctly....
Posted By: isaac Re: [7.4+] RSS Topic Creator v1.1 - 01/24/2019 9:04 PM
RSS Topic Creator 1.2 - Updated for UBB.threads 7.7.0+

If you had been running version 1.1, your topics were being prevented from displaying on the News Portal. This release fixes that 1.1 bug, along with several other minor issues such as encoding corrections and images within the RSS feed, especially html5 img tags, and respecting responsive design guidelines.

Run the following SQL from Control Panel / Database Tools / SQL Command to retroactively correct the News Portal bug from version 1.1

Fix missing TOPIC_STATUS created by RSS Topic Creator 1.1
SQL Query
UPDATE ubbt_TOPICS
SET TOPIC_STATUS = 'O'
WHERE TOPIC_STATUS IS NULL


Attached File
RSS_Topic_Creator1.2.zip  (13 downloads)
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 01/25/2019 5:27 AM
Thanks Isaac been awaiting this :-)
Posted By: WebGuy Re: [7.4+] RSS Topic Creator v1.1 - 10/07/2020 9:27 PM
Thanks guys. I have made the necessary entries into the templates / php and created the new table. How long does it take to start populating? Within 30 mins ?
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 10/08/2020 12:55 AM
IIRC as long as the cache time of the feed has passed it should insert data; this should trigger when there is activity on the forum (the file is called on every page view)... So if you've never inserted data and the feeds are valid it should insert data as soon as a page on the main forum is accessed.

This script is simple and maintained just as required, so your mileage will vary.
Posted By: WebGuy Re: [7.4+] RSS Topic Creator v1.1 - 10/08/2020 3:16 AM
Thanks Gizmo :)
Posted By: isaac Re: [7.4+] RSS Topic Creator v1.1 - 10/08/2020 11:15 PM
Call the XML sections of your RSS feed that you want to display.

Example "Format Of The Posts"
Code
%%CONTENT:ENCODED%%<br>
<b>Source: <a href="%%LINK%%">Example.com</a></b>
<span style="font-weight:400;font-size:11px;">Category: %%CATEGORY%%</span>

A respectful feed update interval would be 60 minutes. Possibly 120 minutes or even 180 minutes.

Also, your feed source should be RSS 2.0 format, not ATOM.
https://problogger.com/rss-vs-atom-whats-the-big-deal/

There is a fun story behind the two. I believe it is here:
https://en.wikipedia.org/wiki/Atom_(Web_standard)#Atom_compared_to_RSS_2.0
Additional reading here:
https://en.wikipedia.org/wiki/RSS
Posted By: isaac Re: [7.4+] RSS Topic Creator v1.1 - 10/08/2020 11:19 PM
Originally Posted by Gizmo
This script is simple and maintained just as required, so your mileage will vary.

Its been updated is as needed here and there. The current version compatible with UBB.threads 7.7.x (and newer) shortly after 7.7.0 was released :)
Posted By: isaac Re: [7.4+] RSS Topic Creator v1.1 - 10/09/2020 12:06 AM
Sorry, I do not do support in private messaging. More people can benefit from a support reply by making it public, keeping related questions within the correct thread, and on the correct domain.

From your PM to me on UBBCentral.com:
Originally Posted by Mors
Hi Issac,

I did the 1.2 upgrade on the script and I finally figured out I needed to assign a posting user. I got all that setup including creating my new topic feeds table etc.. all that went great.

It's still not posting yet. If I had you look at things what would you want to charge ?

Don't have lots of time and willing to pay for your services :)

If you added cache_builders/rss_topic_creator.php to your footer file, the RSS feed will update when your page footer is viewed and the "Feed Update Interval" timer expires.

You can view ubbt_TOPIC_FEEDS to see what is/is not happening. I believe that if you set LAST_BUILD to 0, the script force itself to run again.

If nothing is populating the database, you may have any of the following issues.
1/ Source feed is ATOM and not RSS 2.0.
2/ Source feed has an error in it.
3/ Source feed is empty.
4/ You are using a bad URL.
5/ You missed part of the directions within the rss_topic_creator.txt documentation.
6/ You have not set a User ID that the feeds should be posted by.
7/ You have not set a forum to put the feeds in to.
8/ Your "Format Of The Posts" is empty or incorrect.
9/ The Topic Feed is not enabled.

TIP: Create an RSS TEST FORUM so you can repete your feed fetches until you have them displaying exactly as you desire. Then you can easily delete the entire forum and all of your test posts in a single swoop of deleting that entire forum. You can also prune your tests with Control Panel > Prune Threads.

But first things first, watch your ubbt_TOPIC_FEEDS database to see if it is getting populated upon 1/ refreshing of a forum page with a footer (usually category page is easiest to do) 2/ setting LAST_BUILD to 0 to the feed in the database.
Posted By: WebGuy Re: [7.4+] RSS Topic Creator v1.1 - 10/09/2020 12:27 AM
Ya ok they are atom feeds.. I need to find the same feeds in RSS 2.0 OR better yet you build atom capable switching formats and I buy it. :) Need to know costs..
Posted By: isaac Re: [7.4+] RSS Topic Creator v1.1 - 10/09/2020 12:40 AM
1/ You could modify the script to support ATOM instead of RSS.
2/ You could modify the script to do #1, and along side the current RSS script, so you'll have two different processors.
3/ You could install a 3rd party feed agitator that exports everything in to an RSS 2.0 template.

I currently do #3 using https://tt-rss.org/
This also gives me the benefit of having feeds from multiple sources with hundreds of posts daily. Then applying a filter, for example, "Pixel" or "Nexus" and must include "Google." Then the UBB.threads RSS Topic Creator only downloads those items from custom feed that TTRSS made for me, with its own URL, in RSS 2.0 format.

[Linked Image]

Attached picture 20201008_17-38-03.PNG
Posted By: WebGuy Re: [7.4+] RSS Topic Creator v1.1 - 10/09/2020 12:42 AM
LOL I keep finding out more and more haha :) I will look into your suggestion.. I am trying to get a rss 2.0 to work right now before I look at other options

You have to remember I haven't had a working forum in like 10 plus years :) I am slowly getting back into it.
Posted By: WebGuy Re: [7.4+] RSS Topic Creator v1.1 - 10/09/2020 12:46 AM
thanks for all the help guys :) I honestly appreciate it.

Its working. I am going to look into your option 3 and see if it makes sense or worth doing :)
Posted By: WebGuy Re: [7.4+] RSS Topic Creator v1.1 - 10/11/2020 11:48 PM
Ok for number 2.. who can do it and how much :) I want less complexity.. need it to work with atom and rss 2.X
Posted By: isaac Re: [7.4+] RSS Topic Creator v1.1 - 10/12/2020 12:13 AM
While there are many initial intents for providing/serving RSS feeds, please keep in mind that that the RSS TOPIC CREATOR script provides something that is somewhat of a grey area with respect to taking someone elses content, hosting it on your server, and presenting it as your own content.

RSS is for news syndication. Not free web content for your website.

Game scores, weather, news snippets pointing back to the source...etc. Basically being responsible with the content someone else created and is sharing.

as far as your other question on who can write this for you, feel free to open the script and look at its bits. the script is rather short. Pull up a sample RSS 2.0 and ATOM (rss/xml) file and read them. its straight forward.

its one of those things where once you set it up and it is working, there is no further adjustments needed its low level "take from column A put in to column B." stuff.
Posted By: stell Re: [7.4+] RSS Topic Creator v1.1 - 03/02/2021 4:10 PM
If I wanted to figure out why it's just not doing anything, though the topic feed shows up as enabled and it's standard WordPress RSS2 (?feed=rss2), and works in desktop RSS viewers - what would I do? Is there a good place to put in a "log errors" command?
Posted By: stell Re: [7.4+] RSS Topic Creator v1.1 - 03/02/2021 5:36 PM
Never mind - it's adding threads, but they're not visible. Also generating this:

[02-Mar-2021 17:33:30 UTC] PHP Fatal error: Uncaught --> Smarty: Unable to load template 'file:not_right_bare.tpl' <--
thrown in /home/public_html/forums/libs/smarty/sysplugins/smarty_internal_template.php on line 195
Posted By: stell Re: [7.4+] RSS Topic Creator v1.1 - 03/02/2021 5:49 PM
... also, instructions here suggest changing the nulls in the topics to 0s or Os. Any new topic appears as a null, though. If I change it, it seems to lock the topic.
Posted By: isaac Re: [7.4+] RSS Topic Creator v1.1 - 03/02/2021 6:16 PM
Make sure you are using the current version, which is posted further down the thread.

direct link
https://ubbdev.com/forums/ubbth...4-rss-topic-creator-v1-1.html#Post323151

Prior versions of the script will not work on current UBB.threads. You need to be using the current version of RSS Topic Creator with current versions of UBB.threads.

The current version discussion started in 2019.
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 03/02/2021 6:24 PM
It sounds like you're using v1.1 from the OP, which is a direct port of Ian's original; instead you should be using Isaac's v1.2 which includes bugfixes and further upgrades for compatability.

Also, ensure you're not trying to use an ATOM feed, ATOM and RSS are different structures and this script (by default) will parse RSS only.
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 01/17/2023 6:18 PM
I just moved my server. The Topic Creator was running fine on the old server. Its running CentOS7 so old stuff.

New one is RedHat 9. Now I'm running old php for ubbthreads and the restored back runs perfectly. Everything runs, except the Topic Creator isn't creating posts off the feeds.

I'm suspecting I'm missing a php or perl library it needs for downloading, etc.

Can you give me all the required libraries please? I had issues getting dadamail but found those in the program itself so that's easy.

Cheers,

David
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 01/22/2023 5:01 PM
Found the issue. Its running great again.

Cheers,

David
Posted By: Gizmo Re: [7.4+] RSS Topic Creator v1.1 - 01/25/2023 1:59 AM
What ended up being the issue, out of curiosity?
Posted By: AUS-CITY Re: [7.4+] RSS Topic Creator v1.1 - 01/25/2023 2:11 AM
Hey Gizmo,

Issue was the domain its-self was running php 7.4, but the servers root didn't have php installed as it isn't serving out anything. But as cron runs some jobs there was no path to php.

Wasn't an issue early days of course, when it was all php 5 right :-)

I do love the Topic creator and will anxiously await its update for php8 as its a real great feature.

Appreciate the effort.

Cheers,

David
© UBB.Developers