News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

RSS Feed Poster

Started by SMFHacks.com Team, January 11, 2007, 07:46:04 PM

Previous topic - Next topic

Johno69

Any way to limit the length of the topic title?

I found a way to do it for users but it doesnt work for the bots.


Twysted

Quote from: vbgamer45 on June 12, 2008, 10:21:00 AM
If you need an answer I do offer paid support starting at $75 an hour for SMF projects.
thats a ripoff! even i don't charge that much smf support is easy! just gotta know what your doing!

Twysted

Quote from: Johno69 on June 22, 2008, 07:59:38 AM
Any way to limit the length of the topic title?

I found a way to do it for users but it doesnt work for the bots.
in the sql you can limit it by making the varchar set to a lower number

Johno69

Quote from: Johno69 on June 22, 2008, 07:59:38 AM
Any way to limit the length of the topic title?

Quote from: metallica48423 on June 22, 2008, 04:51:11 AM
That mod uses another instance of createPost than the one that is used in posting normally...  so it wouldn't be caught by the same restrictions as the post form.

in /Sources/Subs-RSS.php, find

'subject' => $feed['topicprefix'] . $msg_title,

and replace it with:

'subject' => substr(($feed['topicprefix'] . $msg_title), 047) . '...',

where, 47, is, of course, your length

All sorted

Johno69

has the "’" issue been sorted?


Johno69

#865
in Subs-RSS.php if we change this line somehow..

'body' => '[b]' . $msg_title . "[/b]\n\n" . $msg_body,

Will it enable the html tags?

'body' => '[b]' . $msg_title . "[/b][html]\n\n" . $msg_body . "[/html]\n\n",

I am only guessing, and not sure how to make that work only for html enables posts.. but someone might be able to help here?

Update 1: I just tested and it does put the html tags in the right places. I just need a bot to post an rss feed with html now.

Update 2: This does add the html tags to every post made by the feed poster. The problem is, it adds the tags in the right place but they don't work for some reason.  All i need to do is "Modify" (without changing anything) and save and it's displayed properly.

ruckstande

I'm just not sure I'm doing anything right. It worked one time and never worked again. I'm redownloading it and will reinstall it now to see if that changes anything.

vbgamer45

Havent' been able to figure out the html tags for the post either tried some things bu did not work.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Paracelsus

Sorry if this has already been asked (couldn't get it from search in topic)... is it possible to tweak the Mod so that the RSS feed is always posted in the SAME topic (and not each item in a different topic)?

Johno69

I was thinking about this, and maybe it could be modded to change the board ID to a topic ID?

GazOutEast

Great idea - though I guess it would have to use the topic number rather than title, and the topic would need some form of "no-delete" flag to prevent it being accidently deleted and blocking the feed poster?

Wouldn't "RSS feed topic posting" need to be a seperate contribution because of the above considerations?

Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

Johno69

Maybe it could be:

Choose one
Enter Board ID [    ] Board will be used for a new topic each time.
Enter Topic ID [    ]  Topic will be used and posts will be added to the current topic.

just an idea.

Awesomo 4000

#872
I get an "Internal Server Error" when I go to my cronrss.php page. I installed everything without a problem and I am not sure how I got this. My host is hxxp:hostgator.com [nonactive] and this is the code my cronrss.php page is using.

<?php
/*
RSS Feed Poster
Version 1.0.0
by:vbgamer45
http://www.smfhacks.com
*/

// SSI needed to get SMF functions
require('SSI.php');

// For the rss functions
require_once($sourcedir '/Subs-RSS.php');

UpdateRSSFeedBots();
die(
$txt['smfrssposter_admin']);
?>

vbgamer45

chmod the cronrss.php file to 755
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

yoggie

Hi, like to ask why the RSS doesn't show in my forum. I already point it to a topic and make sure the rss source is working with feedburner, but the topic not show anything new...

Johno69

You need to run the cronrss.php file to run the bots.

Johno69

Re: HTML is posts..

I use the feed2post Joomla Component that posts html into a content item, then use the SMF discussbot to have users post the articles they want to discuss info the forums.

And the HTML seems to be getting converted to BB Code without any issues.

Maybe there's a hint in the DiscussBot that may help this mod be more effective?

Just a thought for the developer.

yoggie

@ Johno69
I use the fake cronrss, changed to cmod 755, nothin' happened.
FYI, I use a non-standard theme and indonesian-utf8 language.

EdwinK

Quote from: vbgamer45 on July 02, 2008, 08:42:25 PM
chmod the cronrss.php file to 755

Exactly the problem I was having. Solved with the above ;)
|| foto-site ||

xstocler

Hello,
I wonder how I can put images on post, along with the news feed?


Advertisement: