Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 6th Apr 2013, 02:51 AM   #1
cpa money king
 
cpa-money's Avatar
 
Join Date: 2010
Posts: 298
Thanks: 1
Thanked 11 Times in 11 Posts
Lightbulb
random rss feed generator?
Share on: 
fb share twitter share gplus share more share

hello,

i need a random rss feed, so every time that i will refresh the rss url i will get a new quote or saying (maybe from a simple database - txt file or excel file).

is there any way i can do it without too much programming?

alternatively, is there any free wordpress plugin that can post randomly within few minutes interval from a pre-made posts or database?

thanks!

cpa-money is offline  
Unread 6th Apr 2013, 06:04 AM   #2
HyperActive Warrior
War Room Member
 
Diversion52's Avatar
 
Join Date: 2012
Location: Finland & Canada
Posts: 112
Thanks: 7
Thanked 30 Times in 24 Posts
Default
Re: random rss feed generator?
Share on: 
fb share twitter share gplus share more share

So when anybody refreshes the RSS there will be a new quote added to the feed? As in everyone subscribing to the feed will get that new quote? That doesn't really make sense to me.

Can you explain what it is that you're trying to accomplish?
Diversion52 is offline  
Unread 6th Apr 2013, 10:26 AM   #3
cpa money king
 
cpa-money's Avatar
 
Join Date: 2010
Posts: 298
Thanks: 1
Thanked 11 Times in 11 Posts
Default
Re: random rss feed generator?
Share on: 
fb share twitter share gplus share more share

Originally Posted by Diversion52 View Post

So when anybody refreshes the RSS there will be a new quote added to the feed? As in everyone subscribing to the feed will get that new quote? That doesn't really make sense to me.

Can you explain what it is that you're trying to accomplish?
yes a new quote will be added to the feed (the feed will have only one quote at a time so the last one will be delete).

nobody need to subscribe to this feed, i just need to syndicate it to my chain of blogs every few minutes as a new post.

cpa-money is offline  
Unread 6th Apr 2013, 04:10 PM   #4
HyperActive Warrior
War Room Member
 
Diversion52's Avatar
 
Join Date: 2012
Location: Finland & Canada
Posts: 112
Thanks: 7
Thanked 30 Times in 24 Posts
Default
Re: random rss feed generator?
Share on: 
fb share twitter share gplus share more share

Here's something to get started. Check this article out for creating a RSS feed with PHP Create an RSS feed with PHP - Carron Media

Instead of just going through the tables and listing them out, you can query the table and randomly select on of them to display. You can actually randomize it while querying the database with something like
Code:
SELECT * FROM mytable ORDER BY rand() LIMIT 1
But that should only be used for small databases (about 100 rows). If you're going to use a bigger database, use PHP to randomize a number to select the random row.

Last edited on 6th Apr 2013 at 04:11 PM. Reason: typo
Diversion52 is offline  
Unread 6th Apr 2013, 10:43 PM   #5
Svetoslav Marinov (SLAVI)
 
Join Date: 2011
Posts: 211
Thanks: 20
Thanked 27 Times in 26 Posts
Default
Re: random rss feed generator?
Share on: 
fb share twitter share gplus share more share

Hi,

Actually, you can take a look at default WordPress installation. There is a plugin called "Hello Dolly" which outputs random text. Maybe you use that as a starting point.

WordPress › Support ยป Feed for Custom Post Types

Are you using WordPress? Have you tried qSandbox yet?
lordspace is offline  
Closed Thread


Bookmarks

Tags
feed, generator, random, rss


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 12:10 PM.