Back to vBulletin 3.6 Template Modifications

Show PM postbit rewrite
Mod Version: 1.00, by Nutz

This modification is in the archives.
vB Version: 3.6.7 Rating: (3 votes - 5.00 average) Installs: 25
Released: 30 May 2007 Last Update: Never Downloads: 34
Not Supported Template Edits  

Show PM postbit rewrite

Description
The following template edits will change the default show pm postbit template to that similar to one found here at vB.org (see screenshot).



Details
  • 2 Template Modification's
Notes
Credit goes to Princeton for coming up with the nicer design for PM's postbit and thanks to him for letting me release my version here.
Live demo: http://www.vbulletin.org/forum/private.php?do=newpm

replace all code in template pm_showpm
HTML Code:
<if condition="$show['receiptprompt']">
<script type="text/javascript">
<!--
<if condition="$show['receiptpopup']">
if (window.attachEvent)
{
    window.attachEvent('onload', askReceipt);
}
else if(window.addEventListener)
{
    window.addEventListener('load', askReceipt, false);
}
function askReceipt()
{
    doReceipt(confirm("$receipt_question_js"));
}
</if>
function doReceipt(yesno)
{
    // do image method too to get around popup blockers
    var img_obj = new Image();
    img_obj.src = "private.php?$session[sessionurl]do=dopmreceipt&type=img&pmid=$pm[pmid]&confirm=" + (yesno ? 1 : 0);
    if (yesno)
    {
        fetch_object('receipt').style.display = 'none';
    }
}
// -->
</script>
</if>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
    <td class="tcat" colspan="2">$vbphrase[private_message]<span class="normal">: $pm[title]</span></td>
</tr>
<if condition="$show['recipients']">
<tr>
    <td class="alt1"><if condition="$ccrecipients"><strong>$vbphrase[recipients]</strong>: $ccrecipients<br /></if><if condition="$bccrecipients"><strong>$vbphrase[recipients] <span class="smallfont">($vbphrase[bcc])</span></strong>: $bccrecipients</if></td>
</tr>
</if>
</table>
$postbit
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="managepm" />
<input type="hidden" name="pm[$pm[pmid]]" value="true" />
<input type="hidden" name="folderid" value="$pm[folderid]" />
</form>
<br />
<if condition="$show['receiptprompt']">
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="receipt">
    <tr>
        <td class="thead"><strong>$vbphrase[confirm_outstanding_receipt]</strong></td>
    </tr>
    <tr>
        <td class="panelsurround" align="center">
        <div class="panel">
            <div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">
                <table class="fieldset" cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                    <td><phrase 1="$pm[username]">$vbphrase[x_requested_read_receipt]</phrase></td>
                    <td><input type="button" class="button" style="font-weight:normal" value="$vbphrase[okay]" onclick="doReceipt(1);this.disabled=true;" /></td>
                </tr>
                </table>
            </div>
        </div>
        </td>
    </tr>
    </table>
    <br />
</if>



in postbit OR postbit_legacy

ADD at the top
HTML Code:
<if condition="$post['forwardlink']">
<form action="private.php?do=managepm" method="post">
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="thead">
    <td class="thead" colspan="2" align="right">
    <span class="smallfont" style="float: left; vertical-align: middle;">
    <img class="inlineimg" src="images/statusicon/post_old.gif" alt="" border="0">
    $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if></span> 
    <select name="dowhat" onchange="this.form.submit();">
            <option value="delete">Delete</option>
            <option value="xml">Download as XML</option>
            <option value="csv">Download as CSV</option>
            <option value="txt">Download as TEXT</option>
        </select><input class="button" value="Go" accesskey="s" type="submit"></td>
    </tr>
<tr>
    <td class="alt2" width="50"><span class="smallfont">Subject:</span></td>
    <td class="alt1">
        <strong>$post[title]</strong> 
    </td>    
</tr>
<tr>
    <td class="alt2"><span class="smallfont">From:</span></td><td class="alt1">
        <div><span id="postmenu_">
            <a href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
            $post[onlinestatus]
            <script type="text/javascript"> vbmenu_register("postmenu_", true); </script>
        </span>
                <if condition="$post['usertitle']"><span class="smallfont">($post[usertitle])</span></if>
        </div>
    </td>
</tr>
<tr>
<td class="alt1" colspan="2">
        <!-- message -->
        <div id="post_message_$post[postid]">$post[message]</div>
        <!-- / message -->
        <if condition="$show['postedited']">
        <!-- edit note -->
            <div class="smallfont">            <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                <em>
                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                </em>
            </div>
        <!-- / edit note -->
        </if>
        <div style="margin-top: 10px" align="$stylevar[right]">
            <!-- controls -->
            <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>
            <!-- / controls -->
        </div>
    <!-- message, attachments, sig -->
    </td>
</tr>
</table>
<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none;">
    <table cellpadding="4" cellspacing="1" border="0">
    <tr>
        <td class="thead">$post[username]</td>
    </tr>
    <if condition="$show['profile']">
        <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
    </if>
    <if condition="$show['pmlink']">
        <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
    </if>
    <if condition="$show['emaillink']">
        <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
    </if>
    <if condition="$show['homepage']">
        <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
    </if>
    <if condition="$show['search']">
        <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
    </if>
    <if condition="$post['userid'] AND $show['member']">
    <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
    </if>
    </table>
</div>
<else />



Still in postbit...
FIND
HTML Code:
<!-- / post $post[postid] popup menu -->
REPLACE with:
HTML Code:
<!-- / post $post[postid] popup menu -->
</if>
Thats it,
Enjoy!

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024