|
|
Joined: Oct 2006
Posts: 46
newbie
|
newbie
Joined: Oct 2006
Posts: 46 |
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
Last edited by Willzter; 06/12/2010 1:50 AM.
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
$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 there must be other options however that i would investigate.. ie: NOT using an iframe.. but it works.
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
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"
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
perty simple little mod to do.. also should add maybe a tweet too
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
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"
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
perty simple little mod to do.. also should add maybe a tweet too 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"
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
I have a mod over at UBBDev ( here) for AddThis.com which lets you add to "bookmark" a page on twitter, facebook, etc.
|
|
|
1 members (Ruben),
1,277
guests, and
207
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|