The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
View Post Icons As Drop-Down Details »» | |||||||||||||||||||||||||
Requested At : https://vborg.vbsupport.ru/showthrea...&postid=335209
This hack allows the administrator to change the display of message icons in the post new thread and reply screens so that you select one from a drop-down box as opposed to using radio buttons. A preview image to the right displays the currently selected icon. This can be toggled via the admin control panel and I will post screenshots in a minute. This is designed for vBulletin Version 2.2.9, although that's not a choice on the version field, the script will not run on an older version, although you can override the saftey feature if you really want to install it on a different version. Be sure to run the install script in your admin directory. Edit : Revision 2 is now avilable. This adds the new display for the edit screen and the private message screen. Show Your Support
|
Comments |
#2
|
|||
|
|||
Screenshots :
You can toggle between the two modes of display in the control panel. Screenshot of the post icon area when you have it set to be a drop-down. The preview image is updated with Javascript. |
#3
|
||||
|
||||
Looking great, I will add this to my quick reply, with a slight modification to it
Great Job |
#4
|
|||
|
|||
Awesome hack!
Screenshots look great! I'm loading it to my test board immediately... I'll be back with a report! |
#5
|
|||
|
|||
uh oh... Problem... My board is a 2.2.8 board...
I hope it works... *ulp* |
#6
|
||||
|
||||
Erm...?
This is for a 2.2.8 board... Looks good Won't use it, but great idea! Satan |
#7
|
|||
|
|||
Ok... I set up a completely new test board to see if it might be backward compatible to 2.2.8...
*crossing fingers* |
#8
|
|||
|
|||
If you are setting up a new board, you should use 2.2.9 as 2.2.8 has a security hole in it.
It will most likely work with 2.2.8 but you'll have to override the scripts to do so. It's for a 2.2.9 board, I just can't select that as an option. |
#9
|
|||
|
|||
WOOOO HOOO!!!
So far so good... It works in principle on 2.2.8! One thing... I *think* you made a slight error in your directions in two places... You said that we should find and replace this code: Code:
if ($foruminfo[allowicons]) { $posticonsdropdown=chooseicons($iconid); } else { $posticons=""; } Code:
if ($foruminfo[allowicons]) { $posticons=chooseicons($iconid); } else { $posticons=""; } |
#10
|
|||
|
|||
Good work man! Icons are uploading just perfectly in it!
One quick question... Is there a way to make it so that the drop down icons are sorted in alphabetical order? |
#11
|
|||
|
|||
Ok I fixed the instructions.
As for the alphabetical order part : You'd have to use a sort command, I belive that would be in the database query itself although I'm not entirely sure, I'm still a biy rusty with PHP. |
#12
|
||||
|
||||
Yes you would need to add: ORDER BY title ASC to the query
|
#13
|
|||
|
|||
I don't know much about PHP... Would I need to go into the myPHP control panel?
|
#14
|
|||
|
|||
No, it'd require an actual code change, you'd have to change around some of the querys, possibly having to rewrite some, as I'm not sure if you can sort the global posticons database query without screwing something up. I'm not 100% sure on that however.
|
#15
|
|||
|
|||
I'll just have to live with sorting them by hand then...
Thanks for the hack! Nice job man! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|