Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 8 of 8

This is a discussion on parse errors (help please) in the Shared & Semi-Dedicated forum
Ok, trying to install a mod on my forum and I've already had to clear up several parse errors in the mod, but these last ...

  1. #1
    JPC Guru
    Join Date
    Jan 2004
    Location
    I'm right behind you....
    Posts
    389

    parse errors (help please)

    Ok, trying to install a mod on my forum and I've already had to clear up several parse errors in the mod, but these last two are eluding me. Just can't see the errors here. Maybe it's simple and I'm over looking it, I dunno. I hope a fresh pair of eyes can see it.

    Code:
    user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', 
    user_sig = '" . str_replace("\'", "''", $signature) . "', 
    user_sig_bbcode_uid = $signature_bbcode_uid, user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allow_signature = $allow_sig, user_allow_sig_image = $allow_sig_image, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline,
    And this one...

    Code:
    $l_signature_size = sprintf($lang['Sig_image_imagesize'], $board_config['sig_image_max_width'], $board_config['sig_image_max_height']);
    
    					$error = true;
    					$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $l_signature_size : $l_signature_size;
    				}
    			}
    			else if ( !empty($user_sig_image_name) )
    			{
    				$l_sig_image_size = sprintf($lang['Sig_image_filesize'], round($board_config['sig_image_filesize'] / 1024));
    Somewhere in there are parse errors, but I'll be d***ed if I can see 'em.

  2. #2
    Ron
    Guest
    In the top examples, aren't you missing the "$" signs in front of each variable you're trying to set?
    Also, if my eyes aren't deceiving me, are you using commas to seperate statements vs. using semi colons?
    Also, don't you need semis at the end of the statements?



    In the bottom examples, the capitalization of "Sig" looks strange, but it could be intentional. Also I find it strange that a parameter that ought to be a string would be named "size", but that's just me... I don't see a bug straight off in the bottom.

    Then again, it's almost 5 in the morning.

    good luck

  3. #3
    JPC Guru
    Join Date
    Jan 2004
    Location
    I'm right behind you....
    Posts
    389
    Well, the commas and what-not are the same as in the rest of the file (which is a default for phpBB), so I don't imagine that's wrong. I'll try out the other stuff you mentioned and see if it affects anything. Thanks.

  4. #4
    Voltron wannabe tank's Avatar
    Join Date
    Apr 2004
    Location
    Houston
    Posts
    306
    Can you post a little more of the first one. Need more before and after to see exactly where your pars error is.

    Did you add the additional fields to the database yet?

  5. #5
    JPC Guru
    Join Date
    Jan 2004
    Location
    I'm right behind you....
    Posts
    389
    If you want, you can have a look at both files. Just download them. The first error is in usercp_register.php in line 540. The second error is from admin_users.php in line 879.

  6. #6
    Voltron wannabe tank's Avatar
    Join Date
    Apr 2004
    Location
    Houston
    Posts
    306
    For the first error I don't see anything wrong with the block of code you posted. But when I look around line 540 like you mention i do see something.

    Starting on line 541 (usercp_registration.php):
    $template->assign_vars(array)
    "META" => '<meta http-equiv="refresh" content="5;url=' . append_sid("index.$phpEx") . '">')
    );

    In both CPG-Nuke and Nuke 7.0 these lines are commented out. However is you are just running PHPBB then I do see an error in syntax.

    Try to change:
    $template->assign_vars(array)

    to this:
    $template->assign_vars(array(
    Last edited by tank; 04-20-2004 at 07:42 AM.

  7. #7
    Voltron wannabe tank's Avatar
    Join Date
    Apr 2004
    Location
    Houston
    Posts
    306
    for the admin_users.php can you post the exact error you are getting

  8. #8
    JPC Guru
    Join Date
    Jan 2004
    Location
    I'm right behind you....
    Posts
    389
    Parse error: parse error in /home/snipeme/public_html/board/admin/admin_users.php on line 879

    Recieved the error when attempting to edit user's permissions in the admin panel.

    Not much help, I know...
    Last edited by Galen; 04-20-2004 at 05:45 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •