vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Error when I hit "Agree" in signup template (https://vborg.vbsupport.ru/showthread.php?t=38281)

bandersen 05-05-2002 08:00 PM

Error when I hit "Agree" in signup template
 
I hope someone can help me out... I have a syntax error in the signup adult template / the Agree button... I dont know how to remove the error. (The cancel button is working ok).

When clicking on the Agree button I now get a small window saying:

---
line 748
document.forms.O.avatarset. SelectedIndex is NULL or not a object
---

If I click no to debug... things are working like normal.. I am taken to the signup page. if i click yes to debug, the following area is marked:

---
line 747 if (document.images.avatarpic !=null) }
line 748 document.images.avatarpic.src=document.forms(0).av atarsel[document.forms[0].avatarsel.selectedIndex].value;
---

I have tried to install the original file (register.php) and the original signup adult template. I still got this error. The only hack I had / have in the register.php is the "Default PM to new users". I dont know if that one has anything to do with this tho.

Please help someone.. ... I will try what you suggest... Is there anything I can add to the template to make this go away??

scsa20 05-05-2002 09:12 PM

hmm....just turn off IE's debugging tool, that well make it stupid it's bit**en ;)

btw...if you don't know how, go to Tools>Internet Options>Advanced
then scroll down tell you see "Disable scirpt debugging" (should be under "Browsing") and just click the box and click "OK" ;)

bandersen 05-07-2002 09:01 PM

Thanks :)

When I run debugging I dont see the <script> ending with a </noscript> tho.... could be it right? However the file is in "read only" there. Is it possible to write to it somehow? Then I can test.


When I look at the signup template this section does not look the same...
Woooops... I just threw in a </noscript> anyways. It worked!!!! I hope...:) :)

scsa20 05-07-2002 11:03 PM

for one thing, you shouldn't be able to see the <script> and </scrpt> thing if it was put in correctly, if not, then you'll see one with an error on the bottem left hand corner of your IE with a yellowis type of thing, just dubble clicking it shows you want is wrong on that page. if you want to be able to edit a file that's on the server, you need to change it's permisses by connecting to it via FTP and chose the file you want to be able to right to and right click and choose CHMOD (some well just be propatiaes (or whatever) while others or Permisians, etc, just look for the one where you can set the permisisans) and put it as 777

bandersen 05-09-2002 05:03 PM

I've tried and looked etc.. can you see what is wrong with the following:

Here is the code in the registeradult template:

<script language="Javascript">
<!--
if (document.images.avatarpic != null) {
document.images.avatarpic.src = document.forms[0].avatarsel[document.forms[0].avatarsel.selectedIndex].value;
}
// -->
</script>

</body>
</html>

When I go to register.php and right click for show code on that page in the browser... everything is there. I get no error in PHP Editor when debugging register.php...

I get this error when entering the registeradult template in the browser:

document.forms.O.avatarset. SelectedIndex is NULL or not a object

(IEs debugging does not tell me what is wrong.. only where = yellow error is placed on the lines above).... coding above also match the original files in vbulletin.

Thanks


All times are GMT. The time now is 01:32 PM.

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.01038 seconds
  • Memory Usage 1,714KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete