The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to reposition FB "Like" button in thread controls heading?
I don't like the default location where VBulletin puts the Facebook Like button on individual threads. It unnecessarily takes up an entire horizontal row under the thread title, when it could be fit into the left side of the thread tools bar. The problem is, when I move it to the thread_controls div (in showthread.css), the position is incorrect. I would like to situate it on the far left side of the div.
Here's a picture of where the button is currently positioned, and where I would like it to be: Here's the beginning code for the thread_controls div, with the relevant button code in red: Code:
<div id="thread_controls" class="thread_controls toolsmenu"> <div> <vb:if condition="$show['fb_likebutton']"> {vb:raw fblikebutton} </vb:if> <ul id="postlist_popups" class="postlist_popups popupgroup"> <vb:if condition="$show['firstunreadlink'] AND $thread['replycount']"> <li class="popupmenu"><h6><a class="firstunread" href="{vb:raw firstunread}">{vb:rawphrase view_first_unread} </a></h6></li> </vb:if> {vb:raw template...... </div> --------------- Added [DATE]1334846016[/DATE] at [TIME]1334846016[/TIME] --------------- I got it to work by removing a div. I removed the div in red. Is this okay to do? Code:
<div id="thread_controls" class="thread_controls toolsmenu"> <vb:if condition="$show['fb_likebutton']"> {vb:raw fblikebutton} </vb:if> <div> <ul id="postlist_popups" class="postlist_popups popupgroup"> <vb:if condition="$show['firstunreadlink'] AND $thread['replycount']"> <li class="popupmenu"><h6><a class="firstunread" href="{vb:raw firstunread}">{vb:rawphrase view_first_unread} </a></h6></li> </vb:if> {vb:raw template_hook.threadtoolbar} <li class="popupmenu" id="threadtools"> <h6><a class="popupctrl" href="javascript://">{vb:rawphrase thread_tools}</a></h6> <ul class="popupbody popuphover"> <li><a href="{vb:raw $vboptions.vbforum_ Could anyone give me some tips on how to now get the button centered vertically and a small left margin? If I use padding or margins it affects the other elements in the div. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|