Advertisement:

Author Topic: Multiple Smiley Aliases  (Read 3325 times)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Multiple Smiley Aliases
« on: March 29, 2016, 02:05:57 PM »
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.


Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 3,007
  • Gender: Male
  • I also speak english :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: Multiple Smiley Aliases
« Reply #1 on: March 29, 2016, 06:49:07 PM »
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 © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Multiple Smiley Aliases
« Reply #2 on: March 29, 2016, 07:06:47 PM »
It is indeed an interesting modification , congratulations for it.
Thank you very much!!

After a while I see it going local : D
Huh?  I'm not understanding...

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....

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Multiple Smiley Aliases
« Reply #3 on: March 29, 2016, 07:24:38 PM »
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.

Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 3,007
  • Gender: Male
  • I also speak english :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: Multiple Smiley Aliases
« Reply #4 on: March 29, 2016, 07:38:23 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 !


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 © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Multiple Smiley Aliases
« Reply #5 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....

Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 3,007
  • Gender: Male
  • I also speak english :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: Multiple Smiley Aliases
« Reply #6 on: March 30, 2016, 07:17:34 PM »
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 © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Multiple Smiley Aliases
« Reply #7 on: October 18, 2018, 08:53:59 PM »
Uploaded v1.2 - October 18th, 2018
o No functionality change.
o Updated documentation to point to new website.

Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 3,007
  • Gender: Male
  • I also speak english :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: Multiple Smiley Aliases
« Reply #8 on: October 18, 2018, 09:25:32 PM »
I'm not very keen on github :( yet but that's the translation into Latin Spanish :-[!


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


Ayudame via PayPal

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Multiple Smiley Aliases
« Reply #9 on: October 22, 2018, 10:09:55 PM »
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!

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: Multiple Smiley Aliases
« Reply #10 on: June 19, 2019, 10:55:08 AM »
Uploaded v1.4 - June 19th, 2019
o Added support for SMF 2.1 RC2.
o Removed support for SMF 2.1 Beta 2.

Offline shadav

  • Jr. Member
  • **
  • Posts: 208
  • Gender: Female
Re: Multiple Smiley Aliases
« Reply #11 on: September 19, 2019, 10:04:43 PM »
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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,879
    • StoryBB/StoryBB on GitHub
Re: Multiple Smiley Aliases
« Reply #12 on: September 20, 2019, 01:08:01 AM »
SMF ships with a smiley that has > in its code, >:D so...
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline shadav

  • Jr. Member
  • **
  • Posts: 208
  • Gender: Female
Re: Multiple Smiley Aliases
« Reply #13 on: September 20, 2019, 09:39:37 AM »
SMF ships with a smiley that has > in its code, >:D so...

strange because this is what I end up with using these
Code: [Select]
testing smileys with > and <
 >:D
 >D<
>:p
>:)
>:D<
>:o)
 :)>-
:">
so maybe it's this mod and not smf  :-\