1
JCash
register.php : caption marker displayed for all fields
  • 2011/10/17 12:01

  • JCash

  • Just popping in

  • Posts: 66

  • Since: 2011/2/22


All caption fields have a * but Website information is not required, just asked :

$reg_form->addElement(new XoopsFormText(_US_WEBSITE, 'url', 25, 255, $myts->htmlSpecialChars($url)));

If I add :

$reg_form->addElement(new XoopsFormText(_US_WEBSITE, 'url', 25, 255, $myts->htmlSpecialChars($url)), false);

... nothing happens

2
JCash
Re: register.php : caption marker displayed for all fields
  • 2011/10/18 12:20

  • JCash

  • Just popping in

  • Posts: 66

  • Since: 2011/2/22


... seems to be a simple conflict with my css instructions. If I'm not wrong there at least are both instructions to display / hide *

.xoops-form-element-caption .caption-marker {}
.xoops-form-element-caption-required .caption-marker {}

... but it not works in all cases.

Not clear for me, and you ?

3
trabis
Re: register.php : caption marker displayed for all fields
  • 2011/10/18 12:31

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


What theme are you using?

4
JCash
Re: register.php : caption marker displayed for all fields
  • 2011/10/19 23:41

  • JCash

  • Just popping in

  • Posts: 66

  • Since: 2011/2/22


I like simplicity, so I use "blanktheme" found here :http://sourceforge.net/projects/xoofoo/files/Xoops/Themes/interface_publique/

5
trabis
Re: register.php : caption marker displayed for all fields
  • 2011/10/19 23:57

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I can't reproduce it, what XOOPS version are you using?

6
JCash
Re: register.php : caption marker displayed for all fields
  • 2011/10/20 0:20

  • JCash

  • Just popping in

  • Posts: 66

  • Since: 2011/2/22


The same for me, I can't reproduce it : I have installed a new Xoops 2.5.3 with blanktheme and all * are displayed for required fields :
- on register page
- on contact form (xforms 1.2)

I'm sorry to waste your (precious) time

Login

Who's Online

198 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 198


more...

Donat-O-Meter

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

Latest GitHub Commits