roknrolltkovr 0 Posted May 3, 2011 Report Share Posted May 3, 2011 So I'm just getting started with ubot I can't believe how powerful it is even for a noob like myself. I've got my Wordpress bot that installs, does themes, plugins, all the basic stuff. I'm now working on the article posting part, which will ideally make 10 posts and schedule 1 post per day. I've got everything worked out (title, content, category, tags, image) except for the actual scheduling. I could just select a random date (01-30) for the day input box, but I'm really hoping to have the bot detect the current date, and then add 1 day for each article it posts. The problem comes with switching months, for example if I ran the bot on the 29th, it would schedule a post on the 29th, 30th, then would need to switch to the next month and start over at day 1. I imagine this could done with javascript but I've got no JS knowledge whatsoever. Any ideas on how else this could be done? A push in the right direction would be awesome! ThanksAndy Quote Link to post Share on other sites
Praney Behl 314 Posted May 3, 2011 Report Share Posted May 3, 2011 You can use the date function for the current date and time. and sculpt you know logic for addition or if you are good with Javascript then thats the best way to go. . Praney Quote Link to post Share on other sites
UBotBuddy 331 Posted May 3, 2011 Report Share Posted May 3, 2011 Are you using the schedule function within Wordpress? Quote Link to post Share on other sites
roknrolltkovr 0 Posted May 3, 2011 Author Report Share Posted May 3, 2011 Praney - thanks I'll give the date function a shot. No JS skills, so that's a last resort. BotBuddy - I'm using the "Publish" box on the top right sidebar on the "add new post" page. I click the edit button then want to change that date. Quote Link to post Share on other sites
Chris Ramsey 0 Posted May 4, 2011 Report Share Posted May 4, 2011 Oh man... I had some trouble with this one. I could get it to post once a day for a long while, but as soon as the month had to change, that's when the math got fuzzy for me. I'm a programmer, but I'm terrible at math. Go figure I imagine there's an easier way, but I just ended up using a whole lot of "If" statements. Quote Link to post Share on other sites
roknrolltkovr 0 Posted May 5, 2011 Author Report Share Posted May 5, 2011 Alright so not much luck with this and I just don't have the time to mess with it much more. Would anyone be interested in doing the JS for this for $20? I just need to schedule 1 post per day, and it needs to change months when necessary. Quote Link to post Share on other sites
Biks 9 Posted May 5, 2011 Report Share Posted May 5, 2011 I made a WP auto post bot - the month thing also kicked my ass so I just waited till the beginning of the month and scheduled up to 31 days. :-P Quote Link to post Share on other sites
UBotBuddy 331 Posted May 5, 2011 Report Share Posted May 5, 2011 @Biks I like your thinking! Good idea. Quote Link to post Share on other sites
roknrolltkovr 0 Posted May 6, 2011 Author Report Share Posted May 6, 2011 Thanks for the post Biks, you made me realize I was probably just overthinking this. I came up with a workaround that has worked well so far. I store all of the articles I want to post in a csv, with each article on a separate line. What I did was add two columns to the csv for the month and day, then pull them when the article is posting. I also use $rand for the hour and minutes. Works like a charm. It adds an extra step in excel, but after I make a macro for that I think this will work out for now. Thanks for the help everyone. Quote Link to post Share on other sites
Praney Behl 314 Posted May 15, 2011 Report Share Posted May 15, 2011 I am working on random dates and times between 2 given dates. Anyone any ideas on this. I am almost done but would like to know how would someone else do it.. Quote Link to post Share on other sites
nuc63 27 Posted May 16, 2011 Report Share Posted May 16, 2011 I am working on random dates and times between 2 given dates. Anyone any ideas on this. I am almost done but would like to know how would someone else do it.. Have a file with all dates listed one per line for next 6 months. and then randomize the times. Quote Link to post Share on other sites
Praney Behl 314 Posted May 16, 2011 Report Share Posted May 16, 2011 Hmm and how are these dates and time generated? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.