View Single Post
Old 02-22-2014, 12:44 PM  
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
maybe ill show what i've done and some1 tell me what i did wrong:

i need to find such code in the index.php:

"if($use_ads=="yes")
{"

here it is:

" $gallery=str_replace("%imageurl%",$script_url.$ima ges_path.$row[imgname],$gallery);
$num++;
if($use_ads=="yes")
{
if($num==$ads1)
{$gallery.=$template_ads_1;}
if($num==$ads2)
{$gallery.=$template_ads_2;}
}"

now if i understand correctly write this code above of it:

"$row_num++;
if($row_num==2){$gallery.="";$row_num=0;}"

so i did:

" $gallery=str_replace("%imageurl%",$script_url.$ima ges_path.$row[imgname],$gallery);
$num++;
$row_num++;
if($row_num==2){$gallery.="";$row_num=0;}
if($use_ads=="yes")
{
if($num==$ads1)
{$gallery.=$template_ads_1;}
if($num==$ads2)
{$gallery.=$template_ads_2;}
}"

now it's not working, obviously i did smth wrong, what?

on Jakez page is something written about manipulating post templates but hes page is broken and i'm not sure what exactly i need to change in post templates:

http://www.13scripts.com/mods/mods.php?id=25
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote