View Full Version : Hack to disable quotes in pm?
NietzscheKid
07-22-2004, 11:01 AM
Hello
is there a posssibility to completely get rid of the automatical quotes that appear when you pm someone? When you reply to someone a couple of times, the nested quotes mess up my template. So, I am basically looking for a hack where when you respond to a pm the reply field does not take over the message in form of a quote. :)
NietzscheKid
07-22-2004, 11:01 AM
Damn. I posted it in the wrong forum. I am using vb3 and posted in vb2. Sorry. Can someone please move this? I am sorry for the trouble. :(
Boofo
07-22-2004, 11:59 AM
There are a couple of ways to do this. I prefer the Xenon way, through a file edit, but it can also be done by a template edit. The file edit is as follows:
In private.php
Find:
// allow quotes to remain with an optional request variable
// this will fix a problem with forwarded PMs and replying to them
if ($_REQUEST['stripquote'])
REPLACE it with:
// allow quotes to remain with an optional request variable
// this will fix a problem with forwarded PMs and replying to them
if (true OR $_REQUEST['stripquote'])
NietzscheKid
07-22-2004, 12:10 PM
Thanks for your fast reply boofo.
But I am afraid this does not work for me. And I do not know why?
I still get the reply with quote only option. I tested this on my test forum but it does not seem to work eventhough I replaced the code as you described. :(
Boofo
07-22-2004, 12:18 PM
Try this:
In the postbit and/or postbit_legacy template, find:
<if condition="$post['replylink']">
<a href="$post[replylink]"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
Replace it with:
<if condition="$post['replylink']">
<if condition="THIS_SCRIPT == 'private'">
<a href="$post[replylink]&stripquote=1"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
<else />
<a href="$post[replylink]"><img src="$stylevar[imgdir_button]/reply_small.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if></if>
NietzscheKid
07-22-2004, 01:17 PM
Actually I would be really happy if the pm quote system could work just like the post a reply function in normal threads where you just get the last quote and no nested quotes. Is this possible?
NietzscheKid
07-22-2004, 01:37 PM
Duhh, Boofo!! You are brilliant!! :D
Of course the first hack works. I simply managed to login into my running site admin cp and wondered why it did not work in the test forum. LOL!!! Geeez. Talk about dumb users. :D
Thanks again boofo for the help. It works beautifully! :)
lostgirl815
06-01-2006, 09:01 PM
Try this: (HTML code)
I know this is an old thread, but I had to thank you anyway. You have no idea how much I appreciate this code!
Boofo
06-01-2006, 09:09 PM
Any time, young lady, any time. ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.