vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Quotes in PM's (https://vborg.vbsupport.ru/showthread.php?t=65748)

JoyB 06-02-2004 10:07 AM

Quotes in PM's
 
Hi

I noticied when I had the vB3 Beta 4 version that when sending PMs it used to take off a quote every time you replied so you didn't end up with a big list of quotes in the PM's.

Since I've upgraded to 3.0.0 this doesn't happen anymore and would like to know if I can change it back to how it used to be?

I know it's easy enough to delete the quotes but it was much better before when it used to prune them automatically :)

Joy :)

Xenon 06-02-2004 01:17 PM

yeah right, that has been changed from vb2 to rc4 and back in vb3 final

in private.php you'll find this:
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']) 

if you change it to
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']) 

it will work the way you wanted it :)

JoyB 06-02-2004 03:44 PM

Hi

It works perfect!!

Thanks very much for your help, it's appreciated :)
Joy :)

Xenon 06-02-2004 05:32 PM

you're welcome :)

Boofo 06-02-2004 08:00 PM

Quote:

Originally Posted by Xenon
yeah right, that has been changed from vb2 to rc4 and back in vb3 final

in private.php you'll find this:
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']) 

if you change it to
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']) 

it will work the way you wanted it :)

I used a template edit to accomplish this but doing it this way would have saved me having to to do is for all the skins. ;)

I'm curious though, what does the True actually do?

Xenon 06-02-2004 08:17 PM

well, it's actually just the lazy way to alwayse execute that part of the condition, and not the else part ;)

Boofo 06-02-2004 08:20 PM

Ahhh, so by adding true, it never gets past that part then? What if you had mutliple iof else's? By adding true to one of them it would always stop and not go past that if else?

Xenon 06-02-2004 08:23 PM

yeah, but you always have to use 'true OR'

the other way round is if you never want a special part, then it's 'false AND' ;)

Boofo 06-02-2004 08:35 PM

Thank you, sir. That's good to know. ;)

JoyB 08-27-2005 07:25 PM

Hi

Does anybody know if this hack is compatible with 3.5 RC2?

Joy :)


All times are GMT. The time now is 12:59 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.01751 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete