Welcome to Geeklog, Anonymous Monday, December 02 2024 @ 10:17 pm EST

Geeklog Forums

Facebook like buttom


Ales

Anonymous
Hi

I like add facebook like buttom in articles. I use add this code.
http://www.addthis.com/web-button-select

I would like add Button on the first page and in each article, but if i add button in storytext.thtml all articles on first page have same butten, if i click on read more, when every article got special id, everythink is ok?
http://www.pozitivke.net/article.php/Poljedeljstvo-Studija-Fungicidi-Insektic

I successfully added a button in the article, with that i use article.thtml, but can i add that also on first page?

Is there some solution?

THK
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
As an exemple you can see the SocialShare Plugin .

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Andreas

Anonymous
Hi!
I also searched for a plugin and tried various methods of getting it to work to no avail.
I ended up doing some minor manual modifications to a few files, and wrote down a
very simple guide for anyone who's interested.

http://enkeladress.com/article.php?story=20110310165422545

Feel free to try the "like-button" on the guide Big Grin

Cheers
/Andreas
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hi,

Another solution is to use Purepro theme (Facebook like button ready) or to edit your storytext.html (and featuredstorytext.thml and archivestorytext.thml) and add the iframe like this code:

Text Formatted Code

    <div class="story-body">
        {story_anchortag_and_image}{story_text_no_br}
        <p><iframe src="http://www.facebook.com/plugins/like.php?href={article_url}&amp;layout=button_count&amp;show_faces=true&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:23px;" allowTransparency="true"></iframe></p><p>{start_readmore_anchortag}{lang_readmore}{end_readmore_anchortag}</p>
    </div>
 


::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Roccivic

Forum User
Moderator
Registered: 05/19/10
Posts: 136
And here's another solution: http://www.geeklog.net/forum/viewtopic.php?showtopic=92307
 Quote

All times are EST. The time is now 10:17 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content