GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Is there a Wordpress plugin that shuffles your posts? (https://gfy.com/showthread.php?t=982710)

Highest Def 08-16-2010 06:33 PM

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.

TeenSluts 08-16-2010 07:02 PM

sounds like a great idea, wouldnt mind testing something like that out.

Frasier 08-16-2010 08:04 PM

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

Highest Def 08-16-2010 08:10 PM

Quote:

Originally Posted by Frasier (Post 17420560)
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.

Frasier 08-16-2010 08:18 PM

google is your friend

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

how about a review on this when you try it

harvey 08-16-2010 08:46 PM

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; ?>


Highest Def 08-16-2010 08:48 PM

Quote:

Originally Posted by Frasier (Post 17420595)
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.

woj 08-16-2010 09:50 PM

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

icymelon 08-16-2010 11:23 PM

RYO Oldest To Newest
http://ryowebsite.com/?cat=11

Ecchi22 08-17-2010 02:30 AM

http://www.danielesalamina.it/advanced-random-post

Kram 08-17-2010 07:25 AM

I use this one Lazy Blog

tonyparra 08-17-2010 08:11 AM

Quote:

Originally Posted by harvey (Post 17420650)
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

HowlingWulf 08-17-2010 08:14 AM

I've been using
http://www.dagondesign.com/articles/...for-wordpress/
for a long time now. Works great.

ottopottomouse 08-17-2010 08:53 AM

Lots of usefulness. Just marking the thread so I can find it again.

Highest Def 08-17-2010 12:46 PM

Quote:

Originally Posted by icymelon (Post 17420809)
RYO Oldest To Newest
http://ryowebsite.com/?cat=11

Uhh, No

Quote:

Originally Posted by woj (Post 17420732)
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 (Post 17420927)

Not quite. This is really just a glorified widget.

Quote:

Originally Posted by Kram (Post 17421336)
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 (Post 17421443)
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 (Post 17421548)
Lots of usefulness. Just marking the thread so I can find it again.

Sad aint it :winkwink:

fris 08-17-2010 12:59 PM

i use query_posts for tube style layouts, where i have random posts 4-8 of them, then the regular posts.

tonyparra 10-04-2010 11:02 PM

bump, looking for:

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

fris 10-04-2010 11:13 PM

Quote:

Originally Posted by tonyparra (Post 17421433)
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.

cjhmdm 10-04-2010 11:18 PM

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

trannysphere 11-16-2010 04:33 PM

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!

jimmy-3-way 11-16-2010 04:37 PM

http://wordpress.org/extend/plugins/random-redirect/

You're welcome.

Brujah 11-16-2010 04:41 PM

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

garce 11-16-2010 04:48 PM

Quote:

Originally Posted by Brujah (Post 17704441)
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.

GrouchyAdmin 11-16-2010 04:53 PM

ORDER BY RAND()

Enjoy even more overhead than turdpress normally has.

Brujah 11-16-2010 05:06 PM

Quote:

Originally Posted by garce (Post 17704458)
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?

fris 11-16-2010 05:22 PM

Grouchy sure hates wp

GrouchyAdmin 11-16-2010 05:24 PM

Quote:

Originally Posted by fris (Post 17704551)
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. ;)

Brujah 11-16-2010 05:37 PM

Quote:

Originally Posted by GrouchyAdmin (Post 17704553)
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 :)

GrouchyAdmin 11-16-2010 05:41 PM

Quote:

Originally Posted by Brujah (Post 17704572)
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).

JosephFM 11-16-2010 05:55 PM

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)

fris 11-16-2010 06:10 PM

Quote:

Originally Posted by GrouchyAdmin (Post 17704553)
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

GrouchyAdmin 11-16-2010 06:11 PM

Quote:

Originally Posted by fris (Post 17704648)
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.

Angry Jew Cat - Banned for Life 11-17-2010 12:32 AM

Quote:

Originally Posted by harvey (Post 17420650)
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.

stocktrader23 11-17-2010 12:41 AM

Quote:

Originally Posted by GrouchyAdmin (Post 17704654)
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.

fris 11-17-2010 11:23 AM

Quote:

Originally Posted by Highest Def (Post 17420434)
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.

jimmy-3-way 11-17-2010 12:51 PM

Quote:

Originally Posted by GrouchyAdmin (Post 17704553)
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?

harvey 11-17-2010 01:51 PM

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 :2 cents: Oh, and the price ain't too shabby :winkwink:

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)

Jdoughs 11-17-2010 02:18 PM

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.

fris 11-17-2010 09:33 PM

Quote:

Originally Posted by harvey (Post 17706861)
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 :2 cents: Oh, and the price ain't too shabby :winkwink:

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
:thumbsup

stocktrader23 11-17-2010 09:37 PM

Quote:

Originally Posted by fris (Post 17708003)
10 reasons



:thumbsup

:1orglaugh

fris 11-25-2010 10:10 PM

Quote:

Originally Posted by Highest Def (Post 17420434)
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; ?>


garce 11-25-2010 10:36 PM

Quote:

Originally Posted by Brujah (Post 17704515)
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.

harvey 11-25-2010 11:15 PM

Quote:

Originally Posted by garce (Post 17728911)
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');
?>


garce 11-25-2010 11:26 PM

Quote:

Originally Posted by harvey (Post 17728946)
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.


All times are GMT -7. The time now is 06:31 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123