Back to vBulletin 3.7 Template Modifications

Postbit - Re-Postitioned Buttons
Mod Version: 1, by Boosted Panda

This modification is in the archives.
vB Version: 3.7.2 Rating: (1 vote - 4.00 average) Installs: 6
Released: 25 Jul 2008 Last Update: Never Downloads: 0
Not Supported Code Changes  

I always hated the buttons being in the same table as the post/signature. This is a great way to give your forum a unique and stylish look. This can be with the stock buttons or even better to make tabs. I am not an expert coder so any advice is welcomed in a constructive manner. Thanks!

Find:
PHP Code:
        <div style="margin-top: 10px" align="$stylevar[right]">
            <!-- 
controls -->
            <if 
condition="$post['editlink']">
                <
img style="display: none" id="progress_$postidsrc="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]/>
                <
a href="$post[editlink]name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]border="0" /></a>
            </if>
            <if 
condition="$post['forwardlink']">
                <
a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]border="0" /></a>
            </if>
            <if 
condition="$post['replylink']">
                <
a href="$post[replylink]rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]border="0" /></a>
            </if>
            <if 
condition="$show['multiquote_post']">
                <
a href="$post[replylink]rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]border="0" id="mq_$post[postid]/></a>
            </if>
            <if 
condition="$show['quickreply'] AND !$show['threadedmode']">
                <
a href="$post[replylink]rel="nofollow" id="qr_$post[postid]onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]border="0" /></a>
            </if>
            <if 
condition="$show['moderated']">
                <
img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]border="0" />
            </if>
            <if 
condition="$show['spam']">
                <
img src="$stylevar[imgdir_misc]/spam_detected.png" alt="$vbphrase[spam_post]border="0" />
            </if>
            <if 
condition="$show['deletedpost']">
                <if 
condition="$show['managepost']">
                    <
a href="postings.php?$session[sessionurl]do=managepost&amp;p=$post[postid]"><img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[manage]border="0" /></a>
                <else />
                    <
img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]border="0" />
                </if>
            </if>
            <if 
condition="$show['redcard']">
                <
a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]border="0" /></a>
            <else />
                <if 
condition="$show['yellowcard']">
                    <
a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]border="0" /></a>
                </if>
            </if>
            
$template_hook[postbit_controls]
            <!-- / 
controls -->
        </
div
Replace:
PHP Code:
    </td>
</
tr>
</
table>
        <
div align="center">
            <!-- 
controls -->
            <if 
condition="$post['editlink']">
                <
img style="display: none" id="progress_$postidsrc="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]/>
                <
a href="$post[editlink]name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]border="0" /></a>
            </if>
            <if 
condition="$post['forwardlink']">
                <
a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]border="0" /></a>
            </if>
            <if 
condition="$post['replylink']">
                <
a href="$post[replylink]rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]border="0" /></a>
            </if>
            <if 
condition="$show['multiquote_post']">
                <
a href="$post[replylink]rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]border="0" id="mq_$post[postid]/></a>
            </if>
            <if 
condition="$show['quickreply'] AND !$show['threadedmode']">
                <
a href="$post[replylink]rel="nofollow" id="qr_$post[postid]onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]border="0" /></a>
            </if>
                <if 
condition="$show['reputationlink']">
                <
span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]rel="nofollow" id="reputation_$post[postid]"><img  src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
                <if 
condition="$show['popups']"><script type="text/javascript"vbrep_register("$post[postid]")</script></if>
            </if>
<
a href="post_thanks.php?$session[sessionurl]do=post_thanks_add&amp;p=$post[postid]&amp;securitytoken=$bbuserinfo[securitytoken]id="post_thanks_button_$post[postid]"<if condition="$vboptions[disable_ajax] != 2"onclick="post_thanks_give($post[postid], <if condition="$vboptions[post_groan_integrate]">true<else />false</if>); return false;"</if> style="display:$display_thanks_imagerel="nofollow"><img src="$stylevar[imgdir_button]/post_thanks.gif" alt="$vbphrase[post_thanks_thanks]border="0" /></a>

                            <if 
condition="$show['moderated']">
                <
img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]border="0" />
            </if>
            <if 
condition="$show['spam']">
                <
img src="$stylevar[imgdir_misc]/spam_detected.png" alt="$vbphrase[spam_post]border="0" />
            </if>
            <if 
condition="$show['deletedpost']">
                <if 
condition="$show['managepost']">
                    <
a href="postings.php?$session[sessionurl]do=managepost&amp;p=$post[postid]"><img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[manage]border="0" /></a>
                <else />
                    <
img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]border="0" />
                </if>
            </if>
            <if 
condition="$show['redcard']">
                <
a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]border="0" /></a>
            <else />
                <if 
condition="$show['yellowcard']">
                    <
a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]border="0" /></a>
                </if>
            </if>
            
$template_hook[postbit_controls]
            <!-- / 
controls -->
        </
div
This include the Thank You Hack as well. Enjoy! Two exampled attached, one with Tabs and one with regular images.

Download

No files for download.

Screenshots

Click image for larger version
Name:	Picture 1.jpg
Views:	698
Size:	55.0 KB
ID:	84522   Click image for larger version
Name:	attachment.jpg
Views:	952
Size:	106.6 KB
ID:	84523  

Similar Mods

Show Thread Enhancements split postbit buttons into a seperate cell vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024