Archiwum działu Ogólne (posty do 12.2007) - Obowiązkowa data urodzenia
Ola17 - 11-05-2007, 16:12 Temat postu: Obowiązkowa data urodzenia Jak ustawić obowiązkową datę ur przy rejestracji ?
FreelancerMp3 - 11-05-2007, 21:27
W panelu admina
joli - 11-05-2007, 21:45
FreelancerMp3, jak mi powiesz jak to zrobic w PA, to zostaniesz ozłocony
Ola nie da się. Trzebaby pozmieniac troszke skrypt.
FreelancerMp3 - 11-05-2007, 23:42
Przepraszam za pomyłke. Wiedziałem, że płeć sie da i zdawało mi sie, że date też. Jeszcze raz wielkie sory.
Ola17 - 12-05-2007, 15:48
Cytat: | Ola nie da się. Trzebaby pozmieniac troszke skrypt. |
Tylko jak?
Centurion - 12-05-2007, 16:26
prosze
OTWÓRZ PLIK includes/usercp_register.php
ZNAJDZ:
if ( $board_config['require_location'] ) $require_location = empty($location);
PO TYM DODAJ:
//Wymaganie daty urodzin przy rejestracji
$require_birthday1 = empty($b_day);
$require_birthday2 = empty($b_md);
$require_birthday3 = empty($b_year);
//
ZNAJDZ:
if ( $require_aim || $require_website || $require_location || $require_gender)
ZAMIEN NA:
if ( $require_aim || $require_website || $require_location || $require_gender ||
$require_birthday1 || $require_birthday2 || $require_birthday3 )
OTWÓRZ PLIK temptate/twoj_styl/profile_add_body.tpl
ZNAJDZ:
{L_BIRTHDAY}:
ZAMIEN NA:
{L_BIRTHDAY} *:
Ola17 - 12-05-2007, 16:39
Centurion napisał/a: | if ( $require_aim || $require_website || $require_location || $require_gender ) |
Nie można odnaleźc
Centurion - 12-05-2007, 16:41
powinno byc zaraz po
if ( $board_config['require_location'] ) $require_location = empty($location);
Ola17 - 12-05-2007, 16:41
Centurion napisał/a: | ZNAJDZ:
if ( $require_aim || $require_website || $require_location || $require_gender )
ZAMIEN NA:
if ( $require_aim || $require_website || $require_location || $require_gender ||
$require_birthday1 || $require_birthday2 || $require_birthday3 )
OTWÓRZ PLIK temptate/twoj_styl/profile_add_body.tpl
ZNAJDZ:
<td class="row1"><span class="gen">{L_BIRTHDAY}:</span></td>
ZAMIEN NA:
<td class="row1"><span class="gen">{L_BIRTHDAY} *:</span></td> |
Nie można odnaleźc
Centurion - 12-05-2007, 16:44
sprawdzalem dla subSilver, poprawilem na bardziej ogolne
no i ta jedna spacje za duzo tez w if ( $require_aim || $require_website || $require_location || $require_gender)
Ola17 - 12-05-2007, 16:48
Zrobiłam, doszła tylko gwiazdka, ale wraz nie jest wymagane
Centurion - 12-05-2007, 16:58
to cos zle zrobilas w usercp_register.php
u mnie dziala
Ola17 - 12-05-2007, 17:02
Jak źle jak dobrze
Centurion - 12-05-2007, 17:12
sprawdz jeszcze raz dokladnie czy masz taki tekst w usercp_register.php:
Kod: | if ( $board_config['require_location'] ) $require_location = empty($location);
//Wymaganie daty urodzin przy rejestracji
$require_birthday1 = empty($b_day);
$require_birthday2 = empty($b_md);
$require_birthday3 = empty($b_year);
//
if ( $require_aim || $require_website || $require_location || $require_gender ||
$require_birthday1 || $require_birthday2 || $require_birthday3 )
{ |
joli - 12-05-2007, 17:52
A nie prosciej w usercp_register.php znalezc:
Kod: |
else if ( $mode == 'register' )
{ |
i zaraz po tym wstawic:
Kod: | if ( !$b_day || !$b_md || !$b_year )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . 'Data urodzenia jest wymagana';
} |
skoro gwiazdke juz masz...
|
|
|