----------- WHAT THINGS MEAN & HOW TO USE THE PLUG ---------
1) When you activate the plugin it will create a new tab called "Ydata" this is where all the goods of the plug reside.
2) When you click on this tab you are presented with the info screen, as I just previously mentioned in the known features part of this post, right now this section is completely useless and has no relevent info so ignore it for now.
3) The automation page is the second (middle) sub-tab for this plugin and this is where the real goods come into play. Before you create a cron job you have to fill out this information.
The first thing you need to fill out is the input beside the word Post: this is the keyword which will be used to search for your videos, please only add 1 keyword into this and right beside it you'll have to choose a category in which you want to have this post show up into.
After that you can optionally specify some tags for this post if you want to, seperate them with a comma, I was going to use the tags which come with the video but never got around to it, again I'll probably toss that functionality in as time goes on.
Next is setting the comment range, here you specify a low number then a number higher then the low number so if I wanted all the comments for this keyword (posts) to be between 100 and 200 I would put 100 in the first box and 200 in the second. If you leave these blank you will probably get a message saying fill them out, but if you don't then it will default to grabbing comments between 50 and 100.
Once you've done that you can specify if you want to remove all swear words from the comments by checking the checkbox.
After your done click the Add Post Details button and once its done you should see it show up in the right sidebar and a message at the top saying hey its been added.
From there you can remove it if you don't want to use that keyword anymore.
Once you've entered 1 keyword then you can setup a cron job to run the automate.php file however often you want however every time the cron job runs it will make 1 post for each and every keyword you specify in this section.
So if I create 5 elements here and run the cron every hour it will create 5 posts an hour so keep that in mind. In the future I'm going to add in a max/day option and a bit more flexability with this automation feature.
4) The last sub-tab enables you to manually add videos, this one is pretty self-explanitory if you read everything upto this point, you simply search for some videos, they will be displayed as an image, click the image to preview the video, add some details and make the post.
5) This is an important one, once you got a few videos on your site, go to the main page (Not a single page) and you'll notice that you won't see the video player, instead you'll see a larger type of screenshot for this video, however if you go to the post page (single page) you no longer see the thumbnail, now you see the video player and can watch the video.
I've done this because if you place 10 video players on the same page and a user presses play and pause on 5 of them, things are going to get really slow for them. Its always better to place lots of thumbnails on a page and 1 video where required.
If you want to change this around you can do so easily, open up the file called "
ydata.php" and near the top you can comment out the following line of code.
PHP:
add_action('the_content', 'change_post');
Or if you want to keep it there but change the image size and play with it a bit more then everything that effects this is inside of the
change_post function which is shown below.
PHP:
function change_post() {
global $wpdb,$post;
if(!is_single()) {
$image = $wpdb->get_var("SELECT image FROM ".$wpdb->prefix."ydata_options WHERE post_id = '".$post->ID."'");
$replace = '<center><img src="'.stripslashes($image).'" alt="'.$post->post_title.'" /></center>';
echo preg_replace("/<object(.*?)object>/i", $replace, $post->post_content);
}
else
{
echo $post->post_content;
}
}
This function does NOT re-save your post to the database, it simply intercepts the posts before they are displayed to the user, its a handy thing to have.
----------- CLOSING STATEMENTS & DL LINK ---------
I wen't over all this stuff so you know where I stand on it and to give you a bit of knowledge into the current status of the plugin.
Basically as I stated before right now its sole purpose is so that all the domains I have sitting there doing fuck all can make themselves at least $20/year so they can pay for themselves as time goes on.
I didn't have time to add in a lot of cool and helpful features, and the flexibility is basic but this is something that I plan on working with as time goes on, you know if I have a few hours here or a spare day over there then I'll fix up some of the code and add some better features and as time goes on it'll get better, how much time before it is the best plugin you'll ever use for empty domains is still unknown lol.
Also if you want support for the plugin don't coun't on me (right now at least) to respond to everyones questions and concerns and feature requests, I want to hear them all so by all means send the message just don't count on a quick responce.
Finally before I give you the link (I bet you all hate me for all the reading) if you want to know what something in the code does, shoot me off a message and ask, I'll do what I can to help explain it to you until I get it commented better.
If your interested in helping me advance this alot quicker let me know we will team up, you create this feature I'll create that one, we will combine it once were done thats great for me, also who knows if a few of us team up to work on seperate features we can pound out a commercial plugin to sell and make some coin from, we could work on others in the future, so don't be shy to ask or suggest or whatever else.
Anyway I'm tired of typing and I bet your extremely tired of reading so here you go - finally the awaited link to the download.
AmpleGains - Ydata Plugin
P.S. I have no idea why I called it Ydata, I'm sure I'll change it and it really means nothing, again its on of those things where I planned to create it for personal use.