YAFLogo

Posted by: degree11 - Thursday, 12 November 2020 18:27:27
We have added our custom membership and our members ar added to the database. 1. The problem is YAF members stopped working - first question is why? 2. The second question is how to set another (custom member) as an admin via database? I have added added a record to UserGroup page with aadmin id and also changed rank in User table to 1. Logged out and in and the user is still ordinary user. What else to set?

Posted by: degree11 - Friday, 13 November 2020 15:31:00
Can anyone advise?

Posted by: tha_watcha - Sunday, 15 November 2020 00:14:07
1. Can you explain the problem? What error did you get? 2. For the Group the IsAdmin flag needs to be set. Admin > Groups > Edit Group > Check [b]Is Admin[/b]

Posted by: degree11 - Monday, 16 November 2020 11:57:27
[quote=tha_watcha;72797]1. Can you explain the problem? What error did you get? 2. For the Group the IsAdmin flag needs to be set. Admin > Groups > Edit Group > Check [b]Is Admin[/b] [/quote] 1. The problem is that we don't have any admin atm to set up someone else as an admin because we implemented our own membership and none of our own members is an admin. So I want to know how to set up admin programmatically in the db or anywhere where it is settable (expect the admin panel to which no one has access atm). 2. There is no such submenu [i]Groups[/i] under [i]Admin[/i] and also none of our users has access to Admin anyway - it displays "Host Admin permissions required!" when I try to access any of the admin pages. I have hardcoded one of our users as belonging to "Administrators" group so I can see the admin navigation but none of the admin pages is accessible. [code=csharp]IsAdmin[/code] flag is true however [code=csharp]IsHostAdmin[/code] is false and [code=csharp]this.userFlags.IsHostAdmin[/code] is also false.

Posted by: degree11 - Monday, 16 November 2020 18:56:31
I have managed to make IsHostAdmin true by changing Flags value for the user in the db.

Posted by: tha_watcha - Monday, 16 November 2020 19:46:18
The menu entry should be admin > user and roles > roles. By default all pages are disabled for Admins. As host you need to set Read access for the pages under host > admin page access. Or manually via the Admin Page User Access table.