vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Smilie Category Hack (https://vborg.vbsupport.ru/showthread.php?t=65394)

Ghanem 01-29-2006 10:00 PM

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 :)

murrtex 01-29-2006 10:45 PM

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

beebi 01-31-2006 03:26 PM

any new news?

SpiderFive 01-31-2006 05:39 PM

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 


SpiderFive 01-31-2006 09:49 PM

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

beebi 02-01-2006 12:26 PM

ok this is it :disappointed:

CallieJo 02-01-2006 02:55 PM

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 ;)

murrtex 02-05-2006 02:56 PM

thank you beebi. u r great.

Pseudomizer 02-12-2006 04:58 AM

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,

msimplay 02-12-2006 09:01 AM

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


All times are GMT. The time now is 10:53 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.01359 seconds
  • Memory Usage 1,799KB
  • 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
  • (6)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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