CyberSEO Suite: Tips and Tricks

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

    #106
    As d-null said. If you want to store the thumbs on your server, simple remove the comments mark "//". So your code must look like this:
    Code:
    // uncomment the line below to store thumbnails on your server
    cseo_store_image ('thumb', $post ['post_title']);
    BTW, there is a support forum launched yesterday at the official site. Feel free to post your questions there.
    Obey the Cowgod

    Comment

    • tonyparra
      Confirmed User
      • Jul 2008
      • 4568

      #107
      Originally posted by d-null
      see those "//"

      those tell the server that everything on that line is a comment and is not executed
      when he says 'uncomment' he means you delete the "//" at the beginning of that line
      thanks im still learning all the little nuances of php, first time i did it i got errors

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

      Comment

      • tonyparra
        Confirmed User
        • Jul 2008
        • 4568

        #108
        Originally posted by cyberxxx
        As d-null said. If you want to store the thumbs on your server, simple remove the comments mark "//". So your code must look like this:
        Code:
        // uncomment the line below to store thumbnails on your server
        cseo_store_image ('thumb', $post ['post_title']);
        BTW, there is a support forum launched yesterday at the official site. Feel free to post your questions there.
        cool ill be checking it out this may be a more general question though,its not exactly plugin related with the random time code Im pulling time as low as 02:30- which is shorter than some of the free clip! This would be a simple fix if sponsors simply put as much info as possible in their feeds i.e. full lengths, stars, tags, number of pics etc...but alas all calls that ive seen have fallen on deaf ears.

        Anyways here is the php code
        Code:
        // fake random time from 0:20:00 to 2:00:00
        $post ['custom_fields'] ['time'] = date ( 'i:s', rand ( 1200, 72000 ) );
        Ive tried making the first set of numbers 72000 and second set 120000 (72000, 120000) but i still get some shorter times like 2,3, or 4 mins. I would like the time range to be at least 20 minutes or higher. Any ideas how to fix that?

        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

          #109
          I believe you are doing something wrong. For example, this code will generate random time in range 10..20 minutes:
          Code:
          $post ['custom_fields'] ['time'] = date ( 'i:s', rand ( 600, 1200 ) );
          Here is an example:
          Code:
          for($i = 0; $i < 10; $i ++) {
          	echo date ( 'i:s', rand ( 600, 1200 ) ) . "\n";
          }
          Its output is the following:
          18:43
          18:07
          10:17
          11:04
          16:38
          11:32
          10:55
          18:46
          17:28
          19:25

          So everything looks ok to me.
          Last edited by just a punk; 06-02-2011, 01:07 AM.
          Obey the Cowgod

          Comment

          • tonyparra
            Confirmed User
            • Jul 2008
            • 4568

            #110
            Originally posted by cyberxxx
            This is very easy to do with CyberSEO Suite. Simple place the following code into the "PHP Code <?php .. ?>" box on the feed setting page and apply the changes:

            Code:
            $post ['guid'] = base64_encode ( $post ['link'] );
            $thumb = str_replace ( basename ( $post ['link'] ), "", $post ['link'] ) . "pics/" . rand ( 10, 16 ) . ".jpg";
            $post ['post_excerpt'] = "<p align=\"center\"><a href\"" . $post ['link'] . "\"><img style=\"max-width:100%\" src=\"" . $thumb . "\"></a><p>" . $post ['post_excerpt'];
            The XML feed you gave above is intended for TGP sites, but not for blogs (it doesn't contain nor picture, nor even GUID which is a must for any RSS feed).

            If you open any gallery from that feed (e.g. http://galleries.tease-pics.com/1469....php?id=856489), you will see that each one has exactly 16 pictures which have named as 01.jpg...16.jpg and stored in the "/pics" sub-directory of the gallery path.

            Here is an express explanation on what exactly each particular line of the php code above does:
            Line 1: Creates GUID of the post depending on the gallery URL.
            Line 2: Picks the random image on the given gallery (in range 10.jpg..16.jpg) - hope it will be a bit hotter than first 9 ones
            Line 3: Inserts that random picture into your post right above the text description and link it to the actual gallery with your affiliate code. Don't worry about the picture size, because it will be scaled to fit your WordPress theme.

            That's it

            Please let me know if this worked well for you.

            P.S. If you want to insert into your post only a small thumbnail instead of a full-sized picture, simple change the second line of code as show below.

            $thumb = str_replace ( basename ( $post ['link'] ), "", $post ['link'] ) . "images/" . rand ( 10, 16 ) . ".jpg";
            not getting this to work with the pimproll feed, any advice?

            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

              #111
              What's the feed URL?
              Obey the Cowgod

              Comment

              • {Psycho}
                Confirmed User
                • Oct 2010
                • 612

                #112
                Awesome
                Quality Offshore VPS & Dedicated Servers



                Earn 65$ per Signups

                Comment

                • tonyparra
                  Confirmed User
                  • Jul 2008
                  • 4568

                  #113
                  Originally posted by cyberxxx
                  What's the feed URL?
                  Oh sorry
                  http://rss.pimproll.com/rss.php?id=M...1&j=29&src=rss

                  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

                    #114
                    Originally posted by tonyparra
                    Actually this feed contains very different content (videos galleries). So this case requires its own code. For example, you can do it like this:

                    PHP Code:
                    $base = str_replace ( basename ( $post ['link'] ), "", $post ['link'] );
                    $post ['post_content'] .= strip_tags ( $post ['post_excerpt'] );
                    $post ['post_content'] .= "<p align=\"center\"><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/001.jpg" . "\"></a><a href=\"" . $base . "/002.mpg" . "\"><img src=\"" . $base . "/002.jpg" . "\"></a><p>\n";
                    $post ['post_content'] .= "<p align=\"center\"><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/003.jpg" . "\"></a><a href=\"" . $base . "/004.mpg" . "\"><img src=\"" . $base . "/004.jpg" . "\"></a><p>\n";
                    $post ['post_content'] .= "<p align=\"center\"><a href=\"" . $post ['link'] . "\"><strong>Click Here For More!</strong></a></p>\n"; 
                    
                    Or somehow else. If you need a different layout the code will be different too.
                    Obey the Cowgod

                    Comment

                    • tonyparra
                      Confirmed User
                      • Jul 2008
                      • 4568

                      #115
                      Originally posted by cyberxxx
                      Actually this feed contains very different content (videos galleries). So this case requires its own code. For example, you can do it like this:

                      PHP Code:
                      $base = str_replace ( basename ( $post ['link'] ), "", $post ['link'] );
                      $post ['post_content'] .= strip_tags ( $post ['post_excerpt'] );
                      $post ['post_content'] .= "<p align=\"center\"><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/001.jpg" . "\"></a><a href=\"" . $base . "/002.mpg" . "\"><img src=\"" . $base . "/002.jpg" . "\"></a><p>\n";
                      $post ['post_content'] .= "<p align=\"center\"><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/003.jpg" . "\"></a><a href=\"" . $base . "/004.mpg" . "\"><img src=\"" . $base . "/004.jpg" . "\"></a><p>\n";
                      $post ['post_content'] .= "<p align=\"center\"><a href=\"" . $post ['link'] . "\"><strong>Click Here For More!</strong></a></p>\n"; 
                      
                      Or somehow else. If you need a different layout the code will be different too.
                      Cool the layout doesnt matter is there a way to post the preview thumb to a custom field like "thumb"?

                      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

                        #116
                        Yes it is. Answered to your another question on the support board.

                        E.g.:

                        PHP 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'] .= "<p align=\"center\"><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/001.jpg" . "\"></a><a href=\"" . $base . "/002.mpg" . "\"><img src=\"" . $base . "/002.jpg" . "\"></a><p>\n";
                        $post ['post_content'] .= "<p align=\"center\"><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/003.jpg" . "\"></a><a href=\"" . $base . "/004.mpg" . "\"><img src=\"" . $base . "/004.jpg" . "\"></a><p>\n";
                        $post ['post_content'] .= "<p align=\"center\"><a href=\"" . $post ['link'] . "\"><strong>Click Here For More!</strong></a></p>\n"; 
                        
                        Obey the Cowgod

                        Comment

                        • tonyparra
                          Confirmed User
                          • Jul 2008
                          • 4568

                          #117
                          Originally posted by cyberxxx
                          Yes it is. Answered to your another question on the support board.

                          E.g.:

                          PHP 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'] .= "<p align=\"center\"><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/001.jpg" . "\"></a><a href=\"" . $base . "/002.mpg" . "\"><img src=\"" . $base . "/002.jpg" . "\"></a><p>\n";
                          $post ['post_content'] .= "<p align=\"center\"><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/003.jpg" . "\"></a><a href=\"" . $base . "/004.mpg" . "\"><img src=\"" . $base . "/004.jpg" . "\"></a><p>\n";
                          $post ['post_content'] .= "<p align=\"center\"><a href=\"" . $post ['link'] . "\"><strong>Click Here For More!</strong></a></p>\n"; 
                          

                          ok thank you sir, i figuired it may help someone here also more awesome support for your awesome tool

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

                          Comment

                          • tonyparra
                            Confirmed User
                            • Jul 2008
                            • 4568

                            #118
                            Originally posted by cyberxxx
                            Yes it is. Answered to your another question on the support board.

                            E.g.:

                            PHP 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'] .= "<p align=\"center\"><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/001.jpg" . "\"></a><a href=\"" . $base . "/002.mpg" . "\"><img src=\"" . $base . "/002.jpg" . "\"></a><p>\n";
                            $post ['post_content'] .= "<p align=\"center\"><a href=\"" . $base . "/001.mpg" . "\"><img src=\"" . $base . "/003.jpg" . "\"></a><a href=\"" . $base . "/004.mpg" . "\"><img src=\"" . $base . "/004.jpg" . "\"></a><p>\n";
                            $post ['post_content'] .= "<p align=\"center\"><a href=\"" . $post ['link'] . "\"><strong>Click Here For More!</strong></a></p>\n"; 
                            
                            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

                            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
                            Last edited by tonyparra; 07-17-2011, 09:41 AM.

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

                            Comment

                            • V_RocKs
                              Damn Right I Kiss Ass!
                              • Nov 2003
                              • 32447

                              #119
                              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.
                              Last edited by V_RocKs; 07-17-2011, 03:37 PM.

                              Comment

                              • d-null
                                . . .
                                • Apr 2007
                                • 13724

                                #120
                                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.
                                that's actually a nice idea, too many categories is no good, so your idea of grouping a bunch of possible tags into less tags that are more general would be useful

                                __________________

                                Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
                                Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs
                                Check out the #1 WordPress SEO Plugin: CyberSEO Suite

                                Comment

                                Working...