Navigation

Pligg Support

I am looking to add social buttons like fb like, Google +1 and tweet button to every story. To which file should i add these codes? I added to story.php but it breaks the page.

Possible Answers

    Go to link_summary.tpl and find "storyfooter". Put your social buttons code somewhere there. You can easily do it.

    | Posted 187 days ago | Permalink | Hide Replies

    Thanks supertramp.. Twitter button messup with pligg code i think. It shows blank page when i add tweet button

    | Posted 186 days ago | Permalink | Hide Replies

    Wrap your code with

    {literal} code here {/literal}

    | Posted 185 days ago | Permalink | Hide Replies

    One more thing. Do you know how can we make sharing buttons display only in story page and not on the homepage

    | Posted 186 days ago | Permalink | Hide Replies

    Use the code below to display the button on your story page

    {if $pagename eq "story"}

    // Your button code here

    {/if}

    | Posted 185 days ago | Permalink | Hide Replies

    Thanks supertramp.. Twitter button messup with pligg code i think. It shows blank page when i add tweet button

    | Posted 186 days ago | Permalink | Hide Replies

    Enclose it with {literal}{/literal} tags, i.e.:

    {literal}Tweet Button Code{/literal}

    | Posted 184 days ago | Permalink | Hide Replies

Who Upvoted this Story