vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   forum.php file help (https://vborg.vbsupport.ru/showthread.php?t=114678)

basilrath 05-03-2006 12:37 PM

forum.php file help
 
i need to replace this

PHP Code:

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


with this

PHP Code:

$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 12: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 12: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 08: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 10: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 10:51 PM

pm sent

basilrath 05-04-2006 03: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


All times are GMT. The time now is 02:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01708 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete