The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Guys and gals,
I'm trying to float some social bookmark sharing links to the right side within the postbit title area. I've used this code.... Code:
<span style="float: right;" class="smallfont"><a href="http://www.facebook.com/share.php?u={URL}"><img src="http://www.legendaryrockers.com/forums/images/blackorwhite/misc/facebookpostbit_.png" alt="Share with Facebook!" /></a><img src="http://www.legendaryrockers.com/forums/images/blackorwhite/misc/googlepostbit_.png" alt="Share with Google!"><img src="http://www.legendaryrockers.com/forums/images/blackorwhite/misc/myspacepostbit_.png" alt="Share with MySpace!"><img src="http://www.legendaryrockers.com/forums/images/blackorwhite/misc/twitterpostbit_.png" alt="Share with Twitter!"><img src="http://www.legendaryrockers.com/forums/images/blackorwhite/misc/yahoopostbit_.png" alt="Share with Yahoo!"></span> ....and, it seems like the placing is just right. But, problem #1 is that the line that separates the title from the message area is being pushed rather than settling underneath the buttons. See attachment. Problem #2 is that I'm trying to make the buttons take members/guests share the info directly to Facebook, Google, MySpace, Twitter and Yahoo, but my first attempt (Facebook, see code above) is not working properly. I'm using the same url that I input into the social bookmarking manager within the admincp. But, I'm assuming that vBulletin does a little 'magic' to get it to share properly. What URL should I place to get that working properly? Any help would be appreciated! ![]() |
#2
|
||||
|
||||
![]()
1. My guess is that if you use a web developer tool to analyze that, the space your new block is taking up is height enought to either stop the line (the line runs into it) or cover the line (the line runs under it). You'll have to analyze that with your web developer tools.
2. Hard to tell what the problem is when you never said what the problem is. What is happening that is wrong with the code you are using? |
#3
|
||||
|
||||
![]()
1. I've tried smaller sizes on the images to see if the height issue may be the culprit, but no dice. Not sure how to fix that one.
2. LOL...I had a lot of fluff, but no real description as to what was going on there. What is happening is that I have my link in the bookmarking manager within admincp as.... Code:
http://www.facebook.com/share.php?u={URL} .....and, the links in the bookmark section (under the threads) links properly to the share screen at Facebook. But, when I place it as a link as part of the linked image, it simply takes me to the share.php page without a URL already included and doesn't really do what it is intended to do. Hope that explains it better. ![]() |
#4
|
||||
|
||||
![]()
1. The only thing I can suggest is using firebug or web developer to analyze it.
2. Have you tried just printing out $url and seeing what is passed? Where is it supposed to get this url from? |
#5
|
||||
|
||||
![]()
1. Looks like I can't fix this horizontal issue for now because when I fix it (by placing it in a certain part of the code) on FF and IE, it knocks it off for Chrome and Safari. And, vice versa. So, since IE and FF are more widely used, I'll just go with that for now. Hopefully I'll find the answer at some point for all four major browsers.
Thanks for the suggestions on that Lynne ![]() 2. I tried adding $url instead of "URL" in the {URL} portion of the link address. But, that didn't work. Any other suggestions? |
#6
|
||||
|
||||
![]()
2. Where is $url defined? You can't just put it in there and hope it spits something out.
|
#7
|
||||
|
||||
![]()
I'm not sure Lynne. I know that I use the following URL....
Code:
http://www.facebook.com/share.php?u={URL} .....for adding the information into the social bookmarking manager within the admincp. So, I tried to take the same url and add it into the postbit. Here's the social bookmarking template..... Code:
<li class="smallfont" style="width:20%; min-width:160px; float:$stylevar[left]; margin-top:$stylevar[cellpadding]px"> <if condition="$bookmarksite['iconpath']"> <a href="$bookmarksite[link]" target="socialbookmark"><img src="$stylevar[imgdir_misc]/$bookmarksite[iconpath]" border="0" alt="<phrase 1="$bookmarksite[title]">$vbphrase[submit_thread_to_x]</phrase>" class="inlineimg" /></a> </if> <a href="$bookmarksite[link]" target="socialbookmark" style="text-decoration:none">$bookmarksite[title]</a> </li> .....anything there that might help us solve this? |
#8
|
||||
|
||||
![]()
$url is going to be defined in the code. You need to find that and you will have to add it to the page through the use of plugins.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|