PDA

View Full Version : Major Additions - MySmilies vB (v4.x)


Eric
05-25-2011, 10:00 PM
Please click Mark as Installed if you are using this hack, and Nominate For MOTM or Support Developer if you enjoy this hack and would like to support it's development.


Please read the entire thread before posting your problem, chances are it's been fixed.

Those who have "Mark As Installed" will receive priority support

Also, NOTE - this is in BETA.


NOTE: I have marked this hack as Re-usable Code - This means that code from this hack may be used in other hacks, which can ONLY be released on official vB sites that use Jelsoft's verification system to verify your vBulletin license status, and as long as Kentaurus, Mosh, and I (SecondV) are credited in your hack.

This is a port of MySmilies vB for v3.8x which was a port of Mosh's MySmilies VB for v3.7.x.
Mosh's was a port of Kentaurus's MySmilies VB for v3.6.x (version 1.03) to work with vBulletin v3.7.0.


vBulletin Version Compatibility & Permission Info

This hack was tested on vB 4.1.4 - and will only work with this version and later versions

Permission for me to port his hack is granted here:

Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.

And here:
NOTE: I have marked this hack as Re-usable Code - This means that code from this hack may be used in other hacks, which can ONLY be released on official vB sites that use Jelsoft's verification system to verify your vBulletin license status, and as long as Kentaurus and I are credited in your hack.



What Does This Hack Do?

This hack puts the control of the smilies on the users. It lets any user (that you give permission to) upload or modify the smilies that he can use.

These are not the smilies that vb uses, these are user-customized smilies. The smilies that you already have in place are preserved and are still used. But users may upload their own smilies for their use, and they are kept separate from the standard forum smilies.

For users:

Users can keep a library of their own smilies (they can upload them from their computer or web)
Users enter their replacement text, for example, :iamhappy: would be changed to their own user happy smilie
The custom smilies are parsed in any post, signature, or pm
If they have enabled the WYSIWYG editor, smilies are shown there


For administrators:

Usergroup control of who may upload custom smilies
Usergroup control of the size (width, height, size in bytes) of the smilie
Smilie quota, both for max number of smilies and max number of bytes or hard disk space
The administrator can choose where to save the smilies (the directory, default: mysmiliesvb)
Auto-template Injection - if the appropriate template hooks are available, you will not need to make any template edits at all, if edits needed you only need to paste a single variable where you need it




Installation Instructions

See the included Installation Instructions.txt file in the sv_mysmiliesvb.zip zip file.

ADDITIONAL NOTE:
A limitation exists with the fix that rectifies the problem of attachments showing when also posting them inline within the same post; when applied, all attachments will need to be displayed inline, if they have not been, then the ones that have not been posted inline will be hidden along with the ones that have been posted inline. Read Post #106 for more information on this. -- I'm working on this



Uninstall Instructions


Delete mysmiliesvb.php from your forum's root directory.
Delete the mysmiliesvb directory from your forum's root directory.
Delete class_dm_mysmiliesvb.php from your forum's /includes directory.
Delete bitfield_mysmiliesvb.xml from your forum's /includes/xml directory.
Delete delete.gif from your forum's /images/misc directory (if more than one style remember to delete it from all misc directories).
Optional Step: This step is only if the auto template injection does not work, and you did the optional template edits.

In the USERCP_SHELL template, find and delete:
{vb:raw mysmilie_usercp}
In the navbar template, find and delete:
{vb:raw mysmilie_navbar}
Uninstall the product in vB using the AdminCP Product Manager.




To Do List

Features are being done in the order that they appear on the list.

Admin Control Panel utility to view/delete one, some or all custom smilies
Add custom user smilies to the misc.php?do=showsmilies page and to the "More Smilies" popup.




Version History
v4.0.002 - July 5th, 2011
-- Fixed: Error in delete template, incomplete vB parser tag.
-- Changed: Now requires users to enter a unique replacement text.
-- Added: Option to pull all user smilies for the editor or just the current user id's smilies.
-- Removed: eval() calls when throwing an error (standard_error / fetch_error)

v4.0.001 - May 26th, 2011
-- Updated for vB4

v3.8.004 - January 15th, 2010
-- Changed: query() calls were being used instead of query_read()
-- Changed: Smilies are now built and added to datastore cache
-- Changed: Since smilies are stored in the datastore, smilies are no longer queried/parsed by userid.
-- Fixed: Custom smilies not parsed when quoted by other users.
-- Added: /includes/functions_mysmiliesvb.php - build_mysmilies_datastore() function.

v3.8.003 - August 5th, 2009
-- Fixed: Ok, should finally be fixed on upgrade - no more parse errors.
-- Fixed: Those upgrading from Mosh's version should be fine now.

v3.8.002 - August 4th, 2009
-- Fixed: errors when upgrading from previous versions of MySMilies should be fixed.

v3.8.001 - August 4th, 2009
-- Initial v3.8.0 release - mod taken over by Eric Sizemore (SecondV)
-- Fixed: standard_error calls were not using eval() as they should be
-- Fixed: Some queries were not using TABLE_PREFIX
-- Fixed: Even though phrases were in place, some parts of the mod used hardcoded langauge strings.
-- Fixed: Some errors in templates, missing ending tags, etc.
-- Fixed: Upload - the upload source didn't appear to be detected properly.
-- Changed: "maxversion" in the product XML increased.
-- Changed: "hard delete" option no longer on by default.
-- Changed: The "mysmiliesvb" table was altered to have KEY's on the "userid" and "dateline" columns. Hopefully this will increase performance/smilie lookups.



Thanks

My thanks go out to Kentaurus (who originally created this fantastic hack), Mosh who updated the hack to v3.7, and Paul M who gave permission to use some of his install code.



Show Your Appreciation

Although not required, if you have enjoyed the benefits of this hack, and would like to show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate. This would go a long way in encouraging me to continue to develop this project, as I'm currently unemployed.

Eric
05-26-2011, 06:51 PM
Reserved.

Sayid
05-26-2011, 08:14 PM
Happy to see it ported. Nominated and tagged

Juggernaut
05-27-2011, 12:25 AM
Tagged until 4.1.4 is released. :D

Alan_SP
05-27-2011, 02:06 AM
This hack puts the control of the smilies on the users. It lets any user (that you give permission to) upload or modify the smilies that he can use.

Is it possible to make some smilies from user common, so other users can use them too?

angeljs
05-27-2011, 05:15 AM
Tagged until 4.1.4 is released. :D
Ditto :)

New Joe
05-27-2011, 05:29 AM
So we have to wait till vB 4.1.4 before we can use this?

just.b.jealous
05-27-2011, 06:33 AM
This hack was tested on vB 4.1.4 - and will only work with this version and later versions

Is there such a thing, vB 4.1.4? I'm using 4.1.3 and I have this installed and everything is fine except for when I try to go into a thread I keep getting this error;

Any showthread.php page;
http://localhost/showthread.php?7-Test355

will produce this error;

Fatal error: Call to a member function addSmilie() on a non-object in C:\xampp\htdocs\includes\functions_editor.php(658) : eval()'d code on line 12



Anyone have any idea how to fix it or has gotten this work on their version of 4.1.3?

Eric
05-27-2011, 06:40 AM
As mentioned in the first post... this will not work in versions less than 4.1.4 as it only works with CKEditor. 4.1.4 is currently in beta available for download in your members area @ vbulletin.com if you have a current license.

just.b.jealous
05-27-2011, 06:44 AM
As mentioned in the first post... this will not work in versions less than 4.1.4 as it only works with CKEditor. 4.1.4 is currently in beta available for download in your members area @ vbulletin.com if you have a current license.

Oh you mean the buggy beta version? Is there any way to get it working for 4.1.3?

Eric
05-27-2011, 06:55 AM
I tried previously to get it to work in versions prior to 4.1.4, but it would never work right. I may try again over the next few days, but as of right now... it only works with 4.1.4+

EDIT: btw, did you edit the product xml to install it on 4.1.3? because if not, it should have never installed for you.

S3Ponline
05-28-2011, 02:10 PM
I would love this for 4.1.3

Not sure if I want to upgrade to 4.1.4 O.O

I hope you’re a genius and can get it working.

8thos
05-29-2011, 03:16 AM
smh @ having to wait.

Eric
05-31-2011, 09:47 PM
smh @ having to wait.
? I could have not released this at all. I could have said "screw you, I will not look into a version for 4.1.3!".

If you have access for 4.1.3, you have access to 4.1.4. I will try to get this working for 4.1.3, but no promises.

I just ask that folks be patient. I am releasing all of my mods for free, when I am unemployed and freelancing/vbulletin work is my only income. So just be glad you get them at all, tbh :)

Alan_SP
05-31-2011, 11:16 PM
Is it possible to make some smilies from user common, so other users can use them too?

Just to repeat my question, is it possible that users smilies become common, so other users are able to use them? For example that admins make users smilies global, something like smilies installed in admincp?

8thos
06-01-2011, 03:08 AM
? I could have not released this at all. I could have said "screw you, I will not look into a version for 4.1.3!".

If you have access for 4.1.3, you have access to 4.1.4. I will try to get this working for 4.1.3, but no promises.

I just ask that folks be patient. I am releasing all of my mods for free, when I am unemployed and freelancing/vbulletin work is my only income. So just be glad you get them at all, tbh :)My bad I should've kept my comment to myself. I've seen this mod on another board so 5 stars in advance!

Juggernaut
06-10-2011, 02:08 AM
Installed on Vbulletin 4.1.4 and working like a charm :D

Eric
06-10-2011, 02:13 AM
Just to repeat my question, is it possible that users smilies become common, so other users are able to use them? For example that admins make users smilies global, something like smilies installed in admincp?
It is already possible with the current codebase - just needs a few changes. Will look into that for you.

Eric
06-10-2011, 02:14 AM
My bad I should've kept my comment to myself. I've seen this mod on another board so 5 stars in advance!
My apologies, I came off as a jerk which was not my intention at the time. But sometimes certain comments can rub a person the wrong way, y'know? :)

Juggernaut
06-10-2011, 03:37 AM
It is already possible with the current codebase - just needs a few changes. Will look into that for you.
Actually the smilies that another one of my users has uploaded, I am able to use, I thought they were already global. :mmm:

S3Ponline
06-12-2011, 12:02 AM
Hmm.

I uploaded a smiley and it’s in the folder on the server and it’s 777.

However, when I added it it didn’t give me that list of smilies I added like you have in your screenshot.

Furthermore, it doesn’t show up on my smiley dropdown and I can’t :customsmiley:

I tried to add the same :customsmiley: and it says it’s already there.

Thoughts?

S3Ponline
06-15-2011, 05:20 AM
Ok, I still have this installed and really want this to work. HEP HEP :)

Juggernaut
06-15-2011, 06:06 AM
I was wrong, only the usergroups who have the ability to upload custom smileys can see the smileys. :D
S3Ponline, if you already have a smiley with the same name or replacement code, I think you have to change the replacement code or change the name of the smiley, you can't have them be the same, you should try with different smileys and codes, until you get the smileys you want. :)

8thos
06-15-2011, 10:37 PM
Installed.

8thos
06-15-2011, 10:50 PM
Someone's horribly-made smilies is showing in the global smilies. Didn't know they showed in global smilies like that.

Should've read the whole thread first.

EquinoxWorld
06-16-2011, 06:54 PM
FYI People this mod prevents us from accessing any page after index.php in vbgallery with vbulletin 4.1.4. Not sure why though, as soon as I disabled the mod the issue was gone and after turning on the issue came back. I think it has something to do with the inline attachment issue this mod has. In any case just thought I'd share with you folks. If anyone has a fix please share.

I also didn't like very much to see everyone else's emoticons when trying to add mine. If the use were only able to select form their own and not everyone would be so much better.

DrackosNGU
06-22-2011, 05:04 AM
someone please make 4.1.3 version!

kylek
06-23-2011, 07:03 PM
FYI People this mod prevents us from accessing any page after index.php in vbgallery with vbulletin 4.1.4. Not sure why though, as soon as I disabled the mod the issue was gone and after turning on the issue came back. I think it has something to do with the inline attachment issue this mod has. In any case just thought I'd share with you folks. If anyone has a fix please share.

I also didn't like very much to see everyone else's emoticons when trying to add mine. If the use were only able to select form their own and not everyone would be so much better.

Thanks, got same error in vbgallery, disabled until someone can figure it out.

EquinoxWorld
06-23-2011, 07:11 PM
Thanks, got same error in vbgallery, disabled until someone can figure it out.

It's a shame though, my members were LOVING this mod. :( Gallery has more pull so we had to uninstall.

Eric
07-05-2011, 11:17 AM
Can someone link me to this vBGallery? I will see what I can do.

Eric
07-05-2011, 11:53 AM
v4.0.002 - July 5th, 2011
-- Fixed: Error in delete template, incomplete vB parser tag.
-- Changed: Now requires users to enter a unique replacement text.
-- Added: Option to pull all user smilies for the editor or just the current user id's smilies.
-- Removed: eval() calls when throwing an error (standard_error / fetch_error)

Robru
07-05-2011, 12:58 PM
Thank you, for this update :)

Bounce
07-07-2011, 08:28 PM
Installed but nothing showing, it may be that I'm using lynnes smilies below editor

https://vborg.vbsupport.ru/showthread.php?t=229650&page=19

Can this be fixed and how?

Where are the smilies supposed to show anyway?

Trek
07-08-2011, 02:14 AM
Very nice, installed, followed setup instructions and it's working perfectly. Nice work, it's appreciated!

BTW, something that isn't really stated (without looking through the thread) is that you can basically setup a smiley manager usergroup or something and let that person manage the smilies without having to give them admin. Not to mention, it's just a really nice setup anyway. So this is pretty cool since you can set the smilies to be used by anyone. Anyway, just a feature that I thought should get more exposure as it's exactly what I was looking for and if it didn't have it, I couldn't of used it.

Thanks again!

Gemma
07-09-2011, 02:15 PM
Thanks for this. Works perfectly :)

joggele
07-20-2011, 10:35 PM
Hello,

how can I reduce the "max load" for smilies (ex.: 10 smilies)? Or get I automatically a scrollbar at the editor (v4.1.4)?

If I load more then 10 smilies, I can't see them in the editor.

regards
Juergen

Edit: I've solved my problem. The solution is in the 2nd picture of the Details (admincp->usergroups->rights)

Bounce
07-24-2011, 10:36 PM
Installed but nothing showing, it may be that I'm using lynnes smilies below editor

https://vborg.vbsupport.ru/showthread.php?t=229650&page=19

Can this be fixed and how?

Where are the smilies supposed to show anyway?

anyone any idea's??

egysc
07-26-2011, 03:58 AM
This hack was tested on vB 4.1.4 - and will only work with this version and later versions
Why not earlier versions ?!!

Fready
07-26-2011, 04:48 AM
Why not earlier versions ?!!

As mentioned in the first post... this will not work in versions less than 4.1.4 as it only works with CKEditor. 4.1.4 .:rolleyes:

melazeta
08-05-2011, 01:09 PM
I'm having a problem with MySmilies.

When someone post a personal smilie it comes out as
smile" title="smile" />
the smilie doubles and also appear a bit of html.

that doesn't occours to all of the personal smilies, only some

I upgraded forum from 3.8.1 where i had the old mysmilie plugin... leaving also the old personal smilies.

Eric
08-09-2011, 05:57 AM
I'm having a problem with MySmilies.

When someone post a personal smilie it comes out as
smile" title="smile" />
the smilie doubles and also appear a bit of html.

that doesn't occours to all of the personal smilies, only some

I upgraded forum from 3.8.1 where i had the old mysmilie plugin... leaving also the old personal smilies.

If you upgraded from the 3.8 version, you may want to ensure the templates were updated, etc. I have had problems where going from 3.8 > 4.x didn't update templates and plugins, allow it doesn't happen that often.

Eric
08-09-2011, 05:58 AM
Installed but nothing showing, it may be that I'm using lynnes smilies below editor

https://vborg.vbsupport.ru/showthread.php?t=229650&page=19

Can this be fixed and how?

Where are the smilies supposed to show anyway?
The smilies should show in the smilie box & smilie dropdown. Have you made sure the permissions are set properly for usergroups?

4Play
08-11-2011, 01:34 AM
Will this work with vB 4.1.5? Thanks :)

Bounce
08-23-2011, 03:27 PM
The smilies should show in the smilie box & smilie dropdown. Have you made sure the permissions are set properly for usergroups?

Yes sir, I think it may be a conflict with lynnes smileys under editor box.

When I upload a smiley in the settings it does not show :confused:

Hostboard
08-23-2011, 09:08 PM
I am having the same issue... I upload the smilie, it does upload as I can see it in the folder on the server. I can confirm it is saving the replacement text as it notes when duplicate text is used. BUT nothing shows up in the MySmilies section nor in the editor.

Using my admin user group for testing.

Using v4.0.002
Any fix for this?

OldSchoolDSL
11-25-2011, 04:24 PM
1/2 working on 4.1.8

On the "My Smilies Page" if I upload a new smile, I see it there. But If I leave that page and return... I don't see anything there. So I can't delete or update my smile.

Everything else in the modification works, but I did have to add the template code manually.

Replicators
12-23-2011, 11:10 PM
For the dev's information, this mod conflicts with vbtube pro version when encoding video's, i have notified both dev's, so i am doing my part on the confliction.

OldSchoolDSL
01-04-2012, 01:32 AM
Working without issue in

4.1.10 Alpha 1 and Alpha 2

spillage
01-15-2012, 08:15 PM
Installed on 4.1.10 update release... working straight out of the box... beautiful.

hakkuo23
03-18-2012, 05:36 PM
How can I make it so people MUST have 2 colons in every smiley they create? So I don't have lamers making a smiley for every popular word :P

kylek
03-23-2012, 10:15 PM
Had to disable this as this issue has popped back up with vb4.1.11 for us again, was working fine on 4.1.0. The fix at least for us is not working.

"ADDITIONAL NOTE: A limitation exists with the fix that rectifies the problem of attachments showing when also posting them inline within the same post; when applied, all attachments will need to be displayed inline, if they have not been, then the ones that have not been posted inline will be hidden along with the ones that have been posted inline. Which is why this fix can be turned On or Off, it will mess up installations that do not have the problem to start with, so this fix is switched Off as default, and will need to be turn On if needed."

nrms?
07-01-2012, 11:09 PM
Work on 4.1.12, but... Should be private to each user does not ...? Which one to create a new post, even without smilies, the text is replaced by smilies to other users ...?

This is so complex and confusing to manage ...

Brew
08-11-2012, 01:56 AM
Has anyone gotten this to work with vB4.2.+ ?

Thanks!

aberg
08-11-2012, 04:31 PM
No, I have try it but it don't work with 4.2

spillage
09-14-2012, 02:07 AM
Eric, any plans to get this working on 4.2?

spillage
11-11-2012, 06:30 PM
Confirmed working on 4.2.0 PL3

fnrtop
11-24-2012, 06:17 AM
v4.0.002 - July 5th, 2011
-- Fixed: Error in delete template, incomplete vB parser tag.
-- Changed: Now requires users to enter a unique replacement text.
-- Added: Option to pull all user smilies for the editor or just the current user id's smilies.
-- Removed: eval() calls when throwing an error (standard_error / fetch_error)


dude you are amazing !! this hack is the best thing i have ever installed

working perfect !

fnrtop
11-24-2012, 08:05 AM
really looking forward to this
Add custom user smilies to the misc.php?do=showsmilies page and to the "More Smilies" popup.


users can see only 9 smilies out of 13 that they created

fnrtop
11-25-2012, 02:28 PM
How can I make it so people MUST have 2 colons in every smiley they create? So I don't have lamers making a smiley for every popular word :P



am having this problem too. please developer, help?

Will Watts
08-26-2013, 03:19 PM
We're currently having issues getting this mod to work with a custom datastore prefix. It works fine when there is no prefix, but as soon as one is added the mod breaks.

We're currently having other site issues that require us to use the datastore prefix.

Edit: The mod sometimes works with a datastore prefix - not sure what the issue is.

The issue we were originally having was very slow loading of user profiles. This issue *appears* to be being caused by this plugin - when the mod is in it's broken state, profiles loaded fine. As soon as the plugin is working properly again, we get slow user profiles.

rootsxrocks
02-19-2014, 03:10 PM
Anny success with 4.2.2

ArcadeSyndicate
06-16-2014, 06:35 AM
custom smilies don't show up in the smilie-popup, but everything else works fine on 4.2.2 :)