1
ideagot
How can i modify User Registration Page!
  • 2004/11/5 2:14

  • ideagot

  • Just popping in

  • Posts: 17

  • Since: 2003/4/16


I want to add "notice text" on the User Registration Page just like the below pix.

Please help me ,thx!

Resized Image

2
CiberEspia
Re: How can i modify User Registration Page!

just open /include/registerform.php and add after --> line 144:

//#########  hack para que muestre mensaje de poner un correo valido ##############

echo "<table width='100%' class='outer' cellspacing='1'>";

echo 
"<tr>";

echo 
"<th colspan="2">";

echo 
"<img src="http://adictoshp.org/img/aviso.gif" align="absmiddle">Atencion";

echo "</th>";

echo 
"</tr>";

echo 
"<tr>";

echo 
"<td colspan="2">";

echo 
"<font size="2" color="#ff0000" face="Verdana">Por favor para registrarse necesita proporcionar una dirección de <b>e-mail</b> válida [que exista], de introducir una falsa el registro no podrá efectuarse. Ud. recibirá un e-mail en la dirección que proporcionó con un enlace de validación, haga click en él para activar su cuenta y entrar en el sitio, las direcciones de correo proporcionadas por los usuarios son solo para el uso interno de este sitio, en ningún momento le serán enviados e-mail no deseados y se respetará escrupulosamente la confidencialidad de las mismas. Muchas gracias por confiar en nosotros.</font>";

echo "</td>";

echo 
"</tr>";

echo 
"</table>";

okis!!!

something thus!!!

//foreach ($a_dir_labels as $a_dir_label) {

//    $avatar_tray->addElement($a_dir_label);

//}



//#########  hack para que muestre mensaje de poner un correo valido ##############

[color=0000FF]echo "<table width='100%' class='outer' cellspacing='1'>";

echo 
"<tr>";

echo 
"<th colspan="2">";

echo 
"<img src="http://adictoshp.org/img/aviso.gif" align="absmiddle">Atencion";

echo "</th>";

echo 
"</tr>";

echo 
"<tr>";

echo 
"<td colspan="2">";

echo 
"<font size="2" color="#ff0000" face="Verdana">Por favor para registrarse necesita proporcionar una dirección de <b>e-mail</b> válida [que exista], de introducir una falsa el registro no podrá efectuarse. Ud. recibirá un e-mail en la dirección que proporcionó con un enlace de validación, haga click en él para activar su cuenta y entrar en el sitio, las direcciones de correo proporcionadas por los usuarios son solo para el uso interno de este sitio, en ningún momento le serán enviados e-mail no deseados y se respetará escrupulosamente la confidencialidad de las mismas. Muchas gracias por confiar en nosotros.</font>";

echo "</td>";

echo 
"</tr>";

echo 
"</table>";[/color]

$reg_form = new XoopsThemeForm(_US_USERREG"userinfo""register.php");

$uname_size $xoopsConfigUser['maxuname'] < 25 $xoopsConfigUser['maxuname'] : 25;


a demo:
http://www.adictoshp.org/register.php

3
ideagot
Re:How can i modify User Registration Page!
  • 2004/11/5 3:33

  • ideagot

  • Just popping in

  • Posts: 17

  • Since: 2003/4/16


thx very much.

i have another problem about Edit Profile page.how can i add "red text" like the below pix.

Resized Image

can you give a suggestion.

thx again!

4
tripmon
Re:How can i modify User Registration Page!
  • 2004/11/5 5:17

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


if you have yet to make the changes I would suggest a much easier path...

go to administration
sysadmin=>preferences=>user info settings=>

on the bottom of the page set "display disclaimer" to yes and enter the text you want in the box beneath....

Much easier.

You will need to edit the afforementioned template file in order to add colored text beneath the disclaimer.

5
ideagot
Re:How can i modify User Registration Page!
  • 2004/11/5 5:31

  • ideagot

  • Just popping in

  • Posts: 17

  • Since: 2003/4/16


i don't want to add the red text in "display disclaimer".
just like the pix i show.

6
tripmon
Re:How can i modify User Registration Page!
  • 2004/11/5 5:55

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


OK,

I was trying to explain to you that you can add a disclaimer with built in functions as opposed to hardcoding it as the other guy suggested. I saw your first post and thought I would try and make it easier for you...

As far as your red text... I never thought you wanted to add it in the disclaimer.
I said:

Quote:
You will need to edit the afforementioned template file in order to add colored text beneath the disclaimer.


Since that didn't make sense to you: in the most basic terms I can muster...

You will need to manually edit (with a text or html editor)the file:
includes/registerform.php.

use html to insert your code beneath
$disc_tray->addElement($disc_text);

which is around 5-7 lines from the bottom.

7
ideagot
Re:How can i modify User Registration Page!
  • 2004/11/5 6:22

  • ideagot

  • Just popping in

  • Posts: 17

  • Since: 2003/4/16


no no no

not beneath the disclaimer.

it should above the Password(type a new password twice to change it) in the Edit Profile Page

8
tripmon
Re:How can i modify User Registration Page!
  • 2004/11/5 6:35

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


Doah,

I just saw you did say in the edit profile page... the post subject must have thrown me off, either that or the crack.

OK,
edituser.php in the root..

insert your html right before:
</td></tr><tr valign='top' align='left'><td class='head'>Password<br />(type a new password twice to change it)</td>

you may want to add a:
</br>
before your html

</br>your html here</td></tr><tr valign='top' align='left'><td class='head'>Password<br />(type a new password twice to change it)</td>
it's an ugly section, you may want to do a find on the whole string

9
ideagot
Re:How can i modify User Registration Page!
  • 2004/11/8 1:26

  • ideagot

  • Just popping in

  • Posts: 17

  • Since: 2003/4/16


Quote:

insert your html right before:
</td></tr><tr valign='top' align='left'><td class='head'>Password<br />(type a new password twice to change it)</td>

you may want to add a:
</br>
before your html

</br>your html here</td></tr><tr valign='top' align='left'><td class='head'>Password<br />(type a new password twice to change it)</td>
it's an ugly section, you may want to do a find on the whole string


i can't find the code in edituser.php,there is no '</td>' or '</tr>' at all.

Login

Who's Online

142 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 142


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits