PDA

View Full Version : Mini Mods - Smilie Category


beebi
02-04-2006, 10:00 PM
Smilie Category

This is a port of this hack (https://vborg.vbsupport.ru/showthread.php?t=65394), posted with the original author (https://vborg.vbsupport.ru/member.php?u=8038) permission

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

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 2 minutes and is very easy. But please remember that you need to have at least 2 categories created with your smiliemanager in your ACP.

Details
1 Plugin XML
1 Template Edit

Installation
1.Import The Plugin .
2- In Template smiliepopup

FIND
<form action="misc.php" method="get">
ABOVE that ADD
$new_smilies

Do you like it?
So click install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=107196)

Ghanem
02-05-2006, 12:02 PM
Thank you beebi, but I will wait untill the spaces issue solved :)

By the way.. does it support arabic characters..

Regards

beebi
02-05-2006, 12:17 PM
yes just open vbulletin-plugins-smilie-category.xml
find
Choose a Category

replace it with what you want

Ghanem
02-05-2006, 12:33 PM
Choose a CategoryI meant the categories them self..
like in your example:
MSN
Smilies
WelcomeSmilies

would it accept:
ضحك
بكاء
غضب

Regards

beebi
02-05-2006, 12:58 PM
yes it's well be acceptable

projectego
02-05-2006, 01:07 PM
Looks like a sweet hack. Nice work. :)
* projectego clicks install

sinoeu
02-05-2006, 01:14 PM
Wonderful idea! But can we define seperately the number of displayed smilies in the popup window for each category? Because the smilies of different categories often have different sizes...

beebi
02-05-2006, 01:20 PM
spaces issue solved

beebi
02-05-2006, 01:37 PM
Wonderful idea! But can we define seperately the number of displayed smilies in the popup window for each category? Because the smilies of different categories often have different sizes...

I'll try to make it viewing 10 Smilie
with adding a button when you click on it you'll go to the next 10 Smilie
how is that

sinoeu
02-05-2006, 01:58 PM
I'll try to make it viewing 10 Smilie
with adding a button when you click on it you'll go to the next 10 Smilie
how is that

The button idea is pretty good, but in my case the smilies of one caterogy are too large to list 10 while the smilies of another caterogy are so tiny that 10 is not enough...

And it will be perfect if you make the category chose into the default window not the popup, as today we are in a world of anti-popup envirenment :nervous:

Ziki
02-05-2006, 02:18 PM
Awsome!This will make all easier
~Ziki clicks install~

Snake
02-05-2006, 03:02 PM
Thank you!

Gizmo5h1t3
02-05-2006, 03:31 PM
yep, nice addition here....good work!!

beebi
02-05-2006, 04:12 PM
The button idea is pretty good, but in my case the smilies of one caterogy are too large to list 10 while the smilies of another caterogy are so tiny that 10 is not enough...

And it will be perfect if you make the category chose into the default window not the popup, as today we are in a world of anti-popup envirenment :nervous:

thats will be hard

and you can chose more than 10
it's just a number ;)

and The button idea

I don't think that I can do it without modifying the vb code

murrtex
02-05-2006, 06:39 PM
installed thanks beebi.

Omranic
02-05-2006, 07:08 PM
That Sounds Great
I used to port it to 3.5 but when I heared that you have it ported I stoped & have a wait till you get permision & release it

very thanks to you beebi & Pseudomizer

Gripemaster
02-05-2006, 07:40 PM
Since I have over 500 smilies on my forum, I really really love this hack. Thank you! *Clicks Install* :)

Omranic
02-05-2006, 08:11 PM
tested
installed
well done

beebi
02-05-2006, 09:57 PM
thx to all of u

Alrasam
02-05-2006, 11:33 PM
very nice my dear beebi

good luckhttps://vborg.vbsupport.ru/

Developer
02-06-2006, 12:34 AM
thnx for this such a great hack
الف شكر يا ابو سعد هاك رائع بمعنى الكلمة

amizone143
02-06-2006, 02:25 AM
clicked install works like cool thanks bro :ermm:

dano
02-06-2006, 05:04 PM
Thank You!

islelove
02-06-2006, 05:29 PM
Thanks beebi
Installed without any problem.

beebi
02-06-2006, 08:03 PM
Do you have a donate link?
I really needed this badly and you got it out and sent it to me right away...therefore, I appreciate it bunches and wanted to send you a little something something.

do I
it's free for all

SaN-DeeP
02-27-2006, 02:55 PM
works like a charm, thanks :)

CoreIssue
03-05-2006, 04:26 PM
Sweet! Installed.

CoreIssue
03-09-2006, 05:53 PM
Is there any way to adapt the category hack to the the shoutbox? The random smilie display is not popular.

https://vborg.vbsupport.ru/showthread.php?threadid=93097

Ziki
03-13-2006, 05:02 PM
I have to uninstall it :(

rwoelich
03-13-2006, 07:16 PM
Nice! I was about to make one of these but upon finding this one there's no need. ;)

This is just personal preference, but the dropdown looks a little neater if you place it into your table header. An image is attached so you can see what I mean. So instead of adding the $new_smilies before the <form action="misc.php" method="get"> when you do the template edit, try this instead...

Find:
<td class="tcat" colspan="4">
$vbphrase[smilie_list]
<div class="smallfont">$vbphrase[click_a_smilie_to_insert_it_into_your_message]</div>

And replace it with:
<td class="tcat" align="center" width="25%">$new_smilies</td>
<td class="tcat" colspan="3">
$vbphrase[smilie_list]
<div class="smallfont">$vbphrase[click_a_smilie_to_insert_it_into_your_message]</div>

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:
if (!$_REQUEST['select_category'])
{
$select_category = $new_categories[0];
}

...and replace it with:
if (!$_REQUEST['select_category'])
{
$select_category = 'categoryname';
}
...where categoryname is the name of the category you want to load by default.

;)

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
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:
if (!$_REQUEST['select_category'])
{
$select_category = $new_categories[0];
}

...and replace it with:
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
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 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.

emtee
07-11-2006, 01:02 AM
Hmm I did the exact changes as your file and it doesn't work! I delete old plug in and upload yours and it works! Very strange!!!!

Anyways, thanks for uploading, Karri! :D

Karri
07-11-2006, 04:00 PM
you are welcome :)

ashley53680
07-14-2006, 05:52 PM
Thank you for that fix Karri...

I noticed a problem that any category with a "&" won't show. Is there anyway to get around this, I guess I could type out "and". LOL

dillon
07-20-2006, 06:27 PM
Maybe I'm doing something wrong, but I can't get this installed.

vb3.5.4
I try to import the .xml file as a product and it tells me to add it as a plugin.
When I click add new plugin there is no option to select this .xml file.

There is a text box for "Plugin PHP Code ". Do I copy all of the content of the .xml file and paste it here?

Thanks.

Mouse_cats
07-20-2006, 08:29 PM
thanks alot installed and i want to tell you that i have tried this and it preview when u click on (more) but cant u let it be in the new thread template if yes please tell me how because this will be better.

peterska2
07-20-2006, 09:06 PM
Maybe I'm doing something wrong, but I can't get this installed.

vb3.5.4
I try to import the .xml file as a product and it tells me to add it as a plugin.
When I click add new plugin there is no option to select this .xml file.

There is a text box for "Plugin PHP Code ". Do I copy all of the content of the .xml file and paste it here?

Thanks.You need to use the upload/download plugins option, not the add new plugin one. You can then import it exactly the same as you do a product (the import box is right at the very bottom of the page)

dillon
07-28-2006, 12:18 PM
You need to use the upload/download plugins option, not the add new plugin one. You can then import it exactly the same as you do a product (the import box is right at the very bottom of the page)
Awesome, works perfect!

Thanks.

ComputerVitals
08-02-2006, 03:48 AM
Installed on 3.5.4

Works perfect. Thanks a bunch!

Terminatoronly
08-02-2006, 03:12 PM
uninstalled sorry not usefull

Karri
08-02-2006, 04:21 PM
It is actually very useful if you have a large number of smilies. I have hundreds and it would take a few minutes to load them all each time the smilie window was opened if they weren't broken down into smaller categories and only one category displayed at a time.

Darat
08-08-2006, 09:36 AM
I've installed this on a 3.6 forum and it works fine.

nix
08-09-2006, 01:10 AM
I've installed this on a 3.6 forum and it works fine.
Great news. Going to try it on mine.

Ascor
08-23-2006, 06:30 AM
installed on 3.6, works fine, thank you :)

outlaw621
08-24-2006, 01:55 AM
Installed on 3.6 and working.

UncoderMom
08-24-2006, 12:55 PM
I love this hack!! but I also have my smilies moved from the side to underneath. Is there any way to display this in the QR or where it says "more"?? My users cant find them. My some of my members have been thre for 2 months and are like.."where are the smilies?" lol.

This would be the GREATest in QR or "more"!!! Any ideas? I tryed toying with it but im not a coder and it wasnt enough to just place the
$new_smilies conditional [/noob]

Darat
08-24-2006, 01:14 PM
I love this hack!! but I also have my smilies moved from the side to underneath. Is there any way to display this in the QR or where it says "more"?? My users cant find them. My some of my members have been thre for 2 months and are like.."where are the smilies?" lol.

This would be the GREATest in QR or "more"!!! Any ideas? I tryed toying with it but im not a coder and it wasnt enough to just place the
$new_smilies conditional [/noob]


I just added a button to the quickreply toolbar, I don't know if I found it on here or what but this is it:



Find:


<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>

Add:
<if condition="$show['editor_toolbar']">
<td><a href="#" onclick="vB_Editor['$editorid'].open_smilie_window(smiliewindow_x, smiliewindow_y); return false"><img src="http://forums.randi.org/images/smilies/randi.gif" alt="Smilies" border="0" /></a></td>
</if>


Replace the "http://forums.randi.org/images/smilies/randi.gif" with the location of the button image you want to display.

UncoderMom
08-24-2006, 01:26 PM
I just added a button to the quickreply toolbar, I don't know if I found it on here or what but this is it:



Find:


<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>

Add:
<if condition="$show['editor_toolbar']">
<td><a href="#" onclick="vB_Editor['$editorid'].open_smilie_window(smiliewindow_x, smiliewindow_y); return false"><img src="http://forums.randi.org/images/smilies/randi.gif" alt="Smilies" border="0" /></a></td>
</if>


Replace the "http://forums.randi.org/images/smilies/randi.gif" with the location of the button image you want to display.

Will this display the catagory bar for this hack...or just the default vb catagories?

Darat
08-24-2006, 01:34 PM
It just pops up the smilie category window that clicking on "more" normally does.

UncoderMom
08-25-2006, 01:38 AM
Thanks Darat! This is WAY better then nothing ;) I made my button red..they shouldnt miss it now hehe!

tobybird
09-05-2006, 11:29 AM
This hack seems to have a small bug. It only shows even numbers of smilies per category. It looks like the bit 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.


Karri, Thanks for that! I just noticed the error this morn and that fixed it! :up:

dknelson
09-05-2006, 06:50 PM
Would somebody please explain this? Are we supposed to add the code to the product.xml file?

Karri
09-05-2006, 07:10 PM
Try my version of the plug in from https://vborg.vbsupport.ru/showpost.php?p=1026627&postcount=41 , it already has the change to get the odd numbers to show.

noonespecial
10-01-2006, 10:01 PM
Does this work on 3.6?

DiverTree
10-02-2006, 10:53 PM
Thank you!!! :) 1300+ smilies neatly organized. :cool:

FunaGuy
10-10-2006, 06:09 AM
its working perfect with 3.6

Ev!L ErN!E
10-27-2006, 07:16 AM
INSTALLED!

seems to be working well on 3.6.2

only problem I'm seeing is a delay if you move a smilie from one catigory to another.

snowlion
12-09-2006, 05:46 AM
its working perfect with 3.6.4
thanks

CoreIssue
12-09-2006, 11:08 PM
Never mind. :confused:

Cyricx
02-14-2007, 06:12 PM
Nice! I was about to make one of these but upon finding this one there's no need. ;)

This is just personal preference, but the dropdown looks a little neater if you place it into your table header. An image is attached so you can see what I mean. So instead of adding the $new_smilies before the <form action="misc.php" method="get"> when you do the template edit, try this instead...

Find:
<td class="tcat" colspan="4">
$vbphrase[smilie_list]
<div class="smallfont">$vbphrase[click_a_smilie_to_insert_it_into_your_message]</div>

And replace it with:
<td class="tcat" align="center" width="25%">$new_smilies</td>
<td class="tcat" colspan="3">
$vbphrase[smilie_list]
<div class="smallfont">$vbphrase[click_a_smilie_to_insert_it_into_your_message]</div>

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:
if (!$_REQUEST['select_category'])
{
$select_category = $new_categories[0];
}

...and replace it with:
if (!$_REQUEST['select_category'])
{
$select_category = 'categoryname';
}
...where categoryname is the name of the category you want to load by default.

;)

This hack seems to have a small bug. It only shows even numbers of smilies per category. It looks like the bit 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.


With these two changes, this works great!! :)

Wolfegar
02-19-2007, 11:38 AM
I have this installed and it's working great. There's just a few questions I have, which may or may not actually be related to this mod, but I'd like to know anyway. :rolleyes:

1. The smilies page that opens up after clicking on "more" is very small. What do I have to edit to make that window wider? Let's say, two or three times as wide.

2. Is there a way to get one or two of the categories to only display one column of smilies intead of the double columns?

3. Will there be a supported version of this modification for 3.6.4 that is supported?

Bree
03-13-2007, 01:31 AM
*Installed* Works great, Thankyou!! vB 3.6.5... Always, Bree

Mrs.Winters
05-01-2007, 05:22 PM
OMG! Thank you SO much for this! I only have 3 members as I'm just getting started, but two of them had been complaining of the the window flickering and crashing when they'd click for "MORE" smilies. I am so grateful that I searched and found this mod before I get a bunch opf members having the same problem. Thanks to Karri for the update for odd numbers of smilies. Everything is working GREAT! :D

Aimee1969
05-23-2007, 11:39 PM
Question is there a limit to the number of categories that this will take??

ferocity302
06-29-2007, 03:58 PM
for some reason this hack stopped working.

It shows as insalled and everything looks like it should be working, but the categories are not showing up anymore like they used to.

It worked great for a while but I'm not sure what happened now.

Any help?

ferocity302
06-30-2007, 05:26 PM
Well, that will teach me!!

I will not be installing anything that is not supported any longer.

Uninstalled.

da420
06-30-2007, 05:32 PM
for some reason this hack stopped working.

It shows as insalled and everything looks like it should be working, but the categories are not showing up anymore like they used to.

It worked great for a while but I'm not sure what happened now.

Any help?

If you upgraded, and had to revert your templates you will have to edit your template once again.

kb_mr
07-05-2007, 12:59 PM
thx

Invalid ID
08-07-2007, 08:54 PM
It's really great. But can you make it index the categories automatically?

Scandal
08-08-2007, 11:05 AM
instaaaaaaalled! ;)

Invalid ID
08-13-2007, 04:14 PM
Is this mod still supported?

Invalid ID
08-15-2007, 03:43 AM
Some categories work, some don't

trulylowcarb
08-30-2007, 04:50 AM
Went right into 3.6.8, THANK YOU!!!!!!!
**I also have moved the smiliebox to below as on here and it caused no conflicts, in case anyone wondered.

Tom_S
09-01-2007, 03:58 AM
you have that working with 3.6.8 and no issues?

Tom_S
09-01-2007, 06:22 AM
Yep..with some careful attention to detail and a few adjustments...sure does.

yoyoyoyo
09-11-2007, 01:03 PM
Yep..with some careful attention to detail and a few adjustments...sure does.care to elaborate?

Tom_S
09-11-2007, 03:09 PM
Nothing to elaborate on. Just read the thread and see what others did and pay close attention to what you are doing and make any minor modifications to where you put the code in your setup to suit you to work. Piece of cake ;)

yoyoyoyo
09-12-2007, 12:35 AM
Nothing to elaborate on. Just read the thread and see what others did and pay close attention to what you are doing and make any minor modifications to where you put the code in your setup to suit you to work. Piece of cake ;)Oh, OK, I thought you had something new and innovative to add - I read through the thread and installed it yesterday and it seems to be working fine.

DiverTree
09-21-2007, 08:52 PM
1420 Smilies on vB 3.6.8 ... whoohoo!!!!

princeedward
12-05-2007, 10:49 PM
thanks for this...just found it...and it works without problem to my vB 3.6.8 PL2

;)

Here's What I Did:

Upload Plugin Via:

ACP > Plugins & Products > Download / Upload Plugins > Down Below > Browse > Import

Edit In Template: smiliepopup

Find:
$smiliebits
Below Add:
$new_smilies

Optional To Add Below Smilie Popup:

Find:
<td class="tfoot" colspan="4" align="center"><input type="button" class="button" value="$vbphrase[close_this_window]" onclick="self.close()" /></td>
</tr>
</table>
Below Add:
$new_smilies



73024

atlambros83
12-09-2007, 08:52 PM
*clicks install*

so far so good on my boards...looks like it's running fine on 3.6.8 PL2 for me as well.

boatswife
01-12-2008, 06:13 PM
*clicks install*

It's unbelievable that vb has not fixed the box staying open and it's not like it hasn't been brought to their attention either.

Thank you so much for making this hack! It's so easy and works wonderful in my 3.6.8 PL2 as well.

theparentpack
03-27-2008, 06:47 AM
This hack was working previously and is not currently working on my forums. It is still in my plugin manager list. What am I doing wrong?

http://sonoma.ca.theparentpack.org

DiverTree
05-11-2008, 02:59 PM
This hack was working previously and is not currently working on my forums. It is still in my plugin manager list. What am I doing wrong?

http://sonoma.ca.theparentpack.orgnot sure what you did ... make sure the edit in the smiliepopup template is there and upload it as a plugin, as opposed to a product. :)

this is working on my 3.7.0