Log in

View Full Version : Show Thread Enhancements - Bookmarks & Tags


Yenimuhendis
03-12-2009, 10:00 PM
What Does This Hack Do?

This very simple template hack moves the Social Bookmarks and Tags from the bottom of a thread to the top.

Demo: http://www.makineforumu.net/forum/site-anketi-t4.html

recommed to use with Compact Bookmarks Box (https://vborg.vbsupport.ru/showthread.php?t=178517)

Installation

Open SHOWTHREAD template

Find:

$poll

Add above :

<!--bookmarks &amp; tags -->

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tbody>

<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
<strong>$vbphrase[bookmarks] &amp; $vbphrase[tags]</strong>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td align="center">
<table cellpadding="0" cellspacing="3" border="0" width="100%">

<tr>
<td align="left" width="50%">


<if condition="$bookmarksites">
<!-- social bookmarking links -->
<br />
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" class="tborder" align="center">
<tr>
<td class="thead">$vbphrase[bookmarks]</td>
</tr>
<tr>
<td class="alt2" style="padding-top:0px"><div style="clear:both"></div><ul style="list-style-type:none; margin:0px; padding:0px">$bookmarksites</ul><div style="clear:both"></div></td>
</tr>
</table>
<!-- / social bookmarking links -->
</if>


</td>
<td align="left" width="50%">


<if condition="$show['tag_box']">
<!-- thread tags -->
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">
<if condition="$show['manage_tag']"><div style="float: $stylevar[right]" class="normal">
<a href="threadtag.php?$session[sessionurl]t=$thread[threadid]" id="tag_edit_link">$vbphrase[edit_tags]</a>
</div></if>
<a name="taglist"></a>
<a href="tags.php$session[sessionurl_q]">$vbphrase[tags]</a>
</td>
</tr>
<tr>
<td class="alt1 smallfont" id="tag_list_cell">$tag_list</td>
</tr>
</table>

<script type="text/javascript" src="clientscript/vbulletin_ajax_taglist.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript" src="clientscript/vbulletin_ajax_tagsugg.js?v=$vboptions[simpleversion]"></script>
<!-- / thread tags -->
</if>



</td>
</tr>
</table>
</tbody>
</table>
<br />
<!--bookmarks &amp; tags -->

Find and remove:

<if condition="$bookmarksites">
<!-- social bookmarking links -->
<br />
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" class="tborder" align="center">
<tr>
<td class="thead">$vbphrase[bookmarks]</td>
</tr>
<tr>
<td class="alt2" style="padding-top:0px"><div style="clear:both"></div><ul style="list-style-type:none; margin:0px; padding:0px">$bookmarksites</ul><div style="clear:both"></div></td>
</tr>
</table>
<!-- / social bookmarking links -->
</if>

<if condition="$show['tag_box']">
<!-- thread tags -->
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">
<if condition="$show['manage_tag']"><div style="float: $stylevar[right]" class="normal">
<a href="threadtag.php?$session[sessionurl]t=$thread[threadid]" id="tag_edit_link">$vbphrase[edit_tags]</a>
</div></if>
<a name="taglist"></a>
<a href="tags.php$session[sessionurl_q]">$vbphrase[tags]</a>
</td>
</tr>
<tr>
<td class="alt1 smallfont" id="tag_list_cell">$tag_list</td>
</tr>
</table>

<script type="text/javascript" src="clientscript/vbulletin_ajax_taglist.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript" src="clientscript/vbulletin_ajax_tagsugg.js?v=$vboptions[simpleversion]"></script>
<!-- / thread tags -->
</if>

thats all.

Jasem
03-15-2009, 03:41 PM
Good work, thank you

Yenimuhendis
03-17-2009, 06:40 AM
Thnx for your comment :)

Fırtına
03-27-2009, 07:15 PM
Thanks,
Teşekkürler şablonda değişiklik başarılı sonuçlandı, Postbit'in altına indirmeye çalışacağım editörün üst kısmına daha yakışacak umarım...

oguzdinc
08-31-2009, 10:49 AM
I use 3.8.4 but could not activate the bookmarks and tags. I loaded a new template bookmarks are shown at the end of the messages. And tags also shown. But in my default template it does not work. Here is a link http://www.madenciyim.com/forums/showthread.php?p=10201#post10201

Please help me

Cerbero1000
10-19-2009, 04:21 PM
Any way to have tags inside the first message? That's cool!