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?

damicatz 12-27-2002 11:07 PM

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.

NTLDR 12-27-2002 11:29 PM

Yes you would need to add: ORDER BY title ASC to the query ;)

Taco John 12-28-2002 01:05 AM

I don't know much about PHP... Would I need to go into the myPHP control panel?

damicatz 12-28-2002 02:31 AM

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.

Taco John 12-28-2002 05:42 AM

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

Thanks for the hack! Nice job man!

Dean C 12-28-2002 09:28 AM

This is awesome :P

Hope its included in vb3 as it makes it so much neater hehe

damicatz 12-28-2002 12:46 PM

From what I understand, Jelsoft isn't adding anymore features to vB 3 although there's always 3.1/3.5.

SpeedStreet 12-28-2002 06:00 PM

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?

Taco John 12-29-2002 04:35 AM

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...

damicatz 12-29-2002 12:23 PM

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.

SpeedStreet 12-29-2002 05:35 PM

Cool.

I'll hack the hack. :)

Taco John 12-30-2002 07:57 PM

I just noticed that this isn't set to work with the "edit" option...

Taco John 12-30-2002 09:01 PM

...and the personal messaging post screen...

Mystis 12-30-2002 11:53 PM

Wow, that looks fantastic. I'm definately going to use this one!

Taco John 01-01-2003 08:43 AM

Any chance this will be updated to include at least the "edit post" page? (pretty please) :nervous:

damicatz 01-01-2003 04:25 PM

On It, I'll have it done in two hours or less.

damicatz 01-01-2003 06:29 PM

Done, you can download the updated php file, which includes an upgrade option.

Taco John 01-01-2003 11:13 PM

You da man!

Thanks brother! :)

hamed 01-02-2003 02:04 PM

Nice hack! hank you.

Taco John 01-02-2003 08:07 PM

The hack seems to work just fine... except on small detail... For some reason, when I edit a post to change the icon, the edit I make doesn't seem to change on the thread index... The old icon is still in place.

damicatz 01-02-2003 11:09 PM

If you are referring to the listing of threads, that doesn't update when you edit a post. With vBulletin you have to go into the admin cp and use the update counters selection to update the threadindex.

Taco John 01-02-2003 11:18 PM

Hmmm...

Just to be clear...

When someone submits a thread, they usually forget to give it an icon... So I have a default icon that their thread is posted under...

When either I, or my mod staff edit that post, to change the icon... The icon doesn't stay... The original, default icon stays... and if I go to edit the post again, it is still on that default icon...

It works like this with all the icons... It seems once an icon is set, it cannot be re-set... Maybe it works like this as a standard... I guess I'm not certain.

I do know that I'd like to be able to re-set those icons.

damicatz 01-02-2003 11:25 PM

Taco John, check your private messages.

mbforum 01-08-2003 06:51 PM

Hi thanks for this great hacks but i have this problem
when all is done and then start to open new thread appear this error message

Parse error: parse error in /home/vhost/mbsh020602/forum010/newthread.php on line 446

the line 446 is the last line of php code and there is this simbol:

?>

this error appear also in other file like this:

Parse error: parse error in /home/vhost/mbsh020602/forum010/newreply.php on line 557

this line have the same symbol

?>

what can i do?

thanks

p.s.

vbull 2.2.9

SpeedStreet 01-10-2003 01:07 PM

Damicatz,

It appears that my hack idea is a little tougher than I thought. Do you think this is something that can be done (doing the same to smilies)?

N9ne 01-25-2003 07:34 PM

The same for smilies would be extremely awesome...

Just got done installing this hack, a great job I should say :).

LilTara 01-26-2003 12:27 AM

I'm having the same problem Taco John was having in Post 32... can anyone help me?

Thanks in advance...
Tara

Areku 01-31-2003 10:23 PM

Working flawlesly on vb2.2.0 ;)

Thanks!

Taco John 02-06-2003 04:05 AM

Quote:

Originally posted by LilTara
I'm having the same problem Taco John was having in Post 32... can anyone help me?

Thanks in advance...
Tara


Go to your vBulleting options.

Find the option: "Time limit on editing of thread title"

Change that to something like 20000000000

You should have no problems editing the topic icons now...

Taco John 02-06-2003 04:06 AM

Ok... Now for my problem.... ;)


I really love this hack, but there is a slight problem that I have. I am ready to add new icons to it, however, there is no way to organize them. Is there anything that can be done to alphebetize the list? Otherwise, it'll just turn into a huge mess that nobody will use...

I appreciate any help.

Thanks,
TJ


All times are GMT. The time now is 04:46 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.01186 seconds
  • Memory Usage 1,808KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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