Advertisement:

Author Topic: Button to share Whatsapp and Telegram  (Read 2769 times)

Online Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,821
  • 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
Button to share Whatsapp and Telegram
« on: November 10, 2018, 09:26:34 PM »
Link al mod

Whatsapp and Telegram
Button to share | Version 1.1
Developer: Rock Lee


Introduction

It is a simple modification that adds 2 buttons to share via whatsapp and telegram. It takes the link of the subject you are looking at and when the application is detected it allows you to select who you can send it to.

Language

Is available in:
  • English
  • Latin Spanish
  • Portuguese Brazilian - Thanks to ORIONzitos

Compatibility

Prepared to work with the branch 2.0.x of SMF, it is tested only with the default theme. if you have a custom theme, you should adapt by looking for a similar line.
+Now also works with SMF 2.1 with the default theme!

Support

Support topic in English: Button to share Whatsapp and Telegram
Tema de soporte en Español: Botón para compartir en Whatsapp y Telegram
GitHub Repository: Button_to_share_Whatsapp_and_Telegram

License

Copyright 2014-2018 (c) Bomber Code

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.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

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.
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Offline 4plays

  • Newbie
  • *
  • Posts: 2
Re: Button to share Whatsapp and Telegram
« Reply #1 on: November 12, 2018, 06:32:35 AM »
nice, thank you sir appreciate it.  ;D

could you add another button for facebook ?

Online Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,821
  • 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: Button to share Whatsapp and Telegram
« Reply #2 on: November 12, 2018, 10:37:44 AM »
nice, thank you sir appreciate it.  ;D

could you add another button for facebook ?

I hope you enjoy it, I'm going to investigate why Facebook usually changes followed by its APIs making it somewhat complicated to keep up with it sometimes. You may create another exclusive modification of facebook to be able to work it better but you can see these modifications while: Share This Topic!


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


Ayudame via PayPal

Offline karmar

  • Semi-Newbie
  • *
  • Posts: 64
  • Gender: Male
    • Vraagbaak over DMR
Re: Button to share Whatsapp and Telegram
« Reply #3 on: December 23, 2018, 08:14:29 PM »
Hello,

Little question, i dont see the pic Telegram or Whatsapp, what i'am doing wrong?

Have very nice Christmad day's

Bye bye.

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,057
  • Gender: Male
    • Macedonian electronics forum
Re: Button to share Whatsapp and Telegram
« Reply #4 on: December 23, 2018, 08:18:00 PM »
Don't actually need it and probably never will, but it's great to see some of your work Rock Lee ;).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Online Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,821
  • 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: Button to share Whatsapp and Telegram
« Reply #5 on: December 23, 2018, 09:26:06 PM »
Hello,

Little question, i dont see the pic Telegram or Whatsapp, what i'am doing wrong?

Have very nice Christmad day's

Bye bye.

Do you have any advertising blocker in your browser? What theme do you use? A link? to view the site.


Regards!

Don't actually need it and probably never will, but it's great to see some of your work Rock Lee ;).
I had not planned to use it but by order of about 30-40 people, I got down to work ... It is also true that many are handled by whatsapp when sharing content, so I designed it to reach more people (vague thought).

*My coherence in writing English with a dream is not good, sorry :-[*
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Online Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,821
  • 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: Button to share Whatsapp and Telegram
« Reply #6 on: February 05, 2019, 06:47:13 PM »
+Add Installation Support RC1
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Offline mercelo

  • Jr. Member
  • **
  • Posts: 125
Re: Button to share Whatsapp and Telegram
« Reply #7 on: February 11, 2019, 01:48:38 PM »
Donsen´t work in my theme...

Online Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,821
  • 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: Button to share Whatsapp and Telegram
« Reply #8 on: February 11, 2019, 02:20:04 PM »
Donsen´t work in my theme...

What theme are you using? you may not find that line, attach your Display.template.php!


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


Ayudame via PayPal

Offline desertcities

  • Semi-Newbie
  • *
  • Posts: 45
    • @AdventistNews7 on Twitter
    • Adventist Domains
Re: Button to share Whatsapp and Telegram
« Reply #9 on: February 13, 2019, 07:13:11 PM »
Buttons don't display because all the images in /Themes/default/images/icons are .gif and your 2 buttons are .png.

Would that matter?


Online Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,821
  • 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: Button to share Whatsapp and Telegram
« Reply #10 on: February 13, 2019, 10:26:15 PM »
Buttons don't display because all the images in /Themes/default/images/icons are .gif and your 2 buttons are .png.

Would that matter?

Where did you get it from? because the images with .png and at the time of installation is displayed correctly.


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


Ayudame via PayPal

Offline ORIONzitos

  • Semi-Newbie
  • *
  • Posts: 12
  • Gender: Male
  • PT-BR voluntary Translator
Re: Button to share Whatsapp and Telegram
« Reply #11 on: March 21, 2019, 10:48:23 AM »
PT-BR translations \o  8)

Code: [Select]
<file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[$txt['text_share'] = 'Obrigado por por compartilhar >>> ';
]]></add>

Total of translations: 10
Total of translations: 10

Online Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,821
  • 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: Button to share Whatsapp and Telegram
« Reply #12 on: March 21, 2019, 12:39:42 PM »
+Add translation Portuguese Brazilian - Thanks to ORIONzitos


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


Ayudame via PayPal

Online Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,821
  • 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: Button to share Whatsapp and Telegram
« Reply #13 on: April 01, 2019, 05:53:03 PM »
+Add Installation Support RC2
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Offline drfun

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • All Student Forum
Re: Button to share Whatsapp and Telegram
« Reply #14 on: June 04, 2019, 08:51:22 AM »
Thanks for this mod, its a good one.

Please is there a way to allow guest to view this button in order to be able to share without necessary being a member of your forum?

All students forum -Global Online community for Students, Ex-Students and their friends

Online Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,821
  • 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: Button to share Whatsapp and Telegram
« Reply #15 on: June 04, 2019, 09:34:43 AM »
Thanks for this mod, its a good one.

Please is there a way to allow guest to view this button in order to be able to share without necessary being a member of your forum?

Attach your display.template please!


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


Ayudame via PayPal

Offline drfun

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • All Student Forum
Re: Button to share Whatsapp and Telegram
« Reply #16 on: June 05, 2019, 01:23:04 PM »
Thanks for this mod, its a good one.

Please is there a way to allow guest to view this button in order to be able to share without necessary being a member of your forum?

Attach your display.template please!


Regards!
Thanks for the response, am using the default curve template. Below is my attached display.templete.php
All students forum -Global Online community for Students, Ex-Students and their friends

Online Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,821
  • 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: Button to share Whatsapp and Telegram
« Reply #17 on: June 05, 2019, 06:03:25 PM »
Thanks for the response, am using the default curve template. Below is my attached display.templete.php

Have a backup for the doubts but try with this other should be able to visualize without having to be a user necessarily.


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


Ayudame via PayPal

Offline drfun

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • All Student Forum
Re: Button to share Whatsapp and Telegram
« Reply #18 on: June 06, 2019, 10:18:58 PM »
Thanks for the response, am using the default curve template. Below is my attached display.templete.php

Have a backup for the doubts but try with this other should be able to visualize without having to be a user necessarily.


Regards!
Thanks, i tested it. However the buttons appeared under the profile area of the poster, which ma be confusing to the guest that the buttons is actually for sharing the post they have read.
All students forum -Global Online community for Students, Ex-Students and their friends

Online Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,821
  • 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: Button to share Whatsapp and Telegram
« Reply #19 on: June 07, 2019, 11:21:27 AM »
Thanks, i tested it. However the buttons appeared under the profile area of the poster, which ma be confusing to the guest that the buttons is actually for sharing the post they have read.

It is what I suspected when making some changes I have noticed is not entirely correct, give me a little time to be able to make tests and place it in the original zone for all public. Sorry for the disturbances!


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


Ayudame via PayPal