jagtpf
06-22-2015, 06:18 AM
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.
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.