vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - MySmilies VB (https://vborg.vbsupport.ru/showthread.php?t=135336)

Kentaurus 01-01-2007 10:00 PM

MySmilies VB
 
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.

Kentaurus 01-02-2007 08:21 PM

Extra resources:
For spanish users, the translation of this hack: (upload it in the Language Manager)
Spanish translation
Instructions for making it work with vbShout 2.0
https://vborg.vbsupport.ru/showpost....4&postcount=54

Changelog

1.03
Upgrade instructions: upgrade the xml product at the admincp
- Added support for MySmilies when previewing a post/thread (newpost/newthread)
- Bug fix: a javascript problem, not on a blank installation but when used along with other hacks (ej. vbPager). Made them coexist.
- Bug fix: When viewing a pm, your smilies were parsed, instead of the pm sender's smilies
- Bug fix: In some WYSIWYG scenarios, a class="inlineimg" appears because of a double parsing. This was fixed.
- Added a hint for adding compatibility for vbShout (check the Extra resources section)

1.02
Upgrade instructions: upgrade the xml product at the admincp
- Bug fix: in the usercp navigation panel the link was showing with no background
- Added an index.html to the mysmiliesvb directory for security

1.01
Upgrade instructions: reupload mysmiliesvb.php
- Bug fix: If a * was found in the replacement text, it was incorrectly parsed
- Added spanish translation in the zip

1.0
- First release

Known bugs:
None yet

StuntFactoryX 01-02-2007 08:36 PM

thank you. installed on 3.6.4

NuclioN 01-02-2007 08:55 PM

Great! :) Installed!

yoyoyoyo 01-02-2007 09:25 PM

sounds cool - I will check it out later.

BuzuL 01-02-2007 10:20 PM

Thanks Nice Modification...

Darmak 01-02-2007 10:22 PM

Muchas gracias hombre, muy bien hack =D

Saludos :p

imfeelingitdawg 01-02-2007 11:13 PM

Very cool! Installed and we'll see how it goes.

FleaBag 01-03-2007 12:04 AM

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

Brew 01-03-2007 12:35 AM

This is a great concept but it gives me a couple questions.

Can you add permissions for a per-user basis?

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?

Are there restrictions on type of images? Can you add an option to limit file types?

Are there instructions for adding the MySmilies dropdown for the Quick Reply box too?

edit...I would like to recommend adding a blank index.html to the zip for the mysmiliesvb directory for security :)


All times are GMT. The time now is 08:43 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.02537 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete