Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 PHp conditions in an XThreads Template
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #5
RE: PHp conditions in an XThreads Template
Hi Zinga - I'm gonna try and keep this short Smile

As in the code above, the only change being the replacements as listed below:

I tried replacing $forum['fid'] with $forum{$fid} and the result was as in my previous post - no errors, just hidden.
I tried replacing $forum['fid'] with $forumdisplay{$fid} and the result was as in my previous post - no errors, just hidden.

Then I tried replacing $forum['fid'] with {$fid} and I got an error and my whole forumdisplay was gone - just left with header and footer etc. Error as below.

Code:
Parse error: syntax error, unexpected '{', expecting ')' in /customers/leefish.nl/leefish.nl/httpd.www/mybb/forumdisplay.php(1193) : eval()'d code on line 17


So based on the output above I tried replacing $forum['fid'] with ($fid) and the result was as in my previous post - no errors, just hidden.



[Image: leelink.gif]
MYBB1.6 & XThreads
10-05-2010 10:00 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: PHp conditions in an XThreads Template - leefish - 10-05-2010 10:00 PM

 Standard Tools
Forum Jump: