View Single Post
Old 07-10-2011, 03:06 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,347
Quote:
Originally Posted by tonyparra View Post
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
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote