vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - Smilie Category (https://vborg.vbsupport.ru/showthread.php?t=107196)

Nathan2006 03-24-2006 02:17 AM

This is great!

Thank you beebi

This will make things a lot faster now:D loads of smiles - Lot less time to load :)

Install

ForeverForums 03-26-2006 07:19 AM

id love to have something like this for post icons.

sinaluna 04-08-2006 09:13 PM

Quote:

Originally Posted by rwoelich
Also, it appears that by default all the smilies show when you first load the smilie popup. The reason I was looking for this mod was so the smilies could be displayed by category and the popup wouldn't take forever to load because we have nearly 1000 smilies installed. If you want to set one single category to show when the smilie popup is first loaded (then the user can use the dropdown to pick another category), you can edit the plugin that was installed...

Find this bit of code in the plugin from your Plugin Manager:
PHP Code:

if (!$_REQUEST['select_category'])
        {
                
$select_category $new_categories[0];
        } 

...and replace it with:
PHP Code:

if (!$_REQUEST['select_category'])
        {
                
$select_category 'categoryname';
        } 

...where categoryname is the name of the category you want to load by default.

;)

Beautiful! This was my only problem with the hack. Thanks so much!

blacklancer 04-10-2006 07:07 PM

i am getting the following error:

Parse error: syntax error, unexpected '<' in ......\Forum\misc.php(488) : eval()'d code on line 1

any ideas??

akanevsky 04-10-2006 09:08 PM

I believe vBulletin 3.5.x has Smilie Categories by default?

Stoebi 04-12-2006 10:06 PM

Quote:

Originally Posted by Psionic Vision
I believe vBulletin 3.5.x has Smilie Categories by default?

Yes, but i like to select a certain smilie category via popup and select the smilie i need.
Hate to scroll down (2000 Smilies). ;-)

Can i select which smilie category should be visible for certain forums? I miss it so much.


Regards, Stoebi

Karri 05-11-2006 06:53 PM

This hack seems to have a small bug. It only shows even numbers of smilies per category. It looks like the bit
PHP Code:

else
       {
           
//do nothing
       
}
    }
    if (
sizeof($bits) == 1)
    {
        eval(
'$smiliecells = "' fetch_template('smiliepopup_straggler') . '";');
        eval(
'$smiliebits .= "' fetch_template('smiliepopup_row') . '";');
    } 

from the original hack that this was ported from was left out. I replaced the last } in the plugin with that bit of code and now I have odd number of smiles showing again.

Stop 05-15-2006 08:36 AM

Installed and works fine.
Thanks beebi.

emtee 07-10-2006 09:19 PM

Thanks a lot beebi for this hack! :D

There are 2 minor bug in this hack though:

1) If the category name has apostrophy ('), the category won't be shown.
2) If the category has odd number of smilies, the last smilie won't be shown.

Karri,

Can you upload your plugin with the changes so odd number of smilies will be shown also? I tried to make the changes you mention but it won't work. I don't know why???

Karri 07-10-2006 11:42 PM

Try this, it has the odd numbers showing on my board.


All times are GMT. The time now is 11:11 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.01199 seconds
  • Memory Usage 1,744KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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