Adding Facebook to socialbookmark in dotcms

16 views
Skip to first unread message

Nadeem Jawaid

unread,
May 25, 2012, 3:30:01 AM5/25/12
to do
hi,
 
I wanted to add facebook in the socialbookmark. In the below code , i added facebook as a option
 
 #set($socialBookmarksList = ['digg','delicious','yahoo','google','newsvine','facebook'])
      #socialBookmarks()
 
 
and then also in social_bookmarks.html file , I added  the following code
 
#elseif($socialBookmark == "facebook")
   <li>
    <a rel="nofollow" href="
http://www.facebook.com/" onclick="dotCMS_SB_bookmark('facebook', pageTitle, pageURL);return false;" border="0">
     <img src="/html/js/social_bookmarks/images/facebook.png" border="0" alt="Add to: Facebook" />  #if(!$UtilMethods.isSet($onlyIcons)) Facebook #end
    </a>
   </li>
 
and also in social_bookmark.js , I added the code
 
 
but still i cannot see the link for facebook in socialbookmark by using the macro.
 
Any idea what need to be done or what is missed.
 
Nadeem

Maria Ahues Bouza

unread,
May 25, 2012, 1:27:54 PM5/25/12
to dot...@googlegroups.com
Nadeem,

What version are you running?

We don't use this macro anymore

Why don't you use something like AddThis?
http://www.addthis.com/

Thanks
Maria

--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.



--
Community Manager

dotCMS
Main: 305.900.2001
Fax: 305.397.2579
www.dotcms.com
http://www.twitter.com/dotCMS
http://www.facebook.com/dotCMS
http://www.twitter.com/mabouza

Please consider the planet before printing this email.

Nadeem Jawaid

unread,
May 25, 2012, 3:09:22 PM5/25/12
to dot...@googlegroups.com
I am using 1.9.3.2 .
 
I want to add the facebook as the socialbookmark among others.
 
I saw the code of facebook from addthis()
 
here it is <br/>
<!-- AddThis Follow BEGIN -->
<p>Follow Us</p>
<div class="addthis_toolbox addthis_32x32_style addthis_default_style">
<a class="addthis_button_facebook_follow" addthis:userid="YOUR-PROFILE"></a>
<a class="addthis_button_twitter_follow" addthis:userid="YOUR-USERNAME"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4fbfd7b8413600ad"></script>
<!-- AddThis Follow END -->
 
 
however , how can i embedd it the social bookmark , so that when i click share link, it shows these 2 options also.
 


--- On Fri, 5/25/12, Maria Ahues Bouza <ma...@dotcms.com> wrote:

Maria Ahues Bouza

unread,
May 25, 2012, 3:28:42 PM5/25/12
to dot...@googlegroups.com
Nadeem,

I'm sure its possible but I would just get rid of the socialBookmarks macro and use all the code directly from AddThis.

-Maria

Alex

unread,
May 25, 2012, 3:51:51 PM5/25/12
to dot...@googlegroups.com
Nadeem:

I tried to do what you are doing.  I found there was an issue with the javascript code when you add it to the macro.  So I decided to get the addthis code and put it on a vtl file, do my own css to display the buttons correctly, and parse the file from your page or widget.


Alex
Reply all
Reply to author
Forward
0 new messages