Trying to put ADDTHIS at top of articles
mishima 144
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Trying to put ADDTHIS at top of articles
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
No, only on the article summary page.
1 Re: Trying to put ADDTHIS at top of articles
mishima
OP
144
From: -
From: -
Does it have to go on these pages? I have tried to add it in 'articles_pages' with the above social buttons but it will not diplay!
1 Re: Trying to put ADDTHIS at top of articles
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
This was already part of Contentteller 2.1.3. You find this option under news/articles settings under "Other"
Show Facebook Recommended button? => Yes
You may need to add {$insert['newsstory_facebook']} to your news_story_extended and {$insert['article_facebook']} to your articles_summary templates.
Show Facebook Recommended button? => Yes
You may need to add {$insert['newsstory_facebook']} to your news_story_extended and {$insert['article_facebook']} to your articles_summary templates.
1 Re: Trying to put ADDTHIS at top of articles
mishima
OP
144
From: -
From: -
Thanks Philipp the 2nd one worked a treat
I've been looking at getting the Facebook "like" button onto each article and news story but you are only able to create code for a specified URL : http://developers.facebook.com/docs/reference/plugins/like/#
Any idea how it can be implemented?
I've been looking at getting the Facebook "like" button onto each article and news story but you are only able to create code for a specified URL : http://developers.facebook.com/docs/reference/plugins/like/#
Any idea how it can be implemented?
1 Re: Trying to put ADDTHIS at top of articles
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
The following two possibilities should work
1)
2)
1)
<!-- Template: articles_pages -->
{$insert['article_toc']}
<h1>{$insert['article_title']} {$insert['article_edit']} {$insert['article_rating_line']}</h1>
<div class="authorfont"><b>Editor</b>: {$insert['article_author']} (<i>{$insert['article_extra3']}</i> <b>Date</b>: {$insert['article_date']} <a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}pagesprinter{$insert['param_page']}{$insert['article_seo']},{$insert['articlepage_page']}.html" rel="nofollow"></a><a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}summary{$insert['param_page']}{$insert['article_seo']}.html">{$insert['article_comments']} Comment(s)</a> - <a href="https://www.contentteller.com/{$forum_link}">Join the discussion here</a>
<br /><br />
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_google_plusone"></a>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_email"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="https://www.contentteller.com/ http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e3952d27c2d5160[/URL]"></script>
<!-- AddThis Button END -->
</div>
2)
<!-- Template: articles_pages -->
{$insert['article_toc']}
<h1>{$insert['article_title']} {$insert['article_edit']} {$insert['article_rating_line']}</h1>
<div class="authorfont"><b>Editor</b>: {$insert['article_author']} (<i>{$insert['article_extra3']}</i> <b>Date</b>: {$insert['article_date']} <a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}pagesprinter{$insert['param_page']}{$insert['article_seo']},{$insert['articlepage_page']}.html" rel="nofollow"></a><a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}summary{$insert['param_page']}{$insert['article_seo']}.html">{$insert['article_comments']} Comment(s)</a> - <a href="https://www.contentteller.com/{$forum_link}">Join the discussion here</a></div>
<div class="content">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_google_plusone"></a>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_email"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="https://www.contentteller.com/ http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e3952d27c2d5160[/URL]"></script>
<!-- AddThis Button END --></div>
1 Re: Trying to put ADDTHIS at top of articles
mishima
OP
144
From: -
From: -
Sure its below. When posted this causes duplications of <h1> which is just the border and black bg for a section.
<!-- Template: articles_pages -->
{$insert['article_toc']}
<h1>{$insert['article_title']} {$insert['article_edit']} {$insert['article_rating_line']}</h1>
<div class="authorfont"><b>Editor</b>: {$insert['article_author']} (<i>{$insert['article_extra3']}</i> <b>Date</b>: {$insert['article_date']} <a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}pagesprinter{$insert['param_page']}{$insert['article_seo']},{$insert['articlepage_page']}.html" rel="nofollow"></a><a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}summary{$insert['param_page']}{$insert['article_seo']}.html">{$insert['article_comments']} Comment(s)</a> - <a href="https://www.contentteller.com/{$forum_link}">Join the discussion here</a></div>
<h1>
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_google_plusone"></a>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_email"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="https://www.contentteller.com/http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e3952d27c2d5160"></script>
<!-- AddThis Button END --></h1>
<!-- Template: articles_pages -->
{$insert['article_toc']}
<h1>{$insert['article_title']} {$insert['article_edit']} {$insert['article_rating_line']}</h1>
<div class="authorfont"><b>Editor</b>: {$insert['article_author']} (<i>{$insert['article_extra3']}</i> <b>Date</b>: {$insert['article_date']} <a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}pagesprinter{$insert['param_page']}{$insert['article_seo']},{$insert['articlepage_page']}.html" rel="nofollow"></a><a href="https://www.contentteller.com/contentteller{$insert['param_ext']}{$insert['param_ct']}articles{$insert['param_action']}summary{$insert['param_page']}{$insert['article_seo']}.html">{$insert['article_comments']} Comment(s)</a> - <a href="https://www.contentteller.com/{$forum_link}">Join the discussion here</a></div>
<h1>
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_google_plusone"></a>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_email"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="https://www.contentteller.com/http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e3952d27c2d5160"></script>
<!-- AddThis Button END --></h1>
1 Re: Trying to put ADDTHIS at top of articles
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
This should be no problem. Can you post the HTML code of the changed template?
I'm trying to add the ADDTHIS toolbar to the top of a news story or article but because ADDTHIS uses div tags CT doesn't like it.
At the top we have the the title, author, date and time etc well we want to add a new section with ADDTHIS within it. Is there are a way to do this without the the source code going crazy because its a div within a div?
Thanks