vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Parse error: parse error in /home/scope325/public_html/forums/index.php on line 400 (https://vborg.vbsupport.ru/showthread.php?t=62376)

Scope 03-10-2004 11:36 PM

Parse error: parse error in /home/scope325/public_html/forums/index.php on line 400
 
PHP Code:

reset($imodcache["$mval1"]);
          while ( list(
$mkey2,$moderator)=each($imodcache["$mval1"]) ) {
            if ( !isset(
$forum['moderators']) )
 {
              eval(
"\$forum['moderators'] .= \",".gettemplate('forumhome_moderator')."\";");

else 
{
              eval(
"\$forum['moderators'] .= \", ".gettemplate('forumhome_moderator')."\";");
            }
        if ( !isset(
$forum['moderators']) ) 
{
          
$forum['moderators'] = ' ';
        }
        if (
$forum['cancontainthreads']==1
{
          
$tempext '_post';
        } 
else
 {
          
$tempext '_nopost';
        } 


filburt1 03-11-2004 12:11 AM

Which one is line 400?

Scope 03-11-2004 12:48 AM

PHP Code:


              eval(
"\$forum['moderators'] .= \",".gettemplate('forumhome_moderator')."\";"); 

else 

              eval(
"\$forum['moderators'] .= \", ".gettemplate('forumhome_moderator')."\";"); 
            } 


filburt1 03-11-2004 12:53 AM

Why do you have a comma?

If you are appending to a template, the generic format is:
Code:

eval("\$variable .= \"" . gettemplate("template name") . "\";");

Scope 03-11-2004 12:55 AM

because i don't know ++++ about php.

ps:you're cool.

Scope 03-11-2004 01:06 AM

now i get an error with line 334

PHP Code:

          if ($userlastvisit<$forum['lastpost']) {
            
$forum['onoff']='on';
          } else {
            
$forum['onoff']='off';
          }
        }

        if ((!
$forumperms['canpostnew'] or $forum['allowposting']==0) and $showlocks) {
          
$forum['onoff'].='lock';
        } 


AN-net 03-11-2004 02:08 AM

you have an extra "(" or you need to the ")"


All times are GMT. The time now is 04:23 PM.

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.01872 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_code_printable
  • (3)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