[RC1] Smiley Hide MOD

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
ErDrRon
Registered User
Posts: 2156
Joined: Sat Jun 22, 2002 7:18 pm
Location: Colorado, USA
Contact:

[RC1] Smiley Hide MOD

Post by ErDrRon »

MOD Title: Smiley Hide MOD
MOD Description: Allows administrators to hide (without having to remove) specific smiley icons from view in the selection area in posts and PMs. The smiley can still be used by typing the smiley code directly in the post or PM. This version has been tested and works with phpBB 2.0.22.
MOD Version: 1.1.RC1

MOD Download: http://www.erdrron.com/phpBB2/download.php?id=626
Last stable version: 1.1.RC1

Demo Board: N/A
Demo Username: N/A
Demo Password: N/A

MOD History:
2007-11-06 - Version 1.1.RC1
- first release candidate

2007-11-03 - Version 1.1.1
- bug fixes (Thanks marian0810)
- hidden smilies now transparent in admin smilies list

2007-05-25 - Version 1.1.0
- added hide function to adding new smiley (Thanks marian0810)

2007-05-23 - Version 1.0.1
- added missed installation step to instructions (Thanks marian0810)

2007-05-22 - Version 1.0.0
- initial stable release
____________________________________________________________________________________

This MOD allows administrators to choose which smilies are visible in the smiley selection area when writing new, replying to existing or editing existing posts or private messages.

The hidden smilies still exist in the smiley database and can be added to a post or private message by typing the smilie code directly into the post or private message; i.e. :biggrin: . This allows large smilies to be included in the smilie database without stretching the smiley selection area. It also allows for the use of "private" smilies that standard users may not be aware of. It allows the use of seasonal smilies that can be turned on during the season and turned off when the season is over. This helps avoid the hassle of installing then uninstalling seasonal smilies every season. It also solves the problem of the dreaded red x appearing when you've removed a smiley that someone has already used in a post/PM.

While this version has only been tested and certified to work with phpBB version 2.0.22 it likely will work with any phpBB 2.0.x version. If you need me to test it for a particular version please let me know.

Please note that this MOD is NOT written to be EasyMod compatible (I haven't tested it).

This MOD was written at the request of that-c at: http://www.phpbb.com/community/viewtopi ... 7&t=540357

Cheers!
Ron
Last edited by ErDrRon on Tue Nov 06, 2007 9:50 pm, edited 10 times in total.
ErDrRon (Yes, I really am an ER Doc) ;-)

Author of the Admin Voting, Retroactive Signature and Edit Post Date MODs. [Unofficial MODs, of course]
Visit my phpBB Support Forum with over 90 installed MODs.
Get inexpensive yet great webhosting at PokedYou.com.
User avatar
ErDrRon
Registered User
Posts: 2156
Joined: Sat Jun 22, 2002 7:18 pm
Location: Colorado, USA
Contact:

Re: [BETA] Smiley Hide MOD

Post by ErDrRon »

Here are a few screen shots to show how the Smiley Hide MOD works.

1. You will see a new column in the General Admin | Smilies section of the ACP showing which smilies are hidden.

http://picasaweb.google.com/ErDrRon/Ima ... 0367392130

2. You will see the option to make a smiley hidden in the General Admin | Smilies | Edit section of the ACP.

http://picasaweb.google.com/ErDrRon/Ima ... 6072424818

3. When you mark a smiley as hidden it will not show up in the smiley selection area. In this example I've marked the 'shocked' smiley :shock: as hidden.

http://picasaweb.google.com/ErDrRon/Ima ... 4662359442

The shocked smiley can still be used by those 'in the know' by typing :shock: directly into the post/PM.

Clear as mud?

Cheers!
Ron
Last edited by ErDrRon on Sat Nov 03, 2007 9:49 pm, edited 1 time in total.
ErDrRon (Yes, I really am an ER Doc) ;-)

Author of the Admin Voting, Retroactive Signature and Edit Post Date MODs. [Unofficial MODs, of course]
Visit my phpBB Support Forum with over 90 installed MODs.
Get inexpensive yet great webhosting at PokedYou.com.
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [BETA] Smiley Hide MOD

Post by marian0810 »

It looks exactly how I wanted it, can't wait to try it out :D
You and me, time and space. You watch us run!
User avatar
ErDrRon
Registered User
Posts: 2156
Joined: Sat Jun 22, 2002 7:18 pm
Location: Colorado, USA
Contact:

Re: [BETA] Smiley Hide MOD

Post by ErDrRon »

Let me know how it goes..

Cheers!
Ron
ErDrRon (Yes, I really am an ER Doc) ;-)

Author of the Admin Voting, Retroactive Signature and Edit Post Date MODs. [Unofficial MODs, of course]
Visit my phpBB Support Forum with over 90 installed MODs.
Get inexpensive yet great webhosting at PokedYou.com.
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [BETA] Smiley Hide MOD

Post by marian0810 »

ErDrRon wrote:Here are a few screen shots to show how the Smiley Hide MOD works.

2. You will see the option to make a smiley hidden in the General Admin | Smilies | Edit section of the ACP.

http://picasaweb.google.com/ErDrRon/Ima ... 6072424818

Clear as mud?

Cheers!
Ron
I installed it and it works like a charm. Thank you!

Only I seem to have done something wrong in the language file. There's some text missing. Only a minor issue but it just would look nicer if it worked :roll:

Image

This is the part with the changes from my lang_admin.php:

Code: Select all

$lang['smile_add'] = 'Add a new Smiley';
$lang['Smile'] = 'Smile';
$lang['Emotion'] = 'Emotion';
// Smiley Hide MOD - Start
$lang['Smiley_hide'] = 'Hidden';
$lang['smiley_hidden'] = 'Hide Smiley from View';
// Smiley Hide MOD - End

$lang['Select_pak'] = 'Select Pack (.pak) File';
$lang['replace_existing'] = 'Replace Existing Smiley';
$lang['keep_existing'] = 'Keep Existing Smiley';
$lang['smiley_import_inst'] = 'You should unzip the smiley package and upload 
You and me, time and space. You watch us run!
User avatar
ErDrRon
Registered User
Posts: 2156
Joined: Sat Jun 22, 2002 7:18 pm
Location: Colorado, USA
Contact:

Re: [BETA] Smiley Hide MOD

Post by ErDrRon »

marian0810,

Whoops! I left out a step in the installation instructions. I'll correct it and re-release the MOD as version 1.0.1. Thanks for pointing this out!

Cheers!
Ron

Code: Select all

# 
#-----[ OPEN ]-------------------------------------------- 
# 
admin/admin_smilies.php

#-----[ FIND ]-------------------------------------------- 
#
# approximately line 421
# there are two instances of this code in the file.  We are looking for the second instance.
#
				"L_SMILEY_EMOTION" => $lang['smiley_emot'],

# 
#-----[ AFTER, ADD ]--------------------------------------
#
// Smiley Hide MOD - Start
				"L_SMILEY_HIDDEN" => $lang['smiley_hidden'],
// Smiley Hide MOD - End

Last edited by ErDrRon on Wed May 23, 2007 9:43 pm, edited 2 times in total.
ErDrRon (Yes, I really am an ER Doc) ;-)

Author of the Admin Voting, Retroactive Signature and Edit Post Date MODs. [Unofficial MODs, of course]
Visit my phpBB Support Forum with over 90 installed MODs.
Get inexpensive yet great webhosting at PokedYou.com.
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [BETA] Smiley Hide MOD

Post by marian0810 »

I made the changes and re-uploaded the files but it makes no difference.
You and me, time and space. You watch us run!
User avatar
ErDrRon
Registered User
Posts: 2156
Joined: Sat Jun 22, 2002 7:18 pm
Location: Colorado, USA
Contact:

Re: [BETA] Smiley Hide MOD

Post by ErDrRon »

Did you make the new changes in admin/admin_smilies.php and not language/lang_english/lang_admin.php? I don't think I made that clear in the above post (I've edited it to reflect this).

Ron
ErDrRon (Yes, I really am an ER Doc) ;-)

Author of the Admin Voting, Retroactive Signature and Edit Post Date MODs. [Unofficial MODs, of course]
Visit my phpBB Support Forum with over 90 installed MODs.
Get inexpensive yet great webhosting at PokedYou.com.
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [BETA] Smiley Hide MOD

Post by marian0810 »

Yes I figured that out ;)
You and me, time and space. You watch us run!
User avatar
ErDrRon
Registered User
Posts: 2156
Joined: Sat Jun 22, 2002 7:18 pm
Location: Colorado, USA
Contact:

Re: [BETA] Smiley Hide MOD

Post by ErDrRon »

There are two areas in admin/admin_smilies.php that contain the same code "L_SMILEY_EMOTION" => $lang['smiley_emot'], .. the first is at approx. line 304 and the second at approx. line 421. The edit is made on the second one at about line 421. Is this where you made the edit?

Cheers!
Ron
Last edited by ErDrRon on Wed May 23, 2007 9:44 pm, edited 1 time in total.
ErDrRon (Yes, I really am an ER Doc) ;-)

Author of the Admin Voting, Retroactive Signature and Edit Post Date MODs. [Unofficial MODs, of course]
Visit my phpBB Support Forum with over 90 installed MODs.
Get inexpensive yet great webhosting at PokedYou.com.
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [BETA] Smiley Hide MOD

Post by marian0810 »

That was it, thank you! :D
You and me, time and space. You watch us run!
User avatar
ErDrRon
Registered User
Posts: 2156
Joined: Sat Jun 22, 2002 7:18 pm
Location: Colorado, USA
Contact:

Re: [BETA] Smiley Hide MOD

Post by ErDrRon »

You're very welcome.

Cheers!
Ron
ErDrRon (Yes, I really am an ER Doc) ;-)

Author of the Admin Voting, Retroactive Signature and Edit Post Date MODs. [Unofficial MODs, of course]
Visit my phpBB Support Forum with over 90 installed MODs.
Get inexpensive yet great webhosting at PokedYou.com.
User avatar
Dogs and things
Registered User
Posts: 2114
Joined: Fri Sep 01, 2006 9:04 am
Location: Spain
Contact:

Re: [BETA] Smiley Hide MOD

Post by Dogs and things »

Another very nice little MOD.

Thanks again ErDrRon! ;)
For phpBB2 support visit phpBB2refugees.
User avatar
ErDrRon
Registered User
Posts: 2156
Joined: Sat Jun 22, 2002 7:18 pm
Location: Colorado, USA
Contact:

Re: [BETA] Smiley Hide MOD

Post by ErDrRon »

My pleasure...

Cheers!
Ron
ErDrRon (Yes, I really am an ER Doc) ;-)

Author of the Admin Voting, Retroactive Signature and Edit Post Date MODs. [Unofficial MODs, of course]
Visit my phpBB Support Forum with over 90 installed MODs.
Get inexpensive yet great webhosting at PokedYou.com.
User avatar
ErDrRon
Registered User
Posts: 2156
Joined: Sat Jun 22, 2002 7:18 pm
Location: Colorado, USA
Contact:

Re: [BETA] Smiley Hide MOD

Post by ErDrRon »

Any issues thus far?

Thanks,
Ron
ErDrRon (Yes, I really am an ER Doc) ;-)

Author of the Admin Voting, Retroactive Signature and Edit Post Date MODs. [Unofficial MODs, of course]
Visit my phpBB Support Forum with over 90 installed MODs.
Get inexpensive yet great webhosting at PokedYou.com.
Post Reply

Return to “[2.0.x] MODs in Development”