The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I get the error "Parse error: syntax error, unexpected '"', expecting ']' in /home/dysplace/public_html/eve-ocf/eveit.php on line 161" when trying to run
PHP Code:
PHP Code:
None of the other similar lines cause a problem, but as I am looping through an array to display, I need that eveit_$i].gif rather than eveit_0].gif. I could put a switch case for every line, but that'd be rather inefficient with many users. Any suggestions on how to get around that error? I've tried using {$i} in the code, same error. It really doesn't want me to use a variable there, for some reason. I know $i has a value, if I place echo $i; in my code I get 012345678910 at the top of my page. One other slightly unrelated question, when the collapsible box is collapsed, there's no title on the bar that the image is on that signifies what is in the box. Is there a way to give the box some header text? |
#2
|
|||
|
|||
![]()
Try to quote out $vbcollapse[collapseimg_359_eveit_0] like this if you can.
PHP Code:
|
#3
|
|||
|
|||
![]()
I changed that line to
PHP Code:
![]() |
#4
|
|||
|
|||
![]()
Argh that is some ugly code, when you are writing a lot of HTML into PHP strings use single quotes that way you don't need to escape every double quote in the HTML.
For example: PHP Code:
![]() |
#5
|
|||
|
|||
![]()
Fixed my code just for you. Happy? :P
Anyway, have a slight problem with the boxes still. Figure it'd be easier to figure out if I post the whole code block. So here it is: PHP Code:
Also, I'd like to have _nested_ collapsing boxes. I've tried placing another thead/tbody inside the first box (with a different ID of course), and it opens and closes fine (except for the image glitch). However, if it is open and I close the box it is nested in, the text still shows, if it is closed when I close the box it is nested in, then it stays non-visible. Are nested boxes like this possible within the vB code or do I need to add in more javascript for my own boxes? |
#6
|
|||
|
|||
![]()
Fixed the image issue by moving $vbcollapse[$collapse[$corp]].'.gif" '; to its own line. Still looking for a way to nest collapsible boxes, anybody know how?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|