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)

Erwin 10-06-2002 11:22 PM

Areku, I got our original message in the email sent to me. Did you figure out how to make the delete message default? :)

Areku 10-07-2002 01:59 PM

Yes, it was dumbass easy, i thought it was php but it was a checked html thing instead ;)

Pancreas Paul 10-07-2002 02:44 PM

Nice man. THis worked perfectly, and so easy to instal with vbFTP :D ILL NEVER GO BACK TO PROGRAM BASED FTP :D

Erwin 10-08-2002 01:03 AM

Quote:

Originally posted by Pancreas Paul
Nice man. THis worked perfectly, and so easy to instal with vbFTP :D ILL NEVER GO BACK TO PROGRAM BASED FTP :D
:) Thanks for the kind words. :)

Devil-GOD 10-08-2002 11:44 AM

nice hack Erwin

thanks

Graphics 10-08-2002 04:44 PM

Excellent! It works perfect for me! Great work Erwin!!! :D

Erwin 10-08-2002 10:30 PM

You're welcome. :D

BigCheeze 10-19-2002 02:13 AM

Works like a charm!! Thanks for another great hack Erwin!!!!

-Sidekick- 11-16-2002 08:45 AM

Okay, got a little request here if anyone could help me out. I just installed this hack. Though in the past I also installed another hack which makes it so when you reply to a PM only the last quote shows and it gets rid of the rest.

FYI: Hack = https://vborg.vbsupport.ru/showthrea...threadid=41074 (I used FireFly's version btw, not the thread starter's)

I was wondering how I could add that to the quick pm replier as well. Make it so only the last quote shows up in the quick pm reply box?

Someone help? =\

XFLBret 11-27-2002 11:21 AM

I too have a request, but it's so minor you may be annoyed by the request...

i think I installed everything correctly, but here's what's annoying me..

when I am on the privmsg page, the cursor is not in the quick reply box. i have to either tab a few times to get the cursor, or click in the qucik reply box with the mouse.

is there a way to make it so the cursor is waiting in the quick reply box and will accept typing right away?

XFLBret 11-28-2002 01:05 AM

hey erwin, i got your response, thank you, but I think i didn't express myself well with what i wanted...

even if i scroll down with the mouse, the cursor is not in the box initially until i click in the quick reply box with my mouse.

what I am trying to accomplish is to just have the cursor already blinking in there by default, as I am a keyboard guy. don't like using the mouse except when necessary :D you know how it is.....

XFLBret 11-28-2002 01:07 AM

oops, i tried following your instructions, and i don't have the word "code" in my privmsg template. did I do somehting wrong?

Erwin 11-28-2002 01:43 AM

Easy...

Replace

<body>

with

<BODY onLoad="document.forms.vbform.message.focus()">

XFLBret 11-28-2002 04:33 AM

I replaced both body entries with that and it works. it goes directly do the quick reply box now, but i guess that's all right.

Erwin 11-29-2002 02:51 AM

There should be only 1 <body> tag in each of your templates. :)

wolfman 11-29-2002 03:13 AM

Ok I made the body tag change and WOW it seems to cause the font color and the backgroung color to change drasticlly example my background on the rest of the forum is black and the font is a light grey. The change seems to make it white and black. Though it does make the cursor jump to the quick PM window though :)

Erwin 11-29-2002 03:38 AM

That's because it means that the <body> tag in your style is replaced with something else usually. To get around this, just add a <body> tag underneath this one - in other words, have just 1 <body> and then have the code as well.

If you just want to have 1 body tag, copy the body tag contents from your style, and paste it into the body tag in the template. But this is time consuming, as you would have to do this for each style that you have.

So in essence, I take back what I said - :) - to maintain your background colors, you need to have <body> still in your privmsg, as well as my additional one. :p

wolfman 12-20-2002 02:24 AM

Ah like this? I did it this way and it seems to work just fine and I am using the default theme

Code:

<body>
<BODY onLoad="document.forms.vbform.message.focus()">


Erwin 12-20-2002 02:29 AM

Yup - that works.
I was using that, but my members started complaining lots, so I took it out. :)

zachb 12-26-2002 07:45 PM

Hey Erwin, I updated the HTML code for the template a bit to make the tables look better. Here it is:

[edit: attached instead, the code tags messed up the topic page.]


Thanks a lot for this hack, I love it. :)

Elentari 01-16-2003 09:49 AM

Working Like a dream, and SO easy to install! Thanks!! :D

Erwin 01-16-2003 10:41 AM

Thanks for the kind words. :)

Overgrow 02-05-2003 01:13 AM

Awesome, doctor. Dunno why I didn't think of this before!

/me clicks install

Overgrow 02-05-2003 01:15 AM

>>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).

Mr.Ahmed 02-24-2003 09:22 AM

thanks :)

HughJorgen 02-28-2003 04:16 AM

Very nice hack Erwin, and my users love it.

Overgrow, kudos for that script addition, for two reasons: 1, I wanted the 'gotfocus' function without losing my colors (which is what Erwin's included script did) and 2, I was able to use the same code to 'getfocus' on my regular Showthread/QuickReply box.

Zelda-King 03-08-2003 02:22 PM

I've installed it. Tested it. Works fine, except that bit at the bottom for getting the cursor to go automatically to the Quick PM Reply Box makes my PM body background go white and my toplink buttons have odd colour edges.

Erwin 03-19-2003 05:28 AM

Update Version 2.3 - minor template mod

I realized that I forgot to do something simple when I released the hack - include the name of the PM sender and time of PM in the automatic quote section. :)

To update from 2.2 to 2.3 is easy:

In the "privmsg" template, find:

Code:

[quote]

$pmquote

[/quote]

Replace with:

Code:

[quote]

$fromuserinfo[username] wrote on $message[postdate] $message[posttime]:

$pmquote

[/quote]

Done! :)

msimplay 03-19-2003 02:56 PM

lol i wonder why these are not included in the default release by now :D
so useful things like this are

Erwin 03-19-2003 08:20 PM

Quote:

Today at 03:56 AM msimplay said this in Post #149
lol i wonder why these are not included in the default release by now :D
so useful things like this are

Yeah, I wonder myself. I overlooked something simple. :)

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 03:33 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.01505 seconds
  • Memory Usage 1,820KB
  • 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
  • (7)bbcode_code_printable
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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