Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 Feb 2013, 20:10
richardevans123 richardevans123 is offline
 
Join Date: Sep 2012
Conditional Profile Field Status and Notices

Hey Guys,

I have got a Custom Profile Field and it acts like a status. Similar to Online and Offline, but Active or Non-Active.

What I'd like to do is when a User Selects the "Non-Active" option, a Notice appears saying that the status is "Non-Active" please change to Active.

What coding do I need to do this?

Thanks
Reply With Quote
  #2  
Old 07 Feb 2013, 16:25
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
depends what template you want to put it in. But I would imagine something like this

OPTIONS FOR DROPDOWN
Non-Active [has an id of 0]
Active [has an id of 1]


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Where # is your field id, and 0 is the id of the non-active selection.
__________________
If I have helped you, the least you could do is click the button to show your appreciation.
TheSecond.org - Because it is our right!
Reply With Quote
  #3  
Old 07 Feb 2013, 16:53
richardevans123 richardevans123 is offline
 
Join Date: Sep 2012
Okay, the coding is right, but changing the "0" and "1" isn't actually changing anything. I'm working on 4.2.0 PL3 if that helps
Reply With Quote
  #4  
Old 07 Feb 2013, 17:01
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
i see no custom dropdown profile field on your site.

--------------- Added 07 Feb 2013 at 17:02 ---------------

try == '1' instead of == 1

--------------- Added 07 Feb 2013 at 17:15 ---------------


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Try that.

--------------- Added 07 Feb 2013 at 17:18 ---------------

If that doesnt work then try

"Second Option Selected"

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

dont remember exactly but it could be either [field11] or ['field11'] try both.
__________________
If I have helped you, the least you could do is click the button to show your appreciation.
TheSecond.org - Because it is our right!

Last edited by LifesGreatestGift; 07 Feb 2013 at 17:20.
Reply With Quote
  #5  
Old 07 Feb 2013, 17:23
richardevans123 richardevans123 is offline
 
Join Date: Sep 2012
It's done via radio buttons. And neither of those codes work. :/
Reply With Quote
  #6  
Old 07 Feb 2013, 17:27
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
What template are you posting these in? header/navbar?
__________________
If I have helped you, the least you could do is click the button to show your appreciation.
TheSecond.org - Because it is our right!
Reply With Quote
  #7  
Old 07 Feb 2013, 17:31
richardevans123 richardevans123 is offline
 
Join Date: Sep 2012
I'm doing it via a notice
Reply With Quote
  #8  
Old 07 Feb 2013, 17:43
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
May be a bug as


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

should work.
__________________
If I have helped you, the least you could do is click the button to show your appreciation.
TheSecond.org - Because it is our right!
Reply With Quote
  #9  
Old 07 Feb 2013, 17:47
richardevans123 richardevans123 is offline
 
Join Date: Sep 2012
Got it to work!
Reply With Quote
  #10  
Old 07 Feb 2013, 17:48
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
try using a dropdown single-selection and these conditionals. may just be with radio button.

--------------- Added 07 Feb 2013 at 17:48 ---------------

What was the code that worked? I am curious.
__________________
If I have helped you, the least you could do is click the button to show your appreciation.
TheSecond.org - Because it is our right!
Reply With Quote
  #11  
Old 07 Feb 2013, 17:56
richardevans123 richardevans123 is offline
 
Join Date: Sep 2012

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That one!

Thanks for your help
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:33.

Layout Options | Width: Wide Color: