TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 643
  • Total: 644
  • tino

Quick Register block

Started by Chodhry, June 19, 2006, 02:21:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Techdomain


Techdomain

Try this one  :o (backup your old one first!)

skiller

ok, replaced and everything seems unchanged (as before replacing)

getting these errors:

8: Use of undefined constant quick_register_agree - assumed 'quick_register_agree'
File: public_html/Themes/default/index.template.php (eval?)
Line: 609

8: Use of undefined constant quick_register_terms - assumed 'quick_register_terms'
File: /public_html/Themes/default/index.template.php (eval?)
Line: 610

8: Undefined index: hello_member_ndt
File: public_html/Themes/default/languages/ModSettings.english.php (eval?)
Line: 193

8: Use of undefined constant quick_register_agree - assumed 'quick_register_agree'
File: /public_html/Themes/default/languages/ModSettings.english.php (eval?)
Line: 29

Techdomain

#43
hmmm.. it worked on my site. will take another look.

those errors are alittle wierd.. do you still have the $txt strings in your modifications.english.php (or actually - it looks like they are in modsettings???)
also, is the mod still enabled as a block?

Edit: if you logged out with the changed file, did it make a difference?

penfield

Hi Xarcell (and anyone who might help)-
Thanks for posting the php block. It looks great, but I get an error when submitting the form:Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'blah_clss1'@'localhost' (using password: YES) in /home/blah/public_html/gorum/dbproperty.php on line 300
Mysql connection failed. Host: localhost, Username: blah_clss1
Any thoughts on the problem? Thanks!

IchBin

You shouldn't be getting anything to do with mysql. Are you sure this is the block causing this? And do you have any other code in this block?

penfield

Thanks IchBin - Here's the code in the php boxecho '<div>
<form action="../index.php?action=register2" method="post" name="creator" id="creator" onsubmit="return verifyAgree();">
 
    <table border="0" cellpadding="3" cellspacing="0">
<tr>
  <td><b>' , $txt[35] , ':</b></td>
</tr>
<tr>
  <td><input type="text" name="user" size="20" tabindex="1" maxlength="20" /></td>
</tr>
<tr>
  <td><b>' , $txt[69] , ':</b></td>
</tr>
<tr>
  <td class="smalltext"><input type="text" name="email" size="20" tabindex="2" /><label for="hideEmail"><br /><input type="checkbox" name="hideEmail" id="hideEmail" class="check" value="ON" /> ' , $txt[721] , '</label></td>     </tr>
  <tr>
   <td><b>' , $txt[81] , ':</b></td>
  </tr>
  <tr>
   <td><input type="password" name="passwrd1" size="20" tabindex="3" /></td>
when i register using the regular method there is no problem. Here's a link to the page: http://promusicbus.com/smf/index.php?page=21.
   

penfield

#47
The error message indicates the block is trying to access a classified ad database _clss1, not the smf database. I don't know why this would be the case when using the quick register.

IchBin

Try temporarily disabling your other custom blocks to see if something is conflicting.

penfield

that didn't do the trick. I also tried clicking the "Register" button without the agree to terms box checked. rather than get the message that i need to agree to terms, i got the same error message. i don't need the classified ads database. I'll try to remove that.

This website is proudly hosted on Crocweb Cloud Website Hosting.