Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools
Error when I hit "Agree" in signup template Details »»
Error when I hit "Agree" in signup template
Version: , by bandersen bandersen is offline
Developer Last Online: Jul 2007 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-05-2002 Last Update: Never Installs: 0
 
No support by the author.

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??

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-05-2002, 09:12 PM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
  #3  
Old 05-07-2002, 09:01 PM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #4  
Old 05-07-2002, 11:03 PM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 05-09-2002, 05:03 PM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:14 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.04258 seconds
  • Memory Usage 2,234KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete