Previous Thread
Next Thread
Print Thread
Hop To
#237425 06/12/2010 1:50 AM
Joined: Oct 2006
Posts: 46
W
newbie
newbie
W Offline
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
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
(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.

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
SD Offline
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 smile

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
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"
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 925 guests, and 159 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)