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
critterGuide.ca
Canada
Member
sp_UserOfflineSmall Offline
Jan 3, 2016 - 9:58 am

hey guys 🙂

I have integrated social networking to my forum using a social network login plugin that works wonderfully with the forum and i installed the Share this plugin for the forum.

the share this plugin does not show the post when you share something but uses the topmost image and text on my page... and i do not want these to be in there. can i change the saring image and text manualy? 

or can i somehow get it to take the title of the post and first couple of rows? and have my logo as a picture? it does not look good at all as of now..

here is a shared post from the website: (the most recent one)

https://www.facebook.com/aquar.....a/?fref=nf

Avatar
critterGuide.ca
Canada
Member
sp_UserOfflineSmall Offline
Jan 3, 2016 - 10:12 am

  i can probably just overwrite the

$url, $title, $summary

variables inside 

sp_share_this_do_sharing

as all the button use the same ones but i dont see how to change the image and i dont want to tweak this without loosing it next update 🙂

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jan 3, 2016 - 10:28 am

Might be worth taking a look at Forum > Components > SEO and enabling open graph support. Also, you can set a forum level featured image which can be used if no other page specific image options exist - check out the SEO panel help popup for more info..

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

not exactly sure what you want to do, but based on what you have written, I believe you should be able to hook into:

sph_share_this_chicklets

its a filter where you are pass 5 arguments:  $out, $options, $style, $url, $title, $summary

$out is the markup about to be written out..  you have access to $url, $title and $summary... you probably have to do a string replace in $out for those variables with what you want...

do you know how to do a standard wp hook?  something like:

add_filter('sph_share_this_chicklets', 'my_sharethis', 10 ,5);
function my_sharethis($out, $options, $style, $url, $title, $summary) {
    # now adjust $out however you want
    # be sure to return it
    return $out;
}
Avatar
critterGuide.ca
Canada
Member
sp_UserOfflineSmall Offline
Jan 3, 2016 - 11:57 am

these are my settings:1.jpgImage Enlarger

wht do i need to change to make it work 🙂 ?

none of these seem to help.. of or on..

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

settings???  did you try the filter I suggested??

Avatar
critterGuide.ca
Canada
Member
sp_UserOfflineSmall Offline
Jan 3, 2016 - 12:10 pm

didnt see your post there 🙂 we posted at the same time..

 

i just want the share buttons to show  the forum info and not the page containing the forum info..

and only if that option isn't posible to have a manual set data in there..Ike said it can be changed by the SEO setting.. so i am explotring this option first.. less invasive..

 

but i cant seem to get it working with that...

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

invasive?? nothing invasive about using a hook... means you only make change once and dont lose it on updates...

I do not understand what you want...  but I dont see how the seo options affect what is passed to facebook...  we share a url, a title and a summary (ie excerpt)...   the opengraph seo usage can impact the image shared...

but if you want to change the url, the title or the summary, you need to adjust via the hook I gave you...

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jan 3, 2016 - 3:30 pm

Sorry if I caused any misunderstanding, my post on the SEO option for opengraph was really in reference to the image.

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

So.. Now I'm kinda lost 🙂

How does the share button get a title, content and image?

It does not work for me and gets text and images from the page containing the forum and not the actual forum post..

So I am sharing the website and not the forum ..take a look at the link provided at the first post. There is no title even in the share.

Or go to my website and try to share..

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: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620