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
  #152  
Old 01-29-2006, 10:00 PM
Ghanem's Avatar
Ghanem Ghanem is offline
 
Join Date: Aug 2004
Location: Bahrain
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by beebi
I have it for 3.5.x

do I have the Permission to Release it? any one kows Pseudomizer?
PM him
Reply With Quote
  #153  
Old 01-29-2006, 10:45 PM
murrtex murrtex is offline
 
Join Date: May 2002
Location: izmir
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the vb 3.0.1 to Pseudomizer but he doesn't monopolize for the vb 3.5.x.
I think beebi should release by easily.
what do you think amykhar

Thanks beebi,we are waiting good news...
Reply With Quote
  #154  
Old 01-31-2006, 03:26 PM
beebi beebi is offline
 
Join Date: Aug 2005
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any new news?
Reply With Quote
  #155  
Old 01-31-2006, 05:39 PM
SpiderFive SpiderFive is offline
 
Join Date: Jan 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello this is a workarround for the Problem..
There ist a one problem you must use drag and drop bei using the smilies.
I hope of a new release ..., or help of one of the cracks

3 changes
1 file
2 templates

Edit the misc.php in your forum root

change the whole code of the this section

PHP Code:
// ############################### Popup Smilies for vbCode ################
.... 
with this

PHP Code:
// ############################### Popup Smilies for vbCode ################
if ($_REQUEST['do'] == 'getsmilies')
{
    
$editorid $vbulletin->input->clean_gpc('r''editorid'TYPE_NOHTML);

    (
$hook vBulletinHook::fetch_hook('misc_smiliespopup_start')) ? eval($hook) : false;

    
$smilies $db->query_read("
        SELECT smilietext AS text, smiliepath AS path, smilie.title, smilieid,
            imagecategory.title AS category
        FROM " 
TABLE_PREFIX "smilie AS smilie
        LEFT JOIN " 
TABLE_PREFIX "imagecategory AS imagecategory USING(imagecategoryid)
        ORDER BY imagecategory.displayorder, imagecategory.title, smilie.displayorder
    "
);

    
$smcache = array();
    while (
$smilie $db->fetch_array($smilies))
    {
        
$smcache["{$smilie['category']}"][] = $smilie;
    }
    
//##### start of the hack ##################
    
$i "0"
    foreach (
$smcache AS $category => $smilies
    { 
        
$new_categories[$i] = $category
        
$i++; 
    } 

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

    
$new_smilies .= "<form name=\"smilieform\" action=\"misc.php\">"
    
$new_smilies .= "<input type=\"hidden\" name=\"do\" value=\"getsmilies\">"
    
$new_smilies .= "<input type=\"hidden\" name=\"wysiwyg\" value=\"$wysiwyg\">"
    
$new_smilies .= "<select name=\"select_category\" size=\"1\"><option value=\"\">Click to select"

    foreach (
$new_categories AS $input
    { 
        
$add_select .= "<option value=\"".$input."\">$input"
    } 

    
$new_smilies .= $add_select

    
$new_smilies .= "</select><input type=\"submit\" value=\"Go!\"\"></form></center>"

    
$new_smilies .= "<BR><Font face=\"arial,helvetica\">".$select_category."<BR><BR></Font>";
    
    
//##### end of the hack ##################

    
$popup_smiliesbits '';
    
$bits = array();
    
exec_switch_bg();
    foreach (
$smcache AS $category => $smilies)
    {
         
//#### start of added supplements to the program code ####
        
if ($category == $select_category)
        {
        
//#### end of added supplements to the program code ####
        
if (sizeof($bits) == 1)
        {
            eval(
'$smiliecells = "' fetch_template('smiliepopup_straggler') . '";');
            eval(
'$smiliebits .= "' fetch_template('smiliepopup_row') . '";');
        }

        (
$hook vBulletinHook::fetch_hook('misc_smiliespopup_category')) ? eval($hook) : false;

        eval(
'$smiliebits .= "' fetch_template('smiliepopup_category') . '";');
        
$bits = array();
        foreach (
$smilies AS $smilie)
        {
            (
$hook vBulletinHook::fetch_hook('misc_smiliespopup_smilie')) ? eval($hook) : false;

            
$smilie['js'] = addslashes_js($smilie['text']);
            
$smiliehtml "<img src=\"$smilie[path]\" id=\"smilie_$smilie[smilieid]\" alt=\"" htmlspecialchars_uni($smilie['text']) . "\" title=\"$smilie[title]\" />";
            eval(
'$bits[] = "' fetch_template('smiliepopup_smilie') . '";');
            if (
sizeof($bits) == 2)
            {
                
exec_switch_bg();
                
$smiliecells implode(''$bits);
                eval(
'$smiliebits .= "' fetch_template('smiliepopup_row') . '";');
                
$bits = array();
            }
        }
        
// #### start of added supplements to the program code ####
        
}
        
// #### end of added supplements to the program code ####
    
}
    if (
sizeof($bits) == 1)
    {
        eval(
'$smiliecells = "' fetch_template('smiliepopup_straggler') . '";');
        eval(
'$smiliebits .= "' fetch_template('smiliepopup_row') . '";');
    }

    (
$hook vBulletinHook::fetch_hook('misc_smiliespopup_complete')) ? eval($hook) : false;

    eval(
'print_output("' fetch_template('smiliepopup') . '");');

}

$vbulletin->input->clean_gpc('r''template'TYPE_NOHTML); 
In Template Forumrules
search

PHP Code:

        
<div><phrase 1="misc.php?$session[sessionurl]do=showsmilies" 2="$smilieson">$vbphrase[smilies_are_x]</phrase></div
an change ist with this code

PHP Code:
 
        
<div><phrase 1="misc.php?$session[sessionurl]do=getsmilies&wysiwyg=1" 2="$smilieson">$vbphrase[smilies_are_x]</phrase></div

In Template smiliepopup

Search and add under this
PHP Code:
$headinclude
</head>
<
body style="margin:0px" onload="self.focus()"
add:
PHP Code:
$new_smilies 
Reply With Quote
  #156  
Old 01-31-2006, 09:49 PM
SpiderFive SpiderFive is offline
 
Join Date: Jan 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CallieJo2
Is that workaround for 3.5.3?


Also, what do you mean by drag and drop problem?

Thanks BUNCHES!
yes this is for 3.5.3

I mean yu can not use the simple way to put the smilie in the messagebox with one click, yuo must use drag and drop
Reply With Quote
  #157  
Old 02-01-2006, 12:26 PM
beebi beebi is offline
 
Join Date: Aug 2005
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok this is it :disappointed:
Reply With Quote
  #158  
Old 02-01-2006, 02:55 PM
CallieJo's Avatar
CallieJo CallieJo is offline
 
Join Date: May 2004
Location: Snowville
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by beebi
ok this is it :disappointed:
This works brilliantly...just need to change the one saying in the plugin for the pulldown menu...it's in another language...but I changed it to say something like "choose a category".

Thank you BUNCHES for sending this to me! You rock! Now all my smilies work in IE and not just FF...

Psst...send me a PayPal addy in a pm and I'll send you a thank you
Reply With Quote
  #159  
Old 02-05-2006, 02:56 PM
murrtex murrtex is offline
 
Join Date: May 2002
Location: izmir
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you beebi. u r great.
Reply With Quote
  #160  
Old 02-12-2006, 04:58 AM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by murrtex
thanks for the vb 3.0.1 to Pseudomizer but he doesn't monopolize for the vb 3.5.x.
I think beebi should release by easily.
what do you think amykhar

Thanks beebi,we are waiting good news...
Interesting what people say when they need something. Tzzzzzzzzz.

You have the update now from Beebi.

Regards,
Reply With Quote
  #161  
Old 02-12-2006, 09:01 AM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pseudomizer
Interesting what people say when they need something. Tzzzzzzzzz.

You have the update now from Beebi.

Regards,
Thanks for the original hack though I remember when I requested it

Anyways I believe this should be default of vbulletin don't know why it isn't even now
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:38 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.05529 seconds
  • Memory Usage 2,364KB
  • 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
  • (6)bbcode_php
  • (5)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
  • (3)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