Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (57-Vette), 51 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 04/09/11
Posts: 140
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#237425 - 06/12/10 01:50 AM Facebook "Like" button
Willzter Offline
newbie
Registered: 10/25/06
Posts: 44
Hey there,

I've ben whacking a slightly modified chunk of code for FB's "Like" button in all my website footers (.shtml pages) and it works a treat but when I put it in a custom island in UBB 7.5.3 it only seems to grab the first bit of the URL:-(

Here's the code:
<script type="text/javascript">
document.write ('<iframe src="http://www.facebook.com/plugins/like.php?href='+window.location+'&layout=standard&show_faces=true&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px"><\/iframe>');
</script>

ANy input gratefully accepted!

Thx

Willzter


Edited by Willzter (06/12/10 01:50 AM)
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#237426 - 06/12/10 09:39 AM Re: Facebook "Like" button [Re: Willzter]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
Click to reveal.. (show code)

Php Code:
/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
<script type="text/javascript">
document.write ('<iframe src="http://www.facebook.com/plugins/like.php?href='+window.location+'&layout=standard&show_faces=true&width=240&action=like&colorscheme=light" 
scrolling="no" 
frameborder="0" 
style="border:none; 
overflow:hidden; 
width:240px; 
height:80px"><\/iframe>');
</script>
EOF; 




i did that as a test on my DEV forum -- http://sirdude.com/forum .. just took your code, changed the width..

works fine smile

there must be other options however that i would investigate.. ie: NOT using an iframe.. but it works.
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#237441 - 06/13/10 02:31 PM Re: Facebook "Like" button [Re: SD]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
I would love to see this implemented in way where it appears as a button next to the topic options at the top of the thread, next to "rate this topic"
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#237456 - 06/13/10 11:24 PM Re: Facebook "Like" button [Re: Bad Frog]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
perty simple little mod to do.. also should add maybe a tweet too smile
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#237458 - 06/14/10 05:50 AM Re: Facebook "Like" button [Re: SD]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
majority of my users don't even know what a tweet is, but would still be a good idea I think
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#237467 - 06/14/10 05:01 PM Re: Facebook "Like" button [Re: SD]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
Originally Posted By: Sirdude
perty simple little mod to do.. also should add maybe a tweet too smile

any takers on making this mod?
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#237478 - 06/14/10 09:48 PM Re: Facebook "Like" button [Re: Bad Frog]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
I have a mod over at UBBDev (here) for AddThis.com which lets you add to "bookmark" a page on twitter, facebook, etc.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image