1
Micha578
News Module - Facebook like Button under text
  • 2011/8/19 10:04

  • Micha578

  • Just popping in

  • Posts: 33

  • Since: 2006/6/30


Hi Xoopsers,
did anybody knows, how to integrate a like it button under the news posts to send the news into facebook profiles?

Thanks for your answers, Michael

2
Mamba
Re: News Module - Facebook like Button under text
  • 2011/8/19 10:43

  • Mamba

  • Moderator

  • Posts: 11228

  • Since: 2004/4/23


It's already implemented in News 1.67 Beta for XOOPS 2.5.x. You can set it in the module Preferences

You can download it from SourceForge SVN

You need also the ModuleClasses

Please test and let me know if it works for you.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
nettawy007
Re: News Module - Facebook like Button under text
  • 2011/8/20 12:57

  • nettawy007

  • Just popping in

  • Posts: 8

  • Since: 2007/1/11


i tried it on xoops 2.4.5

it works fine but ..
after i click like or add a comment , i needs a confirmation to add the like or comment on face book ,,, is that normal or a miss some thing ???

4
nettawy007
Re: News Module - Facebook like Button under text
  • 2011/8/20 12:58

  • nettawy007

  • Just popping in

  • Posts: 8

  • Since: 2007/1/11


and is there a like button for publisher ???

5
Anonymous
Re: News Module - Facebook like Button under text
  • 2011/9/14 20:13

  • Anonymous

  • Posts: 0

  • Since:


He Mamba,

It is not working for me.

Settings Display share icons > yes or no
Result > no share icons

Settings Display item icons > yes or no
Result > both (yes or no) settings the item icons are still showing

Settings Use facebook comments > yes or no
Result > no facebook comments

Environment:
XOOPS Versie XOOPS 2.5.0
PHP Versie 5.2.17
mySQL Versie 5.0.77

I tried a lot of things:
- overwrite existing files with new files
- Delete all files and upload new files
- upload framework files
- update system and news modules

But nothing results in working share icons.

Am I doing something wrong?

BTW This weekend I will upload the dutch language files for News module and framework.

6
Anonymous
Re: News Module - Facebook like Button under text
  • 2011/9/21 19:30

  • Anonymous

  • Posts: 0

  • Since:


Bounce?

7
playsome
Re: News Module - Facebook like Button under text
  • 2011/9/22 16:12

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


You can add a FB Like button directly into the module template, this is the code I have for adding a like button to the article module

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<{$xoops_url}>/modules/article/view.article.php<{$smarty.const.URL_DELIMITER}><{$article.id}>" layout="button_count" show_faces="false" width="80"></fb:like>


To use FBML i believe you need a developer account or you can use iframe version
so for the news module you would have something like this:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>" layout="button_count" show_faces="false" width="80"></fb:like>


just replace the smarty tags with actual news module smarty tags to build the URL of the article.

Login

Username:
Password:

Lost Password? Register now!

Who's Online

62 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 62


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jan 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits