vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Private Messages Enhancements - Remove Quick Reply From PM's (https://vborg.vbsupport.ru/showthread.php?t=235320)

ChopSuey 02-07-2010 10:00 PM

Remove Quick Reply From PM's
 
1 Attachment(s)
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!

Brandon Sheley 02-08-2010 03:38 PM

I love the quick reply via pm's :)

ChopSuey 02-08-2010 03:45 PM

I don't care if you like it or not lol, i hate it.....:p

Brandon Sheley 02-08-2010 04:39 PM

aww
I think it was just recently added wasn't it?
I would think there is a setting in vboptions to remove it?

niadene 02-09-2010 01:02 AM

thanks chopsuey..installed i hate quick reply..lol

ChopSuey 02-09-2010 06:08 AM

Quote:

Originally Posted by Loco.M (Post 1977581)
aww
I think it was just recently added wasn't it?
I would think there is a setting in vboptions to remove it?

Pics or it didn't get added.
Quote:

Originally Posted by niadene (Post 1977954)
thanks chopsuey..installed i hate quick reply..lol

Im glad you agree! :D

ChopSuey 03-01-2010 10:32 AM

Updating this to vB4 later on today!

egclive 04-14-2012 02:29 AM

can i get this for 4 series?

blind-eddie 04-14-2012 03:20 AM

Not unless someone else takes on the project, the author of this addon has passed away.
His code is now maked as re-usable code so anyone can update it.

You can simply remove the code that shows the quick reply or comment it out.
I do not use 4.x.x series or I would do it. Good luck

viper357 10-12-2012 11:30 AM

Does anybody know how to do this without losing the "History" option?

Thanks.


All times are GMT. The time now is 02:52 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.01149 seconds
  • Memory Usage 1,774KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete