The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
stumped on yucky parse error
I have to call multiple instances of the postbit_attachmentthumbnail template from within the adminCP (crazy, i know)
I am calling it like this: PHP Code:
It's something to do with closing the image tag i'm pretty sure. I've been on this for 3 hours now and starting to get brainfry or brainfart. |
#2
|
||||
|
||||
Here's a thought...close the img tag.
Here's another, do this with the template system, thats what it is there for. |
#3
|
||||
|
||||
Isn't the following bit in red closing the img tag"
</phrase> \" /> </a> ".iif($show['br'], "<br /><br />")." If i'm not mistaken the <phrase> things might be an issue as well, that seems to be some sort of javascript tag which creates the hover text in the alt tag. I don't however know where this is defined and am guessing it's not defined within the admincp. I didn't think I could eval templates from within the adminCP. I've never seen that done before in any of jelsoft's admin scripts. (or am i just totally fried???) |
#4
|
|||
|
|||
Admin scripts usualy do not use the template system (to avoid getting locked out of admincp if there is an error in templates!).
Look at the source of the output page to find your error. |
#5
|
|||
|
|||
Don't forget <phrase> tags aren't standard HTML duh
|
#6
|
||||
|
||||
Well I finally gave up on hving the phrase tags included, and once removed, I'm no longer getting the errors, so thanks for the help people
|
#7
|
|||
|
|||
Use the construct_phrase() function see if that works?
|
#8
|
||||
|
||||
that function didn't work for me, i think because the <phrase> tag has something to do with javascript, which I am clueless about. Thanks for suggestion though
|
#9
|
||||
|
||||
<phrase> is not valid HTML
BTW, since you aren't parsing values in your double quotes, switch to single! It will make it so much cleaner to read because you don't have to escape all the HTML attribute quotes. |
#10
|
||||
|
||||
oh, good point thanks Sir.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|