Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Share plug-in weird url's when sharing?
Avatar
jlinnation
CA
Member
Free Members
sp_UserOfflineSmall Offline
Oct 14, 2014 - 6:53 pm

Yellow Swordfish said
I don't believe I can replicate this on our site here but i am not the knowledgeable one on this plugin so I have asked @mr-papa to check this and respond. It will be later in the day however.

Here is a video recording.  Clicking on both links and short codes does the same thing.  It doesn't take me to the post. Instead. it just takes me to the top of the thread.

 

https://www.youtube.com/watch?.....0TgNAIufPA

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 14, 2014 - 9:21 pm

this looks like a recent change to the sharethis api...   they have provided a new argument to their js script to turn of the auto hashing that is corrupting the url...

I will try to get an update out to the plugin in the next few days, but in meantime, if you want, you can make the change yourself...  in sp-share-this-components.php, around line 90, replace:

        $script.= '
            <script type="text/javascript">
                stLight.options({
                    publisher: "'.$publisher.'",
                    shorten: '.$shorten.',
                    minorServices: '.$minor.',
                    onhover: '.$hover.',
                    theme: "'.$options['theme'].'",
                    newOrZero: "zero",
                });
            </script>';

with

        $script.= '
            <script type="text/javascript">
                stLight.options({
                    publisher: "'.$publisher.'",
                    shorten: '.$shorten.',
                    minorServices: '.$minor.',
                    onhover: '.$hover.',
                    theme: "'.$options['theme'].'",
                    newOrZero: "zero",
                    doNotHash: true,
                });
            </script>';

its just adding the doNotHash argument...

Avatar
jlinnation
CA
Member
Free Members
sp_UserOfflineSmall Offline
Oct 15, 2014 - 2:31 am

Thanks!  That fixed it.

 

Any fix for the weird URL when enabling the social icons instead of the green share this? 

I still get that ugly url below when clicking on twitter icon.

Image Enlarger

Image Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 15, 2014 - 4:11 am

That's standard URL encoding which allows a url to be copied, pasted etc., without corruption. Again I will pass this on to Mr Papa as I am not sure if this is avoidable but it is probably recommended.

andy-signature.png
YELLOW
SWORDFISH
Avatar
jlinnation
CA
Member
Free Members
sp_UserOfflineSmall Offline
Oct 15, 2014 - 6:49 am

Yellow Swordfish said
That's standard URL encoding which allows a url to be copied, pasted etc., without corruption. Again I will pass this on to Mr Papa as I am not sure if this is avoidable but it is probably recommended.

Yeah its taking up all the space.  Plus it looks like this on twitter.  Which looks like spam to me.

I'll stick with using the "share it" green button for now.  Works much better now.

Image Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 15, 2014 - 8:29 pm

I am still not sure how you are getting a twitter box that looks like that... its not the standard one... and is typically converted to a sharethis url...  have you set an special options on our sharethis options panel?

Avatar
jlinnation
CA
Member
Free Members
sp_UserOfflineSmall Offline
Oct 16, 2014 - 6:45 am

Mr Papa said
I am still not sure how you are getting a twitter box that looks like that... its not the standard one... and is typically converted to a sharethis url...  have you set an special options on our sharethis options panel?

I get the error by enabling the individual Social Icons.

Image Enlarger

 

Once enabled.  Clicking on Twitter gives you that weird URL.

Image Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 16, 2014 - 9:59 am

I understand all that.. my point was I dont get the same behavior...  popup doesnt look like that... url doesnt look like that... its a sharethis shortened url... 

hence why I asked for the options on forum - components - share this... the top section...

Avatar
jlinnation
CA
Member
Free Members
sp_UserOfflineSmall Offline
Oct 16, 2014 - 5:29 pm

This is what options I have enabled.

 

Image Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 16, 2014 - 8:34 pm

so the only difference is mine has use minor services options in popup checked, but that just affects the share this green button popup...

so a bit puzzled how you are seeing what you do...

might have asked this before, but are you using the wp share this plugin in addition to ours?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625