News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Multiple Smiley Aliases

Started by dougiefresh, March 29, 2016, 02:05:57 PM

Previous topic - Next topic

dougiefresh

Link to Mod



MULTIPLE SMILEY ALIASES v1.4
By Dougiefresh -> Link to Mod



Introduction
This mod allows an adminstrator to add a single or multiple aliases to each smiley.  Each smiley alias functions the same as the original.

Admin Settings
In Admin -> Forum -> Smileys and Message Icons -> Edit Smileys, the list has been altered to show the alias(es) per smiley.  The Modify screen has a new line called Aliases with input boxes to enter the aliases into, as well as a Add Code button to add another alias to this smiley.

Related Discussion
o Multiple codes to represent a single smiley

Compatibility Notes
This mod was originally written as a paid request for Biology Forums Community for SMF 1.1.21, but it may work with earlier versions of SMF 1.1.  Biology Forums Community has granted permission to distribute the paid work.  Thank you, Biology Forums Community!

This mod was rewritten for SMF 2.0.11 and SMF 2.1 RC2, but may work on SMF 2.0 and up.  SMF 1.0.x is not and will not be supported.

Changelog
The changelog can be viewed at XPtsp.com.

License
Copyright (c) 2016 - 2019, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


-Rock Lee-

It is indeed an interesting modification , congratulations for it. After a while I see it going local : D but I doubt generates the "several " Will a limit guess not ?


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

dougiefresh

Quote from: Rock Lee [BC] on March 29, 2016, 06:49:07 PM
It is indeed an interesting modification , congratulations for it.
Thank you very much!!

Quote from: Rock Lee [BC] on March 29, 2016, 06:49:07 PM
After a while I see it going local : D
Huh?  I'm not understanding...

Quote from: Rock Lee [BC] on March 29, 2016, 06:49:07 PM
but I doubt generates the "several " Will a limit guess not ?
If I'm understanding your question correctly, there is no limit to the number of aliases you can create for each smiley.  The only restriction (which will probably be addressed in the next version) is that the aliases cannot use a comma in them, as that is the separator between the aliases in the database table....

dougiefresh

Uploaded v1.1 - March 29th, 2016
o Added support for SMF 2.1 Beta 2.
o Removed unnecessary closing table bracket from install file for SMF 2.0.x.

-Rock Lee-

Quote from: dougiefresh on March 29, 2016, 07:06:47 PM
Quote from: Rock Lee [BC] on March 29, 2016, 06:49:07 PM
After a while I see it going local : D
Huh?  I'm not understanding...

Excuse my English is still not good enough , "local" I mean in xampp localhost or lampp depending on this system !


Quote from: dougiefresh on March 29, 2016, 07:06:47 PM
If I'm understanding your question correctly, there is no limit to the number of aliases you can create for each smiley.  The only restriction (which will probably be addressed in the next version) is that the aliases cannot use a comma in them, as that is the separator between the aliases in the database table....

If so just wondering what the amount that would generate long-term layers a problem :) I'm glad to hear and think about a new version now climbed x )


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

dougiefresh

I would think that you would have to have a VERY LARGE number of aliases in order to cause problems with the forum.  The original forum code caches the smilies array once built for 8 minutes, but even the process of building the smileys array shouldn't cause any issues....

-Rock Lee-

Quote from: dougiefresh on March 30, 2016, 10:04:23 AM
I would think that you would have to have a VERY LARGE number of aliases in order to cause problems with the forum.  The original forum code caches the smilies array once built for 8 minutes, but even the process of building the smileys array shouldn't cause any issues....

Oh then there should be no major problems it seems to me very well, sometimes I attend some rather large forums and modifications gave me problems so my question also sometimes I like to try certain limits to learn!


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

dougiefresh

Uploaded v1.2 - October 18th, 2018
o No functionality change.
o Updated documentation to point to new website.

-Rock Lee-

I'm not very keen on github :( yet but that's the translation into Latin Spanish :-[!


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

dougiefresh

Uploaded v1.3 - October 22nd, 2018
o Added Spanish Latin translation, courtsey of Rock Lee.




@Rock Lee:  Thank you for the translation!  It's been included in this version!

dougiefresh

Uploaded v1.4 - June 19th, 2019
o Added support for SMF 2.1 RC2.
o Removed support for SMF 2.1 Beta 2.

shadav

slight issue, though I believe it's not the mod so much as it is smf

you can't use < or > for smiley codes otherwise it outputs the smiley and then some of the html with it lol

Arantor

SMF ships with a smiley that has > in its code, >:D so...

shadav

Quote from: Arantor on September 20, 2019, 01:08:01 AM
SMF ships with a smiley that has > in its code, >:D so...

strange because this is what I end up with using these
testing smileys with > and <
>:D
>D<
>:p
>:)
>:D<
>:o)
:)>-
:">

so maybe it's this mod and not smf  :-\

Advertisement: