News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Age,Gender,Location on Registation

Started by hhy89, March 15, 2009, 06:12:17 PM

Previous topic - Next topic

hhy89

Version: 1.1 Date 2009-03-19
Compatibility: SMF 2.0 RC1
*a small bug fix
*Required fields made unavoidable



Version: 1.2 Date 2009-03-24
Compatibility: SMF 2.0 RC1 & 1.1.x

*Add for smf 1.1.x
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

edi67

That part:
                           <input type="text" name="bday2" size="2" maxlength="2"  tabindex="', @$context['tabindex']++, '"value="', $context['member']['birth_date']['day'], '" /> -
                           <input type="text" name="bday1" size="2" maxlength="2"  tabindex="', @$context['tabindex']++, '"value="', $context['member']['birth_date']['month'], '" /> -
                           <input type="text" name="bday3" size="4" maxlength="4" tabindex="', @$context['tabindex']++, '" value="', $context['member']['birth_date']['year'], '" />


cause this error :
http://....../index.php?action=register
8: Undefined index: member
File: /home/crazyzone/data/www/,,,,,,,,,,,,/Themes/default/GenericControls.template.php (before sub template - eval?)
Riga: 198


u can fix it?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

hhy89

Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Neverhurry

Hello,

i like this mod very much.
is it possible to make the birthday optional? because some people don't want let others know their birthday. thank you!
I am using SMF 2.0.1, curve themes.

hhy89

finddocument.forms.creator.regSubmit.disabled =  (currentAuthMethod == "passwd" && (isEmptyText(document.forms.creator.smf_autov_pwmain) || isEmptyText(document.forms.creator.user) || isEmptyText(document.forms.creator.email))) || (currentAuthMethod == "openid" && isEmptyText(document.forms.creator.openid_url)) || isEmptyText(document.forms.creator.gender) || isEmptyText(document.forms.creator.bday3) || isEmptyText(document.forms.creator.location) || !document.forms.creator.regagree.checked;
replace
document.forms.creator.regSubmit.disabled =  (currentAuthMethod == "passwd" && (isEmptyText(document.forms.creator.smf_autov_pwmain) || isEmptyText(document.forms.creator.user) || isEmptyText(document.forms.creator.email))) || (currentAuthMethod == "openid" && isEmptyText(document.forms.creator.openid_url)) || isEmptyText(document.forms.creator.gender) || isEmptyText(document.forms.creator.location) || !document.forms.creator.regagree.checked;

Required fields made unavoidable
not work for birthday

register.template.php
<td width="40%">
                           <b>' . $txt['hhyregist1'] . '</b>
                           <div class="smalltext">' . $txt['hhyregist2'] . '</div>
                        </td>

replace
<td width="40%">
                           <b>' . $txt['hhyregist1'] . '</b>
                           <div class="smalltext">' . $txt['hhyregist2'] . '</div>
                           <div class="smalltext">it is not unavoidable</div>
                        </td>


Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

Neverhurry

I am using SMF 2.0.1, curve themes.

Chit-Chat ChatterBox Boss

Anyway that you can make it so that the register button can be clicked anytime (not only when all fields are filled out) but have all fields required and if they click register button when a field is incorrect or not filled out it will refresh the register page with the stuff they put into the fields in there and have it stating what was wrong (what wasnt filled out that needs to be, wrong info in a field).
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

Chit-Chat ChatterBox Boss

QuoteAnyway that you can make it so that the register button can be clicked anytime (not only when all fields are filled out) but have all fields required and if they click register button when a field is incorrect or not filled out it will refresh the register page with the stuff they put into the fields in there and have it stating what was wrong (what wasnt filled out that needs to be, wrong info in a field).

or maybe another mod that can be intergrated to this one to do that. anyone know if there is anything like that?
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

MarkoWeb

Serbian:

//  by smfmod.com
$txt['hhyregist1'] = 'Датум рођења:';
$txt['hhyregist2'] = 'Дан - Месец - Година';
$txt['hhyregist3'] = 'Локација:';
$txt['hhyregist4'] = 'Пол';
$txt['hhyregist5'] = 'Мушки';
$txt['hhyregist6'] = 'Женски';

[SiNaN]

Mod has been removed from Mod Site due to a copyright infringement.
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: