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

Reply
 
Thread Tools
Disable Smileys and Annoying Images by BOP5 Details »»
Disable Smileys and Annoying Images by BOP5
Version: 2.00, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 04-16-2011 Last Update: 04-21-2011 Installs: 10
Supported Uses Plugins
Translations  

Screenshots: Attached

Demo: http://www.juot.net/forums/showthread.php?t=57401
This is a test section of my forum, you will have to register to disable the smileys.

Version 2.0

*Bugfixed - Smileys now enabled for guests.*

The main point of this mod is to add the much needed option IMO to disable simleys (smilies) for users like they can images, avatars, and signatures.

This became an issue on my forum because I have some large animated smileys and a new member had a medical condition where it was dangerous for him to view such images.

This mod will allow you to disable smileys for certain users. You can choose from the following:
1) (Preferred Method) Add a custom profile field to allow users to enable or disable this on their own. Instructions included in the zip file on how to do this.

2) Disable by usergroup, You can disable smileys by entering the usergroup id, both primary or secondary groups will work.

3) Disable for specific users- You can enter specific userids to disable for a select few users of your choice.

Disabled smileys will be replaced by their title or name. Such as becomes {EEK!}.

Limitations of the mod:

For this to work all your smileys must be in the default path which is images/smilies. They can also be in the fuller path /forums/images/smilies. If they are stored anywhere else this mod will not disable them.

Also the "title" or the "name" of the smileys can not contain a double quote (") character. Names/titles are limited to numbers, letters, underscores, dashes, and some other special characters all of which are listed in the instructions. (Some of them are !, @, #, $, %, &, *, <, >, etc...)

I doubt this will work with Non-English characters but I haven't tried it.

In addition to disabling smileys this mod can also disable images you deem annoying... Again for me I used this to disable some fast-flashing images popular on my forum but which could cause medical concern for some users.

In order to use this part of the mod you must view the HTML source code of your forum and copy the entire <img> tag responsible for the image, and paste it into the mod. The complete tag from < to > is needed. You paste 1 per line into the box in the settings.

You must also specify replacement text in the next box. 1 replacement for each image you want to disable. Keep these lines to match the images above.

This second half of the mod is basically just the built in "Replacement Variable" option in vBulletin except it works on all styles and only works on users you specify or whom have enabled the option. You can use it to replace anything you want, not just images if you want to.

1 Product
- 1 Plugin
- No Files
- No Templates
- No Phrases

Download Now

File Type: zip BOP5 - Disable Smileys.zip (868.1 KB, 52 views)

Screenshots

File Type: jpg Custom Field VB3.jpg (88.5 KB, 0 views)
File Type: jpg Disable Smiley Mod Settings.jpg (151.8 KB, 0 views)
File Type: jpg Smileys Disabled VB3.jpg (199.2 KB, 0 views)
File Type: jpg Smileys Enabled VB3.jpg (229.2 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 04-20-2011, 12:35 PM
Ramsesx's Avatar
Ramsesx Ramsesx is offline
 
Join Date: Aug 2005
Location: Southern Germany
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A lot of stuff you've thrown out the last couple of month BirdOPrey5. Thanks for sharing.
Reply With Quote
  #3  
Old 04-22-2011, 09:50 AM
durham durham is offline
 
Join Date: Oct 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great Mod - many thanks! But it has turned off smilies for "guests" ?

How do I change this so they can see smilies please?

Thanks

Durham
Reply With Quote
  #4  
Old 04-22-2011, 10:41 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good catch. I uploaded a new version that keeps smileys enabled for guests. :up:
Reply With Quote
  #5  
Old 04-22-2011, 11:10 AM
durham durham is offline
 
Join Date: Oct 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aaah - perfect - continued thanks

D.
Reply With Quote
  #6  
Old 04-29-2011, 11:30 PM
Marvin Hlavac Marvin Hlavac is offline
 
Join Date: Sep 2007
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm unable to disable smilies for usergroup 1 (un-registered - not logged in). However, it works when I attempt to disable smilies for usergroup 6 (administrators).

My intention is to disable smilies for usergroup 1. Can I do something to achieve this?
Reply With Quote
  #7  
Old 04-29-2011, 11:45 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marvin Hlavac View Post
I'm unable to disable smilies for usergroup 1 (un-registered - not logged in). However, it works when I attempt to disable smilies for usergroup 6 (administrators).

My intention is to disable smilies for usergroup 1. Can I do something to achieve this?
LOL... yeah I just updated this so they always worked on guests/not logged in because someone was having the opposite issue.

For now uninstall the one you have and install this earlier version and smileys will be disabled for guests.

At some point I will release an update that will let it work as expected in either case.
Attached Files
File Type: zip BOP5 - Disable Smileys.zip (868.1 KB, 7 views)
Reply With Quote
  #8  
Old 04-30-2011, 12:49 AM
Marvin Hlavac Marvin Hlavac is offline
 
Join Date: Sep 2007
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, much appreciated! It's enabled now, and working as expected.

My purpose for using it is to optimize my site for speed. No need to display smilies to guests (each smilie costs one http request). Members will see all smilies though.

Great add-on!
Reply With Quote
  #9  
Old 05-16-2011, 09:28 PM
Marvin Hlavac Marvin Hlavac is offline
 
Join Date: Sep 2007
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've modified my installation so that guests will not see the replacement {smilie}, but they will simply see nothing, no image smilie, and no text smilie.

To do it, find:

Code:
$breplace = "<em>{" . "$1" . "}</em>";

and replace it with:

Code:
$breplace = "";

Joe, if there is a better way, please do let me know.
Reply With Quote
  #10  
Old 05-16-2011, 10:46 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marvin Hlavac View Post
I've modified my installation so that guests will not see the replacement {smilie}, but they will simply see nothing, no image smilie, and no text smilie.

To do it, find:

Code:
$breplace = "<em>{" . "$1" . "}</em>";

and replace it with:

Code:
$breplace = "";

Joe, if there is a better way, please do let me know.
That's a good way. :up:
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 11:08 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.04318 seconds
  • Memory Usage 2,326KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (6)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete