![]() |
|
Article Options |
#106
|
||||
|
||||
That works perfectly, thank you.
![]() No members have liked this post.
|
#107
|
||||
|
||||
Do your images have the options for field17 embedded in their URL? If so you could easily build the HTML using string concatenation. Suppose your images are stored in the folder "images/housemembership" and their filenames are composed of the options and the extension ".png". Then you would use the plugin code:
No members have liked this post.
|
#108
|
||||
|
||||
They don't, but I'll work on that later tonight and see what I can whip up. Thank you ^^
No members have liked this post.
|
#109
|
||||
|
||||
Originally Posted by ProfC
Rather than rename the folder and files, it would be easier to construct a switch statement to build the element. Just let me know the folder name and which image filename goes with which option, and I will write the plugin code. ![]()
![]() No members have liked this post.
|
#110
|
||||
|
||||
Originally Posted by MarkFL
Thank you ![]()
![]() I'll drop you a message in a few moments with everything. No members have liked this post.
|
#111
|
|||
|
|||
![]()
Multiple-Selection Menu
& 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 ![]() No members have liked this post.
Last edited by akz645; 30 Aug 2015 at 03:09. |
#112
|
||||
|
||||
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.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#113
|
|||
|
|||
Originally Posted by Lynne
http://i.imgur.com/oBVhrlM.png + http://i.imgur.com/6h0gmLS.png![]()
How do I set the first option as the default (highlighted)? As the current settings I'm using, doesn't do this...
Originally Posted by Lynne
Cheers, that worked.![]()
Yes, at registration and profile updating - Doesn't work. Yes, always - Worked ![]() No members have liked this post.
Last edited by akz645; 30 Aug 2015 at 23:01. |
#114
|
||||
|
||||
1) Whoops, sorry, I was looking at the wrong type of profile field (single-selection menu, not multi-selection menu).
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#115
|
|||
|
|||
Originally Posted by Lynne
Ah alright. Anyway, thanks for the help ![]()
![]() http://www.vbulletin.org/forum/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. No members have liked this post.
|
#116
|
|||
|
|||
1) Do you know any way to set it so only certain usergroups will have X User Profile Field option appear in their userCP?
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. No members have liked this post.
Last edited by akz645; 17 Sep 2015 at 16:37. |
#117
|
||||
|
||||
1) No, I do not.
2) Very hard to say without specifics. But, you can probably use phpMyAdmin to do it.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#118
|
|||
|
|||
Originally Posted by Lynne
I was hoping it would be something straight forward like this:![]()
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. No members have liked this post.
|
#119
|
||||
|
||||
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.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#120
|
||||||||||||
|
||||||||||||
![]()
Originally Posted by akz645
Glenn Vergara posted how to do it, from vbulletin.com ![]()
![]() 1)
This code allows you to change a usergroups' custom user profile field (any option they have), to whatever specific option you want them all to have changed to. Key: Red = User Profile Field ID. Green = User Profile Field Option you want to change to. Blue = Usergroup ID. 2)
This code allows you to change a usergroups' custom user profile field (any single option), to whatever other specific option you want them all to have it changed to. 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)
This code allows you to change a usergroups' custom user profile field (multiple options), to whatever specific option you want them all to have it changed to. If they have selected an option you don't include (example: Other), then users who have selected that option will be left unaffected. 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: http://www.vbulletin.org/forum/showt...58#post2555258 --------------- Added 27 Sep 2015 at 22:05 ---------------
Originally Posted by akz645
That's the only question still left unanswered. ![]()
If anybody can help out, that would be great ![]() No members have liked this post.
Last edited by akz645; 27 Sep 2015 at 22:23. |
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 13:34.