Follow Us:
Tricked Out Mods: Forums

Best Hosting
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Like Button
 
 
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> Tricked Out News
View previous topic :: View next topic  
Author Message
sortilege2021
Regular
Regular


Joined: Nov 25, 2010
Posts: 16


PostPosted: Tue Feb 01, 2011 12:01 pm 
Post subject: Like Button
Reply with quote

how to add "Like button" of Facebook on the news?
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 782


PostPosted: Wed Feb 02, 2011 8:05 am 
Post subject:
Reply with quote

http://nukeseo.com/modules.php?name=Forums&file=viewtopic&p=2796
_________________
Tricked Out News
  
Back to top
View user's profile Send private message Visit poster's website
sortilege2021
Regular
Regular


Joined: Nov 25, 2010
Posts: 16


PostPosted: Wed Feb 02, 2011 8:26 am 
Post subject:
Reply with quote

thanks.
  
Back to top
View user's profile Send private message
doffer83
Regular
Regular


Joined: Jan 01, 2011
Posts: 12
Location: Amsterdam

PostPosted: Sun Mar 27, 2011 1:10 pm 
Post subject:
Reply with quote

please how to add this button to the news module.. I saw the code on the other site but I have no idea how to add it
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 782


PostPosted: Sun Mar 27, 2011 2:54 pm 
Post subject:
Reply with quote

I will look at it later today and post a mod for it...
_________________
Tricked Out News
  
Back to top
View user's profile Send private message Visit poster's website
bestbuildpc
I might as well work here
I might as well work here


Joined: Nov 16, 2009
Posts: 100


PostPosted: Mon Mar 28, 2011 11:33 am 
Post subject:
Reply with quote

Great Idea, it will be nice but what happens if FaceBook starts with problems on their servers? Does this third party mod slow down our sites like Twitter used to mess around? Shocked
  
Back to top
View user's profile Send private message Visit poster's website
sortilege2021
Regular
Regular


Joined: Nov 25, 2010
Posts: 16


PostPosted: Sat Apr 02, 2011 9:30 am 
Post subject:
Reply with quote

bobby wrote:
I will look at it later today and post a mod for it...


Awesome! bobby Very Happy
  
Back to top
View user's profile Send private message
YvesNadeau
Blingaholic
Blingaholic


Joined: Jan 06, 2011
Posts: 20


PostPosted: Sun Apr 03, 2011 5:24 pm 
Post subject:
Reply with quote

Image

Very Good Idea!!!
_________________
Image
RadioStatik - La Radio Qui Vous Colle A La Peau
  
Back to top
View user's profile Send private message Send e-mail
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 782


PostPosted: Mon Apr 04, 2011 11:37 am 
Post subject:
Reply with quote

I tried several different ways to add the like button to the news index and found the facebook iframe to be the most reliable and work the best. I have attached a zipped text file with the code that needs to be added to your modules/News/index.php file.

Open the News/index.php and find a line similar to this:

[code]$story_link = '<a href="modules.php?name=N ews&amp;file=article&amp;sid=' . $sid . '">';[/code]

After add the code in the text file. It should appear on your index and link back to the stories article page.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message Visit poster's website
sortilege2021
Regular
Regular


Joined: Nov 25, 2010
Posts: 16


PostPosted: Mon Apr 04, 2011 4:04 pm 
Post subject:
Reply with quote

thank you, but if i want to put on the article?
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 782


PostPosted: Mon Apr 04, 2011 4:52 pm 
Post subject:
Reply with quote

In articles.php, find something similar to this:
Code:
if(empty($bodytext)) {

    $bodytext = $hometext;
} else {
    $bodytext = $hometext.''.$bodytext;
}


and after add the contents of the zipped text file below.
_________________
Tricked Out News
  
Back to top
View user's profile Send private message Visit poster's website
doffer83
Regular
Regular


Joined: Jan 01, 2011
Posts: 12
Location: Amsterdam

PostPosted: Sat Apr 09, 2011 8:01 am 
Post subject:
Reply with quote

the files inside the zip file are not okey.. I can't open it
_________________
I hate the dictator Assad
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 782


PostPosted: Sat Apr 09, 2011 8:24 am 
Post subject:
Reply with quote

here are links to the text files

http://trickedoutnews.com/nuken/facebook.txt

http://trickedoutnews.com/nuken/facebookarticle.txt
_________________
Tricked Out News
  
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> Tricked Out News All times are GMT - 5 Hours
 
 Page 1 of 1
 
 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
Forums ©