Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MySmilies VB Details »»
MySmilies VB
Version: 1.00, by Kentaurus Kentaurus is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

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.

Comments
  #12  
Old 01-03-2007, 12:54 AM
yonglvnv yonglvnv is offline
 
Join Date: Apr 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FleaBag View Post
It's mad, you think you have everything your vB needs and you log on and see a sweet ass hack such as this! Thanking you.
I second that.

Great mod. installed and voted MOTM!
Reply With Quote
  #13  
Old 01-03-2007, 01:18 AM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Can you add permissions for a per-user basis?
No, but you can always create a usergroup and add that only user to it

Quote:
When the user inputs a new keyword will all posts with that keyword use their smilie? or does the new smilie only show in the users posts? Is the new smilie parsed so it will not interfere with current keywords? (if not might I suggest AJAX to make this check on-the-fly?
Depends on how you configure the hack. The default behavior is that if the user enters a new smilie, the smilie is only used in the new posts for that user.

You can configure the hack in such way that every time a user adds a new smilie then the cache is cleared (and, all his posts are updated the next time someone views them), but this is somehow server intensive and is disabled by default.

Please keep in mind that the smilie is only available for the user that uploaded it. Anyone else using that keyword will not get the smilie. When a user adds a smilie it is checked against his smilies (no duplicated keywords allowed) and against the forum smilies (cannot override forum smilies).

Quote:
Are there restrictions on type of images? Can you add an option to limit file types?
You can restrict size and dimensions. Any image type is allowed (gif, jpg, png)

Quote:
Are there instructions for adding the MySmilies dropdown for the Quick Reply box too?
I don't think that's default in vbulletin? Quick reply doesn't have a smilie dropdown. Since the hack extends the current smilies behavior I suppose if standard smilies were added to the quickreply custom smilies would appear, too.

Quote:
edit...I would like to recommend adding a blank index.html to the zip for the mysmiliesvb directory for security
Thanks, will do.
Reply With Quote
  #14  
Old 01-03-2007, 01:33 AM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One little thing I've found:

In the usercp the background of the text in the left panel is black. The main user control panel page that is...

With a white skin it's hard to see.

Looks like it's missing some css code or something
Reply With Quote
  #15  
Old 01-03-2007, 01:40 AM
Exitilus Exitilus is offline
 
Join Date: Jul 2004
Location: Spokane, WA
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm..... I've just installed this and I'm trying to upload a smiley to test .. getting the error Imageinfo Failed:
Reply With Quote
  #16  
Old 01-03-2007, 01:48 AM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Exitilus View Post
Hmm..... I've just installed this and I'm trying to upload a smiley to test .. getting the error Imageinfo Failed:
That seems to be an imagemagick error (vbulletin can use either gd or imagemagick), are you uploading an smilie inside the allowed dimensions (60X60 is the default), otherwise vbulletin will try to resize the image to fit.

This problem is not specific to this mod, but to imagemagick, I found the following thread that might help:
http://www.vbulletin.com/forum/showthread.php?t=177800
Reply With Quote
  #17  
Old 01-03-2007, 02:02 AM
Exitilus Exitilus is offline
 
Join Date: Jul 2004
Location: Spokane, WA
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found the issue. VBulletin didn't like the image so I just resaved it. Thanks for the suggestion as it allowed me to find out what was going on
Reply With Quote
  #18  
Old 01-03-2007, 02:13 AM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brew View Post
One little thing I've found:

In the usercp the background of the text in the left panel is black. The main user control panel page that is...

With a white skin it's hard to see.

Looks like it's missing some css code or something
Fixed and updated zip, thank you The background css class was not being created. A plugin was added.
Reply With Quote
  #19  
Old 01-03-2007, 02:25 AM
Exitilus Exitilus is offline
 
Join Date: Jul 2004
Location: Spokane, WA
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BTW will it error out if someone else has already used the same replacement variable or image ?
Reply With Quote
  #20  
Old 01-03-2007, 02:34 AM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent work, Kentaurus!

Ver1.02 fixed the css problem.

Great mod man
Reply With Quote
  #21  
Old 01-03-2007, 02:41 AM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working great, superb hack Kentaurus

Nominated also and clicked install, many thanks , my users will love this
Reply With Quote
Reply


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 07:36 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.14648 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete