The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$ImagePath = $stylevar - Problem ...
Hi all,
The following statement $ImagePath = $stylevar[imgdir_misc].'/critique/nocritique.png'; worked in vB3, in a plugin script. In vB4 it returns the text '/critique/nocritique.png' !! Sub folder and image file both exist within the images/misc folders. It suggests that the stylevar is no longer acceptable in php, or the syntax has altered a wee bit. I can only find stylevar reference in vBulletin docs under templates. Could anyone suggest where I'm going wrong... The plugin adds an appropriate image on ['postbit_userinfo_right_after_posts'] (or it should do !!!), and this is the only bit that's not working correctly. Thanks in antic. |
#3
|
|||
|
|||
Quote:
images/misc/critique/nocritique.png (slightly more than the above. again no errors in debug) [The full statement in the php files is written ; $template_hook['postbit_userinfo_right_after_posts'] .= '<br /><dt>Critique Level</dt><br /> <dd>' .$ImagePath = vB_Template_Runtime::fetchStyleVar('imgdir_misc'). '/critique/nocritique.png'. '</dd>'; which yields the display of Critique Level: images/misc/critique/nocritique.png] |
#4
|
|||
|
|||
So what you want is for the image to be displayed? Then you'd need an img tag in there, like maybe:
Code:
$ImagePath = vB_Template_Runtime::fetchStyleVar('imgdir_misc').'/critique/nocritique.png'; $template_hook['postbit_userinfo_right_after_posts'] .= '<br /><dt>Critique Level</dt><br /> <dd><img src="' . $ImagePath . '"/></dd>'; |
3 благодарности(ей) от: | ||
CAG CheechDogg, jagtpf, Lynne |
#5
|
|||
|
|||
Quote:
That's solved it for me. I have a slight alignment issue, but you've cracked it ! |
Благодарность от: | ||
CAG CheechDogg |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|