Background colors for groups

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Craig Snyder
Registered User
Posts: 73
Joined: Sat May 19, 2007 2:45 pm

Re: Colored background messages for admins and mods

Post by Craig Snyder »

Théonaute wrote:Have you made the modifications in your style ?

Best, ;)
Yes. If I didn't, I don't think it'd show up at all.
User avatar
Théonaute
Registered User
Posts: 341
Joined: Sun Jan 22, 2006 10:31 am

Re: Colored background messages for admins and mods

Post by Théonaute »

Can I have your viewtopic_body.html please ?
Théonaute | ex-MOD Team member on phpbb-fr.com
No more phpBB's activities. No MODs updates, no new MODs... Thanks.
Craig Snyder
Registered User
Posts: 73
Joined: Sat May 19, 2007 2:45 pm

Re: Colored background messages for admins and mods

Post by Craig Snyder »

I found what it is.

Rather than putting this in overall_header.html:

Code: Select all

<style type="text/css">
/* Begin : Colored background messages for admin and moderators */
.cbgm_admin	{ background-color: #{CBGM_ADMIN_COLOR};}
.cbgm_mod	{ background-color: #{CBGM_MOD_COLOR};}
/* End : Colored background messages for admin and moderators */
</style>
I tried putting this in the stylesheet.css:

Code: Select all

<style type="text/css">
.cbgm_admin	{ background-color: #{CBGM_ADMIN_COLOR};}
.cbgm_mod	{ background-color: #{CBGM_MOD_COLOR};}
</style>
Is there any reason that doesn't work, though? I was only trying to keep things orderly.
User avatar
Théonaute
Registered User
Posts: 341
Joined: Sun Jan 22, 2006 10:31 am

Re: Colored background messages for admins and mods

Post by Théonaute »

You must put this code in overall_header because styles vars aren't translated in css (or i didn't found the way).


Best, ;)
Théonaute | ex-MOD Team member on phpbb-fr.com
No more phpBB's activities. No MODs updates, no new MODs... Thanks.
User avatar
Sunka
Registered User
Posts: 566
Joined: Wed Mar 26, 2008 2:48 pm
Location: Croatia, Zvoneca

Re: Colored background messages for admins and mods

Post by Sunka »

Interesting MOD...I will install :mrgreen:
Deathwillow
Registered User
Posts: 11
Joined: Fri Oct 03, 2008 7:50 am

Re: Colored background messages for admins and mods

Post by Deathwillow »

Can we get some screen shots that work please? Want to verify this is what I'm looking for before I download and install it. :)
User avatar
Sunka
Registered User
Posts: 566
Joined: Wed Mar 26, 2008 2:48 pm
Location: Croatia, Zvoneca

Re: Colored background messages for admins and mods

Post by Sunka »

Look here for screenshouts :mrgreen:
User avatar
Théonaute
Registered User
Posts: 341
Joined: Sun Jan 22, 2006 10:31 am

Re: Colored background messages for admins and mods

Post by Théonaute »

Théonaute wrote:Demo Board : http://www.modsphpbb3.fr
:mrgreen:
Théonaute | ex-MOD Team member on phpbb-fr.com
No more phpBB's activities. No MODs updates, no new MODs... Thanks.
Deathwillow
Registered User
Posts: 11
Joined: Fri Oct 03, 2008 7:50 am

Re: Colored background messages for admins and mods

Post by Deathwillow »

I can't read those forums hehe :P
User avatar
Sunka
Registered User
Posts: 566
Joined: Wed Mar 26, 2008 2:48 pm
Location: Croatia, Zvoneca

Re: Colored background messages for admins and mods

Post by Sunka »

Me to, but I can see screenshouts, and you could too :mrgreen:
sav1812
Registered User
Posts: 10
Joined: Thu Apr 19, 2007 2:59 am
Location: Partizansk, Primorye, Russia
Contact:

Re: Colored background messages for admins and mods

Post by sav1812 »

Sunka wrote:Me to, but I can see screenshouts, and you could too :mrgreen:
Sure?.. :)

Server responce:
Not Found

The requested URL /docs/phpbb/mods/captures/Colored_background_messages_for_admins_and mods/01.jpg was not found on this server.
Same for the 2-nd image... :(

Any comments? :)
User avatar
Théonaute
Registered User
Posts: 341
Joined: Sun Jan 22, 2006 10:31 am

Re: Colored background messages for admins and mods

Post by Théonaute »

Théonaute | ex-MOD Team member on phpbb-fr.com
No more phpBB's activities. No MODs updates, no new MODs... Thanks.
Turan
Registered User
Posts: 5
Joined: Sat Dec 06, 2003 9:49 pm
Location: Netherlands
Contact:

Re: Colored background messages for admins and mods

Post by Turan »

Nice mod thanks. But it will not work for my global moderators. They can't see the box when they are posting. What can be?

Thanks
User avatar
Sunka
Registered User
Posts: 566
Joined: Wed Mar 26, 2008 2:48 pm
Location: Croatia, Zvoneca

Re: Colored background messages for admins and mods

Post by Sunka »

Change settings in ACP - Board features :mrgreen:
Turan
Registered User
Posts: 5
Joined: Sat Dec 06, 2003 9:49 pm
Location: Netherlands
Contact:

Re: Colored background messages for admins and mods

Post by Turan »

Settings were OK. I found a little bug or miswriting in install.xml by editing posting.php

I've to find:

Code: Select all

$bbcode_status	= ($config['allow_bbcode'] && $auth->acl_get('f_bbcode', $forum_id)) ? true : false;
And add before:

Code: Select all

// Begin : Colored background messages for admin and moderators
$cbgm_status	= (($config['load_cbgm_admin'] && $auth->acl_get('a_')) || ($config['load_cbgm_modo'] && $auth->acl_get('m_', $forum_id))) ? true : false;
// End : Colored background messages for admin and moderators
But this is wrong:

Code: Select all

|| ($config['load_cbgm_modo'] &&
The word load_cbgm_modo... Must be load_cbgm_mod!

Thanks...
Locked

Return to “[3.0.x] MOD Database Releases”