vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Collapsable forums on forum home (https://vborg.vbsupport.ru/showthread.php?t=33961)

DarkDraco07 08-14-2002 09:55 AM

i just tried again, i even replaced my index.php with the original file and it still shows the error

DarkDraco07 08-14-2002 10:23 AM

MY FORUMS HAVE BEEN CURRUPTED AHHHHHHHHHHHHHHHH
i unistalled every step, took out and unedited template, took out the tables, unedited the file AND IT STILL SHOWS THE ERROR!!!

dabean 08-14-2002 04:30 PM

Quote:

Originally posted by DarkDraco07
MY FORUMS HAVE BEEN CURRUPTED AHHHHHHHHHHHHHHHH
i unistalled every step, took out and unedited template, took out the tables, unedited the file AND IT STILL SHOWS THE ERROR!!!

Paste the full error message.

Paste the contents of the line(s) mentioned in the error message. If as a suspect the line is some like eval("\$blahblah = \"".gettemplate('sometemplate')."\";"); Paste the contents of the template named too.

And do you still get a parse error when using the default stock index.php supplied with vB?

DarkDraco07 08-14-2002 05:12 PM

error

PHP Code:

Parse errorparse errorexpecting `']'' in /home/darkneme/public_html/forums/index.php(380) : eval()'d code on line 4 

line 4

PHP Code:

$templatesused='forumhome_birthdaybit,error_nopermission,forumhome_pmloggedin,forumhome_welcometext,forumhome_logoutcode,forumhome_newposts,forumhome_todayposts,forumhome_logincode,forumhome_loggedinuser,forumhome_loggedinusers,forumhome_lastpostby,forumhome_moderator,forumhome_forumbit_level1_nopost,forumhome_forumbit_level1_post,forumhome_forumbit_level2_nopost,forumhome_forumbit_level2_post,forumhome,forumhome_unregmessage'

line 380

PHP Code:

eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";"); 


dabean 08-14-2002 05:31 PM

Quote:

Originally posted by DarkDraco07

line 380

PHP Code:

eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";"); 


Please paste the contents of
"forumhome_forumbit_level1_nopost",
"forumhome_forumbit_level2_post" &
"forumhome_forumbit_level2_nopost"

DarkDraco07 08-14-2002 07:46 PM

forumhome_forumbit_level1_nopost
PHP Code:

<tr id="cat">
    <
td bgcolor="{ categorybackcolor}" colspan=" 7">
<
a href="forumdisplay.php?s=$session[s
essionhash]&forumid=
$forum[ forumid]"><normalfont color="{categoryfontcolor}"><b>$forum[title]</b></normalfont></a>
    <
br><smallfont color="{ categoryfontcolor}">$forum[description]</smallfont></td>
</
tr



forumhome_forumbit_level2_post
PHP Code:

<tr align="center">
    <
td bgcolor="{ secondaltcolor}" valign="top"><img src="{ imagesfolder}/$forum[onoff].gif" border="0" alt=""></td>
    <
td bgcolor="{ firstaltcolor}" align="left"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a>
    <
br><smallfont>$forum[description]</smallfont></td>
    <
td bgcolor="{ secondaltcolor}"><normalfont>$forum[replycount]</normalfont></td>
    <
td bgcolor="{ firstaltcolor}"><normalfont>$forum[threadcount]</normalfont></td>
    <
td bgcolor="{ secondaltcolor}"><normalfont>$count</normalfont></td>
    <
td bgcolor="{ firstaltcolor}"><smallfont>$forum[lastpostinfo]</smallfont></td>
<
form><td bgcolor="{ secondaltcolor}" valign="middle" align="right" nowrap>
<
IMG align="absmiddle" SRC="{ imagesfolder}/team.gif">
<
SELECT NAME="newLoc" onChange="jumpPage(this.form.newLoc)" style="font-size: 7pt; background-color: #dfdfdf; font-family: Arial, Tahoma;" maxlength="20">
<
OPTION VALUE="#">moderators</OPTION>
<
OPTION VALUE="#">---------------------</OPTION>
$forum[moderators]</select></td></form></tr

forumhome_forumbit_level2_nopost
PHP Code:

<tr id="cat">
  <
td bgcolor="{ categorybackcolor}"><smallfont>&nbsp;</smallfont></td>
  <
td bgcolor="{categorybackcolor}" colspan="7">
   <
a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="{ categoryfontcolor}"><b>$forum[title]</b></normalfont></a>
   <
br><smallfont color="{ categoryfontcolor}">$forum[description]</smallfont></td>
</
tr


DarkDraco07 08-14-2002 08:33 PM

o wait, there was a space between a variable in the template, THANK YOU SO MUCH FOR POINTING THAT OUT!!!!

I LOVE YOU :banana:

dabean 08-14-2002 09:00 PM

<snipped> figured out the error I see.

herby 09-01-2002 02:25 PM

Hello,

Anyone installed this on 2.2.7?

I've tried and it does not seem to work. No errors. The forum display just remains as is.

The only thing I can see that might be the problem is that

global $bbforumview;

is no longer in the index.php for 2.2.7

Hence, will these lines below that still be there, as per the hack instuctions?

// expand collapse hack
global $BrowserDOM, $collapsedstate;
// end expand collapse hack

Thanks in advance.

Herby

dabean 09-01-2002 05:53 PM

Quote:

Originally posted by herby
Hello,

Anyone installed this on 2.2.7?

I've tried and it does not seem to work. No errors. The forum display just remains as is.

The only thing I can see that might be the problem is that

global $bbforumview;

is no longer in the index.php for 2.2.7

Hence, will these lines below that still be there, as per the hack instuctions?

// expand collapse hack
global $BrowserDOM, $collapsedstate;
// end expand collapse hack


Thanks in advance.

Herby

Tested and works on vB 2.2.7. Whilst the line "global $bbforumview;" has been removed from vB 2.2.7 you do still need to add
PHP Code:

// expand collapse hack
global $BrowserDOM$collapsedstate;
// end expand collapse hack 

Below what remains from the large location fragment.

If your not sure what I mean by this then the readme's inside the zip have been updated to reflect 2.2.7.


All times are GMT. The time now is 09:32 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.01241 seconds
  • Memory Usage 1,778KB
  • 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
  • (8)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete