Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
3 registered (UBBSystems, SteveS, driv), 19 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 01/21/12
Posts: 2
Top Posters (30 Days)
Ruben 65
SD 57
Gizmo 53
gliderdad 32
Iann128 22
Dunny 21
Steve C 20
driv 18
dbremer 16
Stan 15
Latest Photos
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Gizzo Marx
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: 4031
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: 593
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: 4031
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: 593
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: 593
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: 14904
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
A positive note
by SteveS
Yesterday at 09:36 PM
How to locate links to particular site if they are only used in images?
by Conrad
02/10/12 09:41 PM
Pictures not displaying
by Marker23
02/09/12 10:04 PM
Issue with logging out constantly
by Flanuva
02/09/12 07:05 PM
Long thread, UBB code not parsing
by Bad Frog
02/09/12 07:47 AM
Forum Stats
10213 Members
36 Forums
33666 Topics
180902 Posts

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