Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Aug 2015, 20:14
akz645 akz645 is offline
 
Join Date: Jul 2015
Thumbs up How do I check this box as default? (PHP Help) [Completed]

1)
Template: modifyprofile

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

Note: I'm not sure if the ul class is even correct. Profile field type: Multiple-Selection Checkbox -> I guessed the ul class for that to be checkradio group.
http://i.imgur.com/ebV531x.png
The current default = Whatever is currently being used. So if I ticked the box and then went to see my post, then I came back to Edit Profile, the box would remain ticked.
I'm not sure how to change that default.
How do I make it so everytime someone visits 'Edit Profile' the checkbox will always have yes ticked, instead of it defaulted to whatever the user currently had saved it as?


2) Profile Field
http://i.imgur.com/Gm0cTIn.png -> No, but show at registration makes it appear, as a checkbox.
This is what appears at the bottom, when users are registering:

However, the box is unticked. How do I have it ticked by default?

This is the Mod (I made) that it will help:
http://www.vbulletin.org/forum/showthread.php?p=2552624

Last edited by akz645; 29 Aug 2015 at 23:13. Reason: Completed
Reply With Quote
  #2  
Old 12 Aug 2015, 02:27
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Try checked="checked" instead of selected.
__________________
Looking for ImpEx?
Reply With Quote
  #3  
Old 12 Aug 2015, 02:45
akz645 akz645 is offline
 
Join Date: Jul 2015
Originally Posted by Zachery View Post
Try checked="checked" instead of selected.
Didn't work...
Although yeah, if the ul class is checkradio group, I should have written checked instead of selected.

Edit:
Okay, it seems I'm mixing up the two templates and I've mixed myself up. Sorry for the confusion, for anybody who read earlier.

Original post changed, so now my intention should be much more clear.

Last edited by akz645; 12 Aug 2015 at 03:24.
Reply With Quote
  #4  
Old 12 Aug 2015, 12:55
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
http://www.w3.org/wiki/HTML/Elements/input/checkbox
__________________
Looking for ImpEx?
Reply With Quote
  #5  
Old 12 Aug 2015, 14:59
akz645 akz645 is offline
 
Join Date: Jul 2015
Unfortunately just sending me that link doesn't help.
I've tried doing that, but to no avail.
Reply With Quote
  #6  
Old 12 Aug 2015, 15:09
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Have you tried radio buttons?


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


Or May be this:


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


Last edited by Seven Skins; 12 Aug 2015 at 15:16.
Reply With Quote
  #7  
Old 29 Aug 2015, 14:53
akz645 akz645 is offline
 
Join Date: Jul 2015
Checkbox was more trouble than it's worth lol.

Anyway, I figured out a different method for doing what I wanted to do.

https://www.vbulletin.org/forum/show...&postcount=154
I figured out how to do it for my Gender profile field, so it should be a similar process for my reputation.

Regardless, thanks for the help
I always appreciate those who reply back to me. As it's far better than nobody replying back
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 18:13.

Layout Options | Width: Wide Color: