The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Resize Smilies
How to resize Smilies in post or thread ???
My default smilies height 50px in post --- I want to change the size (resize) to 35px. default code: Code:
<img border="0" src="/smilies/hoax.gif"> with resize size: Code:
<img border="0" src="/smilies/hoax.gif" height="35px"> can someone make a small plugin for resize smilies, please! Thank you. |
#2
|
|||
|
|||
can someone help me, please!
|
#3
|
||||
|
||||
It is not possible to resize smilies via a plugin, there are no hooks available in the code that can do that.
The code that creates those <img> tags are in the class_bbcode.php file in the /includes/ directory. There looks to be 4 instances, 2 for cached smilies and 2 for smilies that are retrieved from the database. The problem is even manually editing this code will cause more problems because you also have to edit code that controls the php, code, and html bbcodes because apparently they have to be able to "clean" smilies by finding and removing smiley code. I see two options- The smartest way would be to use a batch image resizer to resize all your smileys to the size you want. There is another option that MAY work but MAY cause unforeseen issues. In Admin CP -> Styles & Templates -> Replacement Variable Manager You can define a relacement variable that replaces: Code:
class="inlineimage" Code:
class="inlineimage" height="35" You will have to set the replacement for every style you have. BTW- it is hieght="35" not height="35px" |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|