The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to deal with custom user permissions?
Hi all,
after searching the forum for a couple of time, I wasn't able to find information about my question. So here we go: I'm adding a new Yes/No-row via plugins in the user management page in admincp (print_yes_no_row()). But how can I change the checked status for this item when getting the userdata out of the user table? It shows currently 'Yes', independet from the value of the tablecolumn. Maybe its simple, but I didn't got the trick yet. Best regards, daFish |
#2
|
||||
|
||||
Does no one have an idea?
|
#3
|
|||
|
|||
Şorry not really getting what you are asking. Where do you want to retrieve the value? Maybe some snippets of your code.
|
#4
|
|||
|
|||
The way I think you have it set up is that you have a list of usernames.
When you click on the username you're passing the userid through the url, correct?. If so make a query on the user's table where userid = $_GET[userid] (I don't know the secure one off hand) above the form_start where radio button is. Assuming you're using $row['status'] Here's an example radio button PHP Code:
If it equals "0" then "No" will be checked. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|