GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   CyberSEO Suite: Tips and Tricks (https://gfy.com/showthread.php?t=962586)

just a punk 07-19-2011 02:33 AM

Quote:

Originally Posted by tonyparra (Post 18287840)
I hate to keep asking for things if you charged for extended i would probably pay but actually im doing so much with this plugin, more fun ideas come up. This code works perfectly but a few things i noticed i was wondering if we could change. is it possible to align the first 4 images in a square table?

e.g.
1 2
3 4

You can do it this way:

Code:

$post ['custom_fields'] ['thumb'] = preg_replace ( '/.*?img src="(.*?)".*?$/s', "\\1", $post ['post_excerpt'] );
$base = str_replace ( basename ( $post ['link'] ), "", $post ['link'] );
$post ['post_content'] .= strip_tags ( $post ['post_excerpt'] );
$post ['post_content'] .= "<table align=\"center\">\n";
$post ['post_content'] .= "<tr>\n";
$post ['post_content'] .= "<td><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/001.jpg" . "\"></a></td><td><a href=\"" . $base . "/002.mpg" . "\"><img src=\"" . $base . "/002.jpg" . "\"></a></td>\n";
$post ['post_content'] .= "</tr><tr>\n";
$post ['post_content'] .= "<td><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/003.jpg" . "\"></a></td><td><a href=\"" . $base . "/004.mpg" . "\"><img src=\"" . $base . "/004.jpg" . "\"></a></td>\n";
$post ['post_content'] .= "</tr>\n";
$post ['post_content'] .= "</table>\n";
$post ['post_content'] .= "<p align=\"center\"><a href=\"" . $post ['link'] . "\"><strong>Click Here For More!</strong></a></p>\n";

Quote:

Originally Posted by tonyparra (Post 18287840)
Also i pulled 5 post manually from this particular feed from pimproll and i got the same post 5 times with none of the text spun. This strange because all xml feeds syndicate fine and text is being spun. Solutions? Thanks in advance.

*i pulled a 6th post and got a different post so maybe there is a problem with the feed itself http://rss.pimproll.com/rss.php?id=M...1&j=13&src=rss

Sorry, didn't get this question. Do you mean that you are getting duplicated posts or the they just don't synonymize?

just a punk 07-19-2011 03:00 AM

Quote:

Originally Posted by V_RocKs (Post 18288415)
Perhaps you can make it so we can add a synonym table for categories...

Pretend I have a gay cams blog and it is taking in posts via RSS feed.

If a post has:

Check out Kyle on his free gay cam. This twink loves sticking butt plugs up his tight little ass on web cam! You can tell him to do just about anything and he will do it. Watch him jack his cock and even suck his own huge cock!

Then if I could make a syn table like:

big cocks|big dicks|big dick|huge dick|huge cocks|large dick ...etc...

and this post would end up in the big cocks category because of the match on huge cock.

Or...

Toys|butt plug|butt plugs|dildo|dildos|vibrator|vibrators

And we'd get category of Toys.

Actually the CyberSEO doesn't need this feature, because you can easily do it with the the following code:

Code:

$cat_file = file ( "CATEGORIS_FILE" );
if ($post ["post_content"] == "") {
        $post ["post_content"] = $post ["post_excerpt"];
}
foreach ( $cat_file as $line ) {
        list ( $cat, $keywords ) = explode ( ":", $line );
        $keywords = explode ( "|", $keywords );
        foreach ( $keywords as $keyword ) {
                if (stripos ( $post ["post_content"], trim ( $keyword ) ) !== false) {
                        $post ['categories'] [] = $cat;
                        break;
                }
        }
}

Simple put it into the PHP Code <?php .. ?> field and it will take care about category selection. Just make sure to replace "CATEGORIS_FILE" above with the actual server path or URL of the category text file saved in the following format:

Code:

Big cocks:big dicks|big dick|huge dick|huge cocks|large
Toys:butt plug|butt plugs|dildo|dildos|vibrator|vibrators

Note the ":" symbol following each category name.

tonyparra 07-19-2011 07:20 AM

Quote:

Originally Posted by cyberxxx (Post 18291282)
You can do it this way:

Code:

$post ['custom_fields'] ['thumb'] = preg_replace ( '/.*?img src="(.*?)".*?$/s', "\\1", $post ['post_excerpt'] );
$base = str_replace ( basename ( $post ['link'] ), "", $post ['link'] );
$post ['post_content'] .= strip_tags ( $post ['post_excerpt'] );
$post ['post_content'] .= "<table align=\"center\">\n";
$post ['post_content'] .= "<tr>\n";
$post ['post_content'] .= "<td><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/001.jpg" . "\"></a></td><td><a href=\"" . $base . "/002.mpg" . "\"><img src=\"" . $base . "/002.jpg" . "\"></a></td>\n";
$post ['post_content'] .= "</tr><tr>\n";
$post ['post_content'] .= "<td><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/003.jpg" . "\"></a></td><td><a href=\"" . $base . "/004.mpg" . "\"><img src=\"" . $base . "/004.jpg" . "\"></a></td>\n";
$post ['post_content'] .= "</tr>\n";
$post ['post_content'] .= "</table>\n";
$post ['post_content'] .= "<p align=\"center\"><a href=\"" . $post ['link'] . "\"><strong>Click Here For More!</strong></a></p>\n";

:thumbsup:thumbsup:pimp

Sorry, didn't get this question. Do you mean that you are getting duplicated posts or the they just don't synonymize?

they weren't synonymized and the post were coming back like this:
mysite.com/man-in-hat
mysite.com/man-in-hat2
mysite.com/man-in-hat3
mysite.com/man-in-hat4

With all the post being the same except the title had a number added to it. I was manually pulling the feed, and i changed the check duplicate content settings to title and
guid and also on global i unchecked "Disable Feed Duplication Control" and that seemed to fix it.

just a punk 07-19-2011 09:53 AM

If changing duplicate control to "guid and tittle" helped, then the problem was related to the feed's guids.

schiz 07-28-2011 07:04 AM

Would it be possible to have a "shared" synonym table across an entire blog farm? Update one and update them all? Maybe a flat text file to include?

Lots of great tips and code in this thread. Keep it going.

just a punk 07-28-2011 07:15 AM

You can upload the synonym table to your host as a raw text file and use it's server path or URL on all your splogs.

By the way, here is a 20% OFF coupon on CyberSEO Unlimited (both Lite and Suite editions): HOTSUMMER

The coupon will be valid till August 7th. Hurry up :)

schiz 07-28-2011 07:28 AM

Quote:

Originally Posted by cyberxxx (Post 18313737)
You can upload the synonym table to your host as a raw text file and use it's server path or URL on all your splogs.

By the way, here is a 20% OFF coupon on CyberSEO Unlimited (both Lite and Suite editions): HOTSUMMER

The coupon will be valid till August 7th. Hurry up :)

Awesome deal! Thanks Cyberxxx. I just bought a copy.

just a punk 08-01-2011 03:42 AM

Using Google Translate with CyberSEO
 
Ok, here is the manual on how to use Google Translator with the CyberSEO plugin.

1) Syndicate the feed your are going to pull posts from.
2) In the feed options menu post the following code into the "PHP Code <?php .. ?>" box:
Code:

// Set source language, e.g. English
$s = 'en';
// Set destination language, e.g. German
$d = 'de';
if ($post ['post_content'] == '') {
    $post ['post_content'] = $post ['post_excerpt'];
}
$ch = curl_init ();
curl_setopt ( $ch, CURLOPT_URL, 'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&amp;q=' . urlencode ( $post ['post_content'] ) . '&amp;langpair=' . urlencode ( $s . '|' . $d ) );
curl_setopt ( $ch, CURLOPT_REFERER, 'http://www.yoursite.com/translate.php' );
curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );
$json = json_decode ( curl_exec ( $ch ), true );
$post ['post_content'] = $json ['responseData'] ['translatedText'];

3) Save the settings and pull the feed.

Done!

The code above has two variables: $s and $d. Use them to set source and destination language for your feed. For example, if you want to translate the Danish feed to Spanish, use the following values:
$s = 'da';
$d = 'es';

Now you can use the Google translator with CyberSEO.

That's very easy. Isn't it? :)

just a punk 08-01-2011 07:23 AM

Using Yahoo! Babel Fish with CyberSEO
 
1) Simple syndicate the feed you are going to pull posts from.
2) Put the following code into the “PHP Code <?php .. ?>” box:
Code:

// Set source language, e.g. English
$s = 'en';
// Set destination language, e.g. German
$d = 'de';
if ($post ['post_content'] == '') {
    $post ['post_content'] = $post ['post_excerpt'];
}
$translated = cseo_file_get_contents ( 'http://babelfish.yahoo.com/translate_txt?ei=UTF-8&intl=1&trtext=' . urlencode ( $post ['post_content'] ) . '&lp=' . urlencode ( $s . '_' . $d ) . '&btnTrTxt=Translate' );
$post ['post_content'] = preg_replace ( '/(^.*?<div id="result"><div style="padding:0.6em;">)(.*?)(<\/div>.*?$)/s', "\\2", $translated );

3) Save the settings and pull the feed. Done!

The code above has two variables: $s and $d. Use them to set source and destination language for your feed. For example, if you want to translate the Dutch feed to French, use the following values:

$s = 'nl';
$d = 'fr';

Now you can use the Yahoo! Babel Fish to automatically translate the XML and RSS feeds with the CyberSEO autoblogging plugin.

just a punk 08-01-2011 10:15 AM

Bump for 20% OFF coupon :)

acrylix 08-02-2011 01:54 AM

Quote:

Originally Posted by cyberxxx (Post 18320950)
Now you can use the Google translator with CyberSEO.

That's very easy. Isn't it? :)

Awesome, thanks for this! :thumbsup

just a punk 09-08-2011 07:16 AM

CyberSEO 5.14 has been released today. Here is a list of changes:
  • The "Apply These Modifications To All Existing Posts" operation now applies to all types of posts except drafts.
  • Remove links from images only option added.
  • Fixed problem with local storage of images that have the "?" symbol in their names.
  • Fixed false warning message which says: "Your wp-content/uploads folder is not writable".
  • Now you can assign an individual author (an registered WordPress user) to every syndicating thread.
Make sure to update your copy!

My Pimp 09-08-2011 08:41 AM

This is a good advice .

AmeliaG 09-08-2011 11:20 AM

Quote:

Originally Posted by cyberxxx (Post 18411632)
CyberSEO 5.14 has been released today. Here is a list of changes:
  • The "Apply These Modifications To All Existing Posts" operation now applies to all types of posts except drafts.
  • Remove links from images only option added.
  • Fixed problem with local storage of images that have the "?" symbol in their names.
  • Fixed false warning message which says: "Your wp-content/uploads folder is not writable".
  • Now you can assign an individual author (an registered WordPress user) to every syndicating thread.
Make sure to update your copy!

Good stuff :thumbsup

just a punk 09-14-2011 07:50 AM

CyberSEO 5.15 has been released today.

Changes:

Added possibility to display custom fields as XML tags in the blog?s RSS feed. To enable this function, simple add the following variable to your feed?s URL:
custom_tags=custom_field_name1[,custom_field_name1,...]

For example, if your WordPress posts have views and thumb custom fields, you can display them as tags in the RSS feed using this URL:
yourblog.com/feed/?custom_tags=views,thumb

Make sure to update your copy!


All times are GMT -7. The time now is 03:10 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc