MyBB Community Forums

Full Version: RSS2Post modification.....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to modify this plugin.....

Right now when a feed is grabbed and posted, it shows the date and time it was posted along with a link.

So when a feed is posted, at the end of the post it shows up as:

Quote:Posted on Thu, 02 Oct 2008 11/10 GMT at "url to website the feed was grabbed from"

I want to not have the date or time shown it was posted at and instead replace the date and time with the text and link below:

Quote:Source: "url to website the feed was grabbed from"

I found the code responsible for the grabbing and posting the date and time in the rss2post_task.php file, but I am unsure how to edit and alter it to what I need without screwing it up.

If you can help me out DennisTT, it would be greatly appreciated. Smile
Yeah I used to like the 1.2x version. I hope author updates this one.
(2008-10-27, 12:50 AM)labrocca Wrote: [ -> ]Yeah I used to like the 1.2x version. I hope author updates this one.

It has been updated for a while now for Mybb 1.4.x series.... Toungue

Just asking how to do a simple modification.Wink
inc/tasks/rss2post_task.php
Find:
					$meta_info = '';
					if(!empty($item_data['pubDate']))
					{
						$meta_info .= 'on '.$item_data['pubDate'].' ';
					}
					if(!empty($item_data['link']))
					{
						$meta_info .= 'at '.$item_data['link'];
					}
					if(!empty($meta_info))
					{
						$message .= "\n\nPosted ".$meta_info;
					}
Replace with:
					if(!empty($item_data['link']))
					{
						$message .= "\n\nSource: ".$item_data['link'];
					}