Admin Extra Discussions  

Go Back   Admin Extra Discussions > Resources > Tutorials > vBulletin Tutorials


Some Details: Posted by ChopSuey on 08-02-2010 (04:54 PM), last reply was on 16-02-2010 (01:02 PM). This thread has received 6 replies and been viewed 460 times.

Reply
 
LinkBack Thread Tools
vBulletin 3.8 - Remove Quick Reply From PM's 3.8
Old 08-02-2010, 04:54 PM   #1 (permalink)
vBulletin 3.8 - Remove Quick Reply From PM's 3.8
ChopSuey ChopSuey is offline 08-02-2010, 04:54 PM

Author of thread
This makes quick reply go away when viewing a PM.

AdminCP> Styles & Templates> Style Manager< Your Syle> Private Messaging Templates> pm_showpm

Replace the whole thing with

<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">
        <div class="normal" style="float:$stylevar[right]">
        <if condition="$show['reportlink']"><a href="private.php?$session[sessionurl]do=report&amp;pmid=$pm[pmid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_private_message]" border="0" /></a> &nbsp;</if>
        </div>
        $vbphrase[private_message]<span class="normal">: $pm[original_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

<br />

<if condition="$show['receiptprompt']">
    <form action="private.php?do=managepm&amp;dowhat=delete&amp;pmid=$pm[pmid]" method="post">
    <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[fromusername]">$vbphrase[x_requested_read_receipt]</phrase></td>
                    <td>
                        <input type="hidden" name="s" value="$session[sessionhash]" />
                        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                        <input type="hidden" name="do" value="managepm" />
                        <input type="hidden" name="dowhat" value="delete" />
                        <input type="hidden" name="folderid" value="$pm[folderid]" />
                        <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 />
    </form>
</if>
<form action="private.php?do=managepm&amp;dowhat=delete&amp;pmid=$pm[pmid]" method="post">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <tr>
        <td class="tcat">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('pm_delete')"><img id="collapseimg_pm_delete" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_pm_delete].gif" alt="" border="0" /></a>
            $vbphrase[delete_this_message]
        </td>
    </tr>
</thead>
<tbody id="collapseobj_pm_delete" style="$vbcollapse[collapseobj_pm_delete]">
    <tr>
        <td class="panelsurround" align="center">
        <div class="panel">
            <div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]">

            <fieldset class="fieldset">
                <legend>$vbphrase[delete_message]</legend>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                    <td>$vbphrase[delete_message_click_button]</td>
                </tr>
                <tr>
                    <td><label for="deletepm"><input type="checkbox" name="pm[$pm[pmid]]" id="deletepm" value="true" />$vbphrase[delete_this_message]</label></td>
                </tr>
                </table>
            </fieldset>

            </div>
        </div>

        <div style="margin-top:$stylevar[cellpadding]px">
            <input type="hidden" name="s" value="$session[sessionhash]" />
            <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
            <input type="hidden" name="do" value="managepm" />
            <input type="hidden" name="dowhat" value="delete" />
            <input type="hidden" name="folderid" value="$pm[folderid]" />
            <input type="submit" class="button" value="$vbphrase[delete_this_message]" />
        </div>
        </td>
    </tr>
</tbody>
</table>

</form>
Enjoy!

Attached Images
File Type: jpg noqr+history.JPG (64.9 KB, 5 views)


ChopSuey
╬icwutudidthar╬
 ChopSuey's Avatar
Views: 460
Reply With Quote
Re: Remove Quick Reply From PM's 3.8
Old 08-02-2010, 08:46 PM   #2 (permalink)
vb.org Administrator
 
Paul M's Avatar
 
Default Re: Remove Quick Reply From PM's 3.8

Why would you want to make it go away ?
Paul M is offline   Back to Index Reply With Quote
Re: Remove Quick Reply From PM's 3.8
Old 08-02-2010, 10:35 PM   #3 (permalink)
Coder Formerly Known As..
 Steve M's Avatar
 
Default Re: Remove Quick Reply From PM's 3.8

A lot of people like the PM system with the quick reply and I don't see how this tutorial would get a lot of attention.
Steve M is offline   Back to Index Reply With Quote
Re: Remove Quick Reply From PM's 3.8
Old 09-02-2010, 07:50 AM   #4 (permalink)
╬icwutudidthar╬
 
ChopSuey's Avatar
 
Author of thread
Default Re: Remove Quick Reply From PM's 3.8

Well i don't like it, im sure a few other people don't.
ChopSuey is offline   Back to Index Reply With Quote
Re: Remove Quick Reply From PM's 3.8
Old 09-02-2010, 08:29 AM   #5 (permalink)
heh heh heh
 
Azhria Lilu's Avatar
 
Send a message via MSN to Azhria Lilu
Default Re: Remove Quick Reply From PM's 3.8

It's still a modification worth sharing
__________________
I know violence isn't the right answer - I got it wrong on purpose!
Admin Extra Information | Member Features
Admin Extra - the switzerland of Forum Administration sites!
It's a Book Blog - Reading, Reviews, Writing!
Azhria Lilu is offline   Back to Index Reply With Quote
Re: Remove Quick Reply From PM's 3.8
Old 09-02-2010, 10:42 PM   #6 (permalink)
vb.org Administrator
 
Paul M's Avatar
 
Default Re: Remove Quick Reply From PM's 3.8

“ Originally Posted by ChopSuey View Post

Well i don't like it, im sure a few other people don't.
Ive never come across one. I know plenty who wanted it adding before it became default.

On a more relevant note, when posting modifications like this you should try and detail what needs editing/adding/removing rather than a wholesale replacement of the template - as many people may have already have customised it.
Paul M is offline   Back to Index Reply With Quote
Re: Remove Quick Reply From PM's 3.8
Old 16-02-2010, 01:02 PM   #7 (permalink)
╬icwutudidthar╬
 
ChopSuey's Avatar
 
Author of thread
Default Re: Remove Quick Reply From PM's 3.8

“ Originally Posted by Paul M View Post

Ive never come across one. I know plenty who wanted it adding before it became default.

On a more relevant note, when posting modifications like this you should try and detail what needs editing/adding/removing rather than a wholesale replacement of the template - as many people may have already have customised it.
Sure i will fix that sometime this week.
ChopSuey is offline   Back to Index Reply With Quote
Reply

Bookmarks

Tags
quick, remove, reply, vbulletin

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vbulletin 4.0 GDK Shelley vBulletin Solutions 3 25-01-2010 04:29 PM
vBulletin Discussions - Free vBulletin Support ChopSuey Community Showcase 86 17-01-2010 10:29 AM




All times are GMT. The time now is 08:45 AM.
Search Engine Optimization by vBSEO 3.3.2
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Admin Extra 2010
Style & Imagery copyrighted to adminextra.com



adminextra Top