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 |
#42
|
|||
|
|||
yeah works but i'd like to have people see a preview of em.., hope this one gets fixed soon.
|
#43
|
|||
|
|||
A question about the hack... When you add new icons, do they get inserted in alphabetical order? I had a similar hack loaded on VB 2.9, but it got unweildy because when I added new icons, they didn't get inserted in alphabetical order and people simply stopped using it.
|
#44
|
|||
|
|||
any answer on this one?
|
#45
|
|||
|
|||
The get listed by display order. If youwant them sorted any other way, you need to alter the display order numbers.
|
#46
|
|||
|
|||
I installed this hack, but I also got rid of the original post icons and installed new ones. The dropdown box and preview work correctly, but when the post is submitted, the icon doesn't show next to the post. What does show is the original notepad-looking icon. What is even odder is that if I turn the dropdown box off ($show['dropdownicons'] = 0), which returns to the radio buttons, the new icons will show next to posts.
Does anyone know what is going on here? Do I have to name the files in /images/icons like the originals were named (icon1, icon2, etc), or is there something else that I'm missing? |
#47
|
||||
|
||||
this hack doesnt work, its a nifty idea though gj for that
*grief clicks uninstall |
#48
|
|||
|
|||
any update to this?
many of us would like to see this work |
#49
|
|||
|
|||
Yeah i wish it would work!
|
#50
|
|||
|
|||
|
#51
|
|||
|
|||
I am having the same problem it shows when creating a post but not once you get to the list of posts.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|