![]() |
Another Parse Error
ok I am getting my parse error from this line off script in functions.php, but I think I have looked at it too long and I can't see what in it's causing it:
if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'adv_index' AND $vboptions['showcalendar']) OR (THIS_SCRIPT == 'index' AND $vboptions['showevents'])) HELP! :ermm: |
Quote:
|
Posting that whole section of code might give us a glimpse as to what's wrong. ;)
|
OK Im trying to install vBadvanced CMPS and everything is fine until I replace this line in functions.php:
if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'index' AND $vboptions['showevents'])) with this: if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'adv_index') OR (THIS_SCRIPT == 'index' AND $vboptions['showevents'])) all i do is a direct cut and paste and then my whole forum vanishes in cyber obilivion with a Parse error. I added the ; and nothing changed I still lost it.... I then have to replace ALL the files I changed with the originals. I have the lastest version of vBulletin. |
Try this:
Quote:
|
nope still isn't working. I replace the script, upload it all and then I get the same parse error. This is driving me crazy. What can be causing this? :ermm:
|
Quote:
|
PHP Code:
|
I can't post the specific parse error without copying and pasting all the scripting again. But the parse error is on the function.php page. Here are the line of script above and below the line that needs editing. I have left the ORIGINAL line in place for you to see too.
} // end if access masks enabled and is logged in user if (!empty($user['membergroupids'])) { $sqlcondition = "IN($USERGROUPID, $user[membergroupids])"; } else { $sqlcondition = "= $USERGROUPID"; } // query calendar permissions if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'index' AND $vboptions['showevents'])) { // Only query calendar permissions when accessing the calendar or subscriptions or index.php $_PERMQUERY[4] = " SELECT calendarpermission.usergroupid, calendarpermission.calendarpermissions,calendar.ca lendarid,calendar.title, displayorder FROM " . TABLE_PREFIX . "calendar AS calendar LEFT JOIN " . TABLE_PREFIX . "calendarpermission AS calendarpermission ON (calendarpermission.calendarid=calendar.calendarid AND usergroupid IN(" . implode(', ', $membergroupids) . ")) ORDER BY displayorder ASC "; |
Change this:
PHP Code:
PHP Code:
|
can someone just put me out of my misery and send me the actual php pages with the new scripting in place so I can overwrite? I think that will be easier... :tired:
|
Quote:
|
Also I strongly suggest avoiding creating variable names in the format $_VARNAME as they are intended to be superglobals (for example, $_SERVER, $_REQUEST, $_GET, etc.).
|
Hey this is the scripting I am copying into my existing scripting to use the CMS system. I haven't wriiten this myself.
|
Since this is in support of the cmps by vbadvanced.com, I'd try searching over there. Off hand, I think you ran into the 3.0.3 issue where one line that was indicated to change didn't need any changes at all.
|
All times are GMT. The time now is 02:52 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|