![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
marketer.
Industry Role:
Join Date: Aug 2006
Location: bcn
Posts: 2,280
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Just Doing My Own Thing
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,038
|
You read my mind - I was sitting down last night to write exactly this - I got bored and went to the pub instead...
Thanks!!!!
__________________
- Chaturbate Script - https://gfy.com/fucking-around-and-b...er-issues.html - Now supports White Labels |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
marketer.
Industry Role:
Join Date: Aug 2006
Location: bcn
Posts: 2,280
|
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') } |
![]() |
![]() ![]() ![]() ![]() ![]() |