The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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: |
#2
|
||||
|
||||
Quote:
|
#3
|
||||
|
||||
Posting that whole section of code might give us a glimpse as to what's wrong.
|
#4
|
|||
|
|||
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. |
#5
|
||||
|
||||
Try this:
Quote:
|
#6
|
|||
|
|||
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:
|
#7
|
||||
|
||||
Quote:
|
#8
|
|||
|
|||
PHP Code:
|
#9
|
|||
|
|||
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 "; |
#10
|
||||
|
||||
Change this:
PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|