Version: 1.00, by Kentaurus
Developer Last Online: Jul 2014
Category: Major Additions -
Version: 3.6.8
Rating:
Released: 01-01-2007
Last Update: 01-04-2007
Installs: 141
DB Changes Uses Plugins Template Edits
Additional Files
No support by the author.
Tested with vb 3.6.8
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 forum smilies.
For users:
Users can keep a library of smilies (they can upload them from their computer or web)
Users enter their replacement text, for example, :iamhappy: would be changed for his 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)
Installation instructions
See the included readme.txt
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.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Its not working, I've uploaded a smilie and tried using it in the shoutbox (vbshout) but it didn't work!
That'd be because there is no support fot the shoutbox (vbshout), as that is a separate hack and not really part of the vbulletin base installation.
Depending on vbshout, it could be easy or difficult to add, I'd need to check it out. For this hack to work, I need to know what the user that published the post / pm, is, that is, the userid, since the smilies are private to him and are only parsed in his posts.... and since vbshout is not passing the information about who left the message.... that'd need to be added for the hack to work in vbshout too.
No idea. It was tested on 3.6.4. But feel free to try it on a test board and tell us I'll check if I still have access to the 3.5 download on vbulletin
it works but i get a javascript error in showthread, expecting string, identifier or number
Do you have a page in which I could check the error? That error doesn't seem to come from this hack... since it doesn't use any javascript at all.... no javascript code is added or modified. A javascript error in showthread is unlikely since it only translates from text to an <img> tag
But I see that a javascript could happen in quickreply (if you have smilies enabled there) or in newthread in the special scenario that your smilie has a ' in it....
A quote is more generic, is not always a quote of a post from other user. A special parsing would be needed to consider the scenario.
Since the smilies are user-based, two users can have the same keyword for different smilies, or they could have a completely different set of smilies, meaning that when I parse the quote... I'd need to parse it not with the smilies from the user that published the post, but with the smilies of the user that was quoted. This, at the very least, duplicates the work that needs to be done.
The quotes, I'll leave it for a version 2 until I figure out an optimized way to do it.
The error with the preview not showing the smilies will be fixed.