View Single Post
Old 03-17-2011, 03:37 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,377
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.
__________________
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