Sharethis and Aparna

MAD
MAD
@madc
10 years ago
600 posts
I have added this code to a module I created with the Arparna Module

{ *  share this http :// sharethis.com * }
< script type=" text/javascript " > var switchTo5x = true;< / script >
< script type=" text/javascript " src=" http: //w.sharethis.com/button/buttons.js " >< / script >
< script type=" text/javascript " > stLight.option s({ldelim} publisher:" 388dfdea-9f20-4afd-ad57-a451dd00eac1 "{ rdelim });< / script >
(Code edited to show)

And nothing shows
Is there something else I need to do?

Ok Sorry, I worked out there needs to be code pulling it in
                <span class='st_facebook' st_title='{$item.prLoudFastShitty_title|escape}' st_url='{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.prLoudFastShitty_title_url}'></span><span class='st_twitter' st_title='{$item.prLoudFastShitty_title|escape}' st_url='{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.prLoudFastShitty_title_url}'></span><span class='st_email' st_title='{$item.prLoudFastShitty_title|escape}' st_url='{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.prLoudFastShitty_title_url}'></span><span class='st_sharethis'></span>
But that isn't what i want.
I want this




--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 03/04/14 12:09:10PM
paul
@paul
10 years ago
4,326 posts
See my post on your other Aparna thread.
Added {jrCore_item_detail_features module="paTesting" item=$item} to the detail template and that created sharing buttons and they work fine for me.


--
Paul Asher - JR Developer and System Import Specialist
MAD
MAD
@madc
10 years ago
600 posts
Thanks @paul. As usual great support ;)
Works great but it shares ( on facebook , nothing else tested so far ) as the profile with their bio instead of sharing the content that the MODULE item_detail is supplying.
Anyway to fix this so that it pulls the actual modules info?
Like the first 2 lines with an image etc ( truncate )


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 02/01/14 06:31:39AM
paul
@paul
10 years ago
4,326 posts
You know, up to now I've never played with the ShareIt module.
I'll try and rectify that soon, but until then, hopefully someone else can jump in here?
Pa


--
Paul Asher - JR Developer and System Import Specialist
douglas
@douglas
10 years ago
2,791 posts
I believe the Share It module shares the entire page and not a single item on a page. That is why it was setup only on the detail pages.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
MAD
MAD
@madc
10 years ago
600 posts
Thanks @douglas and @paul.
Seems strange to share the whole page with info you really don't want to share.
You only really want to share a section of a page.
Just from the section that the share this is in eg a module section where you have actually added the share code.
Any chance of a workaround to share only the content in which the share this code has been placed?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
brian
@brian
10 years ago
10,148 posts
That's how ShareThis works - it's all URL based, not based on content on the page unfortunately.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MAD
MAD
@madc
10 years ago
600 posts
Thanks @brian. Is their anyway to make it based on the module?
As most pages are made up from different templates and would be good to be able to add the share this to a section rather than the page.

PS I changed my profile to me as it seemed strange posting as Brandon :)
Should have done it from the get go


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 02/01/14 09:27:22AM
brian
@brian
10 years ago
10,148 posts
MAD©:
Thanks @brian. Is their anyway to make it based on the module?
As most pages are made up from different templates and would be good to be able to add the share this to a section rather than the page.

unfortunately you can't - that's a limitation of both ShareThis and Facebook's Open Graph. Since OG tags must be in the head section, you can only reference ONE item on the page - in other words you cannot "share" a section of a page - it has to be the whole page.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags