Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2004, 11:01 AM
NietzscheKid NietzscheKid is offline
 
Join Date: Jun 2002
Location: Hamburg, Germany
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Hack to disable quotes in pm?

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.
Reply With Quote
  #2  
Old 07-22-2004, 11:01 AM
NietzscheKid NietzscheKid is offline
 
Join Date: Jun 2002
Location: Hamburg, Germany
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 07-22-2004, 11:59 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

PHP Code:
    // 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:

PHP Code:
    // 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']) 
Reply With Quote
  #4  
Old 07-22-2004, 12:10 PM
NietzscheKid NietzscheKid is offline
 
Join Date: Jun 2002
Location: Hamburg, Germany
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 07-22-2004, 12:18 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:

In the postbit and/or postbit_legacy template, find:


HTML Code:
<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:


HTML Code:
<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>
Reply With Quote
  #6  
Old 07-22-2004, 01:17 PM
NietzscheKid NietzscheKid is offline
 
Join Date: Jun 2002
Location: Hamburg, Germany
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 07-22-2004, 01:37 PM
NietzscheKid NietzscheKid is offline
 
Join Date: Jun 2002
Location: Hamburg, Germany
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Duhh, Boofo!! You are brilliant!!

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.

Thanks again boofo for the help. It works beautifully!
Reply With Quote
  #8  
Old 06-01-2006, 09:01 PM
lostgirl815 lostgirl815 is offline
 
Join Date: Apr 2006
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
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!
Reply With Quote
  #9  
Old 06-01-2006, 09:09 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any time, young lady, any time.
Reply With Quote
Reply


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 04:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06989 seconds
  • Memory Usage 2,250KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete