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 05-14-2010 03:28 AM

Improved PHP code for WP Tubes
 
Here is a bit improved version of the PHP code for auto-updating WordPress Tube Sites:

PHP Code:

// put the affiliate link to paysite into the 'paysite_url' custom field according to Free WordPress Tube doc
$post ['custom_fields'] ['paysite_url'] = 'http://www.ropeporn.com/index.html?id=XXX';
// format clip's duration as mm:ss
$post ['custom_fields'] ['duration'] = date 'i:s'$post ['custom_fields'] ['duration'] );
// create an URL of thumb from it's path and filename
$post ['custom_fields'] ['thumb'] = $post ['custom_fields'] ['screen_url'] . $post ['custom_fields'] ['screen'];
// put site name into the "paysite_title" custom field according to Free WordPress Tube doc
$post ['custom_fields'] ['paysite_title'] = 'Rope Porn';
// since FLV videos have no uniqui GUID's let's use their URL's as post GUID's  
$post ['guid'] = $post ['custom_fields'] ['clip_url'] . $post ['custom_fields'] ['flv'];
// now the most complex part. we have to create the FLV player code, assuming that our FLV player is stored as flvplayer.swf in the root dir of the blog
$post ['custom_fields'] ['video_code'] = '<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="700" height="544"> 
<param name="movie" value="/flvplayer.swf" /> 
<param name="allowfullscreen" value="true" /> 
<param name="allowscriptaccess" value="always" /> 
<param name="flashvars" value="image=' 
$post ['custom_fields'] ['thumb'] . '&file=' $post ['guid'] . '&autostart=false&linkfromdisplay=true&link=' urlencode $post ['custom_fields'] ['paysite_url'] ) . '" /> <object type="application/x-shockwave-flash" data="/flvplayer.swf" width="700" height="544"> 
<param name="movie" value="' 
$post ['guid'] . '" /> 
<param name="link" value="' 
urlencode $post ['custom_fields'] ['paysite_url'] ) . '" /> 
<param name="allowfullscreen" value="true" /> 
<param name="linkfromdisplay" value="true" /> 
<param name="allowscriptaccess" value="always" /> 
<param name="flashvars" value="image=' 
$post ['custom_fields'] ['thumb'] . '&file=' $post ['guid'] . '&autostart=false&linkfromdisplay=true&link=' urlencode $post ['custom_fields'] ['paysite_url'] ) . '" /> <p><a href="http://get.adobe.com/flashplayer">Get Flash</a> to see this player.</p> 
</object> 
</object>'
;
// now let's delete all useless custom fields 
unset ( $post ['custom_fields'] ['screen_url'] );
unset ( 
$post ['custom_fields'] ['screen'] );
unset ( 
$post ['custom_fields'] ['clip_url'] );
unset ( 
$post ['custom_fields'] ['flv'] ); 

This version of code will be fine with links that contain GET parameters ("&").

egm47 05-16-2010 06:30 PM

I never knew their was anything like this out there. This has been my lucky day
finding this info. I will get this within 24hours with the hope that someone will help me set
it up completely. Being 63, the things you all are talking about is about a mile above my
head!

Have a wordpress tube setup but needs some help with this!

Horny Guy 05-16-2010 11:52 PM

who does installs and theme setups of this ....looking to get a fair few running

info at herveybayseo.com

just a punk 05-17-2010 04:42 AM

Here is a quote from CyberSEO.net:

Quote:

The price of CyberSEO Suite package license for an unlimited number of domains is only $159 (without WordPress installation), or $180 (with WordPress installation). WordPress theme customization service is also available for additional price (not included into the standard package). Upgrade for customers of previous versions of CyberSEO Suite is available for free.
So I also do install WordPress, the CyberSEO Suite plugin and do basic options setup for $20 per blog.

just a punk 05-19-2010 03:59 AM

Syndicating TubeX and Tube Ace XML Feeds
 
In one of my previous articles, I've already explained on how to syndicate the Smart Tube XML feeds. However as you may know, there is a slightly improved version of Smart Tube XML, which is used by TubeX and Tube Ace XML scripts. These feeds already contain the paysite URL with your affiliate code, so you don't need to enter it into the PHP code manually.

Let's take a look at this feed: http://www.christymarks.com/rss/flv_...Q5N y4wLjAuMA

As you can see, it has a tag called "<join_url>" which contain the link to a paysite - the value, which must be assigned to the "paysite_url" custom field. So we need just a bit change the contents of the "Custom Fields" box,a s shown below:

Code:

join_url::paysite_url
screen_url::screen_url
screen::screen
clip_url::clip_url
flv::flv
duration::duration

Now we also need to slightly change the "PHP Code <?php .. ?>" field and put the following PHP code there:

PHP Code:

// put site name into the "paysite_title" custom field according to Free WordPress Tube doc
$post ['custom_fields'] ['paysite_title'] = 'Christy Marks'// you will need to enter the appropriate site name here
// format clip's duration as mm:ss
$post ['custom_fields'] ['duration'] = date 'i:s'$post ['custom_fields'] ['duration'] ); 
// create an URL of thumb from it's path and filename
$post ['custom_fields'] ['thumb'] = $post ['custom_fields'] ['screen_url'] . $post ['custom_fields'] ['screen'];
// since FLV videos have no uniqui GUID's let's use their URL's as post GUID's  
$post ['guid'] = $post ['custom_fields'] ['clip_url'] . $post ['custom_fields'] ['flv'];
// now the most complex part. we have to create the FLV player code, assuming that our FLV player is stored as flvplayer.swf in the root dir of the blog
$post ['custom_fields'] ['video_code'] = '<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="700" height="544"> 
<param name="movie" value="/flvplayer.swf" /> 
<param name="allowfullscreen" value="true" /> 
<param name="allowscriptaccess" value="always" /> 
<param name="flashvars" value="image=' 
$post ['custom_fields'] ['thumb'] . '&file=' $post ['guid'] . '&autostart=false&linkfromdisplay=true&link=' urlencode $post ['custom_fields'] ['paysite_url'] ) . '" /> <object type="application/x-shockwave-flash" data="/flvplayer.swf" width="700" height="544"> 
<param name="movie" value="' 
$post ['guid'] . '" /> 
<param name="link" value="' 
urlencode $post ['custom_fields'] ['paysite_url'] ) . '" /> 
<param name="allowfullscreen" value="true" /> 
<param name="linkfromdisplay" value="true" /> 
<param name="allowscriptaccess" value="always" /> 
<param name="flashvars" value="image=' 
$post ['custom_fields'] ['thumb'] . '&file=' $post ['guid'] . '&autostart=false&linkfromdisplay=true&link=' urlencode $post ['custom_fields'] ['paysite_url'] ) . '" /> <p><a href="http://get.adobe.com/flashplayer">Get Flash</a> to see this player.</p> 
</object> 
</object>'
;
// now let's delete all useless custom fields 
unset ( $post ['custom_fields'] ['screen_url'] );
unset ( 
$post ['custom_fields'] ['screen'] );
unset ( 
$post ['custom_fields'] ['clip_url'] );
unset ( 
$post ['custom_fields'] ['flv'] ); 

Have a nice day :thumbsup

just a punk 07-30-2010 04:38 AM

Auto-updating TubePress Blog
 
Today I'll explain how to use CyberSEO Suite and TubePress Theme to build a full-featured auto-updating tube site.

CyberSEO Suite + TubePress = Auto-updating Tube Site

Today I'll show you how to use the TubePress theme with CyberSEO Suite.

As the manual says, the TubePress theme makes our blog look like a tube site. However we have one small problem there. All these tube-like posts must be composed and published manually which is absolutely unacceptable because we want to have an auto updating tube site which will be able to parse at least standard XML FLV feeds in Smart Tube format. This is why we need CyberSEO Suite with its unlimited abilities to parse custom XML tags, create custom WP post fields and pre-process the aggregating posts.

So, let's take some XML feed, e.g.: http://hostave4.net/rp/hfv/xml_feed_62.xml and syndicate it with CyberSEO Suite. Set up the necessary parameters on the "RSS Feed Syndicator" page, such as post categories, post tags, update frequency, set "Use syndication date" in the "Base date" field etc.

Now we have to follow the instruction of TubePress theme about custom fields. Thus we have to put the following text into the "Custom Fields" box:

Code:

screen_url::screen_url
screen::screen
clip_url::clip_url
flv::flv

Each left argument is the name of XML tag and the right one is the name of custom field of WP post where the contents of mentioned tag must go to.

As far as we know, the FLX XML files of Smart Tube format have no link to paysite and even have no FLV code which is required by TubePress theme. So we need to write a special PHP code which will fix all the mentioned problems in aggregating posts. Move to the "PHP Code <?php .. ?>" field and put the following PHP code there:

PHP Code:

// put the affiliate link to paysite into the 'sponsor link' custom field according to TubePress doc
$post ['custom_fields'] ['sponsor link'] = 'http://www.ropeporn.com/index.html?id=XXX';
// create an URL of thumb from it's path and filename
$post ['custom_fields'] ['thumb'] = $post ['custom_fields'] ['screen_url'] . $post ['custom_fields'] ['screen'];
// since FLV videos have no uniqui GUID's let's use their URL's as post GUID's  
$post ['guid'] = $post ['custom_fields'] ['clip_url'] . $post ['custom_fields'] ['flv'];
// put the post description into the 'descrip' custom field according to TubePress doc 
$post ['custom_fields'] ['descrip'] = $post ['post_excerpt'];
// now the most complex part. we have to create the FLV player code, assuming that our FLV player is stored as flvplayer.swf in the root dir of the blog
$post ['post_excerpt'] = '<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="600" height="480"> 
<param name="movie" value="/flvplayer.swf" /> 
<param name="allowfullscreen" value="true" /> 
<param name="allowscriptaccess" value="always" /> 
<param name="flashvars" value="image=' 
$post ['custom_fields'] ['thumb'] . '&file=' $post ['guid'] . '&autostart=false&linkfromdisplay=true&link=' urlencode $post ['custom_fields'] ['sponsor link'] ) . '" /> <object type="application/x-shockwave-flash" data="/flvplayer.swf" width="600" height="480"> 
<param name="movie" value="' 
$post ['guid'] . '" /> 
<param name="link" value="' 
urlencode $post ['custom_fields'] ['sponsor link'] ) . '" /> 
<param name="allowfullscreen" value="true" /> 
<param name="linkfromdisplay" value="true" /> 
<param name="allowscriptaccess" value="always" /> 
<param name="flashvars" value="image=' 
$post ['custom_fields'] ['thumb'] . '&file=' $post ['guid'] . '&autostart=false&linkfromdisplay=true&link=' urlencode $post ['custom_fields'] ['sponsor link'] ) . '" /> <p><a href="http://get.adobe.com/flashplayer">Get Flash</a> to see this player.</p> 
</object> 
</object><br />' 
$post ['post_excerpt'] . "</p>";
// now let's delete all useless custom fields 
unset ( $post ['custom_fields'] ['screen_url'] );
unset ( 
$post ['custom_fields'] ['screen'] );
unset ( 
$post ['custom_fields'] ['clip_url'] );
unset ( 
$post ['custom_fields'] ['flv'] ); 


Now save the feed options and relax while the CyberSEO Suite syndicates the given XML file and updates our tube blog with synonymized content automatically. Fire and forget! :)


Have a nice day :thumbsup

just a punk 08-09-2010 08:32 AM

Image path cloaking and nginx
 
Some customers do complain that "image path cloaking does not work".

Problem: This happens in case if nginx is being used as a front-end for Apache to process static files. In this case the .htaccess modrewrite rule for images in being ignored.

Solution: There is only one way to avoid this problem. Do not use nginx for as a front end for jpg files.

just a punk 09-06-2010 05:46 AM

The CyberSEO Suite ver. 4.85 has been released
 
Changes:
  • "Store Images Locally" option has been added. If enabled, all images from the syndicating feeds will be copied into the default uploads folder of this blog. Make sure that your "/wp-content/uploads" folder is writable.
  • "Don't Morph Titles" option has been added. Enable it to preserve the syndicating post tittles from morphing.
  • A few minor bugs were fixed.

Hurry up to buy CyberSEO Suite for only $95!

2intense 09-06-2010 05:56 AM

Quote:

Originally Posted by Brujah (Post 17134650)
Do you take epassporte?

:1orglaugh:1orglaugh

woj 09-06-2010 08:07 AM

50 CyberSEO Suite Tips and Tricks :)

just a punk 09-23-2010 05:41 AM

Feeding your WordPress tube with YouTube content
 
Here is another example on how to auto-fill your WordPress tube with the YouTube clips using YouTube RSS feed: http://www.cyberseo.net/wordpress-tube/

This is example of such an auto-updating WordPress tube site: http://www.hcshemaletube.com/ which is powered by sponsored content only (no stolen shit). For mainstream you can do the same using YouTube RSS feed or tube clips form any other video hosting which allows to embed its content into your site.

More examples will be added soon.

Have a nice day! :)

d-null 09-28-2010 11:07 PM

the updates look great :thumbsup

just a punk 10-08-2010 04:56 AM

CyberSEO Suite + TubePress3
 
Today I'll explain how to build an auto-updating WordPress tube site using CyberSEO Suite plugin and TubePress3 theme which is not compatible with its older versions (TubePress and TubePress2). You may find my manual on using CyberSEO Suite with TubePress/TubePress2 in my previous posts.

CyberSEO Suite + TubePress3 = Auto-updating Tube Site

So, let's take some XML feed, e.g.: http://royal-cash.com/index.php?hand...dwebmaster=100 and syndicate it with CyberSEO Suite. Set up the necessary parameters on the "RSS Feed Syndicator" page, such as post categories, post tags, update frequency, set "Use syndication date" in the "Base date" field etc.

Put the following text into the "Custom Fields" box:

Code:

screen_url::screen_url
screen::screen
clip_url::clip_url
flv::flv

Note that each left argument is the name of XML tag and the right one is the name of custom field of WP post where the contents of mentioned tag must go to.

Now move to the "PHP Code <?php .. ?>" field and put the following PHP code there:

PHP Code:

// Paysite URL
$post ['custom_fields'] ['dbt_text2'] = "HTTP://WWW.SITE.COM/";
// create an URL of thumb from it's path and file name
$screen $post ['custom_fields'] ['screen'];
if (
is_array $screen )) {
// choose one random screenshot if there are many
    
$post ['custom_fields'] ['dbt_text3'] = $post ['custom_fields'] ['screen_url'] . $screen [rand 0count $screen ) - )];
} else {
// or use the single one
    
$post ['custom_fields'] ['dbt_text3'] = $post ['custom_fields'] ['screen_url'] . $screen;
}
// uncomment the line below to store thumbnails on your server
// $post ['custom_fields'] ['dbt_text3'] = cseo_save_image ( $post ['custom_fields'] ['dbt_text3'], $post ['post_title'] );
// since FLV videos have no unique GUID's let's use their URL's as post GUID's  
$post ['guid'] = $post ['custom_fields'] ['clip_url'] . $post ['custom_fields'] ['flv'];
// save the FLV URL
$post ['custom_fields'] ['dbt_text'] = $post ['guid'];
// now let's delete all useless custom fields 
unset ( $post ['custom_fields'] ['screen_url'] );
unset ( 
$post ['custom_fields'] ['screen'] );
unset ( 
$post ['custom_fields'] ['clip_url'] );
unset ( 
$post ['custom_fields'] ['flv'] ); 

Save the feed options and relax while the CyberSEO Suite syndicates the given XML file and updates our tube blog with synonymized content automatically. Fire and forget! :)

Here is an example of an auto-updating WordPress tube site which uses TubePress3 theme: http://www.truerussianporn.com/

Have a nice day :thumbsup

just a punk 10-09-2010 08:39 AM

Don't want to be an ass, but I have to announce that I don't accept Epassporte anymore :)

The available payment options are: PayPal, VISA/MC and Webmoney.

just a punk 10-25-2010 05:53 AM

As it was announced earlier, a single blog license CyberSEO Suite is now available for only $35. You can instantly order yours at http://www.cyberseo.net/ for Paypal, VISA/MC or Webmoney.

tonyparra 10-26-2010 07:56 AM

Gimme one!

pornguy 10-26-2010 08:00 AM

Not only is this a top notch product but so is its creator. I love this tool and have used it for a while now.

tonyparra 10-26-2010 08:19 AM

Quote:

Originally Posted by pornguy (Post 17641947)
Not only is this a top notch product but so is its creator. I love this tool and have used it for a while now.

im sold its pornguy approved!

just a punk 10-27-2010 09:54 AM

The price for single blog version of CyberSEO Suite has been reduced to $24.95 only!

just a punk 11-28-2010 07:24 AM

CyberSEO Affiliate Program
 
The official CyberSEO Affiliate Program has been launched today!

Become a partner and earn 30% commission on every sale of CyberSEO Suite, and receive your money on Payoneer or via bank wire!

More info here: http://www.cyberseo.net/affiliate-program/ :thumbsup

Django 01-26-2011 12:04 PM

this tool has great potential :thumbsup

would you please take a look at this feed URL? i get some problem with it
http://nats.homegrownvideo.com/exter...it=100&start=0

Thanks

nico-t 01-30-2011 09:50 AM

cyber, i have a question. Im using the setting Store Images Locally, but in the rss feed of my site it still uses the original location of the images. I looked around and i saw that in the 'excerpt' field of pulled posts it automatically puts the original post (without the locally stored image path but the path from the sponsor) in there. How can i change this?

just a punk 01-30-2011 11:18 AM

Quote:

Originally Posted by escort-service (Post 17870901)
this tool has great potential :thumbsup

would you please take a look at this feed URL? i get some problem with it
http://nats.homegrownvideo.com/exter...it=100&start=0

Thanks

Actually the problem is in http://nats.homegrownvideo.com/exter...it=100&start=0 which is formatted incorrectly.

The <screen_url> tag must contain path to the image and the <screen> tag has to contain the name of picture. So when we add <screen_url> and <screen> we should get a complete picture URL. Here is and example form http://www.aniloscash.com/promo/dump...g.php?id=11961 feed:

<screen_url>http://webmastercontent.anilos.com/lola_lynn/</screen_url>
...
<screen>lola_lynn_long.jpg</screen>

So if we sum up these values we will get the complete picture URL: http://webmastercontent.anilos.com/l..._lynn_long.jpg

Now look at http://nats.homegrownvideo.com/exter...it=100&start=0 and you will see this:

<screen_url>
http://flash.homegrownvideo.com/HGV/.../1_aaa1-3.jpeg
</screen_url>
...
<screen>
http://flash.homegrownvideo.com/HGV/.../1_aaa1-3.jpeg
</screen>

Both tags has a complete image URL, which is sooooooooo wrong! They have the same problem with FLV URL too.

So there are 2 solutions:
1) contact the owners of homegrownvideo and ask the to fix their feed;
2) use a slightly modified PHP code for their non-standard feed. Here it is:

Code:

// put the site link to paysite into the 'paysite_url' custom field according to Free WordPress Tube doc
$post ['custom_fields'] ['paysite_url'] = 'http://www.paysite.com';
// put site name into the "paysite_title" custom field according to Free WordPress Tube doc
$post ['custom_fields'] ['paysite_title'] = 'Paysite Name';
// format clip's duration as mm:ss
$post ['custom_fields'] ['duration'] = date ( 'i:s', $post ['custom_fields'] ['duration'] );
// create an URL of thumb from it's path and file name
$post ['custom_fields'] ['thumb'] = $post ['custom_fields'] ['screen'];
// uncomment the line below to store thumbnails on your server
// cseo_store_image ('thumb', $post ['post_title']);
// since FLV videos have no unique GUID's let's use their URL's as post GUID's
$post ['guid'] = $post ['custom_fields'] ['clip_url'];
// now the most complex part. we have to create the FLV player code, assuming that our FLV player is stored as flvplayer.swf in the root dir of the blog
$post ['custom_fields'] ['video_code'] = '<div class="video_code">
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="600" height="466">
<param name="movie" value="/flvplayer.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="image=' . $post ['custom_fields'] ['thumb'] . '&file=' . $post ['guid'] . '&autostart=true&linkfromdisplay=true&link=' . urlencode ( $post ['custom_fields'] ['paysite_url'] ) . '" />
<object type="application/x-shockwave-flash" data="/flvplayer.swf" width="600" height="466">
<param name="movie" value="' . $post ['guid'] . '" />
<param name="link" value="' . urlencode ( $post ['custom_fields'] ['paysite_url'] ) . '" />
<param name="allowfullscreen" value="true" />
<param name="linkfromdisplay" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="image=' . $post ['custom_fields'] ['thumb'] . '&file=' . $post ['guid'] . '&autostart=true&linkfromdisplay=true&link=' . urlencode ( $post ['custom_fields'] ['paysite_url'] ) . '" />
<p><a href="http://get.adobe.com/flashplayer">Get Flash</a> to see this player.</p>
</object>
</object></div>';
// now let's delete all useless custom fields
unset ( $post ['custom_fields'] ['screen_url'] );
unset ( $post ['custom_fields'] ['screen'] );
unset ( $post ['custom_fields'] ['clip_url'] );
unset ( $post ['custom_fields'] ['flv'] );

Quote:

Originally Posted by nico-t (Post 17878944)
cyber, i have a question. Im using the setting Store Images Locally, but in the rss feed of my site it still uses the original location of the images. I looked around and i saw that in the 'excerpt' field of pulled posts it automatically puts the original post (without the locally stored image path but the path from the sponsor) in there. How can i change this?

Please make sure you are using the latest available version of CyberSEO Suite. Please send me an email if the upgrade won't fix the problem.

just a punk 01-31-2011 02:46 AM

To those who are having problem with syndicating XML FLV feeds with CyberSEO Suite on blogs which use TubePress4 theme. Please make sure to check out these tutorials:

http://pornbringer.com/tutorials/cyberseo.html
http://pornbringer.com/tutorials/cyberseo-tutorial.html

:thumbsup

nico-t 01-31-2011 04:26 AM

Quote:

Originally Posted by cyberxxx (Post 17879038)
Please make sure you are using the latest available version of CyberSEO Suite. Please send me an email if the upgrade won't fix the problem.

thanks for the quick response, looks like the problem is solved now :thumbsup

greg80 01-31-2011 04:42 AM

Error establishing a database connection

just a punk 01-31-2011 05:37 AM

Quote:

Originally Posted by greg80 (Post 17880322)
Error establishing a database connection

Do you mean "Error establishing a database connection" message when you are trying to open cyberseo.net in browser? Seems too much traffic for my MySQL server. This issue will be fixed ASAP.

MasterBlow 01-31-2011 08:51 AM

bump for seo tips

kjpp 03-17-2011 01:19 AM

Hi!

I have question about plugin. It is posible to I grab images (thumbs) from galleries from rss like:
http://www.otcash.com/rss/otcash_rss...de&id=85 6489
and put them in post later?


Ot cash has rss with links to galeries and title and description.

Now I would like to have on my blog, post loking like:

Title from title galleries.
Descripion puted on post.
And few thumbs added from the gallery to post.

Im not sure its everything I wrote clear.

Regards
kjpp

just a punk 03-17-2011 02:09 AM

Importing the TGP feed into WordPress blog
 
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 :winkwink:
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";

kjpp 03-17-2011 02:37 AM

Thanks great job.
Its work, but it is small bug:
It should be herf= in last line?

How about I would like to 4-5 thumbs/images it is posible to?

just a punk 03-17-2011 02:40 AM

Yep, sorry for that. The correct form is following:

$post ['post_excerpt'] = "<p align=\"center\"><a href=\"" . $post ['link'] . "\"><img style=\"max-width:100%\" src=\"" . $thumb . "\"></a><p>" . $post ['post_excerpt'];

As about thumbs. Would you like to put them into a table or just put at your blog one-by one? Also should they be linked to the gallery or to their full-sized versions?

kjpp 03-17-2011 03:07 AM

In perfect situation I woul like to have blog post like this:

Post Headers

3 thumbs in line with link to big pictures.

Gallery description

more wptag

3 thumbs in line with link to big pictures.

Link to gallery

Post Footers

just a punk 03-17-2011 03:37 AM

This code will do it:

Code:

$post ['guid'] = base64_encode ( $post ['link'] );
$base_url = str_replace ( basename ( $post ['link'] ), "", $post ['link'] );
for($i = 1; $i <=6 ; $i++) {
        $image = str_replace ( basename ( $post ['link'] ), "", $post ['link'] ) . "pics/0" . $i . ".jpg";
        $content .= "<a href=\"" . $base_url . "pics/0" . $i . ".jpg\" target=\"_blank\"><img src=\"" . $base_url . "images/0" . $i . ".jpg\"\"></a> ";
        if ($i == 3) {
                $content .= "<br /><!--more-->";
        }
}
$post ['post_excerpt'] .= "<p>" . $content . "</p><p align=\"center\"><a href=\"" . $post ['link'] . "\"><strong>Click Here For More!</strong></a></p>\n";

Let me know if I got your request right.

kjpp 03-17-2011 04:13 AM

Something is wrong, I have 10 posts were added, but didnt see any new posts?

just a punk 03-17-2011 04:34 AM

Perhaps you set the plugin to aggregate 10 post at once. Also don't forget to empty your post trash before to pull the feed ;)

BTW, as about the code above. Is it something you were asking for or not?

kjpp 03-17-2011 04:49 AM

OK, its work, I removed rss and added it one more time, and now works.

just a punk 03-17-2011 04:58 AM

Perhaps you forgot to remove something, because I still see them at your site, e.g. here: http://www.my-stockings.com/37/glori...y-top/#more-37

If you want to re-syndicate the posts, you have to delete ALL already syndicated posts from your blog empty the trash can.

BTW, you can email me a login/password to your blog's control panel so I can check your settings and tell you were exactly is something wrong with them.

kjpp 03-17-2011 05:17 AM

Update:
I know where is the problem, when I tick: Store Images Locally
The post is not added, but photos are copied to folder.

just a punk 03-17-2011 05:24 AM

I guest the new posts are not being added because you haven't removed the previously syndicated and deleted ones from the trash (these posts are still in your db, so they won't be pulled twice).

Still have to look at your settings. Can't say anything according only to the info you posted into this thread.


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