Moved by: arcy 13-06-2009, 20:05 |
Off Changing E-mail Adress v3.0 |
| Author |
Message |
#maminowiec
Helped: 139 times Posts: 585
|
Posted: 06-06-2009, 12:13 Off Changing E-mail Adress v3.0
Forum address: http://igolebie.pl | http://rasowegolebie.pl |
|
|
| Code: | ################################################################
## Nazwa: Off Changing E-mail Adress | Zmiana Adresu E-mail Wylaczona
## Autor: maminowiec [http://igolebie.pl]
## Opis: Wyłacza zmianę adresu e-mail w profilu
## Wersja: 3.0
##
## Poziom instalacji: Łatwy
## Czas instalacji: 5 Minut
## Pliki do edycji:(4)
## admin/admin_board.php
## templates/*/admin/board_config_body.tpl
## includes/usercp_register.php
## templates/*/profile_add_body.tpl
## Included Files: (0)
##
################################################################ |
Sceny:
Mod pozwala na włączenie/wyłączenie zmiany emaila
Konfiguracja w PA --> Ogólne
Demo:
http://www.maminowiec.yoyo.pl/forum/
Login: user
Hasło: pass
Off Changing E-mail Adress 3.0.rar
|
Download 111 Time(s) 1.73 KB |
|
| Last edited by arcy on 13-06-2009, 20:06; edited 2 times in total |
|
|
|
 |
@They2
stary They


Helped: 80 times Posts: 1309
|
Posted: 06-06-2009, 17:24
Forum address: www.alldeaf.pl | www.design.alldeaf.pl | www.forum.alldeaf.pl | www.video.alldeaf.pl | www.download.alldeaf.pl |
|
|
hmmm czy da sie zmienic maila gdy jest wylaczona za pomoca readonly="readonly" ? nie wiem niech sprobuje ktos...
ale... w instrukcji jest bledna
| Code: | | 'off_email_info' => '<font size="1" color="#FF0000"> <b>Zmiana e-maila wył±czona.</b></font', | zapomniales dodac koncowke hml >
i tu
| Code: | ;( <!-- BEGIN switch_edit_profile -->
<tr>
<td class="row1"><span class="gen">Adres email:</span></td>
<td class="row2"><input type="text" class="post" {off} onFocus="Active(this)" onBlur="NotActive(this)" style="width:200px" name="email" size="25" maxlength="255" value="{EMAIL}" />{off_email_info}</td>
</td>
</tr>
<!-- END switch_edit_profile --> |
zamień Adres email: na zmienna {L_EMAIL_ADDRESS}:
i ostatnia </td> wstawiles 2x, jedno usun. |
_________________ Support | Pomoc | Modyfikacja | Zlecenie płatne - zapraszam na PW oraz pod moim adresem.
Nie udzielam w GG. |
|
|
|
 |
#maminowiec
Helped: 139 times Posts: 585
|
|
|
|
 |
~Boltex
$user_id=25k


Helped: 73 times Posts: 916 Location: Łomża

|
Posted: 06-06-2009, 17:47
Forum address: Cały czas w budowie |
|
|
| maminowiec, czy instrukcja juz jest poprawiona?? bo chciał bym sprawdzić moda. |
|
|
|
 |
MagicalFire
R.I.P.

Helped: 943 times Posts: 4234 Location: cybinka
|
Posted: 06-06-2009, 17:49
Forum address: http://www.scypion.pl | |
|
|
| Boltos, tak instrukcja jest poprawiona |
_________________ Pomoc tylko na forum. Nie pisz do mnie na gg/PW/e-mail chyba ze ci pozwolę
chcesz się wymienić linkiem z moimi forami pisz na PW |
|
|
|
 |
#maminowiec
Helped: 139 times Posts: 585
|
|
|
|
 |
~Boltex
$user_id=25k


Helped: 73 times Posts: 916 Location: Łomża

|
Posted: 07-06-2009, 11:32
Forum address: Cały czas w budowie |
|
|
| Thx mod super wszysto śmiga elegancko. |
|
|
|
 |
krystian1332

Helped: 1 Posts: 77
|
Posted: 22-06-2009, 11:03 a
Forum address: www.FilmsNoLimit.com.pl |
|
|
a ja mam problem z tą modyfikacją po jej zainstalowaniu pokazuje mi 2x email wiecie o co chodzi prosze o pomoc poniżej Screen
|
|
|
|
 |
@They2
stary They


Helped: 80 times Posts: 1309
|
Posted: 22-06-2009, 11:08
Forum address: www.alldeaf.pl | www.design.alldeaf.pl | www.forum.alldeaf.pl | www.video.alldeaf.pl | www.download.alldeaf.pl |
|
|
krystian1332, bo nie zamieniles kod, lecz dodales. A trzeba bylo zamienic.
przeczytaj w instrukcji:
| Code: | #
#-----[ Otworz ]------------------------------------------
#
templates/*/profile_add_body.tpl
#
#-----[ Znajdz ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_EMAIL_ADDRESS}: *</span></td>
<td class="row2"><input type="text" class="post" onFocus="Active(this)" onBlur="NotActive(this)" style="width:200px" name="email" size="25" maxlength="255" value="{EMAIL}" /></td>
</tr>
#
#-----[ Zamien na ]------------------------------------------
#
<!-- BEGIN switch_namechange_allowed -->
<tr>
<td class="row1"><span class="gen">{L_EMAIL_ADDRESS}: *</span></td>
<td class="row2"><input type="text" class="post" onFocus="Active(this)" onBlur="NotActive(this)" style="width:200px" name="email" size="25" maxlength="255" value="{EMAIL}" /></td>
</tr>
<!-- END switch_namechange_allowed -->
<!-- BEGIN switch_edit_profile -->
<tr>
<td class="row1"><span class="gen">{L_EMAIL_ADDRESS}:</span></td>
<td class="row2"><input type="text" class="post" {off} onFocus="Active(this)" onBlur="NotActive(this)" style="width:200px" name="email" size="25" maxlength="255" value="{EMAIL}" />{off_email_info}</td>
</tr>
<!-- END switch_edit_profile -->
|
|
_________________ Support | Pomoc | Modyfikacja | Zlecenie płatne - zapraszam na PW oraz pod moim adresem.
Nie udzielam w GG. |
|
|
|
 |
patri
Helped: 1 Posts: 106
|
Posted: 31-10-2009, 10:19
Forum address: http://zareklamuj-sie.yoyo.pl |
|
|
| wgrałem wszystko ale jak zmiana emaila jest wyłączona to w edycji profilu nie pokazuje mi informacji że "Zmiana email została wyłączona" czemu ???? |
|
|
|
 |
#maminowiec
Helped: 139 times Posts: 585
|
Posted: 31-10-2009, 13:27
Forum address: http://igolebie.pl | http://rasowegolebie.pl |
|
|
patri, wgrałeś zapytanie ?
zobacz czy masz w off_email w phpbb_config
oraz czy poprawie wyedytowałeś pliki i czy jak zmieniasz emaila to wyskakuje komunikat ? |
|
|
|
 |
patri
Helped: 1 Posts: 106
|
Posted: 31-10-2009, 13:51
Forum address: http://zareklamuj-sie.yoyo.pl |
|
|
| tak zapytanie wykonał, no i jak wyłączę i chce zmienić emaila to jest komunikat że nie moge |
|
|
|
 |
#maminowiec
Helped: 139 times Posts: 585
|
Posted: 31-10-2009, 21:30
Forum address: http://igolebie.pl | http://rasowegolebie.pl |
|
|
to pewnie źle wymedytowałeś plik tpl bo tam powinna być ta informacja
| Code: | if($board_config['off_email'] == 0 ){
$template->assign_vars(array(
'off_email_info' => '<font size="1" color="#FF0000"> <b>Zmiana e-maila wyłączona.</b></font>',
'off' => 'readonly="readonly"'
));
}
|
podaj adres forum |
|
|
|
 |
patri
Helped: 1 Posts: 106
|
Posted: 31-10-2009, 21:48
Forum address: http://zareklamuj-sie.yoyo.pl |
|
|
| Code: | #
#-----[ Otworz ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ Znajdz ]------------------------------------------
#
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $result['error_msg'];
}
if ( $mode == 'editprofile' )
{
#
#-----[ Dodaj po ]------------------------------------------
#
//zmiana emaila
$sql = "SELECT user_email
FROM " . USERS_TABLE . "
WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user_password information', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if($board_config['off_email'] == 0 ){
if ( $row['user_email'] != ($HTTP_POST_VARS['email']) ){
message_die(GENERAL_ERROR, 'Zmiana E-maila <br /> <b>wył±czona !</b>', 'Informacja');
}
}
//koniec zmiany emaila
#
#-----[ Znajdz ]------------------------------------------
#
$template->assign_vars(array(
'USERNAME' => $username,
#
#-----[ DODAJ PRZED ]------------------------------------------
#
if($board_config['off_email'] == 0 ){
$template->assign_vars(array(
'off_email_info' => '<font size="1" color="#FF0000"> <b>Zmiana e-maila wył±czona.</b></font>',
'off' => 'readonly="readonly"'
));
}
|
to chyba nie jest plik stulu ????!!!!! |
|
|
|
 |
#maminowiec
Helped: 139 times Posts: 585
|
Posted: 01-11-2009, 09:31
Forum address: http://igolebie.pl | http://rasowegolebie.pl |
|
|
tak nie jest ale to jest generowany komunikat który jest wpisany w tpl
w tym miejscu
| Code: | #
#-----[ Otworz ]------------------------------------------
#
templates/*/profile_add_body.tpl
#
#-----[ Znajdz ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_EMAIL_ADDRESS}: *</span></td>
<td class="row2"><input type="text" class="post" onFocus="Active(this)" onBlur="NotActive(this)" style="width:200px" name="email" size="25" maxlength="255" value="{EMAIL}" /></td>
</tr>
#
#-----[ Zamien na ]------------------------------------------
#
<!-- BEGIN switch_namechange_allowed -->
<tr>
<td class="row1"><span class="gen">{L_EMAIL_ADDRESS}: *</span></td>
<td class="row2"><input type="text" class="post" onFocus="Active(this)" onBlur="NotActive(this)" style="width:200px" name="email" size="25" maxlength="255" value="{EMAIL}" /></td>
</tr>
<!-- END switch_namechange_allowed -->
<!-- BEGIN switch_edit_profile -->
<tr>
<td class="row1"><span class="gen">{L_EMAIL_ADDRESS}:</span></td>
<td class="row2"><input type="text" class="post" {off} onFocus="Active(this)" onBlur="NotActive(this)" style="width:200px" name="email" size="25" maxlength="255" value="{EMAIL}" />{off_email_info}</td>
</tr>
<!-- END switch_edit_profile -->
|
|
|
|
|
 |
|
|