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
  #2  
Old 12-27-2002, 08:35 PM
damicatz damicatz is offline
 
Join Date: Oct 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 12-27-2002, 08:43 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking great, I will add this to my quick reply, with a slight modification to it

Great Job
Reply With Quote
  #4  
Old 12-27-2002, 09:34 PM
Taco John Taco John is offline
 
Join Date: Nov 2002
Location: ddddd
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome hack!

Screenshots look great!

I'm loading it to my test board immediately... I'll be back with a report!
Reply With Quote
  #5  
Old 12-27-2002, 09:36 PM
Taco John Taco John is offline
 
Join Date: Nov 2002
Location: ddddd
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uh oh... Problem... My board is a 2.2.8 board...

I hope it works... *ulp*
Reply With Quote
  #6  
Old 12-27-2002, 09:43 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erm...?

This is for a 2.2.8 board...

Looks good Won't use it, but great idea!

Satan
Reply With Quote
  #7  
Old 12-27-2002, 10:01 PM
Taco John Taco John is offline
 
Join Date: Nov 2002
Location: ddddd
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok... I set up a completely new test board to see if it might be backward compatible to 2.2.8...

*crossing fingers*
Reply With Quote
  #8  
Old 12-27-2002, 10:24 PM
damicatz damicatz is offline
 
Join Date: Oct 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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="";
  }
When in reality, I believe it is this code that needs to be found:

Code:
if ($foruminfo[allowicons]) {
    $posticons=chooseicons($iconid);
  }  else {
    $posticons="";
  }
Reply With Quote
  #10  
Old 12-27-2002, 10:47 PM
Taco John Taco John is offline
 
Join Date: Nov 2002
Location: ddddd
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
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 06:04 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04648 seconds
  • Memory Usage 2,284KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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