sharethis on front page

soaringeagle
@soaringeagle
9 years ago
3,304 posts
is there a way to add sharethis on the front page to share that page as well as custom pages created in sitebuilder


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 06/30/15 08:52:29PM
michael
@michael
9 years ago
7,719 posts
The front page doesnt have an item_id so it wont work with the pre-built code contained in the share this module (jrShareThis) BUT you could go to share this, get the standard share this code and put that on your front page.

http://www.sharethis.com

I know you understand how to add the code. Just throw it in the index.tpl template for the skin and make sure any javascript has a space between the { and the first letter.

If they give you code that looks like this:
....tLight.options({publisher: ......

That {p will cause a white screen when smarty thinks its a smarty variable, so add a space between the '{' and the 'p' and it will work
....tLight.options({ publisher: ......
soaringeagle
@soaringeagle
9 years ago
3,304 posts
kinda rather avoid that i like the module cause its built in and not contacting outside servers for widgets and those share widgets nearly double the load times

i wish there was a way that the sharethis could be added to every page and grab the url its on to share


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
michael
@michael
9 years ago
7,719 posts
Its the same. the module one just preps the needed code in a simpler way.

Check out the source of any of your pages where the buttons are:
https://your-dred-site.com/soaring-eagle/uploaded_audio/14702/she-feeds-me

You'll see the same ".....stLight.options({ publishe..." in there.

The module one:
{jrShareThis module="?????" item_id="??????"}

Requires an item_id. there isnt one for the front page.
soaringeagle
@soaringeagle
9 years ago
3,304 posts
ithought the jrMenu id would work but didnt


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
9 years ago
3,304 posts
ok im having serius trouble finding any responsive share widgets that work
i was going to try the sharethis sidebar widget but the code wont validate in the template


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
michael
@michael
9 years ago
7,719 posts
It wont validate because you haven't put that space between the '{' and the 'p'.

do that and it will validate.
Developer Networks
Developer Networks
@developer-networks
9 years ago
566 posts
Try creating a profile as the website itself so if you created it and upload the website logo. and the

profile id = 123
then try this in a div box on your index page.

{jrShareThis module="jrProfile" item_id="123"}



Moreover, that same profile can be used to catch all contact us and other relevent data for the site.


Hope that helps
updated by @developer-networks: 05/29/15 03:12:39AM
Developer Networks
Developer Networks
@developer-networks
9 years ago
566 posts
Also if you did not want to go that route.

you can easily add share this to your index with a copy and paste function from their website

http://www.sharethis.com/get-sharing-tools/

Tags