Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Show PM postbit rewrite Details »»
Show PM postbit rewrite
Version: 1.00, by Nutz Nutz is offline
Developer Last Online: Dec 2013 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 3.6.7 Rating:
Released: 05-29-2007 Last Update: Never Installs: 25
Template Edits
 
No support by the author.

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: https://vborg.vbsupport.ru/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>
[hr]1[/hr]

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 />
[hr]1[/hr]

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-30-2007, 05:27 PM
whiteeagle0 whiteeagle0 is offline
 
Join Date: Oct 2006
Location: Texas
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshot?

EDIT NVM Appeared

*installed*
Reply With Quote
  #3  
Old 06-01-2007, 05:35 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice - thanx for the share

Jacquii.
Reply With Quote
  #4  
Old 06-01-2007, 02:07 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

btw - in your code for postbit or postbit_legacy, you have left in the link information for your particular template.

PHP Code:
<img class="inlineimg" src="images/cstyle/purple/statusicon/post_old.gif" alt="" border="0"



should be changed to for normal use.

PHP Code:
<img class="inlineimg" src="images/statusicon/post_old.gif" alt="" border="0"


installed! thanks for the mod!

also, is there a way to make a change to the PM list to make it show like it shows here on vbulletin.org?
Reply With Quote
  #5  
Old 06-14-2007, 10:16 AM
Nutz's Avatar
Nutz Nutz is offline
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedGTiVR6 View Post
btw - in your code for postbit or postbit_legacy, you have left in the link information for your particular template.

PHP Code:
<img class="inlineimg" src="images/cstyle/purple/statusicon/post_old.gif" alt="" border="0"



should be changed to for normal use.

PHP Code:
<img class="inlineimg" src="images/statusicon/post_old.gif" alt="" border="0"


installed! thanks for the mod!

also, is there a way to make a change to the PM list to make it show like it shows here on vbulletin.org?
Sorry missed this. o.O

fixed the icon prob. and sorry but I don't understand what you mean by the 'PM list'.

Thanks,
Mat
Reply With Quote
  #6  
Old 06-14-2007, 11:32 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was referring to this: https://vborg.vbsupport.ru/showthread.php?t=132622



I like the PM set-up 100% better now.
Reply With Quote
  #7  
Old 06-14-2007, 02:11 PM
Skavenger Skavenger is offline
 
Join Date: Sep 2005
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedGTiVR6 View Post
btw - in your code for postbit or postbit_legacy, you have left in the link information for your particular template.

PHP Code:
<img class="inlineimg" src="images/cstyle/purple/statusicon/post_old.gif" alt="" border="0"



should be changed to for normal use.

PHP Code:
<img class="inlineimg" src="images/statusicon/post_old.gif" alt="" border="0"


installed! thanks for the mod!

also, is there a way to make a change to the PM list to make it show like it shows here on vbulletin.org?
you should use
Code:
$stylevar[imgdir_statusicon]/
instead of
Code:
images/statusicon/
for thos who have more than one style
Quote:
Originally Posted by RedGTiVR6 View Post
I was referring to this: https://vborg.vbsupport.ru/showthread.php?t=132622



I like the PM set-up 100% better now.
this is better, i think
https://vborg.vbsupport.ru/showthread.php?t=149710
Reply With Quote
  #8  
Old 02-27-2008, 06:19 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any word if this will work for 3.7?
Reply With Quote
  #9  
Old 03-02-2008, 09:41 PM
LordDB LordDB is offline
 
Join Date: Aug 2006
Location: CoffeeFads.Co.Uk
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Nutz, any reason why my PM's now show twice...one in the new style, and the other old style? Have followed what you instructed!

Br.
Reply With Quote
  #10  
Old 03-02-2008, 10:17 PM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having problems with this modification. It seems to be showing the PM twice. Here are some screenshots (all from one page):





Attached is my postbit in a .txt file. Any help is greatly appreciated.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:39 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
  • Page Generation 0.04424 seconds
  • Memory Usage 2,360KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_html
  • (6)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete