View Single Post
Old 07-10-2011, 06:28 AM  
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
Quote:
Originally Posted by cyberxxx 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.
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
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote