Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Smilie Category Hack Details »»
Smilie Category Hack
Version: 1.00, by Pseudomizer Pseudomizer is offline
Developer Last Online: Feb 2010 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 05-21-2004 Last Update: 06-09-2004 Installs: 100
 
No support by the author.

Welcome to my first Release of

Smilie Category Hack or How-to-organize VB smilies in a nutshell

This small Hack helps you to organize your smilies in a better and easier way:

How does this work ?

You have to have to create multiple Smilie Categories with your ACP Smilie Manager. This hack will offer you a form select screen in your smilie popup window. So you can now easily choose from different categories.
The integration should take about 5 minutes and is very easy. But please remember that you need to have at least 2 categories created with your smiliemanager in your ACP.

Required actions:

- 1 template change
- 1 php file change

Please click on this install button or on the install button on the upper right corner if you wish to get support for this hack.

Update 1.01
Bug in the WYSIWYG editor fixed.

Enjoy it.

Cheers,

Show Your Support

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

Comments
  #112  
Old 07-09-2005, 06:49 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there anyway to have like a category called "staff smilies", that only admins/mods can access? Any hopes?!!
Reply With Quote
  #113  
Old 07-09-2005, 10:35 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paul41598
is there anyway to have like a category called "staff smilies", that only admins/mods can access? Any hopes?!!
Sure. Just implement for admins something like:

PHP Code:

if ( $bbuserinfo[usergrouid] == "6" )
{
       echo 
"<option bla bla>My Category</option>">

But be aware that other people will be able to use the same smilies as soon as they copy the code from the originals postings. So for me this does not make sense at all. But the solution is above.

Cheers,
Reply With Quote
  #114  
Old 07-09-2005, 11:31 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pseudomizer
Sure. Just implement for admins something like:

PHP Code:

if ( $bbuserinfo[usergrouid] == "6" )
{
       echo 
"<option bla bla>My Category</option>">

But be aware that other people will be able to use the same smilies as soon as they copy the code from the originals postings. So for me this does not make sense at all. But the solution is above.

Cheers,
where do I put that? In a template or in misc.php? Where exactly? Sorry for stupidity.

Love the hack m8, thanks again!
Reply With Quote
  #115  
Old 07-10-2005, 03:57 AM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paul41598
where do I put that? In a template or in misc.php? Where exactly? Sorry for stupidity.

Love the hack m8, thanks again!
Look for this code in the install.html file:

PHP Code:
foreach ($new_categories AS $input)
    {
        
$add_select .= "<option value=\"".$input."\">$input";
    } 
It should look like this:

PHP Code:
foreach ($new_categories AS $input)
    {
                           if ( 
$input == "yourcategoryname" 
                          {
                                if ( 
$bbuserinfo[usergrouid] == "6" )
                                { 
                                
$add_select .= "<option value=\"".$input."\">$input";
                                }
                                else
                                {
                                 
// do nothing
                                
}
                           }
                           else
                           {
        
$add_select .= "<option value=\"".$input."\">$input";
                           }
    } 
And if you want to add more categories then replace this line:

PHP Code:
                           if ( $input == "yourcategoryname" 
with this:

PHP Code:
                           if ( $input == "yourcategoryname" || $input == "secondcategory" 
Cheers,
Reply With Quote
  #116  
Old 07-10-2005, 06:00 AM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

worked perfect, thanks alot man!
Reply With Quote
  #117  
Old 07-11-2005, 01:14 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

small problem/bug:

if you goto the FAQ section of the forums, you can see all the smilies. How can I block access there to the staff smilies?
Reply With Quote
  #118  
Old 07-11-2005, 01:35 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this far, and it doesnt show the staff smilies now, but it be cool, if they would at least show for admins/mods, instead of not at all.

PHP Code:
    while ($smilie $DB_site->fetch_array($smilies))
    {

                      if ( 
$smilie['category'] == "TCW Staff Smilies" )
                          {
                                if ( 
$bbuserinfo[usergroupid] != "6" || $bbuserinfo[usergroupid] != "7")
                                {
                                
//eval('$smiliebits .= "' . fetch_template('help_smilies_category') . '";');
                                
}
                else {
            
            }
                           }

        else {

        if (
$smilie['category'] != $lastcat)
        {
            eval(
'$smiliebits .= "' fetch_template('help_smilies_category') . '";');
        }
        
exec_switch_bg();
        eval(
'$smiliebits .= "' fetch_template('help_smilies_smilie') . '";');
        
$lastcat $smilie['category'];
    }

            } 
N/M Figured It Out !!!
Reply With Quote
  #119  
Old 07-28-2005, 06:25 PM
98EXL 98EXL is offline
 
Join Date: Sep 2004
Location: Maryland, USA!
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is cool, I always wanted to separate the 'naughty' smilies
Reply With Quote
  #120  
Old 08-03-2005, 07:13 PM
Starkiller Starkiller is offline
 
Join Date: Jun 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First hack I ever installed.

I modified misc.php and FTPed it back up to my server and went in to ACP and modified the template. And I have two smilie categories defined.

But nothing seems to have changed.

http://eldiaonline.net/boards/misc.php?do=showsmilies

Still show all the smilies at once.

Any help would be greatly appreciated. Thanks.
Reply With Quote
  #121  
Old 08-03-2005, 07:27 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Starkiller
First hack I ever installed.

I modified misc.php and FTPed it back up to my server and went in to ACP and modified the template. And I have two smilie categories defined.

But nothing seems to have changed.

http://eldiaonline.net/boards/misc.php?do=showsmilies

Still show all the smilies at once.

Any help would be greatly appreciated. Thanks.
Please check if you have this in your template:

$new_smilies


Cheers,
Reply With Quote
Reply


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 11:53 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.11764 seconds
  • Memory Usage 2,341KB
  • 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
  • (7)bbcode_php
  • (4)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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