The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Post Icons - drop down list (good for lots of icons!) Details »» | |||||||||||||||||||||||||||
Post Icons - drop down list (good for lots of icons!)
Developer Last Online: Jun 2020
This hack will put all the post icons into a dropdown list instead, which will save lots of space especially if you have lots of post icons available (or WANT to have a lot of post icons available )
Look at attached screenshot to see how it looks like If you have a suggestion, let me know! Anyways, here we go Please make sure that all your icons have a title because this title will be shown in the dropdown menu! Otherwise it will be blank; it will still work and people can select it, but it doesn't help in knowing what the icon will show Instructions Open up includes/functions_newpost.php and find PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
HTML Code:
<td width="12%" nowrap="nowrap"><label for="rb_iconid_0"><input type="radio" name="iconid" value="0" id="rb_iconid_0" tabindex="1" onclick="swap_posticon(null)" $iconchecked />$vbphrase[no_icon] </label></td> $posticonbits HTML Code:
<if condition="$show['dropdownicons']"><td><select name="iconid" id="iconid" onchange="changeImage(this.value)">$posticondropdown</select> <img id="posticonimage" /></td><else /><td width="12%" nowrap="nowrap"><label for="rb_iconid_0"><input type="radio" name="iconid" value="0" id="rb_iconid_0" tabindex="1" onclick="swap_posticon(null)" $iconchecked />$vbphrase[no_icon] </label></td>$posticonbits</if> HTML Code:
// --> HTML Code:
<if condition="$show['dropdownicons']"> function changeImage(selVal) { if (selVal != 0) { document.getElementById('posticonimage').src = selVal; } else { document.getElementById('posticonimage').src = 'clear.gif'; } } </if> HTML Code:
<option value="$iconpath"$iconselect>$alttext</option> I hope you enjoy this hack Show Your Support
|
Comments |
#12
|
|||
|
|||
ah nifty, forgot to think you could load the image next to it.
Good Work. |
#13
|
|||
|
|||
For some reason, i now have dropdown AND the original list to chose from.
Any idea what could be wrong? |
#14
|
||||
|
||||
Quote:
The code you did wrong was in the posticons template. |
#15
|
|||
|
|||
hmm i just double checked and everything is like it should be. afaik
Quote:
|
#16
|
||||
|
||||
Quote:
|
#17
|
|||
|
|||
<a href="http://forums.soi-guild.org" target="_blank">http://forums.soi-guild.org</a>
test/test u can login with ! and thanks ! |
#18
|
||||
|
||||
Weird, maybe a problem with Gold? Although I sincerely doubt it; it looks like it has something to do with the conditionals but that should be fine.
How it is right now is that you can change between the two, but to fix this for you, simply do the following then: open the posticons template, find: HTML Code:
<td width="12%" nowrap="nowrap"><label for="rb_iconid_0"><input type="radio" name="iconid" value="0" id="rb_iconid_0" tabindex="1" onclick="swap_posticon(null)" $iconchecked />$vbphrase[no_icon] </label></td>$posticonbits |
#19
|
|||
|
|||
u are god ! thanks man.
one last question when u click on new thread no icon is picked this gif file logol shows up. how can i get rid of this?" |
#20
|
||||
|
||||
What do you mean? Please make a screenshot and circle it.
|
#21
|
|||
|
|||
As you can see they are still there And i circled the gif thing.
Code:
<if condition="$show['dropdownicons']"><td><select name="iconid" id="iconid" onchange="changeImage(this.value)">$posticondropdown</select> <img id="posticonimage" /></td></if> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|