Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-16-2010, 06:33 PM   #1
Highest Def
In the Cave of Gold
 
Highest Def's Avatar
 
Industry Role:
Join Date: Jun 2010
Location: ONLINE
Posts: 660
Is there a Wordpress plugin that shuffles your posts?

I have searched high and low and keep finding the same 'random posts' widgets. I want to just shuffle every post and eliminate dates all together. It's a Wordpress tube site and every few days I add 20 or 30 clips from a new sponsor, but I don't want the videos clumped together by site like that so I have been adding them with my own random dates, but I'd rather just add them all and have Wordpress do the randomizing.
__________________
Highest Def is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2010, 07:02 PM   #2
TeenSluts
Confirmed User
 
TeenSluts's Avatar
 
Join Date: Mar 2006
Posts: 1,966
sounds like a great idea, wouldnt mind testing something like that out.
TeenSluts is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2010, 08:04 PM   #3
Frasier
Confirmed User
 
Frasier's Avatar
 
Join Date: Jan 2010
Posts: 377
removing the dates is something best done by hand, there are a couple plugin's out there that claim they can do it, but it really depends on your theme if they are successful or not.

A quick google on 'remove wp date/time' should give you some pretty step by step directions on how to edit the php loop to remove them. I was able to do this, so I'm sure you can too

There is a plugin called 'oldest to newest' that does exactly what it claims to do, but there is no randomization in it.

If you find a random post updater, let us know
__________________
ICQ 452 one six 7 five 41
Frasier is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2010, 08:10 PM   #4
Highest Def
In the Cave of Gold
 
Highest Def's Avatar
 
Industry Role:
Join Date: Jun 2010
Location: ONLINE
Posts: 660
Quote:
Originally Posted by Frasier View Post
removing the dates is something best done by hand, there are a couple plugin's out there that claim they can do it, but it really depends on your theme if they are successful or not.

A quick google on 'remove wp date/time' should give you some pretty step by step directions on how to edit the php loop to remove them. I was able to do this, so I'm sure you can too

There is a plugin called 'oldest to newest' that does exactly what it claims to do, but there is no randomization in it.

If you find a random post updater, let us know
Yeah, I already removed them from the loop so it doesn't display the dates anywhere, but it still shows the posts in the order I created them. I want the display to be totally random since tonight I may add 20 Asian videos, and tomorrow I'll add 20 lesbian videos etc.
__________________
Highest Def is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2010, 08:18 PM   #5
Frasier
Confirmed User
 
Frasier's Avatar
 
Join Date: Jan 2010
Posts: 377
google is your friend

http://mr.hokya.com/post-randomizer/

how about a review on this when you try it
__________________
ICQ 452 one six 7 five 41
Frasier is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2010, 08:46 PM   #6
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
not sure what do you mean by shuffle, I take you mean random. If so, open your index.php, look for the loop and add something like this:

Code:
 
  
 <?php
 $rand_posts = get_posts('numberposts=10&orderby=rand');
 foreach( $rand_posts as $post ) :
 ?>
    <div class="post">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
</div>
 <?php endforeach; ?>
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2010, 08:48 PM   #7
Highest Def
In the Cave of Gold
 
Highest Def's Avatar
 
Industry Role:
Join Date: Jun 2010
Location: ONLINE
Posts: 660
Quote:
Originally Posted by Frasier View Post
google is your friend

http://mr.hokya.com/post-randomizer/

how about a review on this when you try it
Can't get it to work. Says it's tested up to 2.9 and I just updated the site to 3.1
It also could be something with my theme but the docs on that plugin are non-existent.
__________________
Highest Def is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2010, 09:50 PM   #8
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
shouldn't be too hard to write something like that, if you are looking to invest a few bucks for this technology, hit me up icq: 33375924
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2010, 11:23 PM   #9
icymelon
Confirmed User
 
Industry Role:
Join Date: Dec 2007
Location: Las Vegas
Posts: 3,220
RYO Oldest To Newest
http://ryowebsite.com/?cat=11
__________________
Network Of Adult Blogs With Hardlink Rentals Available
icymelon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-17-2010, 02:30 AM   #10
Ecchi22
Too lazy to set a custom title
 
Ecchi22's Avatar
 
Industry Role:
Join Date: Nov 2005
Posts: 10,012
http://www.danielesalamina.it/advanced-random-post
__________________
Ecchi22 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-17-2010, 07:25 AM   #11
Kram
Confirmed User
 
Join Date: Feb 2007
Posts: 666
I use this one Lazy Blog
Kram is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-17-2010, 08:11 AM   #12
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
Quote:
Originally Posted by harvey View Post
not sure what do you mean by shuffle, I take you mean random. If so, open your index.php, look for the loop and add something like this:

Code:
 
  
 <?php
 $rand_posts = get_posts('numberposts=10&orderby=rand');
 foreach( $rand_posts as $post ) :
 ?>
    <div class="post">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
</div>
 <?php endforeach; ?>
I would try this one first personally
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-17-2010, 08:14 AM   #13
HowlingWulf
Confirmed User
 
HowlingWulf's Avatar
 
Join Date: Nov 2001
Posts: 1,662
I've been using
http://www.dagondesign.com/articles/...for-wordpress/
for a long time now. Works great.
__________________
WP Porn directory/review theme Maddos $35.

webmaster AT howling-wulf.com
HowlingWulf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-17-2010, 08:53 AM   #14
ottopottomouse
She is ugly, bad luck.
 
ottopottomouse's Avatar
 
Industry Role:
Join Date: Jan 2010
Posts: 13,177
Lots of usefulness. Just marking the thread so I can find it again.
__________________
↑ see post ↑
13101
ottopottomouse is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-17-2010, 12:46 PM   #15
Highest Def
In the Cave of Gold
 
Highest Def's Avatar
 
Industry Role:
Join Date: Jun 2010
Location: ONLINE
Posts: 660
Quote:
Originally Posted by icymelon View Post
RYO Oldest To Newest
http://ryowebsite.com/?cat=11
Uhh, No

Quote:
Originally Posted by woj View Post
shouldn't be too hard to write something like that, if you are looking to invest a few bucks for this technology, hit me up icq: 33375924
Looks like I may need to. Seems like it should be so easy though.

Quote:
Originally Posted by Ecchi22 View Post
Not quite. This is really just a glorified widget.

Quote:
Originally Posted by Kram View Post
I use this one Lazy Blog
No idea what this is, but not a chance in Detroit I'm downloading it.

Quote:
Originally Posted by HowlingWulf View Post
I've been using
http://www.dagondesign.com/articles/...for-wordpress/
for a long time now. Works great.
Closer, but still not really what I'm looking for.

Quote:
Originally Posted by ottopottomouse View Post
Lots of usefulness. Just marking the thread so I can find it again.
Sad aint it
__________________
Highest Def is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-17-2010, 12:59 PM   #16
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
i use query_posts for tube style layouts, where i have random posts 4-8 of them, then the regular posts.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2010, 11:02 PM   #17
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
bump, looking for:

1. the plugin, or
2. the code, or
3. the price, of what you would charge to make it happen
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2010, 11:13 PM   #18
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by tonyparra View Post
I would try this one first personally
yes i use that on a tube theme, i have a row for featured videos, latest, then random.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2010, 11:18 PM   #19
cjhmdm
Confirmed User
 
Join Date: Jun 2009
Posts: 472
Just modify the loop for your specific needs/wants. That's pretty much all any plugin will do anyway. And at the end of the day it'd be better for you to learn how to do these types of things yourself.

Here's a good place to get started: http://codex.wordpress.org
More specifically: http://codex.wordpress.org/Template_Tags/get_posts
cjhmdm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2010, 04:33 PM   #20
trannysphere
Confirmed User
 
trannysphere's Avatar
 
Industry Role:
Join Date: Jul 2010
Posts: 519
sorry to bump this thread.. did you ever solved your problem? i might be looking for this one soon enough. will be building WP tubes and still need info.. up for you man!
__________________

DESIGN IS FILTHY DESIGN DEALS + ICQ:624499299 + designs {at} designisfilthy.com

$8 BANNER DESIGN | $299 for 50 BANNERS | $449 for 100 BANNERS
$15 DOLLAR GALLERY DESIGN | $129 for 10 GALLERIES | $199 for 20 GALLERIES
trannysphere is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2010, 04:37 PM   #21
jimmy-3-way
Confirmed User
 
jimmy-3-way's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Transform my name to numbers it'd be 121058710.
Posts: 3,861
http://wordpress.org/extend/plugins/random-redirect/

You're welcome.
__________________
Make money offa that Asian honey - www.eroticmp.com.
jimmy-3-way is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2010, 04:41 PM   #22
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
A good post randomizer could be set to shuffle the existing datetimes once per x minutes/hours.

example:
get id,datetime from the db table
shuffle the datetimes
update each id with the new datetime
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2010, 04:48 PM   #23
garce
Confirmed User
 
garce's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Toronto
Posts: 7,103
Quote:
Originally Posted by Brujah View Post
A good post randomizer could be set to shuffle the existing datetimes once per x minutes/hours.

example:
get id,datetime from the db table
shuffle the datetimes
update each id with the new datetime
You'd have to make sure you weren't using a calendar or archives by date.
garce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2010, 04:53 PM   #24
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
ORDER BY RAND()

Enjoy even more overhead than turdpress normally has.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2010, 05:06 PM   #25
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
Quote:
Originally Posted by garce View Post
You'd have to make sure you weren't using a calendar or archives by date.
Why? in this example, the dates are meaningless and only being used to show content on the pages in a different order. In what case would you still want the Archives to show the original order?
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2010, 05:22 PM   #26
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Grouchy sure hates wp
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2010, 05:24 PM   #27
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by fris View Post
Grouchy sure hates wp
Yes, yes I do.

As does anyone who has to manage computers, not just skin them and go away - no offense, but WP is probably the biggest pile of shit written in PHP, and I'm including absolutely everything written in PHP, ever. ;)
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2010, 05:37 PM   #28
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
Quote:
Originally Posted by GrouchyAdmin View Post
Yes, yes I do.

As does anyone who has to manage computers, not just skin them and go away - no offense, but WP is probably the biggest pile of shit written in PHP, and I'm including absolutely everything written in PHP, ever. ;)
Obviously you've never used phpNuke
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2010, 05:41 PM   #29
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by Brujah View Post
Obviously you've never used phpNuke
Oh holy god. I forgot about that. Can you believe it? I was, however, including phpBB2, and OpenBB (no longer exists).
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2010, 05:55 PM   #30
JosephFM
Confirmed User
 
Industry Role:
Join Date: Feb 2010
Posts: 1,190
Here's two of them.

http://www.yakupgovler.com/advanced-random-posts.html

http://www.danielesalamina.it/advanced-random-post (Page in Italian but files are in English)
JosephFM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2010, 06:10 PM   #31
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by GrouchyAdmin View Post
Yes, yes I do.

As does anyone who has to manage computers, not just skin them and go away - no offense, but WP is probably the biggest pile of shit written in PHP, and I'm including absolutely everything written in PHP, ever. ;)
yes that may be it, but a good portion of high traffic websites use wordpress
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-16-2010, 06:11 PM   #32
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by fris View Post
yes that may be it, but a good portion of high traffic websites use wordpress
A good portion of high traffic websites also use Tomcat, but I'd prefer not to manage them, either.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2010, 12:32 AM   #33
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Quote:
Originally Posted by harvey View Post
not sure what do you mean by shuffle, I take you mean random. If so, open your index.php, look for the loop and add something like this:

Code:
 
  
 <?php
 $rand_posts = get_posts('numberposts=10&orderby=rand');
 foreach( $rand_posts as $post ) :
 ?>
    <div class="post">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
</div>
 <?php endforeach; ?>
That's all i do, edit it right into the loop. Works good for throwing up random past articles in an external loop too.
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2010, 12:41 AM   #34
stocktrader23
Let's do some business.
 
stocktrader23's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: The dirty south.
Posts: 18,781
Quote:
Originally Posted by GrouchyAdmin View Post
A good portion of high traffic websites also use Tomcat, but I'd prefer not to manage them, either.
If you ever create something that makes site building / management as easy as WP plus has all of the benefits I'll be the first to sign up. Until then, manage away.
__________________


Hands Free Adult - Join Once, Earn For Life

"I try to make a habit of bouncing my eyes up to the face of a beautiful woman, and often repeat “not mine” in my head or even verbally. She’s not mine. God has her set aside. She’s not mine. She’s His little girl, and she needs me to fight for her by keeping my eyes where they should be."
stocktrader23 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2010, 11:23 AM   #35
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by Highest Def View Post
I have searched high and low and keep finding the same 'random posts' widgets. I want to just shuffle every post and eliminate dates all together. It's a Wordpress tube site and every few days I add 20 or 30 clips from a new sponsor, but I don't want the videos clumped together by site like that so I have been adding them with my own random dates, but I'd rather just add them all and have Wordpress do the randomizing.
you could do a random post with cookies, so that user never gets the same random post.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2010, 12:51 PM   #36
jimmy-3-way
Confirmed User
 
jimmy-3-way's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Transform my name to numbers it'd be 121058710.
Posts: 3,861
Quote:
Originally Posted by GrouchyAdmin View Post
Yes, yes I do.

As does anyone who has to manage computers, not just skin them and go away - no offense, but WP is probably the biggest pile of shit written in PHP, and I'm including absolutely everything written in PHP, ever. ;)
I'm curious what is so bad about WP - would you be so kind as to name a few things?
__________________
Make money offa that Asian honey - www.eroticmp.com.
jimmy-3-way is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2010, 01:51 PM   #37
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Grouchy, I won't argue on the technical part, since I don't know, but when I see these retarded users, I assume they might have 1 or 2 coders that know a little, and since they're using WP, me and the average Joe will trust that crappy pile of shit known as WP. There might be better scripts, but if it's good for the fucking NASA, Yahoo, CNN, FOX, flickr and Reuters just to name a few, then I'm pretty sure it will be bananas for a small cat like me Oh, and the price ain't too shabby

The above being said, I'd be very interested in knowing what would you recommend as an alternative and why do you think WP is that bad (please don't say security, let's be serious here)
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2010, 02:18 PM   #38
Jdoughs
Confirmed User
 
Jdoughs's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
I just use orderby=rand and WPCACHE to set the time limit on cache.


So this in effect randomizes my frontpage every "3600 seconds" or whatever I set it at.
__________________
LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250
Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month.
AmeriNOC - Proudly hosted @ AmeriNOC!
Jdoughs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2010, 09:33 PM   #39
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by harvey View Post
Grouchy, I won't argue on the technical part, since I don't know, but when I see these retarded users, I assume they might have 1 or 2 coders that know a little, and since they're using WP, me and the average Joe will trust that crappy pile of shit known as WP. There might be better scripts, but if it's good for the fucking NASA, Yahoo, CNN, FOX, flickr and Reuters just to name a few, then I'm pretty sure it will be bananas for a small cat like me Oh, and the price ain't too shabby

The above being said, I'd be very interested in knowing what would you recommend as an alternative and why do you think WP is that bad (please don't say security, let's be serious here)
10 reasons

Quote:
1. Easy Installation and Upgrades
2. Fully Customizable XHTML/CSS/PHP
3. Ease of Managing Content
4. Thousands of Useful Plug-ins
5. Fully Customizable URLs
6. Fully Functional Search
7. Ease of Changing Themes
8. Pings and Trackbacks
9. Huge community for technical support
10. It's Free
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2010, 09:37 PM   #40
stocktrader23
Let's do some business.
 
stocktrader23's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: The dirty south.
Posts: 18,781
Quote:
Originally Posted by fris View Post
10 reasons



__________________


Hands Free Adult - Join Once, Earn For Life

"I try to make a habit of bouncing my eyes up to the face of a beautiful woman, and often repeat “not mine” in my head or even verbally. She’s not mine. God has her set aside. She’s not mine. She’s His little girl, and she needs me to fight for her by keeping my eyes where they should be."
stocktrader23 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2010, 10:10 PM   #41
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by Highest Def View Post
I have searched high and low and keep finding the same 'random posts' widgets. I want to just shuffle every post and eliminate dates all together. It's a Wordpress tube site and every few days I add 20 or 30 clips from a new sponsor, but I don't want the videos clumped together by site like that so I have been adding them with my own random dates, but I'd rather just add them all and have Wordpress do the randomizing.
you could do something like this (very rough)

Code:
<?php 

// show 5 random posts, dont repeat the same posts for an hour

function fris_run_cookie($savecookieid) {

	setcookie("randompostsviewed", ''); //delete old ones
	$savecookiestr=serialize($savecookieid); //use serialize() to store the array
	setcookie("randompostsviewed",$savecookiestr,time()+3600*1,COOKIEPATH, COOKIE_DOMAIN); //keep for 1 hour by default 

}

if (isset($_COOKIE['randompostsviewed'])){
			$savecookiestr = $_COOKIE['randompostsviewed'];
			$savecookieid = unserialize($savecookiestr);
			}
			else{
				$savecookieid = array();
			} 
			$savecookieid[] = get_option("sticky_posts");
?>

<?php 

$args = array(
		'post_status' => 'publish',
		'caller_get_posts'=> 1,
		'post__not_in' => $savecookieid, 
		'orderby' => 'rand', 
		'posts_per_page' => 5
		);

		query_posts($args); 
	  
?>

	  <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<?php if (!in_array($post->ID,$savecookieid,true)) {
			 $savecookieid[]= $post->ID;
			 }
			fris_run_cookie($savecookieid);
?>
			
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<div class="entry-content">
<?php the_content(); ?>
</div>

<?php endwhile; ?>
<?php endif; ?>
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2010, 10:36 PM   #42
garce
Confirmed User
 
garce's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Toronto
Posts: 7,103
Quote:
Originally Posted by Brujah View Post
Why? in this example, the dates are meaningless and only being used to show content on the pages in a different order. In what case would you still want the Archives to show the original order?
I have no idea what I was thinking back then. Right now I'm thinking I don't want a post from 2005 to pop up on my index page. If the random call would only include the last month's posts - fine.
garce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2010, 11:15 PM   #43
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by garce View Post
I have no idea what I was thinking back then. Right now I'm thinking I don't want a post from 2005 to pop up on my index page. If the random call would only include the last month's posts - fine.
here you have:

Code:
<?php
function filter_where($where = '') {
  //posts for last month
  $where .= " AND post_date > '" . date('Y-m-d', strtotime('-30 days')) . "'";
  return $where;
}
add_filter('posts_where', 'filter_where');
query_posts('numberposts=10&orderby=rand');
?>
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2010, 11:26 PM   #44
garce
Confirmed User
 
garce's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Toronto
Posts: 7,103
Quote:
Originally Posted by harvey View Post
here you have:

Code:
<?php
function filter_where($where = '') {
  //posts for last month
  $where .= " AND post_date > '" . date('Y-m-d', strtotime('-30 days')) . "'";
  return $where;
}
add_filter('posts_where', 'filter_where');
query_posts('numberposts=10&orderby=rand');
?>
You always come through. I will give this a shot. Thank you in advance.
garce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.