The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Do you want vbJournal working in PHP 5?
Okay, from what I've seen, there are two major bugs with vbJournal and PHP 5.
This is actually very easy to fix! This is yet another reason to QUOTE ARRAY KEYS IN CONDITIONS! Though template conditions are written in double quotes, they aren't parsed that way. They are parsed using the ternary operator ( ? : )
I've had no spare time to look at this. Hopefully somebody else can figure it out! Just thinking about it now... do the users who get blank screens have error reporting disabled? It could just be the same problem!!There really is no excuse for something as popular as vbJournal to not support PHP 5; these are bugs... not "incompatibilities"... |
#2
|
||||
|
||||
That's what I did to fix mine a couple months ago. There where just a few that needed the quotes and all was good. vbjournal does not have the support option checked so I really have nothing to complain about.
|
#3
|
||||
|
||||
I'm looking for someone to figure out the blank screen issue. Anyone please sort this out ASAP!
And thanks Adrian! |
#4
|
||||
|
||||
Quote:
|
#5
|
||||
|
||||
Quote:
|
#6
|
|||
|
|||
wow, i have no idea what you just said. i'm new to all this so all i really understood was lookin in the journal.php file on line 948 and doing somethin... after that, i'm lost
|
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
If you aren't inside a condition="..." then you can't quote array keys.
Code:
<font color="red">$vbphrase['private']</font> Code:
<font color="red">$vbphrase[private]</font> Code:
<if condition="$bbuserinfo['private']=='1'"> Code:
<if condition="$bbuserinfo['private'] == 1"> |
#9
|
|||
|
|||
I got it working with php5 using the directions on the 1300 posts and up
|
#10
|
||||
|
||||
Quote:
My error: Parse error: syntax error, unexpected T_PRIVATE, expecting ']' in /home/chadi/public_html/journal.php(564) : eval()'d code on line 188 Line 188 shows this in journal.php $pagenumber = $countj['journals']; Which template am I supposed to edit now? In case 564 is the line to look at: eval('print_output("' . fetch_template('JOURNAL') . '");'); I searched the template "journal" and the only area with the word private is below condition="$bbuserinfo['private']=='1'"><b><font color="red">$vbphrase['private']</font></b><else /><if condition="$bbuserinfo['private']==''"><b><font I attempted to make it look like this: condition="$bbuserinfo['private']=='1'"><b><font color="red">$vbphrase['private']</font></b><else /><if condition="$bbuserinfo['private']==''"><b><font And it gave this error after hitting submit: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/chadi/public_html/includes/adminfunctions_template.php(3537) : eval()'d code on line 188 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|