| will.blaschko Newbie - One Blade
 
 
			Joined: 18 Jun 2007Posts: 15
 
 
   | 
			<!--agorascript-post
 {
 $mystring = "%%description%%";
 local ($size, @bob, $x);
 @bob=split / /, $mystring;
 $mystring="";
 $size=@bob;
 if($size>75){
 $size=75;
 }
 
 for($x=0;$x<$size;$x++){
 $mystring .="$bob[$x] ";
 }
 if($size>75){
 $mystring .="... (read more)";
 }
 
 $mystring; # return this value, it is the last statement executed
 }
 -->
 
 
 Is what I have so far, but it's not working... it always shows me an error page saying "We're sorry, an error has occured. Please hit the browser back button, change what was done in error, and try again." I've tried changing the post to pre, but then the description doesn't get shortened...
 
 
 |