1
Cuidiu
Displayname Description
  • 2006/5/15 23:56

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


I would like to add a small description to the Displayname on the registration form. Is this possible?
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

2
phppp
Re: Displayname Description
  • 2006/5/16 4:46

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


possible but not so simple
you could append an form element of XoopsFormLabel to the end of registration form

3
CeBepuH
Re: Displayname Description
  • 2006/5/16 9:18

  • CeBepuH

  • Not too shy to talk

  • Posts: 128

  • Since: 2002/6/10


A simple workaround would be to put the explanation in the Disclaimer box just above the Disclaimer text.
Humans need fantasy to be humans. To be the place where the fallen angel meets the rising ape.

4
Cuidiu
Re: Displayname Description
  • 2006/5/16 15:15

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


That would be great if I knew how to put it at the top. It appears at the bottom instead. Also, removing the checkbox "I agree" would be good too but then that would mess up the whole registration process from the looks of register.php. This solution isn't quite what I'm looking for but thanks for the reply!

Quote:
CeBepuH wrote:
A simple workaround would be to put the explanation in the Disclaimer box just above the Disclaimer text.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

5
Cuidiu
Re: Displayname Description
  • 2006/5/16 21:36

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Thanks, phppp. If I weren't a PHP newbie then I'd probably understand. Since I'm not, how about this... How could I add a line to where it will appear to users at the top of the registration form? Something like:
echo "displayname description text";
above a specific line in register.php or include/form.php? I have no idea where I could add it.

Quote:
phppp wrote:
possible but not so simple
you could append an form element of XoopsFormLabel to the end of registration form
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

6
m0nty
Re: Displayname Description
  • 2006/5/16 22:57

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


why all the technical discussion lol

edit modules/profile/language/english/main.php

find

define('_PROFILE_MA_DISPLAYNAME','Displayname');


and edit it as example >

define('_PROFILE_MA_DISPLAYNAME','Displayname<br /><br />here's an example description');


note the escape character \ before the apostrophe in here's, which is needed when the define is enclosed in single quotes and not double quotes.

7
Cuidiu
Re: Displayname Description
  • 2006/5/17 1:28

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


That works. Thanks.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]

Login

Who's Online

247 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 247


more...

Donat-O-Meter

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

Latest GitHub Commits