Share Buttons - PJ

Dazed
Dazed
@dazed
11 years ago
1,022 posts
Is it just me or are the social networking links missing in PJ? I used to be able to share a blogs, audio etc. on twitter or facebook a few releases back and now I do not see it.
updated by @dazed: 12/25/13 11:09:56AM
douglas
@douglas
11 years ago
2,791 posts
Yeah, they were removed since they were not a Jamroom feature or module, it came from http://sharethis.com.

In your account settings you can link your action updates to social sites, Facebook, Twitter etc., using the oneall module.

Or you can use the code below to add those links back in if you like.

Look for something like this in your row templates...

    {if jrCore_module_is_active('jrComment')}
        <span class="normal"> | <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.blog_title_url}#comments"> {$item.blog_comment_count|default:0} {jrCore_lang module="jrBlog" id="27" default="comments"} &raquo;</a></span>
    {/if}
    <hr>

right above the hr tag add this:

    <span class="normal"> | </span>
    <span class='st_facebook' st_title='{$item.blog_title|escape}' st_url='{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.blog_title_url}'></span><span class='st_twitter' st_title='{$item.blog_title|escape}' st_url='{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.blog_title_url}'></span><span class='st_email' st_title='{$item.blog_title|escape}' st_url='{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.blog_title_url}'></span><span class='st_sharethis'></span>

then below the closing div tag, that is after the hr tag, add this:

{* 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.options({ldelim}publisher:"388dfdea-9f20-4afd-ad57-a451dd00eac1"{rdelim});</script>

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
alt=
@kayskeem
11 years ago
200 posts
This is a very nice edit !! It helped me. I would like to know how do I put this same shareit at the bottom of a blog post near where they comment?? http://exposehits.com/exposehits/blog/1/jakepapa theres a page i'd like it on for example.
michael
@michael
11 years ago
7,717 posts
The blog post will be the blogs 'item_detail.tpl' file

Think it should be the same code.
Dazed
Dazed
@dazed
11 years ago
1,022 posts
Thanks Douglas. I did a search on and it was only in a few templates. I looked at the index_blogs.tpl and these are already listed. Is this where they belong on PJ?
douglas
@douglas
11 years ago
2,791 posts
Dazed:
Thanks Douglas. I did a search on and it was only in a few templates. I looked at the index_blogs.tpl and these are already listed. Is this where they belong on PJ?

I'm not sure I understand what your asking, are there still some left that I missed taking out? I thought I removed them all.

Also, I'll have to check, but I don't think that the index_blogs.tpl file is even being used in PJ.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Dazed
Dazed
@dazed
11 years ago
1,022 posts
ok I just did a search on the tag and that came back. I will take another look.
Dazed
Dazed
@dazed
11 years ago
1,022 posts
Douglas - Can you take a look at the site_news.tpl and tell me if you get it to work there? I have it on the index.tpl and it is fine but I could not get it in the ajax tabs for some reason. When they did appear, that section was dark and other times I would have the share popup immediately. Oddness!

Thanks
douglas
@douglas
11 years ago
2,791 posts
It may not work with the ajax, that might have been another reason for removing it... I'll check it out and let you know what I find.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
douglas
@douglas
11 years ago
2,791 posts
I'm not sure the code your using is valid code anymore, it looks like sharethis.com has changed how things work, at least I've not been able to find that code on their website, do you have an account with them?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
douglas
@douglas
11 years ago
2,791 posts
I've got the buttons showing on the ajax calls, but the popup button isn't working after an ajax call.

Since those news stories are linked to the news page, I would leave the share buttons off the front page. I'm not sure they'll ever work right since that is an ajax loaded page.

You also have another issue on the index page. The Mixstream Radio blog at the bottom is using the same row template as the site news, the pagination will not work correctly for this new section, it needs its own row template and a div with a unique ID to put it in.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
Dazed
Dazed
@dazed
11 years ago
1,022 posts
No account with them but I have tested it on FB and everything posts fine. No worries on ajax tabs. I changed the blog to use the other template. It just looked more fluid using the same tpl as the others.

Appreciate your help Douglas!