ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Integrating Social Media with EE

February 15, 2012 8:10pm

Subscribe [2]
  • #1 / Feb 15, 2012 8:10pm

    ramonekalsaw

    377 posts

    Hello,

    I’m in the process of reworking the social media integration on my website—Twitter, Facebook, YouTube, RSS—and am thinking about using a widget like www.addthis.com.

    I was wondering if anyone has any suggestions or best practices to share regarding linking to social media sites from EE.

    Thanks.

  • #2 / Feb 16, 2012 2:01am

    Bhashkar Yadav

    727 posts

    try with HJ Social Bookmarks : here

  • #3 / Feb 16, 2012 2:35am

    ramonekalsaw

    377 posts

    Thanks : ) I’ll take a look ...

  • #4 / Feb 16, 2012 4:13pm

    ramonekalsaw

    377 posts

    try with HJ Social Bookmarks : here

    I installed HJ Social Bookmarks, and am getting the error message below:

    Here’s how I have the tag set up in EE v2.2.2 - Build: date 20110801. Can you see what’s wrong?

    Thanks.

    Ramone

    {exp:channel:entries channel="news" limit="1" status="Homepage Featured|Homepage Secondary|open"}
       {news_image_full}
    
       <div class="entry">
        <h2>{title}</h2>
    <p>    <br />
      {exp:hj_social_bookmarks sites="Facebook|Twitter" entry_id="{entry_id}"}</p>
    
    <p>    <div class="info"><br />
         <em>{entry_date format="%F %d, %Y"}</em><br />
         <a href="#">{comment_total}  Comments</a><br />
        </div><!-- /end .info --><br />
     <br />
        <div class="content"><br />
        {news_body}    </div><!-- /end .content --><br />
       </div><!-- /end .entry --><br />
       <div class="comments"><br />
        </p><h3>There are {comment_total}  comments for this entry. <a href="#leave-a-comment">Leave a comment below »</a></h3>
    <p>    {/exp:channel:entries}

    ===

    ERROR MESSAGE

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined offset: 1

    Filename: libraries/Template.php

    Line Number: 933
    Error

    The following tag has a syntax error:

    {exp:hj_social_bookmarks}

    Please correct the syntax in your template.

  • #5 / Feb 16, 2012 9:53pm

    Bhashkar Yadav

    727 posts

    i also checked this plugin and working fine here.

    can you please check at Add-ons -> Plugins if “HJ Social Bookmarks” is listed there.

  • #6 / Feb 17, 2012 2:58pm

    ramonekalsaw

    377 posts

    i also checked this plugin and working fine here.

    can you please check at Add-ons -> Plugins if “HJ Social Bookmarks” is listed there.

    HJ Social Bookmarks is showing up in Add-ons > Plugins ... but whereever I add {exp:hj_social_bookmarks sites="Facebook|Twitter" entry_id="{entry_id}”} to a template I get the php error message.

    Perplexing : /

  • #7 / Feb 17, 2012 10:38pm

    Bhashkar Yadav

    727 posts

    hmmm, this is template parser error.

    can you please try like

    {exp:hj_social_bookmarks sites="Facebook|Twitter" entry_id="{entry_id}"}{/exp:hj_social_bookmarks}

    hope this would work.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases