The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Favorite Smilies - No code changes, no db changes, very fast Details »» | |||||||||||||||||||||||||||
Favorite Smilies - No code changes, no db changes, very fast
Developer Last Online: May 2008
I will be upgrading this to 3.6 next month or so, but for now I have it ready for 3.5.4 users
I love smilies so I have over 1,000 of them in my forum. Obviously no one can remember them all, even myself, so I did this little hack to allow each user to have 10 (or more) personal favorite smilies on the edit box, in addition to the forum wide default smilies. ========================================== Using it: a)User Setup Under User CP, Profile Options, each user can set their list of favorite smilie bbcodes. If they don't set the field nothing bad happens, they just get a default collection of smilies. c)Using the favorite smilies on a post On the bottom of the quick edit or the full edit screen there will be an extra line. Full Edit Menu If any user clicks on it, it will cause a screen to drop down under the edit bar, with the smilies. If the user has no favorite smilies set he still sees the drop down, but with a set of default smilies, Click on the smilies and their bbcode goes to the edit box The drop down screen can be hidden again and used again as many times as wanted. ============================================== Known issues: 1) You can use more or less than 10 favorites but you would have to edit the smile_menu template to add or delete relevant lines. It is pretty straight forward. 2) I have no special screen for users to chose the codes, because users can just go to any "Reply" skin and select the smilies they like from the full list, click on them in the order they want and they get the list of bbcodes on the edit window. Tell them to copy that then paste it on their user CP field http://ffproject.net/forumwiki/image...800px-Fav5.jpg New on this version 1) Using only ONE User Profile field instead of 5 (one per smilie) 2) Adding smilie images to edit bar, without affecting performance I'm Working on: 1) Porting it to 3.6 Fixed Bugs: n/a Credit This plugin was done using part of the code for RPG Dice by C?dric Claerhout . ================================================== ====== Installing To get this to work all you need is 2 plugins (conveniently packed in the XML file attached) and 1 new template with the contents of the txt file attached. You will also need to add 1 User Profile field Steps: 0) Backup your database As with all hacks, be sure TO BACK UR DATABASES UP before installing this!!!! This mod doesn't change anything - it only adds 2 plugins and a template - but just to keep this healthy habit going do a backup anyway. 1) Download and install the smiliefav_v11.xml plugin 2) Add a new template smile_menu with the content that is in smile_menu_v11.txt: 3) Add 1 User Profile field: Go to the Admin CP, on the User Profile Field menu, select Add New User Profile Field , Chose Single-line Text Box, then follow the prompts using the following: Max length 250, display size 40, display order 5001, not required, editable, not private, not searchable, not on members list, blank on regular expression Display page = options: Other Write down the new field number (for example: 29) 4) Modify the smilie plugin on Hook Location : editor_toolbar_end: Find Code:
$defaultsmilies= ":love: :disgustsmile: :grin: :shock: :mwa: :D :) :( :roll: :cow:" ; $UsedSmileArr= explode(' ',$vbulletin->userinfo['field25']); Replace the default smilies string with your own 10 smilies bbcode, separated by spaces (this will be the default for users who don't set it up) ***Note, you can put more than 10 default smilies but you will need to edit the smile_menu template to add them there too or they won't show up. You can also put less than 10 bbcodes but then you MUST erase the extra smilies from the smilie_menu template or the screen will have gibberish for the missing smilies. Changing the template is pretty straight forward. All Done! ================================================== === Upgrading from version 1 0) Backup your database 1) Delete or deactivate the old plugins a) At Hook Location : editor_toolbar_end delete or deactivate smilie template variable b) At Hook Location : parse_templates delete or deactivate smilie menu in editor 2) Edit template smile_menu, replace contents with the content that is in smile_menu_v11.txt: 3) Delete 4 User Profile fields: Go to the Admin CP, on the User Profile Field menu, select User Profile Field Manager , delete four of the 5 user fields you added on last install. You will only need one now and custom fields seem to make the forum slower. Write down the field number of the field you kept (for example: 29) 4) Download and install the smiliefav_v11.xml plugin 5) Modify the smilie plugin on Hook Location : editor_toolbar_end: Find Code:
$defaultsmilies= ":love: :disgustsmile: :grin: :shock: :mwa: :D :) :( :roll: :cow:" ; $UsedSmileArr= explode(' ',$vbulletin->userinfo['field25']); Replace the default smilies string with your own 10 smilies bbcode, separated by spaces (this will be the default for users who don't set it up) Supporters / CoAuthors Show Your Support
|
Comments |
#2
|
||||
|
||||
I don't use 3.5.4
I use 3.6.8 it's good mod we hope to see it in 3.6.8 thanks |
#3
|
||||
|
||||
yeah I urge you to make one for 3.6.8, since "most" people update their boards and are using 3.6+
|
#4
|
||||
|
||||
Thanks! Been waiting for something like this.
|
#5
|
|||
|
|||
Yeah, upgrading it to 3.6.8 is in the plans...
|
#6
|
|||
|
|||
Now with smilie images on the menu
|
#7
|
|||
|
|||
|
#8
|
|||
|
|||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|