Nivisec Color Groups

Support for phpBB mods/hacks.

Moderator: Moderators

Nivisec Color Groups

Postby TheMachine on Fri May 26, 2006 7:18 pm

Successfully installed, however I'd like to remove the surrounding brackets from the group names in whos online.

So: [ Admin ] [ Moderator ] [ VIP ]
Looks like Admin Moderators VIPs

Perhaps seperated with the •

So... which file do I edit?
User avatar
TheMachine
Registered User
Registered User
 
Posts: 428
Joined: Sat Dec 04, 2004 8:59 pm
Location: Manchester

Postby DooBDee on Fri May 26, 2006 7:27 pm

Try this: (note I dont have the MOD installed, so i am not 100% sure it will work...)
Open includes/functions_color_groups.php
Find
Code: Select all
         $list .= '&nbsp;[ <span style="font-weight:bold;color:' . stripslashes($row['group_color']) . '">' . stripslashes($row['group_name']) . '</span> ]&nbsp;';
Replace with
Code: Select all
         $list .= '&nbsp;<span style="font-weight:bold;color:' . stripslashes($row['group_color']) . '">' . stripslashes($row['group_name']) . '</span>&nbsp;';
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

Postby TheMachine on Fri May 26, 2006 8:45 pm

You're a star
Last edited by TheMachine on Fri May 26, 2006 10:11 pm, edited 2 times in total.
User avatar
TheMachine
Registered User
Registered User
 
Posts: 428
Joined: Sat Dec 04, 2004 8:59 pm
Location: Manchester

Postby Ratt on Fri May 26, 2006 9:13 pm

doobdee gave great advice.
Last edited by Ratt on Sat May 27, 2006 2:24 pm, edited 2 times in total.
Ratt
Registered User
Registered User
 
Posts: 174
Joined: Thu Aug 18, 2005 9:46 am

Postby TheMachine on Fri May 26, 2006 9:30 pm

Of course that was the first place I looked. I wouldn't post if the solution was so simple.
Last edited by TheMachine on Fri May 26, 2006 10:12 pm, edited 1 time in total.
User avatar
TheMachine
Registered User
Registered User
 
Posts: 428
Joined: Sat Dec 04, 2004 8:59 pm
Location: Manchester

Postby DooBDee on Fri May 26, 2006 9:31 pm

TheMachine, did you try what i suggested?
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

Postby TheMachine on Fri May 26, 2006 10:12 pm

Yes mate. Worked. Thanks for you're help. Much appreciated ;)
User avatar
TheMachine
Registered User
Registered User
 
Posts: 428
Joined: Sat Dec 04, 2004 8:59 pm
Location: Manchester

Postby Ratt on Sat May 27, 2006 6:26 am

Actually it worked doing what i suggested when i wanted the [ removed from the who's online string to see what it looked like without the bars there.
Ratt
Registered User
Registered User
 
Posts: 174
Joined: Thu Aug 18, 2005 9:46 am

Postby DooBDee on Sat May 27, 2006 9:42 am

[quote user="Ratt" post="76635"]Actually it worked doing what i suggested when i wanted the [ removed from the who's online string to see what it looked like without the bars there.[/quote]

Yes it would have worked if you did not have color group MOD installed. That MOD removes those lines you mentioned in the template file, thus you have to edit php file as that is the file that builds the list of color groups.
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

Postby Ratt on Sat May 27, 2006 2:22 pm

ty for the heads up.really appreciate all the info i can get.
Ratt
Registered User
Registered User
 
Posts: 174
Joined: Thu Aug 18, 2005 9:46 am

Re: Nivisec Color Groups

Postby Divvy on Thu Aug 07, 2008 10:08 pm

Thank you for the modification :)

Btw, is possible to use bold only in nicks with color? For example, admins, mods, etc...
And the normal users without bold.

If yes, how? :)
Divvy
Registered User
Registered User
 
Posts: 10
Joined: Thu Jun 09, 2005 11:58 am

Re: Nivisec Color Groups

Postby Krakus on Sun Sep 07, 2008 4:00 pm

Don't know this mod, but following should solve your problem.

Open includes/functions_color_groups.php
Find:
Code: Select all
<span style="font-weight:bold;color:' . stripslashes($row['group_color']) . '">' . stripslashes($row['group_name']) . '</span>

Replace with:
Code: Select all
<span style="' . ( !$row['group_name'] ? "" : "font-weight:bold;" ) . 'color:' . stripslashes($row['group_color']) . '">' . stripslashes($row['group_name']) . '</span>
User avatar
Krakus
Registered User
Registered User
 
Posts: 23
Joined: Sat Oct 07, 2006 9:40 am
Location: Poland


Return to phpBB Mods

Who is online

Users browsing this forum: No registered users and 8 guests

cron