Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
Favorite Smilies - No code changes, no db changes, very fast Details »»
Favorite Smilies - No code changes, no db changes, very fast
Version: 1.10, by Renmiri Renmiri is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 09-19-2007 Last Update: 09-21-2007 Installs: 6
Uses Plugins Template Edits
 
No support by the author.

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 field25 new number you got on step 3 (field29 in my example)

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 field25 new number you got on step 3 (field29 in my example)

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-19-2007, 11:58 PM
vip-q.com's Avatar
vip-q.com vip-q.com is offline
 
Join Date: Oct 2006
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 09-20-2007, 07:54 AM
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Jul 2005
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah I urge you to make one for 3.6.8, since "most" people update their boards and are using 3.6+
Reply With Quote
  #4  
Old 09-20-2007, 10:19 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! Been waiting for something like this.
Reply With Quote
  #5  
Old 09-20-2007, 09:41 PM
Renmiri Renmiri is offline
 
Join Date: Jul 2006
Location: Chicago, USA
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, upgrading it to 3.6.8 is in the plans...
Reply With Quote
  #6  
Old 09-22-2007, 03:27 AM
Renmiri Renmiri is offline
 
Join Date: Jul 2006
Location: Chicago, USA
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now with smilie images on the menu
Reply With Quote
  #7  
Old 09-22-2007, 04:37 PM
Kaycee123 Kaycee123 is offline
 
Join Date: Jun 2007
Location: Alberta, Canada
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a favorite smilie mod for 3.6 + here

https://vborg.vbsupport.ru/showthrea...light=database
Reply With Quote
  #8  
Old 09-22-2007, 09:08 PM
Renmiri Renmiri is offline
 
Join Date: Jul 2006
Location: Chicago, USA
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kaycee123 View Post
There is a favorite smilie mod for 3.6 + here

https://vborg.vbsupport.ru/showthrea...light=database
Yeah, but that one requires code changes and database changes. It is a lot fancier than mine, with permissions for users and such, but I want to stay clear of code changes, hence I did this one
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 11:25 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.06955 seconds
  • Memory Usage 2,274KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete