coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Chunky C on June 23, 2004, 08:33:18 PM

Title: [Solved]: Admin for CPG 1.3 but no Admin rights in phpBB
Post by: Chunky C on June 23, 2004, 08:33:18 PM
Can I make an Admin for CPG 1.3 integrated with phpBB 2.0.8 where the CPG admin doesn't have admin privileges for the board?  I'm guess not.  :-[



Title: Re: Admin for CPG 1.3 but no Admin rights in phpBB
Post by: Nibbler on June 23, 2004, 09:21:35 PM
Not using the standard interfaces, no.
Title: Re: Admin for CPG 1.3 but no Admin rights in phpBB
Post by: Chunky C on June 23, 2004, 09:35:44 PM
grrrrr.

I know I should as this at the phpBB but ....

Do you know of a "non-standard" interface (read as MOD)?

Title: Re: Admin for CPG 1.3 but no Admin rights in phpBB
Post by: Nibbler on June 23, 2004, 09:57:25 PM
Just a minor change to includes/init.inc.php,

replace
define('GALLERY_ADMIN_MODE', USER_IS_ADMIN && $USER['am']);

with
define('GALLERY_ADMIN_MODE', (USER_IS_ADMIN || USER_ID == xxx) && $USER['am']);

You can put someone's id in xxx to give them admin mode, but it's not really a clean way to do it.
Title: Re: Admin for CPG 1.3 but no Admin rights in phpBB
Post by: Chunky C on June 24, 2004, 01:00:13 AM
Thanks Nibbler.  I gave it a try and it does work.

Chunk
Title: Re: [Solved]: Admin for CPG 1.3 but no Admin rights in phpBB
Post by: Priit Tamboom on July 20, 2004, 12:19:30 PM
Heip!

I tried, it's working well.

However, I would like to use GROUP_ID (phpbb) instead of USER_ID. Because then it's much easier to add some more people to a group of admins (under phpbb group).

Do you know how I can use phpbb group id?

Priit
 
Title: Re: [Solved]: Admin for CPG 1.3 but no Admin rights in phpBB
Post by: Suede on July 23, 2004, 11:31:51 PM
http://www.phpbb.com/phpBB/viewtopic.php?t=27470&highlight=external+group [though this may be the more current link... http://www.phpbb.com/phpBB/viewtopic.php?t=85737 ]

Ive used this for other things with my phpbb guildsites - will take some tweaking but I think will do what you are looking to do.