PDA

View Full Version : construct phrase question


neverrain
07-09-2004, 06:51 PM
I'm trying to change the powered by vbulletin phrase to an image. I tried using $stylevar[imgdir_misc]/copyright.gif but was then later informed you cannot use $stylevar in phrases and was lead onto construct phrase.

I added the following code to phpInclude_start:

construct_phrase($vbphrase['copyrightimg'], "$stylevar[imgdir_misc]/copyright.gif", $height, $width);

and this code to powered_by_vbulletin phrase:

<img src="{1}" width="{2}" height="{3}">

It returns nothing, which actually is against the vBulletin policy to have nothing so I better hurry up and figure it out. :nervous:

Anyways, my question would be, why doesn't the image show up, and what do I have to change to make it work?

cheers!

Zachery
07-09-2004, 07:12 PM
I'm trying to change the powered by vbulletin phrase to an image. I tried using $stylevar[imgdir_misc]/copyright.gif but was then later informed you cannot use $stylevar in phrases and was lead onto construct phrase.

I added the following code to phpInclude_start:

construct_phrase($vbphrase['copyrightimg'], "$stylevar[imgdir_misc]/copyright.gif", $height, $width);

and this code to powered_by_vbulletin phrase:

<img src="{1}" width="{2}" height="{3}">

It returns nothing, which actually is against the vBulletin policy to have nothing so I better hurry up and figure it out. :nervous:

Anyways, my question would be, why doesn't the image show up, and what do I have to change to make it work?

cheers!
Just edit the phrase, and change the prhase in the footer.

NTLDR
07-09-2004, 09:05 PM
construct_phrase($vbphrase['copyrightimg'], "$stylevar[imgdir_misc]/copyright.gif", $height, $width);

Shpuld be:

$vbphrase['powered_by_vbulletin'] = construct_phrase($vbphrase['copyrightimg'], "$stylevar[imgdir_misc]/copyright.gif", $height, $width);