![]() |
Adding a usercp option? (Not bitfield)
I need to add several options under UserCP's "editoptions" page.
These will be simple checkboxes that enable/disable features of our site. I looked at bitfields...but from what I understand, those are only for permissions? I know how to add them to the template, i just don't know how to handle the database portion...so that those checkboxes get added to $bbuserinfo[]. |
Use User Profile Fields. You can read about those in the manual.
|
I guess that will work. Thanks.
|
I am pretty sure that when the user information is grabbed, the usertextfields are grabbed also. I have used these in several places on my site successfully.
|
Not on all pages.
showgroups page doesn't grab anything other than the location field. |
There is a distinction here that needs to be made. Are you trying to get the user profile field of someone who is viewing the page or a page that is about someone (like a profile page or a post is about someone else)? If it is about the viewer, that information is available on every page.
|
The one that is viewing the page.
One of the things I'm trying to do with this, is to allow each user to enable/disable a certain feature from their user CP and then based on their preference, show/hide that feature throughout the board. Basically, add a "Do you this feature enabled?" Yes/No Then be able to access that from $bbuserinfo['feature1'] |
If it's the user viewing the forum, then you should be able to do it with a User Profile Field and then use $bbuserinfo['fieldx'] in your templates.
|
All times are GMT. The time now is 02:47 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|