cotonti.com : A Couple Qustions https://www.cotonti.com Последние сообщения в теме Cotonti en Mon, 12 Jan 2026 07:31:57 -0000 Kilandor вс, 10 мая 2009 00:58:20 -0000 jwmass03
How could I go about changing the lower limit of the authorization level to allow regular member to still use the site, without having to make them moderators?

Thanks,
Jeff

Well in case anyone comes across this topic, and wants to know how to do it. You'll have to manually change the database.

Under the table sed_groups, you'll have to edit the property of the members. There's a property called grp_maintenance that must be set to 1.

I think the command would be
UPDATE sed_groups SET grp_maintenance = '1' WHERE grp_alias = 'members';]]>
пт, 08 мая 2009 20:04:51 -0000
Kilandor
See it redirects you to message.php

So if you took the above code and put it in message.php similar to user.php it would work however you don't need all that if all you would need is this...

if($_GET['msg'] == 118)
{
	define('SED_AUTH', TRUE);
}
That should work, just a note, you don't have to quote numbers :) if thats all there is in it ex 118, but strings have to be quoted ex '118b' Just a small tip though in most cases it wouldn't ever make a difference.]]>
пт, 08 мая 2009 07:48:06 -0000
jwmass03
One last thing, to get the message saying that the admin must approve of the user, but not any of the other messages, like when the user clicks on a screen that's not allowed for them, how could I do that?

I tried

if(isset($_GET['m']) && ($_GET['m'] == 'auth' || $_GET['m'] == 'register' || $_GET['msg'] == '118'))
{
define('SED_AUTH', TRUE);
}

But I think maybe there's a page that it loads between clicking "Submit" and getting to that message, because that didn't work.

Thanks,
Jeff]]>
пт, 08 мая 2009 07:19:43 -0000
Kilandor
However in users.php you could change
if(isset($_GET['m']) && $_GET['m'] == 'auth')
{
	define('SED_AUTH', TRUE);
}

To

if(isset($_GET['m']) && ($_GET['m'] == 'auth' || $_GET['m'] == 'register'))
{
	define('SED_AUTH', TRUE);
}

This would allow the registration page to work.]]>
пт, 08 мая 2009 05:12:47 -0000
jwmass03
I was wondering if anyone here knows where it redirects to the login page if maintenance mode is on, and if it'd be possible to ignore the case of when the user is trying to go to the registration page?

Thanks.]]>
пт, 08 мая 2009 03:06:16 -0000
pieter
For me the best methode is using email activation.]]>
пт, 08 мая 2009 02:09:53 -0000
Kilandor http://www.cotonti.com/users.php?gm=2 ). Which I think in most cases any large sites would never use such system, sense it would be very time consuming. So its prob no more hassle to have to open the profile and edit it.]]> пт, 08 мая 2009 02:04:37 -0000 pieter пт, 08 мая 2009 01:59:58 -0000 jwmass03
Thanks]]>
пт, 08 мая 2009 01:57:23 -0000
Kilandor пт, 08 мая 2009 01:56:52 -0000 pieter User approval:

I tested it on my test site:
Admin gets an email.
So this mean only admin with ID=1

Hi,
You are receiving this email because USERNAME requested a new account.
This user won't be able to login until you manually set the account as 'active', here :

 http://www.YOURSITE.com/users.php?gm=2&s=regdate&w=desc


------------------------------
Maybe a good idea to make it like pages. In validation queue. Because if there are multiple admins anly admin with ID=1 will get the mail.



.]]>
пт, 08 мая 2009 01:41:22 -0000
jwmass03
As far as the User approval goes, when a page is put up, it is put under ADMINISTRATION PANEL / PAGE / WAITING FOR VALIDATION, and even shows up at the top like so:

Administration | Users | Profile | My files | No private messages
In validation queues : 1 Page

However, nothing shows up for users, and I can't find a page to approve them, or manually change what group the user belongs to.

Thanks for your response.]]>
пт, 08 мая 2009 01:25:45 -0000
Lombi
1.) Although I've never used that function I would presume it's on the front page of the admin, on the same exact location where the pages are waiting for validation.]]>
пт, 08 мая 2009 01:05:19 -0000
jwmass03
I still have a couple of questions though. With Cotonti, it does tell the user that the admin will have to approve before they can log in when they register, however, I can't find where to approve them as the admin. Most likely I'm just over-looking something obvious.

My other question still persists. Does anyone know of a way to make it so that if the user is not logged in, the only thing he can see is a log-in screen?

Thanks,
Jeff]]>
пт, 08 мая 2009 01:03:05 -0000