CyberSEO Suite: Tips and Tricks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • just a punk
    So fuckin' bored
    • Jun 2003
    • 32393

    #121
    Originally posted by tonyparra
    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";
    Originally posted by tonyparra
    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?
    Obey the Cowgod

    Comment

    • just a punk
      So fuckin' bored
      • Jun 2003
      • 32393

      #122
      Originally posted by V_RocKs
      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.
      Last edited by just a punk; 07-19-2011, 02:06 AM.
      Obey the Cowgod

      Comment

      • tonyparra
        Confirmed User
        • Jul 2008
        • 4568

        #123
        Originally posted by cyberxxx
        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";


        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.

        High Performance Vps $10 Linode
        Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot

        Comment

        • just a punk
          So fuckin' bored
          • Jun 2003
          • 32393

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

          Comment

          • schiz
            Confirmed User
            • Nov 2002
            • 1103

            #125
            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.

            Comment

            • just a punk
              So fuckin' bored
              • Jun 2003
              • 32393

              #126
              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
              Obey the Cowgod

              Comment

              • schiz
                Confirmed User
                • Nov 2002
                • 1103

                #127
                Originally posted by cyberxxx
                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.

                Comment

                • just a punk
                  So fuckin' bored
                  • Jun 2003
                  • 32393

                  #128
                  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?
                  Obey the Cowgod

                  Comment

                  • just a punk
                    So fuckin' bored
                    • Jun 2003
                    • 32393

                    #129
                    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.
                    Last edited by just a punk; 08-01-2011, 06:25 AM.
                    Obey the Cowgod

                    Comment

                    • just a punk
                      So fuckin' bored
                      • Jun 2003
                      • 32393

                      #130
                      Bump for 20% OFF coupon
                      Obey the Cowgod

                      Comment

                      • acrylix
                        Confirmed User
                        • Oct 2006
                        • 362

                        #131
                        Originally posted by cyberxxx
                        Now you can use the Google translator with CyberSEO.

                        That's very easy. Isn't it?
                        Awesome, thanks for this!

                        Comment

                        • just a punk
                          So fuckin' bored
                          • Jun 2003
                          • 32393

                          #132
                          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!
                          Obey the Cowgod

                          Comment

                          • My Pimp
                            Confirmed User
                            • May 2003
                            • 1201

                            #133
                            This is a good advice .

                            Comment

                            • AmeliaG
                              Too lazy to set a custom title
                              • Jan 2003
                              • 10662

                              #134
                              Originally posted by cyberxxx
                              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
                              GFY Hall of Famer

                              AltStar Hall of Famer




                              Blue Blood's SpookyCash.com

                              Babe photography portfolio

                              Comment

                              • just a punk
                                So fuckin' bored
                                • Jun 2003
                                • 32393

                                #135
                                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!
                                Obey the Cowgod

                                Comment

                                Working...