Quote:
Quote:
& Multiple-Selection Checkbox 1) How do I get some/all of those fields highlighted/checkboxes ticked as the default during registration? 2) How do I force all my existing members into updating their user profile settings? I have some forced options now (like gender). Members who are registering now are forced to pick male or female. Whereas members who have already signed up, they aren't forced as nothing appears in their postbit (gender) unless they go to their userCP profile and press save. P.S= Thank you Lynne for this brilliant article :up: |
1. For Multiple-Selection Menu, you may set the first one as default but that is the only option. There is no way to pre-select several checkboxes. I think you would need to write a plugin to do that.
2. I think you can set Field Required to Yes, Always and that should do what you want. Quote:
|
Quote:
How do I set the first option as the default (highlighted)? As the current settings I'm using, doesn't do this... Quote:
Yes, at registration and profile updating - Doesn't work. Yes, always - Worked :) |
1) Whoops, sorry, I was looking at the wrong type of profile field (single-selection menu, not multi-selection menu).
|
Quote:
https://vborg.vbsupport.ru/showthread.php?t=320081 I made a request for somebody to make a plugin allowing the admin to set defaults for Multiple-Selection Menu/Checkbox when creating a User Profile Field. |
Quote:
Quote:
2) How do I execute a SQL Query to force All Users/ Certain Usergroups/ Certain Users to have their X user profile field options changed into what I want? They can change into what they want from the userCP later. |
1) No, I do not.
2) Very hard to say without specifics. But, you can probably use phpMyAdmin to do it. |
Quote:
Invisible On: UPDATE user SET options=options + 512 WHERE NOT(options & 512); Off: UPDATE user SET options=options - 512 WHERE options & 512; Run from Execute SQL Query Where you'd just need to colour code what I need to change depending on my options & field number. |
It would be something like that only on the userfield table (where the settings for the user profile fields are kept). But, if it is for a certain usergroup, your WHERE statement would have to include a SELECT of only certain users whose user.usergroupid was xx since the usergroupid is not included in the userfield table. I'm not good at writing those sort of queries.
|
Quote:
1) Code:
UPDATE userfield SET field5='Hide' where userid in (SELECT userid FROM user WHERE usergroupid IN (X, X, X)) Key: Red = User Profile Field ID. Green = User Profile Field Option you want to change to. Blue = Usergroup ID. 2) Code:
UPDATE userfield SET field5='Hide' where field5='Male' AND userid in (SELECT userid FROM user WHERE usergroupid IN (X, X, X)) Key: Red = User Profile Field ID. Green = User Profile Field Option you want to change to. Orange = Option you want changed. Blue = Usergroup ID. 3) Code:
UPDATE userfield SET field5='Hide' where (field5='Male' OR field5='Female') AND userid in (SELECT userid FROM user WHERE usergroupid IN (X, X, X)) Key: Red = User Profile Field ID. Green = User Profile Field Option you want to change to. Orange = Option you want changed. Blue = Usergroup ID. Note: Change usergroupid to userid to change for several users, instead of entire usergroups. Note 2: You don't have to select more than 1 usergroup. Just selecting 1 usergroup still works. P.S= If you want to know how to change 'Display Reputation', 'Invisible' etc, check out my guide here: https://vborg.vbsupport.ru/showthrea...58#post2555258 --------------- Added [DATE]1443391500[/DATE] at [TIME]1443391500[/TIME] --------------- Quote:
If anybody can help out, that would be great :) |
All times are GMT. The time now is 02:03 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|