Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: -Rock Lee- on November 10, 2018, 09:26:34 PM

Title: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on November 10, 2018, 09:26:34 PM
Link al mod (https://custom.simplemachines.org/mods/index.php?mod=4197)

Whatsapp and Telegram
Button to share | Version 1.2
Developer: Rock Lee (https://www.bombercode.net/foro/index.php?action=profile;u=1)

(https://www.bombercode.net/img/CompartirSocial.jpg)

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:

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 (https://www.simplemachines.org/community/index.php?topic=563207.0)
Tema de soporte en Español: Botón para compartir en Whatsapp y Telegram (https://www.bombercode.net/foro/soporte-smf-en-espanol/boton-para-compartir-en-whatsapp-y-telegram/msg1681/#msg1681)
GitHub Repository: Button_to_share_Whatsapp_and_Telegram (https://github.com/RockLee-BC/Button_to_share_Whatsapp_and_Telegram/)

Changelog


Version 1.2
[!] Fixed an error on install RC2

Version 1.1
[!] Initial Release


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.
Title: Re: Button to share Whatsapp and Telegram
Post by: 4plays on November 12, 2018, 06:32:35 AM
nice, thank you sir appreciate it.  ;D

could you add another button for facebook ?
Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on November 12, 2018, 10:37:44 AM
Quote from: 4plays on November 12, 2018, 06:32:35 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 (http://custom.simplemachines.org/mods/index.php?mod=2111)!


Regards!
Title: Re: Button to share Whatsapp and Telegram
Post by: karmar 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.
Title: Re: Button to share Whatsapp and Telegram
Post by: GigaWatt 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 ;).
Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on December 23, 2018, 09:26:06 PM
Quote from: karmar 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.

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


Regards!

Quote from: GigaWatt 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 ;).
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 :-[*
Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on February 05, 2019, 06:47:13 PM
+Add Installation Support RC1
Title: Re: Button to share Whatsapp and Telegram
Post by: mercelo on February 11, 2019, 01:48:38 PM
Donsen´t work in my theme...
Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on February 11, 2019, 02:20:04 PM
Quote from: mercelo on February 11, 2019, 01:48:38 PM
Donsen´t work in my theme...

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


Regards!
Title: Re: Button to share Whatsapp and Telegram
Post by: desertcities 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?

Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on February 13, 2019, 10:26:15 PM
Quote from: desertcities 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?

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


Regards!
Title: Re: Button to share Whatsapp and Telegram
Post by: ORIONzitos on March 21, 2019, 10:48:23 AM
PT-BR translations \o  8)

<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
Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on March 21, 2019, 12:39:42 PM
+Add translation Portuguese Brazilian - Thanks to ORIONzitos (https://www.simplemachines.org/community/index.php?action=profile;u=598068)


Regards!
Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on April 01, 2019, 05:53:03 PM
+Add Installation Support RC2
Title: Re: Button to share Whatsapp and Telegram
Post by: drfun 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?

Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on June 04, 2019, 09:34:43 AM
Quote from: drfun 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?

Attach your display.template please!


Regards!
Title: Re: Button to share Whatsapp and Telegram
Post by: drfun on June 05, 2019, 01:23:04 PM
Quote from: Rock Lee on June 04, 2019, 09:34:43 AM
Quote from: drfun 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?

Attach your display.template please!


Regards!
Thanks for the response, am using the default curve template. Below is my attached display.templete.php
Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on June 05, 2019, 06:03:25 PM
Quote from: drfun on June 05, 2019, 01:23:04 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!
Title: Re: Button to share Whatsapp and Telegram
Post by: drfun on June 06, 2019, 10:18:58 PM
Quote from: Rock Lee on June 05, 2019, 06:03:25 PM
Quote from: drfun on June 05, 2019, 01:23:04 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.
Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on June 07, 2019, 11:21:27 AM
Quote from: drfun on June 06, 2019, 10:18:58 PM
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!
Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on June 07, 2019, 12:46:29 PM
Now the buttons must be displayed correctly with the file that happened to me, even if I probe it with a clean one and it works as it should. Anything you tell me and I will look at it...


Regards!
Title: Re: Button to share Whatsapp and Telegram
Post by: drfun on June 07, 2019, 07:32:50 PM
Quote from: Rock Lee on June 07, 2019, 11:21:27 AM
Quote from: drfun on June 06, 2019, 10:18:58 PM
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!
No problem, you are doing a great job.
Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on June 08, 2019, 10:20:40 AM
Try the file attached in the previous message, it would work without problems and visualize it correctly :).


Regards!
Title: Re: Button to share Whatsapp and Telegram
Post by: chinaren on May 09, 2020, 04:53:37 AM
Hello!


Tried installing this on my SMF 2.1 RC2 forum, but when I try to install it it says:


The package you are trying to download or install is either corrupt or not compatible with this version of SMF

Help?   :)
Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on May 09, 2020, 12:21:42 PM
I install it perfectly it may be it must update my files but it does not appear to you to emulate any version of 2.1? Apply a change to the display.template.php should not give problems but I will look at it as soon as I can :).


Regards!
Title: Re: Button to share Whatsapp and Telegram
Post by: -Rock Lee- on May 09, 2020, 02:21:44 PM
Done is fixed, the new package 1.2 should be able to install without problems!


Regards!
Title: Re: Button to share Whatsapp and Telegram
Post by: chinaren on May 10, 2020, 03:23:38 AM
Ha!  That's done the trick.  Thanks Rocky!  :D