[COMPLETED] Bot for changing WP footer info.
Posted 01 May 2012 - 04:09 PM
I need a bot that I can give a list of WordPress sites, username/password, and some code.
Right now I have statcounter code in the footer, I want to pull the code out and put piwik code in.
The Statcounter code starts and ends with:
<!-- Start of StatCounter Code for Default Guide -->
<!-- End of StatCounter Code for Default Guide -->
So those two lines and all the code in between will need to be removed and the piwik code put in.
Posted 01 May 2012 - 05:04 PM
Unless you know of a better way, not sure if you can hit the DB directly and do it.
Posted 01 May 2012 - 05:09 PM
let me know what type of features,. you have.
Posted 01 May 2012 - 05:24 PM
Posted 01 May 2012 - 05:37 PM
Posted 01 May 2012 - 07:32 PM
meaning add list of sites comma delimited with
then it loops through all of them.
- logs in
- navigates to the theme editor for the footer
- looks for the code in there now, and replaces with what you want to replace it with, saves
- then goes to the next site and repeats the process
Posted 01 May 2012 - 07:40 PM
Posted 01 May 2012 - 07:50 PM
The bot would scrape the entire footer text to a variable, look for the code area with its defined tags, then replace only the defined area with the new code you want to place there,
then place that text back into the editor, and save it.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users