xoops forums

JCash

Just popping in
Posted on: 2011/10/17 8:01
JCash
JCash (Show more)
Just popping in
Posts: 66
Since: 2011/2/22
#1

register.php : caption marker displayed for all fields

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

JCash

Just popping in
Posted on: 2011/10/18 8:20
JCash
JCash (Show more)
Just popping in
Posts: 66
Since: 2011/2/22
#2

Re: register.php : caption marker displayed for all fields

... 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 ?

trabis

Core Developer
Posted on: 2011/10/18 8:31
trabis
trabis (Show more)
Core Developer
Posts: 2259
Since: 2006/9/1 1
#3

Re: register.php : caption marker displayed for all fields

What theme are you using?

JCash

Just popping in
Posted on: 2011/10/19 19:41
JCash
JCash (Show more)
Just popping in
Posts: 66
Since: 2011/2/22
#4

Re: register.php : caption marker displayed for all fields

I like simplicity, so I use "blanktheme" found here : http://sourceforge.net/projects/xoofo ... hemes/interface_publique/

trabis

Core Developer
Posted on: 2011/10/19 19:57
trabis
trabis (Show more)
Core Developer
Posts: 2259
Since: 2006/9/1 1
#5

Re: register.php : caption marker displayed for all fields

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

JCash

Just popping in
Posted on: 2011/10/19 20:20
JCash
JCash (Show more)
Just popping in
Posts: 66
Since: 2011/2/22
#6

Re: register.php : caption marker displayed for all fields

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