Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Share this plugin tweaking :)
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 3, 2016 - 5:50 pm

As I have said repeatedly, I do not know what you want to do and asked for clarity...  but you said

i can probably just overwrite the

$url, $title, $summary

variables inside

sp_share_this_do_sharing

but didnt want to edit code in the plugin... I gave you a hook that allows you adjust those variables without editing the plugin code itself...

so perhaps best if we start over and you explain what you want to do...

Avatar
critterGuide.ca
Canada
Member
sp_UserOfflineSmall Offline
Jan 3, 2016 - 6:50 pm

Yes, let's start over. Sorry about that 🙂

 

I installed 'share this' plugin for the forum. When a share bottom is pressed in one of my forum posts I do not get the forum information in the share title, summary and picture. Instead  I get the information from the page housing the forum. The info that is always displayed at sharing in the text and picture I have above the forum on the same page.

Go to:

AquariumJunkiesCanada.com/forum

And press share to see what I am talking about.

 

I want the share title, summary and picture to come from the forum post and not the page.

 

Sorry for the confusion guys. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 3, 2016 - 8:25 pm

I am a little confused as to what is going on...

take this forum post as example:  http://www.aquariumjunkiescana.....kiescanada

if you look at the code for sharethis share on FB button, you see:

<span class="st_facebook_hcount" displaytext="Facebook" st_summary="At AJC we offer Free custom webpages for our active members. ABSOLUTELY FREE  (Donations will be greatly appreciated) Photo galleries are controlled by you! pictures can be added, deleted or changed any time. Page layout is fully customizable and page Design/colors can be changes by request. Ads can..." st_title="How to get your own webpage on AquariumJunkiesCanada" st_url="http%3A%2F%2Fwww.aquariumjunkiescanada.com%2Fforum%2Fforum-rules-and-information%2Fhow-to-get-your-own-webpage-on-aquariumjunkiescanada%23p13" st_processed="yes">
<span class="stButton" style="text-decoration:none;color:#000000;display:inline-block;cursor:pointer;">
<span>
<span class="stMainServices st-facebook-counter" style="background-image: url("http://w.sharethis.com/images/facebook_counter.png");"> </span>
<span class="stArrow">
<span class="stButton_gradient stHBubble" style="display: inline-block;">
<span class="stBubble_hcount">9</span>
</span>
</span>
</span>
</span>
</span>

which looks right to me...  the url, title and excerpt that FB is notified of appear all correct...

yet, when FB goes to share, its wrong...

I think what is going on is that you are also running jetpack for WordPress and you have turned on the OG tags stuff in jetpack... and it does them wrong for the forum page...  so you end up with multiple open graphs tags - jetpack which is wrong and ours which is correct....  so FB gets confused...

so first question, are you really using the jetpack (which is horribly greedy btw) sharing functions elsewhere in your wp site?  If not, you should disable that feature of jetpack...  jetpack stupidly enables dozens of features and relies on you to disable the ones you dont want - good for slowing down sites...

if you do need the jetpack sharing elsewhere on site, then you will need to disable it (via jetpack hooks) on the forum page only so it doesn screw up facebook...

Avatar
critterGuide.ca
Canada
Member
sp_UserOfflineSmall Offline
Jan 3, 2016 - 11:35 pm

did not know jetpack does all of that!

first of all thank for telling me about jetpack. i deactivated about 200 thousand features there...

second, that did the trick. now it works. when sharing we get the post data.

I actualy just used it to see site downtime, brute force block and 'related posts'

i deactivated all the rest.

Thank you again.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 3, 2016 - 11:42 pm

yup, folks have complained and complained about the bloat in jetpack with everything turned on by default...  it has some nice features, but they should be opt in vs opt out...

glad everything is sorted now!

Avatar
critterGuide.ca
Canada
Member
sp_UserOfflineSmall Offline
Jan 4, 2016 - 4:36 pm

Another related question. On a mobile device I do not see the Facebook share buttons but the share this green icon. It takes me to a window and allows sharing in every network posible. Can that be changed/ limited?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jan 4, 2016 - 5:22 pm

Would like Steve or Andy to confirm this but my guess would be no. The reason being is that it takes you to a sharethis URL meaning it's their site, and up to them as to what social platforms they give you the choice of. What did you want to limit?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 4, 2016 - 5:30 pm

Check also that you are up to date with everything, i thought we changed this quite recently - actually 5.6.0.

andy-signature.png
YELLOW
SWORDFISH
Avatar
critterGuide.ca
Canada
Member
sp_UserOfflineSmall Offline
Jan 4, 2016 - 5:49 pm

I just installed it a couple of days ago and no updates are showing.

on the PC it does not take you to the share this URL though... It's only the mobile browser that gets this option.. Makes sharing very hard..

I will check for updates again when I will be by a pc. 

Edit :runnig 5.6.1 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 4, 2016 - 6:57 pm

which ones do you have enabled in the share this options? and what are the options above that? (ie share minor or something similar?)   are you getting more than those from the widget?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626