PDA

View Full Version : forum.php file help


basilrath
05-03-2006, 01:37 PM
i need to replace this

$thread['hiddencount']++;
}
eval('$threadbit .= "' . fetch_template('threadbit') . '";');
}

with this


$thread['hiddencount']++;
}
//############################Gallery-Modification###########################
if ($gallery == true)
{
eval('$threadbit .= "' . fetch_template('gallery_threadbit') . '";');
}
else
{
eval('$threadbit .= "' . fetch_template('threadbit') . '";');
}
//############################End Gallery-Modification########################
}

for the gallery etc
but it obviously dosnt look like that on the php file as in the layout , can you just delete the original and replace with the other ie copy n paste etc

or do you have to put it in a certain way

sorry just new to this

kurtbarker
05-03-2006, 01:40 PM
hey mate, i'm pretty new myself, but have done a few file edits ;)

Just highlight to text you have to replace, copy the text you ave to replace it with, and copy/paste...

as long as 'in the end' the replacement text is in the file rather than the original

save the changes to the php file, and reupload, overwriting the original file

basilrath
05-03-2006, 01:53 PM
you mean just cut the section out then paste the new in

then overwrite the existing php

then if its no good change it back

i suppose id still have the original then

kurtbarker
05-03-2006, 09:18 PM
you wouldn't have to original coz your saving the new content in the file on your computer, and you overwrite the one on the server... so you can make another copy to your computer if you want a 'backup'.

how'd it go?

basilrath
05-03-2006, 11:43 PM
the gallery wont work just comes as error

seems its the php file i must be doing it wrong?

kurtbarker
05-03-2006, 11:51 PM
pm sent

basilrath
05-04-2006, 04:56 PM
everything done but still get this code when clicking on gallery on navbar or catagory

Parse error: parse error, unexpected '.' in /home/tbfs/public_html/forums/forums/forumdisplay.php on line 160