Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
[How-TO vB 4] Don't show duplicate smilies in quickreply and new thread list
RedFoxy
Join Date: Sep 2007
Posts: 179

Italy
by RedFoxy RedFoxy is offline 05 Jun 2010

Hi all!
Have you a lot of Smilies in your forum? Maybe you have some duplicated smilies just because you call same smilie with different keywords, for example can be called by :) :-) and :smile: or :( :-( :sad:
If you do that, like me, you'll have duplicate smilies in your smilies lists and that's bad...

To fix it, I wrote a simple hack.

PAY ATTENTIONS!
You do that modification at your own risk!


We must edit a group of files:
  • includes/class_wysiwygparser.php
  • includes/class_bbcode.php
  • includes/functions_wysiwyg.php
  • includes/functions_editor.php
  • misc.php

Note:
If you have installed plugins with smilies list, you must search in their files looking for TABLE_PREFIX . "smilie and add at the end of the query and before Order By that piece of query GROUP BY smiliepath
NEVER EDIT FILES UNDER "admincp/".

Open: includes/class_wysiwygparser.php

Search for:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save & close

Open: includes/class_bbcode.php

Search for:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save & close

Open: includes/functions_wysiwyg.php

Search for:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save & close

Open: includes/functions_editor.php

Search for:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save & close

Open: misc.php

Search for:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Search for:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save & close

And that's all, enjoy it!

Sorry for bad english
Views: 1710
Reply With Quote
Comments
  #2  
Old 09 Jun 2010, 06:31
as7apcool's Avatar
as7apcool as7apcool is offline
 
Join Date: Feb 2009
thanks alot 4 your work
Reply With Quote
Reply

Similar Article
Article Author Type Replies Last Post
Add-On Releases Show Smilies in Quickreply TrucLinh vBulletin 3.6 Add-ons 103 14 Nov 2010 16:21
Show Smilies in Quickreply TrucLinh vBulletin 3.6 Template Modifications 26 12 Mar 2008 11:21
Show Smilies in Quickreply TrucLinh vBulletin 3.5 Add-ons 1 17 Dec 2006 03:41
Smilies in Quickreply utw-Mephisto vBulletin 3.5 Template Modifications 22 24 Jul 2006 21:01



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

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


New To Site? Need Help?

All times are GMT. The time now is 16:34.

Layout Options | Width: Wide Color: