News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Custom Profile Field when using checkbox option shows for all users

Started by MarcusJ, February 22, 2010, 03:15:31 PM

Previous topic - Next topic

MarcusJ

I created a custom profile field.  I added the checkbox option with the default set to unchecked.  The idea was to give a special logo/icon on topic view to users who checked the box.  When this profile field is active, all users have this logo/icon in profile view. Even though 99% of them hadn't checked the box. 

When I changed the check box to a text field it works properly.  I just used Regex and required the word 'Join'.  It now functions as desired when they input the text.  However I would imagine the check box should have worked.

Thank you.

Using SMF RC2 -
1.   Custom Form Mod    1.6 
2.   Pretty URLs    1.0RC
3.   SimplePortal    2.3.1
4.   cbi, 1.0    1.5.7
5.   Aeva Media    1.0 
6.   Downloads System Pro    1.0.13

Norv

Hello there,
and apologies for getting to this so late...
Is this issue solved with RC3?
I'm not sure I fully understand it (a screeshot or two of the wrong and right behavior may help), but perhaps it's related to this : http://dev.simplemachines.org/mantis/view.php?id=4049
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

emanuele

I think the problem is: when you create a new checkbox field selecting "Show on Topic View" and putting something in "Show Enclosed Within Text", then in the profile page the text/image/whatever specified in "Show Enclosed Within Text" is displayed irrespective of the state of the checkbox, while in topic view is shown only if the checkbox is selected.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Joshua Dickerson

Is this confirmed? Should it be tracked? I don't exactly understand the issue.
Come work with me at Promenade Group



Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?

emanuele

To reproduce what I *think* was the original problem you have to create a new (of course having Advanced Profile Fields enabled) field with the following settings:

  • Show on Topic View: checked
  • Show Enclosed Within Text: <a href="http://website.com/"><img src="http://media.simplemachinesweb.com/smf/smsite2/images/site/smsite_logo.jpg" alt="" /></a>
  • Field Type: Checkbox
  • Default State: not selected

Then, if you go to the topic view the field is shown only if the field is checked, while in the profile summary the field is always displayed.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Arantor

On the other hand, you can use the 'show enclosed within text' for both yes and no states. I dunno, this is an interesting thing, it actually is by design that it is this way. But whether the design needs changing, I dunno.

Advertisement: