News:

Join the Facebook Fan Page.

Main Menu

MCLegendII.1

Started by Bulakbol, January 28, 2008, 07:44:55 PM

Previous topic - Next topic

Bulakbol

Link to Mod

Author:JohnyB   Mod Name:MCLegendII.1   Version:1.1   Tested:Freshly installed SMF 1.1.4
      
MCLegendII 1.1
  - This mod will display the membergroups color legend under the list of online members.
  - The displayed member color legend by default is:
      [Administrator] [Global Moderator] [Hero Member] [Sr. Member] [Full Member] [Jr. Member] [Newbie]   
  - Re-arrange the display of groups the way you want it by going to
      ~ Admin -> Features and options -> Membergroup legend display arrangement.
  - Separate the arranged group id with comma except for the the last number
        (i.e. 1,2,8,7,6,5,4).
  - Remove or add group id's from/to the list to select the groups you want to be displayed.
  - To disable the display of the color legend, empty the textbox or leave it blank.

February 18, 2009
Released update for SMF version 2.0 RC1.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

SgtMic

How will this work for membergroups that are not based on post counts?
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

Spudgun

#2
Great mod JohnyB  ;)

I've been waiting a while for this one. Installed on my forum without a problem.



Great work fella ;D

Sg

Bulakbol

#3
Quote from: SgtMic on January 29, 2008, 03:14:58 AM
How will this work for membergroups that are not based on post counts?

Assign a color on them and they will be added to the list. The Administrator and Global Moderator are primary group and not post count group but are displayed because they have color.  You can edit the Sources/BoardIndex.php if you want to display group that does not have color. But then, it will not be called MembergroupColorLegend anymore. It will become MembergroupLegend. ;)

Quote from: Spudgun on January 29, 2008, 06:22:40 AM<br />Great mod JohnyB I've been waiting a while for this one. Installed on my forum without a problem.

Great work fella<img

Thanks Spudgun. I think it's built-in in SMF version 2.0 but can't wait for the release.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

D.S


thank u mr JohnyB

u r Great maaaaaaaaaan  :D

I like this mod and it's workaing on  Dilber MC Theme in wonderful effort

but I installed manually becouse I don't use Defaullt Theme

thank u JohnyB and plz keep on

Best Regards

:-* :-* :-*


Bulakbol

#5
You are welcome D.S. And thank you too for using this mod. :) Yes, you have to intall this mod manually if you are using custom theme. If you need help, post it here.


For those who want to display all membergroups including groups that does not have color assigned,  edit Sources/BoardIndex.php and look for

$link = !empty($row['onlineColor']) ? '<span style="color: '. $row['onlineColor']. ';">'. $row['groupName']. '</span>' : '';

and rteplace with

$link = !empty($row['onlineColor']) ? '<span style="color: '. $row['onlineColor']. ';">'. $row['groupName']. '</span>' : $row['groupName'];

and then add the id number in

Admin -> Features and options -> Membergroup legend display arrangement.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

D.S

thank u dude

all thing perfect and good

Bye

SgtMic

There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

Bulakbol

Thanks, if you actually installed it.   ;D
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

SgtMic

I have on 2 sites. Soon to be added to the other 3.
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

Bulakbol

#10
Woo, I can't afford two sites. Maintenance problem. Once you made changes to the first one, you have to make changes to the other sites as well. I am lazy. lol


For those who want to color the square bracket with the same color as the membergroup color, in Sources/BoardIndex.php, look for


$link = !empty($row['onlineColor']) ? '<span style="color: '. $row['onlineColor']. ';">'. $row['groupName']. '</span>' : '';

and replace with


$link = !empty($row['onlineColor']) ? '<span style="color: '. $row['onlineColor']. ';">['. $row['groupName']. ']</span>' : '';


and in default/BoardIndex.template.php, find



echo '[', $context['mc_legend'][$i]['link'], ']&nbsp;&nbsp;';


and replace with


echo $context['mc_legend'][$i]['link'], '&nbsp;&nbsp;';
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

SgtMic

Nice on the bracket coloring.

I can't imagine you could afford any sites since you are only 4 years old. :)
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

Bulakbol

Quote from: SgtMic on January 30, 2008, 02:23:29 AM
Nice on the bracket coloring.

I can't imagine you could afford any sites since you are only 4 years old. :)

Someone asked for it so I am sharing the tips to everyone.

You noticed my age. lol Johnny Bravo never get old. So am I. teehee  ::)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

edi67

i will try this useful mod thx jonny
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

weightman


Bulakbol

Thanks guys. If you have questions or suggestions, yell. ;)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Apllicmz

Nice work

i try to translate to Pt she not work



Bulakbol

Quote from: joomlamz on January 30, 2008, 05:11:38 PM
Nice work

i try to translate to Pt she not work

Thanks Joomlamz. Do you need help on this mod?
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

vbgamer45

Great mod for people who can't wait for SMF 2.0 heh
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Bulakbol

Quote from: vbgamer45 on January 30, 2008, 08:55:05 PM
Great mod for people who can't wait for SMF 2.0 heh

Thanks vbgamer45. Does the built-in MCL in SMF2.0 display all the color legend and not only for the groups that are online?
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: