Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
View Post Icons As Drop-Down Details »»
View Post Icons As Drop-Down
Version: 1.00, by damicatz damicatz is offline
Developer Last Online: Oct 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-26-2002 Last Update: Never Installs: 15
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-27-2002, 11:07 PM
damicatz damicatz is offline
 
Join Date: Oct 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #13  
Old 12-27-2002, 11:29 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes you would need to add: ORDER BY title ASC to the query
Reply With Quote
  #14  
Old 12-28-2002, 01:05 AM
Taco John Taco John is offline
 
Join Date: Nov 2002
Location: ddddd
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know much about PHP... Would I need to go into the myPHP control panel?
Reply With Quote
  #15  
Old 12-28-2002, 02:31 AM
damicatz damicatz is offline
 
Join Date: Oct 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 12-28-2002, 05:42 AM
Taco John Taco John is offline
 
Join Date: Nov 2002
Location: ddddd
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll just have to live with sorting them by hand then...

Thanks for the hack! Nice job man!
Reply With Quote
  #17  
Old 12-28-2002, 09:28 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is awesome :P

Hope its included in vb3 as it makes it so much neater hehe
Reply With Quote
  #18  
Old 12-28-2002, 12:46 PM
damicatz damicatz is offline
 
Join Date: Oct 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From what I understand, Jelsoft isn't adding anymore features to vB 3 although there's always 3.1/3.5.
Reply With Quote
  #19  
Old 12-28-2002, 06:00 PM
SpeedStreet SpeedStreet is offline
 
Join Date: Aug 2002
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oooh...This is kinda nice.

Anyway I think I am going to try to modify this to work with smilies as well...would anyone be interested in this?

*edit - actually, is there a way you can just post up the code for this, versus having to make it a php hack the gives you the ability to select yes or no in your options? Instead of making this a global thing, I would be interested in just adding it to one of my styles.

Do you think this is a possibility, since you have already done the worst of it?
Reply With Quote
  #20  
Old 12-29-2002, 04:35 AM
Taco John Taco John is offline
 
Join Date: Nov 2002
Location: ddddd
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can just open the PHP as a text file... But you'll need to run it to alter the database, unless you want to do that manually too...
Reply With Quote
  #21  
Old 12-29-2002, 12:23 PM
damicatz damicatz is offline
 
Join Date: Oct 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Instructions are in the PHP file as text, like Taco John Said, it's under a textarea tag. The database query adds a option to the global settings page, so if you don't want that you don't want to run the actual query.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04885 seconds
  • Memory Usage 2,292KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete