vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   View Post Icons As Drop-Down (https://vborg.vbsupport.ru/showthread.php?t=47043)

damicatz 12-26-2002 10:00 PM

View Post Icons As Drop-Down
 
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.

damicatz 12-27-2002 08:35 PM

Screenshots :

http://catclub.dnip.net/screenshot1.png
You can toggle between the two modes of display in the control panel.

http://catclub.dnip.net/screenshot2.png
Screenshot of the post icon area when you have it set to be a drop-down. The preview image is updated with Javascript.

DrkFusion 12-27-2002 08:43 PM

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

Great Job

Taco John 12-27-2002 09:34 PM

Awesome hack!

Screenshots look great!

I'm loading it to my test board immediately... I'll be back with a report!

Taco John 12-27-2002 09:36 PM

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

I hope it works... *ulp*

Chris M 12-27-2002 09:43 PM

Erm...?

This is for a 2.2.8 board...:confused:

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

Satan

Taco John 12-27-2002 10:01 PM

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

*crossing fingers*

damicatz 12-27-2002 10:24 PM

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.

Taco John 12-27-2002 10:37 PM

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="";
  }


Taco John 12-27-2002 10:47 PM

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?


All times are GMT. The time now is 03:17 AM.

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.01149 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete