vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - MySmilies vB (v4.x) (https://vborg.vbsupport.ru/showthread.php?t=264257)

Eric 05-25-2011 10:00 PM

MySmilies vB (v4.x)
 
1 Attachment(s)
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:
Quote:

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

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
  1. Delete mysmiliesvb.php from your forum's root directory.
  2. Delete the mysmiliesvb directory from your forum's root directory.
  3. Delete class_dm_mysmiliesvb.php from your forum's /includes directory.
  4. Delete bitfield_mysmiliesvb.xml from your forum's /includes/xml directory.
  5. Delete delete.gif from your forum's /images/misc directory (if more than one style remember to delete it from all misc directories).
  6. 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:
    PHP Code:

    {vb:raw mysmilie_usercp

    In the navbar template, find and delete:
    PHP Code:

    {vb:raw mysmilie_navbar

  7. 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.
  1. Admin Control Panel utility to view/delete one, some or all custom smilies
  2. 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

Quote:

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

Quote:

Originally Posted by Juggernaut (Post 2200428)
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

Quote:

Originally Posted by Eric (Post 2200303)
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;
Code:

http://localhost/showthread.php?7-Test355
will produce this error;
Code:

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

Quote:

Originally Posted by Eric (Post 2200487)
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

Quote:

Originally Posted by Octavius. (Post 2201123)
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

Quote:

Originally Posted by Alan_SP (Post 2200447)
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

Quote:

Originally Posted by Eric (Post 2202229)
? 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

Quote:

Originally Posted by Alan_SP (Post 2202259)
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

Quote:

Originally Posted by Octavius. (Post 2202307)
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

Quote:

Originally Posted by Eric (Post 2205671)
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

Quote:

Originally Posted by EquinoxWorld (Post 2208639)
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

Quote:

Originally Posted by kylek (Post 2211873)
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/showthrea...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

Quote:

Originally Posted by Bounce (Post 2217911)
Installed but nothing showing, it may be that I'm using lynnes smilies below editor

https://vborg.vbsupport.ru/showthrea...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

Quote:

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

Quote:

Originally Posted by sciencesway.com (Post 2225043)
Why not earlier versions ?!!

Quote:

Originally Posted by Eric (Post 2200487)
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
Code:

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.


All times are GMT. The time now is 05:02 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.01546 seconds
  • Memory Usage 1,855KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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