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)
-   -   wordpress plugin - random post dater - thought it might be handy for some on here (https://gfy.com/showthread.php?t=1091608)

scouser 12-04-2012 06:33 AM

wordpress plugin - random post dater - thought it might be handy for some on here
 
i was always adding 20 or whatever posts in a day then using crappy scripts (sql) to change the post dates to something random...

wrote a quick plugin for wordpress to do it from the wp admin panel.

its pretty minimal in terms of features & there is no undo or whatever so only do it if you definitely want to change the post dates.

can change post dates for only posts with a certain tag or certain category. or all posts.

http://wordpress.org/extend/plugins/...om-post-dater/

thought it might be handy. can select a minimum date (days in past) and maximum date (days in future) as the range of dates it'll randomly change the post dates to.

demo video https://youtube.com/watch?feature...&v=7_C058wy4UY

EddyTheDog 12-04-2012 06:37 AM

You read my mind - I was sitting down last night to write exactly this - I got bored and went to the pub instead...

Thanks!!!!

scouser 12-04-2012 06:41 AM

yea ive been meaning to have a proper thing to do this for ages. ive always figured if manually entering posts its quicker to run a script to randomly change the date than to do it on each post.

it doesn't uniformly space them out. it is does something like this (pseudo, not actually from the source)

foreach($post ) {
$rand = rand($min,$max); // $min can be -, either can be 0... but not both
$plus_or_minus = $rand > 0 ? '-' : '+';
set date = strtotime($plus_or_minus . ' ' . $rand . ' days')
}


All times are GMT -7. The time now is 09:39 AM.

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