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

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

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 04-16-2011 Last Update: 04-21-2011 Installs: 19
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. (VB3 Version, but identical code.)

Version 2.0

*Bug Fixed - Smileys now fixed for guest viewing *

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 - VB4.zip (516.1 KB, 97 views)

Screenshots

File Type: jpg Disable Smiley Mod Settings.jpg (151.8 KB, 0 views)
File Type: jpg Smileys Disabled VB4.jpg (83.8 KB, 0 views)
File Type: jpg Smileys Enabled VB4.jpg (73.0 KB, 0 views)
File Type: jpg Custom Field VB4.jpg (17.0 KB, 0 views)

Show Your Support

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

Comments
  #12  
Old 08-23-2011, 11:01 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be a lot of work for an unusual request. I was giving you an alternative.
Reply With Quote
  #13  
Old 08-23-2011, 10:28 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea I realized it wouldn't be easy I'll just move the other smilies
Reply With Quote
  #14  
Old 09-01-2011, 09:41 AM
Limality Limality is offline
 
Join Date: Aug 2011
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, I followed the instructions to the dot and I still seem to have problems getting this mod to work. All Smilies are in the default smilies folder as it should be. One thing to mention though is, that most of the smilies were imported from phpBB earlier yesterday, but they seem to sit in the default smilies folder of vB. Also, I'm using the German Language Pack on my forum if that's any help in finding out what exactly isn't working.

vBulletin 4.1.5

Update

I removed [/forums/]* from this line...

Code:
$bfind = '|<img src="[/forums/]*images/smilies/[\w -.]+" border="0" alt="" title="([\w !@$#%&*()+-=?<>\';:]+)" class="inlineimg" />|';
to make it...

Code:
$bfind = '|<img src="images/smilies/[\w -.]+" border="0" alt="" title="([\w !@$#%&*()+-=?<>\';:]+)" class="inlineimg" />|';
This kind of worked for one smiley which is a .png, all other gifs are small animated gifs or transparent gifs and they're still visible. Another information I missed to mention earlier is that my forum runs directly from the domain http://www.lostgamers.ch/
Reply With Quote
  #15  
Old 09-01-2011, 11:09 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Removing [/forums/]* doesn't do anything of value, the * means it's optional, it doesn't have to be there.

The problem is you aren't using any titles for your smilies- probably because they were imported from phpbb. The mod needs a title for each smiley to work.
Reply With Quote
  #16  
Old 09-01-2011, 07:14 PM
Limality Limality is offline
 
Join Date: Aug 2011
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Removing [/forums/]* doesn't do anything of value, the * means it's optional, it doesn't have to be there.

The problem is you aren't using any titles for your smilies- probably because they were imported from phpbb. The mod needs a title for each smiley to work.
Indeed, it is as you say I must've overread the part where it mentions the titles for smilies! Thank you for the help!

Cheers
Limality
Reply With Quote
  #17  
Old 12-19-2011, 09:07 PM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BirdOPrey5, just wondering if you plan on expanding on this modification? Perhaps a per user option, where users themselves could elect to ignore photos all together (globally) or from a particular user?

Thank you in advance for taking the time to answer my reply
Reply With Quote
  #18  
Old 12-19-2011, 09:58 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Users can already disable images globally already in the user cp.

Per user image ignore is interesting but truthfully I doubt I will be adding it to this mod.
Reply With Quote
  #19  
Old 12-19-2011, 10:14 PM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Users can already disable images globally already in the user cp.

Per user image ignore is interesting but truthfully I doubt I will be adding it to this mod.
With so many setting within vBulletin, I often forget what is already there.

Thank you for taking the time to answer my question BirdOPrey5
Reply With Quote
  #20  
Old 12-20-2011, 09:42 PM
walsc walsc is offline
 
Join Date: Jul 2011
Location: Austria
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I searched for exactly this, thank you!
After reading your instructions I added a profile field, installed this addon, enabled it for the additional profile field, but it does not work.
If I enter a user-id to disable smilies it works perfect.
I don't know what I've done wrong with the profile-field.
My VB is version 4.1.9.
Reply With Quote
  #21  
Old 12-15-2012, 06:46 AM
GRE GRE is offline
 
Join Date: Nov 2009
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How we keep the same text? to become : D (without space)
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 05:51 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.04468 seconds
  • Memory Usage 2,341KB
  • 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
  • (2)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
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete