just a punk |
06-30-2011 02:44 AM |
How to use CyberSEO in a way similar to Caffeinated Content.
Quote:
Originally Posted by Jesus H Christ
(Post 18244740)
IMO for us mainstream guys you're totally missing the plugins true potential. I've been wanting to write something and get hold of you, but I'll post it here because others might want to add to it.
What I'd like to see is a merge of options with CyberSEO and Caffeinated Content, another WP plugin. IF you're not familiar with CC features, brief explanation. You type a keyword in CC and it will pull content from Yahoo answer, YouTube, Articles, - and post/reply in a WP format.
What we'll focus on is Yahoo answers because the real gem is in the replies. Using CyberSEO for pulling targeted keyword content from wherever is fine, but it lacks what a truly organic blog needs, replies.
Now, what would be cool is if CyberSEO also pulled the replies (like CC) from the same targeted keyword/phrase. Meaning, instead of getting the question from Yahoo answer, you only get replies matching the phrase or phrases based around a targeted subject/phrase you matched, pulled and cleaned from your CyberSEO feeds.
In CC you have an option for reply dates for your blog posts. Why is this important? Because SE's will keep hitting your blogs whenever someone replies to a blog post. This will also allow you a very targeted blog post PLUS relevant replies whenever you like.
This is an Xrumer backlinkers dream.- An Active blog posts via CyberSEO with an truly authentic replies that you control. Meaning, as the blog traffic grows due to backlinks, you'll be able to increase more replies to blog posts, looking totally organic. True Panda 2.2 food plus hosting this on a WPMU with 100's of blogs automatically making blog posts and replies? Money in the bank there man.
|
Ok, CyberSEO 5.11 is available. The $post array now has an additional field $post['comments'] which may contain the comments in the WordPress format. Please refer the wp_insert_comment WordPress API function for the detailed description.
This mean that from now, you can use the CyberSEO plugin (both Lite and Suite editions) for the same purposes as mentioned above Caffeinated Content.
For example, let's consider what you want to parse Yahoo Answers for some keyword, e.g. "space shuttle". To do this, simply syndicate a new feed with the following URL:
http://answers.yahoo.com/rss/search?p= KEYWORD
In our case it should be http://answers.yahoo.com/rss/search?p=space+shuttle. When the feed settings page will open, paste this code into the "PHP Code <?php .. ?>" :
Code:
// comments' dates will be randomly generated as the date of syndication plus number
// of seconds between $start_offset and $end_offset values, assigned below.
// E.g. from one hour to one week
$start_offset = 3600;
$end_offset = 604800;
// get Yahoo Answers page for the given keyword
$content = cseo_file_get_contents ( $post ['link'] );
// remove 'Resolved Question: ' from the title
$post ['post_title'] = str_replace('Resolved Question: ', '', $post ['post_title']);
// extract the original question
$post ['post_content'] = $post ['post_excerpt'] = preg_replace ( '/^(.*?<div class="content">)(.*?)(<\/div>.*?)$/s', "$2", $content );
// get answers
preg_match_all ( '/<span class="by">.*?<\/span>.*?<span.*?>(.*?)<\/span>.*?<div class="content">(.*?)<\/div>/s', $content, $answers );
// generate post comments from the answers
for ($i = 0; $i < count ( $answers [1] ); $i ++) {
$post['comments'][] = array(
'comment_author' => $answers [1][$i],
'comment_author_email' => '',
'comment_author_url' => 'http://',
'comment_content' => $answers [2][$i],
'comment_type' => '',
'comment_parent' => 0,
'user_id' => 1,
'comment_author_IP' => '127.0.0.1',
'comment_agent' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)',
'comment_date' => gmdate ( 'Y-m-d H:i:s', time() + rand ( $start_offset, $end_offset ) + 3600 * ( int ) get_option ( 'gmt_offset' ) ),
'comment_approved' => 1,
);
}
Now field, pull the feed and enjoy with a result. The generated posts will look like this:
Quote:
Space shuttle?
does space shuttle has the same aerodynamic forces like fixed wing airplane when orbiting in the space?
7 Responses to Space shuttle?
Spitfire says:
June 30, 2011 at 11:46 pm
the point of an orbit is that the wings dont have to be used(they dont do anything in space anyway). and they dont need any form of propulsion when in orbit.
kyle3261 says:
July 1, 2011 at 1:56 pm
No? no air or anything to work like a fixed wing aircraft. It is simply a brick floating in space with rockets attached to it. In the air, it doesn't either. The weight only allows it to fall, but with a small glide/altitude ratio to get it to the destination.
kdog says:
July 2, 2011 at 1:56 am
Of course not. There is no air.
realbigt... says:
July 3, 2011 at 9:48 am
Mate you need to check your answer, gravity has nothing to do with it. In fact gravity in a LEO (low earth orbit) is almost the same as it is on earth 32 ft/sec/sec. That is a common misconception that that is why people "float" in space because the lack of gravity. but as someone mentioned before gravity is what keeps the shuttle in orbit. Without gravity it would not fly in a curve around the earth. And to answer the question for the third time, just think of the word AEROdynamic, meaning forces caused by air. There is no air in the vacuum of space, and no air means wings, tails, drag and all that other stuff do not apply.
GSH says:
July 3, 2011 at 9:50 am
No = No gravity
c'mon step up mate. You're making simple errors here.
Mark says:
July 5, 2011 at 1:15 pm
No. But there is plenty of gravity. Gravitation keeps it from going off in a straight line.
Trainman says:
July 6, 2011 at 7:31 am
No air?no gravity?no aerodynamic forces!
Technically you could place a square box into orbit and with the right attitude adjustments it would behave the same as any other object in space, like a space shuttle, for example.
|
Looks cool, right?
MAKE SURE TO UPDATE YOUR CYBERSEO PLUGIN TO THE MOST RECENT VERSION!
|