News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Share This Topic

Started by Suki, September 06, 2009, 05:09:23 AM

Previous topic - Next topic

pastorvictor

It works perfectly. I'm using it in 2.0.4.

Suki

Yes, and it will work on any minor 2.0 version, up to 2.0.99. It will even work on 2.1 too (although I explicitly left out any 2.1 compatibility).

Back when I was a lead customizer I explicitly told mod authors to expand their compatibility ratio to 2.0.99 (dunno if that still applies), this cuts off having to update every time there is a new security patch and it also helps if for some reason the mod author isn't around anymore to properly update the mod.

But even with those measures, people just do not read, do not bother to search.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

pastorvictor

Suki, I've messing with with the css section of ShareThis.php but I've just been unable to decrease the space between the buttons and the signature. Would you be able to let me know which part I need to modify to accomplish this?

Suki

Actually, the height is been controlled by the iframe, so go to Sources/ShareThis.php and find:

width:350px; height:80px;" allowTransparency="true"

and change the 80 with something lower, keep in mind that your users won't be able to leave a comment when they like a topic or message.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

pastorvictor

Thank you, Suki! That helped. I lowered it to 50px but now the Twitter button is not aligned with the other two buttons. How can I fix this? I am attaching an image to show you how it looks.

Suki

Thats just pure css trickery to align the buttons at the top, on your Sources/shareThis.php file find:


.sharethis_twitter, .sharethis_google
{
'. (!empty($modSettings['share_likebutton_enable']) ? '
position: relative;
top: -60px;
' : '') .'
}


and change the -60 with a more appropriate number, it will depend on the number you set for the facebook iframe so you need to test a few numbers to see which one suits your needs.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

perfec2

I started using it when it support  smf 1.1x it seems it does not support this version anymore. I want to add google+ share buttion in it, please what are the steps to do that. I'm using smf 1.1.18?

Suki

It's been a long time now since any of my mods supported SMF 1.1.x, none of them has support for an outdated version sorry. I do not have any old release of this mod that still support 1.1.x either.

There are plenty of this kind of mods on the mod site, some of them might still support 1.1.x.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

joeyjojoshabadoo

Guys thanks alot for the free mod.

Question - Is there any way at all that I can have this show in only the first message and last message? I know I can get it in the first message, but I don't want to have it in all of them as I think it looks messy. I do think that it would be most useful in the last message, as that's when people might be most likely to share.

Is there any way to do it?

many thanks

stewpot007

HI,

Just did a repair_settings.php and used the link to auto delete the Repair_Settings.php file from the server and it caused the following error.  Can you help

Fatal error: Class 'ShareThis' not found in /home/wwwcurr/public_html/curry/Sources/Load.php on line 1582

Link to forum: http://www.curry-recipes.co.uk/curry/index.php

I am running the latest version.

Any suggestions?

see this topic as the MOD suggested I contact you for help: http://www.simplemachines.org/community/index.php?topic=544981.0

Suki

Download the mod again, unzip it.

If you have the mod installed, upload the ShareThis.php file to your Sources dir via ftp or your file manager tool

If you do not have the mod installed, upload the file named "remove.php" to your forum's root dir and call it with your browser:  mysite.com/remove.php  it should show just a blank page, delete the file afterwards.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

HDB

I installed this modification on my 2.0.11 forum and since I have an SSL cert it won't work as the browser blocks the unsecure content that the modification must be pulling from one or more of the social media sites.

What would it take in the way of custom edits to allow the SSL process on my forum to be satisfied with the things the mod is currently relying on from unsecured sources?

Biology Forums

Would be nice if someone could share a picture of this in action...

HDB

Quote from: Shuban on May 17, 2016, 01:35:43 AM
Would be nice if someone could share a picture of this in action...
Not much to show. The social media graphics that the mod is pulling from the unsecure sites get blocked and the green padlock in the URL bar for the SSL cert still shows in green but with the addition of a "!" ( exclamation mark) surrounded by a triangle which is to alert that unsecure content was blocked.

Suki

Ah yes this mod is quite old and it doesn't support ssl, will take a look at and and release a new version. I honestly cannot remember the mod's code so I cannot give you a quick n dirty fix for it but a quick search with notepad++ for http// and replace it with // (schema less urls) on this mod's source file should do the trick.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

HDB

Thanks Suki.

I will give the notepad++ trick a try. That makes sense now that you mention it.

If you could update it I think myself and others would be grateful now that SSL use is becoming more and more the direction forums will go.

It is a well laid out mod. Your admin panel that the mod installs provides a great deal of control. Well done IMO.

Thanks.

HDB

Quote from: Suki on May 17, 2016, 10:18:28 AM
Ah yes this mod is quite old and it doesn't support ssl, will take a look at and and release a new version. I honestly cannot remember the mod's code so I cannot give you a quick n dirty fix for it but a quick search with notepad++ for http// and replace it with // (schema less urls) on this mod's source file should do the trick.
Just to follow up, I did the suggested edit and this Modification works great on a SSL (https) forum now. Thanks!!

spiros

Gives some xhtml errors like

there is no attribute "data-url"
there is no attribute "allowTransparency"
there is no attribute "data-text"
there is no attribute "data-via"
there is no attribute "size"
there is no attribute "href"
element "g:plusone" undefined

http://www.simplemachines.org/community/index.php?topic=550498.0

https://validator.w3.org/check?uri=https%3A%2F%2Fwww.translatum.gr%2Fforum%2Findex.php%3Ftopic%3D454720.0;accept=text%2Fhtml%2Capplication%2Fxhtml%2Bxml%2Capplication%2Fxml%3Bq%3D0.9%2Cimage%2Fwebp%2C%2A%2F%2A%3Bq%3D0.8;accept-language=en-US%2Cen%3Bq%3D0.8%2Cel%3Bq%3D0.6

pocttopus

I had download the latest version which is 4.2 but after installation there is 4.1.2 version
How can I update to 4.2?

I also went for manual installation but with no result
Forum version 2.0.14

Thanks!

dabigben

Works fine, thanks a lot. But too bad it does'nt share any content from the message, only the topic URL. You cannot put a thumbnail on facebook or something like that. But thanks anyway !

Advertisement: