Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
MySmilies vB (v3.8.0) Details »
MySmilies vB (v3.8.0)
Mod Version: 3.8.005, by Eric (Coder) Eric is offline
Developer Last Online: Jul 2019 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (15 votes - 4.80 average) Installs: 108
Released: 04 Aug 2009 Last Update: 23 Jun 2011 Downloads: 763
Not Supported DB Changes Uses Plugins Auto-Template Additional Files Re-usable Code  

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



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 Mosh's MySmilies VB for v3.7.x to work with vBulletin v3.8.0.
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 3.8.x - but it should work on vB 3.7.0 and later.

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

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    In the navbar template, find and delete:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  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
v3.8.005 - June 23rd, 2011
-- Fixed: "Warning: Invalid argument supplied for foreach()" errors.
-- Changed: how the smilie datastore cache is generated/accessed.
-- Added: Option to pull all user smilies for the editor or just the current user id's smilies.

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.

----

Because of the limitations on screenshots in place by vBulletin.org (can only upload 10) - you can view the screenshots here:

... coming again soon ...

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Major Additions MySmilies VB Kentaurus vBulletin 3.6 Add-ons 167 12 Jun 2010 03:41
Major Additions MySmilies VB (v3.7.0) Mosh vBulletin 3.7 Add-ons 160 11 May 2010 19:01
MySmilies VB for v3.5.x Mosh vBulletin 3.5 Add-ons 4 08 May 2007 20:33

  #106  
Old 27 Nov 2009, 18:48
elroger elroger is offline
 
Join Date: May 2006
Thank you very much!, Works perfectly.

I just want to resolve this:

http://www.vbulletin.org/forum/showp...3&postcount=99

Thanks for everything.
Reply With Quote
  #107  
Old 30 Nov 2009, 19:50
mrpaint's Avatar
mrpaint mrpaint is offline
 
Join Date: Sep 2004
Real name: Dao Hoang Son
Originally Posted by WildSoftCat View Post
Yes, of course

Look in attach, changed lines in php marked with text "wildcat"
Replacement text removed from templates, userid selection removed from parse plugin

Yet one point. I change userid field to zero during deleting instead of deleting record, so if user delete his smilie it's stiill apears in posts.
This workaround is useful but parsing smilies without knowing posting userid is not a good way to do it since other members can "Quote" the post, grab the random string and use it in their own posts. Hmm, is it safe?
Reply With Quote
  #108  
Old 01 Dec 2009, 02:39
WildSoftCat WildSoftCat is offline
 
Join Date: Mar 2007
Originally Posted by mrpaint View Post
This workaround is useful but parsing smilies without knowing posting userid is not a good way to do it since other members can "Quote" the post, grab the random string and use it in their own posts. Hmm, is it safe?
I think this kind of smilies isn't protected by copyright lows, so it's safe to use. You can also add infraction type "Usage of stolen smilie"
Reply With Quote
  #109  
Old 07 Dec 2009, 21:53
BBF BBF is offline
 
Join Date: Dec 2006
Real name: Nadav Peretz
does it work with vb4?
Reply With Quote
  #110  
Old 11 Dec 2009, 17:14
shoppingtelly shoppingtelly is offline
 
Join Date: Apr 2002
Have just upgraded but now am unable to see bit in usergroups to let them use it, any ideas what I have dione wrong?

Thanks
Reply With Quote
  #111  
Old 12 Dec 2009, 02:16
choccyclaire's Avatar
choccyclaire choccyclaire is offline
 
Join Date: Jan 2008
Originally Posted by BBF View Post
does it work with vb4?
No.
Reply With Quote
  #112  
Old 12 Dec 2009, 03:44
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Real name: Eric
Originally Posted by WildSoftCat View Post
I think this kind of smilies isn't protected by copyright lows, so it's safe to use. You can also add infraction type "Usage of stolen smilie"
I don't think that's what they meant. Doing a query for ALL custom smilies can have performance issues, which can grow exponentially. # smilies x # posts x # smilies in post

Originally Posted by BBF View Post
does it work with vb4?
No, and I'm not sure yet if I'll try to upgrade it.

Originally Posted by shoppingtelly View Post
Have just upgraded but now am unable to see bit in usergroups to let them use it, any ideas what I have dione wrong?

Thanks
Try rebuilding your bitfields,
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
My modifications

Please do not contact me for support via PM or E-Mail unless I've asked you to do so. Otherwise, your message will be ignored/deleted.
Reply With Quote
  #113  
Old 12 Dec 2009, 16:36
shoppingtelly shoppingtelly is offline
 
Join Date: Apr 2002
still not after rebuilding bitfields, expect its me.
Reply With Quote
  #114  
Old 29 Dec 2009, 00:17
BostWick-x's Avatar
BostWick-x BostWick-x is offline
 
Join Date: Jul 2009
I just briefly looked through this thread, so sorry if I missed a possible solution.

I'm using Cyb - ChatBox and the smilies only show for the user who posted the message. So for example if one of my smilies was :cake: and I posted that in the chatbox, I would be able to see the smiley that I had set for that shortcut, but everybody else would just see :cake:

Is there any fix for this that I may have missed?
Reply With Quote
  #115  
Old 12 Jan 2010, 09:22
Tettinntil's Avatar
Tettinntil Tettinntil is offline
 
Join Date: Feb 2006
Originally Posted by shoppingtelly View Post
still not after rebuilding bitfields, expect its me.
I got the same problem - I installed the 'sv_mysmiliesvb', did not get any edit possibility in usergroups. Rebuilt bitfields as suggested above - still does not work...
__________________
PROUD owner of these two wonderful and popular forums
Tettinntil.no - Babywearing and Clothdiaper forum in Norway (3.8.4)

Reply With Quote
  #116  
Old 12 Jan 2010, 11:47
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Real name: Eric
I hate to ask this, but out of curiousity - those having problems with the 'bitfields' - did you upload the /includes/xml/bitfield_mysmiliesvb.xml file?

EDIT:

Btw, I am working on a new version. I have an idea for the quoted smilies situation. I'm thinking of creating a hook that will add all smilies to the datastore, and then instead of parsing a post for smilies based on userid, just parse it for all - If I'm thinking correctly, the datastore should eliminate the potential performance issues I was worried about.
__________________
My modifications

Please do not contact me for support via PM or E-Mail unless I've asked you to do so. Otherwise, your message will be ignored/deleted.

Last edited by Eric; 12 Jan 2010 at 12:30.
Reply With Quote
  #117  
Old 12 Jan 2010, 14:18
Tettinntil's Avatar
Tettinntil Tettinntil is offline
 
Join Date: Feb 2006
Originally Posted by SecondV View Post
I hate to ask this, but out of curiousity - those having problems with the 'bitfields' - did you upload the /includes/xml/bitfield_mysmiliesvb.xml file?
This is the file /upload/includes/xml/bitfield_mysmiliesvb.xml? When I try uploadig (using Manage Products -> Import , I get the error message 'Invalid File Specified'...
__________________
PROUD owner of these two wonderful and popular forums
Tettinntil.no - Babywearing and Clothdiaper forum in Norway (3.8.4)

Reply With Quote
  #118  
Old 12 Jan 2010, 14:26
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Real name: Eric
Originally Posted by Tettinntil View Post
This is the file /upload/includes/xml/bitfield_mysmiliesvb.xml? When I try uploadig (using Manage Products -> Import , I get the error message 'Invalid File Specified'...
You don't upload it via the Product Manager - you do so through your FTP program, along with the other files in the 'upload' folder
__________________
My modifications

Please do not contact me for support via PM or E-Mail unless I've asked you to do so. Otherwise, your message will be ignored/deleted.
Reply With Quote
  #119  
Old 12 Jan 2010, 14:31
Tettinntil's Avatar
Tettinntil Tettinntil is offline
 
Join Date: Feb 2006
Originally Posted by SecondV View Post
You don't upload it via the Product Manager - you do so through your FTP program, along with the other files in the 'upload' folder


Sorry, this is all brand new to me... Thanks a lot - I am waiting for ftp now and will try again. (Maybe stupid question, but was this the first step the installation instructions?)
__________________
PROUD owner of these two wonderful and popular forums
Tettinntil.no - Babywearing and Clothdiaper forum in Norway (3.8.4)

Reply With Quote
  #120  
Old 15 Jan 2010, 21:32
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Real name: Eric
Updated to 3.8.004:

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.
__________________
My modifications

Please do not contact me for support via PM or E-Mail unless I've asked you to do so. Otherwise, your message will be ignored/deleted.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:27.

Layout Options | Width: Wide Color: