vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   What's The Prob? (https://vborg.vbsupport.ru/showthread.php?t=73341)

That Rob Guy 12-26-2004 08:26 PM

What's The Prob?
 
It's a problem in the profile.php file when you go to change your avatar, sig, etc...

Parse error: parse error, expecting `')'' in /home/httpd/vhosts/ewnweb.net/subdomains/community/httpdocs/profile.php on line 111

Line 111 specifically is...

Code:

                WHERE pm.userid = $bbuserinfo[userid]
The surrounding code is below...help would be appreciated.

Code:

// ###################### Start pm update counters #######################
// update the pm counters for $bbuserinfo
function build_pm_counters()
{
        global $DB_site, $bbuserinfo;

        $pmcount = $DB_site->query_first("
                SELECT
                        COUNT(pmid) AS pmtotal,
                        SUM(IF(messageread = 0 AND folderid = 0, 1, 0)) AS pmunread
                FROM " . TABLE_PREFIX . "pm AS pm
                WHERE pm.userid = $bbuserinfo[userid]
        ");

        $pmcount['pmtotal'] = intval($pmcount['pmtotal']);
        $pmcount['pmunread'] = intval($pmcount['pmunread']);

        if ($bbuserinfo['pmtotal'] != $pmcount['pmtotal'] OR $bbuserinfo['pmunread'] != $pmcount['pmunread'])
        {
                $DB_site->query("
                        UPDATE " . TABLE_PREFIX . "user SET
                                pmtotal = $pmcount[pmtotal],
                                pmunread = $pmcount[pmunread]
                        WHERE userid = $bbuserinfo[userid]
                ");
        }
}


Dan 12-26-2004 08:34 PM

Did you add any hacks recently? If so retrace the hack instructions of the profile.php and see where the problem lies. If not go ask the hack author about where it may have went wrong.

That Rob Guy 12-26-2004 08:48 PM

Yea, the ibpro arcade and the vb chat...:-\

Dan 12-26-2004 09:28 PM

Quote:

Originally Posted by That Rob Guy
Yea, the ibpro arcade and the vb chat...:-\

Well which one made file edits to profile.php ? Once you find that out go double check you didn't miss anything.... OR upload a fresh copy of profile.php

assassingod 12-26-2004 09:40 PM

The only file I can find that code in is private.php rather than profile.php - are you sure you have the right file?


All times are GMT. The time now is 08:13 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.00940 seconds
  • Memory Usage 1,719KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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