![]() |
Addthis social buttons
I want to install some social icon buttons to my 3.8x forum. The code is from addthis.com.
How would I put it just to the left of the Thread Tools button at the top of each thread? Thanks, Jon |
If you edit the SHOWTHREAD template (in the Show Thread Templates group), and search for "<!-- toolbar", a little below that you should find this code:
Code:
</div> You could add a table cell for your code, like: Code:
</div> |
I've tried adding it there, but the buttons go vertically rather than horizontally. The table cell is there and I have even tried adding a width="300" to the cell using this:
Code:
<td width="300" class="tcat"> Any ideas on why I can't make the cell wider so the buttons go horizontally? Edit: I found some code in another thread: https://vborg.vbsupport.ru/showthread.php?t=209507 I used this: Code:
<td class="vbmenu_control" id="threadtools" nowrap="nowrap"> Any ideas on why not? |
I'm not sure, but try using style="white-space: nowrap;" in place of nowrap="nowrap".
|
I tried changing it from:
Code:
<td class="vbmenu_control" id="addthis" nowrap="nowrap" width="150"> to Code:
<td class="vbmenu_control" id="addthis" width="150" style="white-space: nowrap;"> That made it go vertical in both IE and Firefox, so still seeking a solution. |
You could try making sure there is no white space in between your buttons (I assume they are links, so take out spaces or newlines between </a> and the next <a ...), and if you need space somewhere use instead of an actual space.
I'm not an expert in the layout stuff (in case you haven't figure that out yet), but if it still doesn't work it might help if you could post the actual code you're adding. |
Here is the code in full, with my specific id edited for security:
Code:
<td class="vbmenu_control" id="addthis" nowrap="nowrap" width="150"> |
OK, did you try this:
Code:
<td class="vbmenu_control" id="addthis" nowrap="nowrap" width="150"> (I just took the all the line breaks out from between the <div> tags for that div). |
I do this for my share buttons... the edit to the SHOWTHREAD template was a little more complicated than I first expected.
This is what I wound up with- my edits are in red. Code:
<td class="tcat" width="175"> Code:
<td class="tcat" width="100%" align="right" padding="0" style="padding-top:0px; padding-bottom:0px; padding-right:0px;"> |
All times are GMT. The time now is 02:54 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|