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)

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


All times are GMT. The time now is 02:21 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.01177 seconds
  • Memory Usage 1,732KB
  • 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
  • (1)bbcode_code_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