vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Quick PM Reply Box (https://vborg.vbsupport.ru/showthread.php?t=38178)

Boofo 03-19-2003 08:22 PM

I did the same thing a few weeks ago, but I also put the pm message number in there (just to see if I could do it). ;)

Areku 03-21-2003 06:56 AM

Is there any update solving the multiple Re: Re: Re: Re: Re: additions?

Erwin 03-23-2003 03:46 AM

Quote:

03-21-03 at 07:56 PM Areku said this in Post #152
Is there any update solving the multiple Re: Re: Re: Re: Re: additions?

Fixed. :)

Version 2.4 - Fixed the repeated "Re:" bug.

Now, if there is one "Re:" in the message title, no other "Re:" will be added to avoid the multiple "Re:" problem.

To update manually from 2.3 to 2.4, do this:

1. In private.php, find:

PHP Code:

  $pmquote $message[message]; 

Change this to:

PHP Code:

  $pmquote $message[message];
      if (
strtolower(substr($message[title],0,3))=="re:") {  
        
$re "";
    } else {
        
$re "Re:";
    } 

2. In privmsg template, find:

Code:

"RE: $message[title]"
Change this to:

Code:

"$re$message[title]"
Done! :)

Boofo 03-23-2003 04:07 AM

An easier way to do this would be:

PHP Code:

$title str_replace("Re: Re: ""Re: "$title); 


Erwin 03-23-2003 04:35 AM

Use my method - it is not case sensitive, and it prevents the addition of extra re:'s - your method is case sensitive and just changes 2 re: to 1 re: - the 2 work in different ways.

Boofo 03-23-2003 04:42 AM

LOL at Erwin. That fix came from Xenon and it works EXACTLY like yours except for the case sensitivity (which is Re according to the php file anyway). It will replace 2 instances of Re with 1 Re which would stop the addition of any Re after that. You are using extra code that really isn't needed. ;)

Erwin 03-23-2003 05:20 AM

I am using code direct from other parts of private.php - it is just the way private.php is coded, so it is done that way for consistency. If your code works for you, fine. But if I decide to manually put in RE: or re: in the message title, your code won't work.

Boofo 03-23-2003 05:39 AM

True, but why would anyone manually put an re: in the title?

Areku 03-23-2003 08:56 AM

Quote:

Today at 05:46 AM Erwin said this in Post #153



Fixed. :)

Done! :)




tHANKS man! U rool ;)

Boofo 04-06-2003 11:59 PM

Quote:

02-04-03 at 10:15 PM Overgrow said this in Post #144
>>to maintain your background colors, you need to have <body> still in your privmsg, as well as my additional one.

Or at the bottom of privmsg put
Code:

<script language="javascript">
<!--
document.forms.vbform.message.focus();
-->
</script>

Which is basically the same thing as onLoad since it's at the bottom of the page (assuming you're not loading iFrames or other including bits).

Is there a way to have this focus BELOW the quote?


All times are GMT. The time now is 06:03 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.01174 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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