Forums  ›  Dolphin 6.1  ›  Tips
 

Adding Social Bookmarks to Articles

How to add social bookmarking to your Dolphin Articles

How to add social bookmarking to your Dolphin articles. If you haven't done this already, you need to get your own button to add the social bookmarking popup with different sites to submit your content to. Visit the site http://www.addthis.com/.  Click "Get your button" in the left column. Then select which button you want - you can also do this for rss buttons. After you follow the prompts and fill out the registration - they will give you a code to copy and paste.

Now the fun part -

.

.

Edit: public_html/inc/classes/BxDolArticles.php

.

.

To put the button at the top of the article content:

$ret = <<<EOF
<div class="navigationLinks">
<span><a href="articles.php">{$sArticlesC}</a></span>
<span>&gt;</span>
<span><a href="articles.php?catID={$aArticle['CategoryID']}&amp;action=viewcategory">{$sCategoryName}</a></span>
<span>&gt;</span>
<span>{$sTitle}</span>
</div>
<div class="articleBlock">
<div class="mainTitle">{$sTitle}</div>
<div class="date">{$aArticle['Date']}</div>
INSERT YOUR ADDTHIS CODE HERE
<div>{$sText}</div> 
</div>
EOF;

.

.

To put the button at the bottom of the article content:

$ret = <<<EOF
<div class="navigationLinks">
<span><a href="articles.php">{$sArticlesC}</a></span>
<span>&gt;</span>
<span><a href="articles.php?catID={$aArticle['CategoryID']}&amp;action=viewcategory">{$sCategoryName}</a></span>
<span>&gt;</span>
<span>{$sTitle}</span>
</div>
<div class="articleBlock">
<div class="mainTitle">{$sTitle}</div>
<div class="date">{$aArticle['Date']}</div>
<div>{$sText}</div>
INSERT YOUR ADDTHIS CODE HERE
</div>
EOF;

.

.

By Justin Fuller

Forums  ›  Dolphin 6.1  ›  Tips