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)

Starkiller 08-03-2005 07:31 PM

Quote:

Originally Posted by Pseudomizer
Please check if you have this in your template:

$new_smilies


Cheers,

PHP Code:

</head>
<
body style="margin:0px" onload="self.focus()">

$new_smilies
<form action="misc.php" method="get"

I'm using version 3.0.8 if that makes a difference.

Pseudomizer 08-03-2005 10:03 PM

Quote:

Originally Posted by Starkiller
PHP Code:

</head>
<
body style="margin:0px" onload="self.focus()">

$new_smilies
<form action="misc.php" method="get"

I'm using version 3.0.8 if that makes a difference.

I am running 3.0.7 and the hack installation is really not difficult. So it's either you placed it in the wrong place or 3.0.8 is doing something different.

Anyone else using 3.0.8 with any problem or without?

Cheers,

SlipNslide281 08-04-2005 06:54 PM

Im running 3.0.8 and it works fine. Nice hack. I like it.

Pseudomizer 08-04-2005 08:44 PM

Quote:

Originally Posted by SlipNslide281
Im running 3.0.8 and it works fine. Nice hack. I like it.

Thanks for the feedback. So it has nothing to do with 3.0.8. Please check again Starkiller if you missed anything or you did something wrong.

Cheers,

Starkiller 08-05-2005 03:05 PM

I'm pretty sure I installed it right. I can show you the misc.php file if you'd like.

Maybe this is the problem. My site just uses the basic title/body thing instead of either of the editors. The pop-up I'm talking about is the link in the lower left of the forums/threads:
Quote:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Karri 08-05-2005 03:33 PM

Any plans to update this for 3.5?

Thanks!!!

Pseudomizer 08-05-2005 08:46 PM

Quote:

Originally Posted by Starkiller
I'm pretty sure I installed it right. I can show you the misc.php file if you'd like.

Maybe this is the problem. My site just uses the basic title/body thing instead of either of the editors. The pop-up I'm talking about is the link in the lower left of the forums/threads:

Hello Starkiller,

lower LEFT? No way. When you create or answer with a posting then you have the editor and on the right side you have some smilies where you can choose from. Below these smilies you have a link called "More smilies". If you click on this link then you should get the smilie page with the categories.

Hope this helps.

Cheers,

Pseudomizer 08-05-2005 08:46 PM

Quote:

Originally Posted by Karri
Any plans to update this for 3.5?

Thanks!!!

Hello Karri,

yes, this hack will be ported to 3.5 later on.

Cheers,

Starkiller 08-05-2005 09:06 PM

Quote:

Originally Posted by Pseudomizer
Hello Starkiller,

lower LEFT? No way. When you create or answer with a posting then you have the editor and on the right side you have some smilies where you can choose from. Below these smilies you have a link called "More smilies". If you click on this link then you should get the smilie page with the categories.

Hope this helps.

Cheers,

My site doesn't use the editor. When you go to post all you see is two boxes: Title and Message.

What I'm talking about is in the bottom left of every forum, thread, and posting window. It's the posting rules and if you click on the word smilies you get a pop-up. Example. That's what I want to categorize.

Pseudomizer 08-15-2005 06:30 AM

Quote:

Originally Posted by Starkiller
My site doesn't use the editor. When you go to post all you see is two boxes: Title and Message.

What I'm talking about is in the bottom left of every forum, thread, and posting window. It's the posting rules and if you click on the word smilies you get a pop-up. Example. That's what I want to categorize.

Hello Starkiller,

I do not know what you did but it should work on your site. It works on every other site. I have no idea what you did wrong especially because the install instructions are very short and you can not do much errors during the install/modifications.

Cheers,

Starkiller 08-15-2005 06:39 AM

Quote:

Originally Posted by Pseudomizer
Hello Starkiller,

I do not know what you did but it should work on your site. It works on every other site. I have no idea what you did wrong especially because the install instructions are very short and you can not do much errors during the install/modifications.

Cheers,

It's not my installation it's your code. You categorized the getsmilies function used by the editor but not showsmilies one used for the posting rules. I fixed it last night by commenting out the old showsmilies and pasting in your code only renaming it. Works fine now. Sorry I hadn't gotten around to posting back on this thread to tell you I'd fixed it.

Pseudomizer 08-15-2005 06:46 AM

Quote:

Originally Posted by Starkiller
It's not my installation it's your code. You categorized the getsmilies function used by the editor but not showsmilies one used for the posting rules. I fixed it last night by commenting out the old showsmilies and pasting in your code only renaming it. Works fine now. Sorry I hadn't gotten around to posting back on this thread to tell you I'd fixed it.

Could you please post your changes then into this thread so I can integrate this later into my VBulletin 3.5?

Thanks in advance.

Cheers,

GoTTi 08-22-2005 01:28 AM

is there a way we can have random smilies being shown? for some reason im only showing 1 category.

GoTTi 08-22-2005 01:29 AM

im using this with 308 btw. works perfect. i would like random smilies though, like i mentioned aboved....

Starkiller 08-23-2005 01:48 AM

Quote:

Originally Posted by Pseudomizer
Could you please post your changes then into this thread so I can integrate this later into my VBulletin 3.5?

Thanks in advance.

Cheers,

Change:
PHP Code:

// ############################### start show smilies ###############################
if ($_REQUEST['do'] == 'showsmilies')
{

    
$smiliebits '';

    
$smilies $DB_site->query("
        SELECT smilietext,smiliepath,smilie.title,imagecategory.title AS category
        FROM " 
TABLE_PREFIX "smilie AS smilie
        LEFT JOIN " 
TABLE_PREFIX "imagecategory AS imagecategory USING(imagecategoryid)
        ORDER BY imagecategory.displayorder, smilie.displayorder
    "
);

    while (
$smilie $DB_site->fetch_array($smilies))
    {
        if (
$smilie['category'] != $lastcat)
        {
            eval(
'$smiliebits .= "' fetch_template('help_smilies_category') . '";');
        }
        
exec_switch_bg();
        eval(
'$smiliebits .= "' fetch_template('help_smilies_smilie') . '";');
        
$lastcat $smilie['category'];
    }

    
$navbits construct_navbits(array(
        
"faq.php?$session[sessionurl]=> $vbphrase['faq'],
        
'' => $vbphrase['smilie_list']
    ));

    eval(
'$navbar = "' fetch_template('navbar') . '";');

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


to:
PHP Code:

// ############################### start show smilies ###############################
if ($_REQUEST['do'] == 'showsmilies')
{
    
globalize($_REQUEST, array('wysiwyg' => INT'getsmilies' => STR_NOHTML));

    
$show['wysiwyg'] = $wysiwyg;

    
$smilies $DB_site->query("
        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, smilie.displayorder
    "
);

    
$smcache = array();
    while (
$smilie $DB_site->fetch_array($smilies))
    {
        
$smcache["$smilie[category]"][] = $smilie;
        
//echo $smilie[category];
    
}

    
$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>";

    
$popup_smiliesbits '';
    
$bits = array();
    
exec_switch_bg();
    foreach (
$smcache AS $category => $smilies)
    {
      if ( 
$category == $select_category )
      {
        if (
sizeof($bits) == 1)
        {
            eval(
'$smiliecells = "' fetch_template('smiliepopup_straggler') . '";');
            eval(
'$smiliebits .= "' fetch_template('smiliepopup_row') . '";');
        }
        
// eval('$smiliebits .= "' . fetch_template('smiliepopup_category') . '";');
        
$bits = array();
        foreach (
$smilies AS $smilie)
        {
            
$smilie['js'] = addslashes($smilie['text']);
            eval(
'$bits[] = "' fetch_template('smiliepopup_smilie') . '";');
            if (
sizeof($bits) == 2)
            {
                
exec_switch_bg();
                
$smiliecells implode(''$bits);
                eval(
'$smiliebits .= "' fetch_template('smiliepopup_row') . '";');
                
$bits = array();
            }
        }
       }
       else
       {
           
//do nothing
       
}
    }
    if (
sizeof($bits) == 1)
    {
        eval(
'$smiliecells = "' fetch_template('smiliepopup_straggler') . '";');
        eval(
'$smiliebits .= "' fetch_template('smiliepopup_row') . '";');
    }

    unset(
$shutdownqueries['pmpopup']);
    eval(
'print_output("' fetch_template('smiliepopup') . '");');

}

/*if ($_REQUEST['do'] == 'showsmilies')
{

    $smiliebits = '';

    $smilies = $DB_site->query("
        SELECT smilietext,smiliepath,smilie.title,imagecategory.title AS category
        FROM " . TABLE_PREFIX . "smilie AS smilie
        LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)
        ORDER BY imagecategory.displayorder, smilie.displayorder
    ");

    while ($smilie = $DB_site->fetch_array($smilies))
    {
        if ($smilie['category'] != $lastcat)
        {
            eval('$smiliebits .= "' . fetch_template('help_smilies_category') . '";');
        }
        exec_switch_bg();
        eval('$smiliebits .= "' . fetch_template('help_smilies_smilie') . '";');
        $lastcat = $smilie['category'];
    }

    $navbits = construct_navbits(array(
        "faq.php?$session[sessionurl]" => $vbphrase['faq'],
        '' => $vbphrase['smilie_list']
    ));

    eval('$navbar = "' . fetch_template('navbar') . '";');

    eval('print_output("' . fetch_template('help_smilies') . '");');
}*/ 


amykhar 08-23-2005 01:55 AM

Offer removed.

sinaluna 09-12-2005 04:29 AM

amykhar: I'm unable to find this hack on your forum. Your link to mods takes me to an error page. ???

Quillz 09-12-2005 05:12 PM

Nice hack. I may use it in the future.

Bubble #5 10-03-2005 10:27 PM

Quote:

Originally Posted by amykhar
I have a 3.5 - style one done and posted on my website if anybody needs to get it. it's freely available for those who need it.

Actually it's not. When you click on any of the links you get an error message saying it's "not a public forum". Even when you click on the link to contact you this same error message pops up :(

That's the only reason why we came here looking for a hack like this. Otherwise we would have used yours.

Sinaluna I feel your pain :)

Pseudomizer 10-03-2005 11:28 PM

Hello,

just to make it clear here, that I will release an update for the 3.5 version but due to my current relocation to US (within my company) I will not be able to work on this until November.

So you should expect an update end of November or December 2005!

Cheers,

GoTTi 10-24-2005 08:09 AM

ouch nothing for another month or 2...cmon......

amykhar 10-24-2005 11:04 AM

You're freaking kidding me with that c'mon, right? That is the ultimate height of rudeness. NOBODY here is required to release their code for you. Write the code yourself if you need it so badly. Otherwise, mind your manners.

sinaluna 10-25-2005 04:57 AM

I believe the phrase you used was "freely available". Which wasn't true.

As a way to lure people to your site, it was worse than rude. I won't buy from people who use such dishonest tactics.

My apolgies to Pseudomizer, this doesn't belong on your thread. I will wait for your code and thanks. :)

amykhar 10-30-2005 05:52 PM

Sinaluna - yes, it was true. We were having an upgrade issue the day you tried. However, I have since removed the offer. I am no longer making it available for just anybody at my site. But, my above post was in response to Gotti's post telling the original author to 'cmon.

Lyricsmama 10-31-2005 12:49 PM

Anyone have a code for this yet for 3.5????? My members are freaking out cause we have a BUTT LOAD of smilies

Starkiller 10-31-2005 04:07 PM

Quote:

Originally Posted by Lyricsmama
Anyone have a code for this yet for 3.5????? My members are freaking out cause we have a BUTT LOAD of smilies

Yeah, I should have waited to upgrade.

Anyway here's my rather cumbersome workaround...
http://eldiaonline.net/boards/showth...=5134#poststop

sinaluna 11-02-2005 05:57 PM

Quote:

Originally Posted by amykhar
Sinaluna - yes, it was true. We were having an upgrade issue the day you tried. However, I have since removed the offer. I am no longer making it available for just anybody at my site. But, my above post was in response to Gotti's post telling the original author to 'cmon.

Thanks for the explanation. :)

murrtex 01-22-2006 12:35 PM

yes ??? anybody for update this hack vb 3.5.x????

amykhar 01-26-2006 06:00 PM

I offered the code to the original hack author because I don't have the time to deal with request approvals and such. I don't believe he was interested though.

beebi 01-29-2006 09:43 PM

I have it for 3.5.x

do I have the Permission to Release it? any one kows Pseudomizer?

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 07:43 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.03157 seconds
  • Memory Usage 1,973KB
  • 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
  • (10)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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