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 Reply Box (with Close/Open thread switch) (https://vborg.vbsupport.ru/showthread.php?t=40380)

TECK 09-22-2002 04:57 PM

ya, you are right... i added this to the file.
in showthread.php, find:
Code:

  $textareacols=gettextareawidth();
replace it with:
Code:

  if ($bbuserinfo['emailnotification']) {
    $emailchecked = 'yes';
  } else {
    $emailchecked = '';
  }
  $textareacols=gettextareawidth();

in template showthread_replybox, find:
Code:

<input type="hidden" name="email" value="">
replace it with:
Code:

<input type="hidden" name="email" value="$emailchecked">
now it will look in your default preferences, all done in the background, so there is no need for an ugly extra checkbox. if you have it set to automatically recieve email notifications, that change will allow you to do it from now on. :)
for those who installed the hack already, just change the code listed above.

yzztik 09-22-2002 05:28 PM

OMG! You are a god! Thank you, thank you, thank you!!! :D

*runs to edit*

EDITED: just made the changes. Works like a charm! Thanks a million!

Dave-ahfb 09-24-2002 04:09 PM

I am getting reports of a JS error in IE5

PHP Code:

Line864 
Char

Error
Object expected 
Code


my line 864 is
PHP Code:

<form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)"

Wish I knew javascript :(

Dave

TECK 09-24-2002 04:12 PM

hello dave. try this:
onSubmit="return validate(this);"

notice the ; an the end. let me know if it fix it.
it could also be because you have some javascript that you added in the header, that is not part of vBulletin.
in this case i cannot help you.

cheers.

Dave-ahfb 09-24-2002 04:18 PM

Ill give it a shot

thanks :)

Dave

K_2 09-26-2002 06:43 PM

Hey TECH, I love this hack and would love to implment it into my Forum also. I am really new to this and I followed your directions to the T and I get this error..

Parse error: parse error, unexpected $ in /home/xxx/public_html/Forum/showthread.php on line 508

I am running 2.2.8.

Is there anything else that I can do?? Please?? hehe

MultiSync 09-26-2002 08:56 PM

I have installed the hack to my new site, but it didn't show up on the forum. It is weird. And I have check over for 4 times already. Any clue? Thanks!

Btw I am using v2.2.8

TECK 09-26-2002 09:12 PM

check your code. is nothing wrong with the hack.

K_2 09-26-2002 10:41 PM

Quote:

Originally posted by TECK
check your code. is nothing wrong with the hack.
OK, checked it 4 times, replaced the phpfile, them redid it again, even had my 3 year old take a look at it also, still errors.. :(

Oh well thanks anyways..

TECK 09-26-2002 10:43 PM

hello K2
Code:

Parse error: parse error, unexpected $ in /home/xxx/public_html/Forum/showthread.php on line 508
that a code typo... you probably typed something by accident there...


All times are GMT. The time now is 07:06 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.01214 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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