Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bulakbol on January 28, 2008, 07:44:55 PM

Title: MCLegendII.1
Post by: Bulakbol on January 28, 2008, 07:44:55 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1077)

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.
Title: Re: MCLegendII.1
Post by: SgtMic on January 29, 2008, 03:14:58 AM
How will this work for membergroups that are not based on post counts?
Title: Re: MCLegendII.1
Post by: Spudgun on January 29, 2008, 06:22:40 AM
Great mod JohnyB  ;)

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



Great work fella ;D

Sg
Title: Re: MCLegendII.1
Post by: Bulakbol on January 29, 2008, 02:03:44 PM
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.
Title: Re: MCLegendII.1
Post by: D.S on January 29, 2008, 02:11:26 PM

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

:-* :-* :-*

Title: Re: MCLegendII.1
Post by: Bulakbol on January 29, 2008, 03:28:11 PM
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.
Title: Re: MCLegendII.1
Post by: D.S on January 29, 2008, 03:42:40 PM
thank u dude

all thing perfect and good

Bye
Title: Re: MCLegendII.1
Post by: SgtMic on January 29, 2008, 06:03:14 PM
Looks good.
Title: Re: MCLegendII.1
Post by: Bulakbol on January 29, 2008, 06:09:46 PM
Thanks, if you actually installed it.   ;D
Title: Re: MCLegendII.1
Post by: SgtMic on January 29, 2008, 07:28:49 PM
I have on 2 sites. Soon to be added to the other 3.
Title: Re: MCLegendII.1
Post by: Bulakbol on January 29, 2008, 07:39:32 PM
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;';
Title: Re: MCLegendII.1
Post by: 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. :)
Title: Re: MCLegendII.1
Post by: Bulakbol on January 30, 2008, 03:43:18 AM
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  ::)
Title: Re: MCLegendII.1
Post by: edi67 on January 30, 2008, 08:42:44 AM
i will try this useful mod thx jonny
Title: Re: MCLegendII.1
Post by: weightman on January 30, 2008, 12:35:16 PM
Cool mod. Thanks!
Title: Re: MCLegendII.1
Post by: Bulakbol on January 30, 2008, 01:35:40 PM
Thanks guys. If you have questions or suggestions, yell. ;)
Title: Re: MCLegendII.1
Post by: Apllicmz on January 30, 2008, 05:11:38 PM
Nice work

i try to translate to Pt she not work
Title: Re: MCLegendII.1
Post by: Bulakbol on January 30, 2008, 08:40:41 PM
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?
Title: Re: MCLegendII.1
Post by: vbgamer45 on January 30, 2008, 08:55:05 PM
Great mod for people who can't wait for SMF 2.0 heh
Title: Re: MCLegendII.1
Post by: Bulakbol on January 30, 2008, 09:22:23 PM
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?
Title: Re: MCLegendII.1
Post by: digit on January 31, 2008, 01:24:14 AM
Put me on the list of those who can't wait for 2.0!  8)

Nice mod!
Title: Re: MCLegendII.1
Post by: edi67 on January 31, 2008, 08:37:29 AM
Quote from: JohnyB on January 30, 2008, 01:35:40 PM
Thanks guys. If you have questions or suggestions, yell. ;)

Suggestions:
i have large users in every mermbergroups, so is possible have one search function for sort the users in alphabetic order, seletecting the letter that you want see?
Title: Re: MCLegendII.1
Post by: Bulakbol on January 31, 2008, 02:24:00 PM
Quote from: digit on January 31, 2008, 01:24:14 AM
Put me on the list of those who can't wait for 2.0!  8)

Nice mod!

Ok digit, you are now on my list. lol Thanks digit. But you are a charter member so you must be using SMF2.0. Is this mod better that the built-in one in SMF2.0? :P

Quote from: edi67 on January 31, 2008, 08:37:29 AMSuggestions:
   i have large users in every mermbergroups, so is possible have one search function for sort the users in alphabetic order, seletecting the letter that you want see?

Thanks for your suggestion edi67. But unfortunately, the link will only take you to another function which is beyond the scope of this mod.  Sorry.
Title: Re: MCLegendII.1
Post by: rowedf on January 31, 2008, 05:02:41 PM
I'm using the helios_multi11rc2 running SMF 1.1.4 and according to the package parser it's not finding what it tells me to search for in the BoardIndex.php ?
Title: Re: MCLegendII.1
Post by: Bulakbol on January 31, 2008, 05:44:54 PM
Quote from: rowedf on January 31, 2008, 05:02:41 PM
I'm using the helios_multi11rc2 running SMF 1.1.4 and according to the package parser it's not finding what it tells me to search for in the BoardIndex.php ?

I know that the helios is different. If you attach your BoardIndex.template.php, I am willing to look at it and see what I can do to help you.
Title: Re: MCLegendII.1
Post by: rowedf on February 01, 2008, 11:01:21 AM
Awesome, than you very much!  Here it is.  I was also wondering if it could go below the Users Online Today instead ?
Title: Re: MCLegendII.1
Post by: Bulakbol on February 01, 2008, 02:31:54 PM
Quote from: rowedf on February 01, 2008, 11:01:21 AM
Awesome, than you very much!  Here it is.  I was also wondering if it could go below the Users Online Today instead ?

Ho Rowedf. I downloaded your file. I'll get back to you when I am done. I will put where you want it then. 


<EDIT> I saw you tweaked the Most Online but I left it the way it is. I just added the mod. Anyway, I attached 2 versions of your helios BoardIndex.template.php. Yours and mine in case you change your mind.</EDIT>
Title: Re: MCLegendII.1
Post by: [SAP]Francis on February 01, 2008, 05:00:26 PM
Quote from: JohnyB on January 30, 2008, 03:43:18 AM
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  ::)
Lmfao! Jonny Bravo is that kid's program at Teletoon! LOL :P
Title: Re: MCLegendII.1
Post by: Bulakbol on February 01, 2008, 06:33:47 PM
Quote from: [SAP]Francis on February 01, 2008, 05:00:26 PM
Lmfao! Jonny Bravo is that kid's program at Teletoon! LOL :P

lol, it's a cartoon character. Cartoon characters never get old.  :D
Title: Re: MCLegendII.1
Post by: Chriss Cohn on February 01, 2008, 08:42:49 PM
Great mod, exactly what i was searching for....  ;D ;D
Title: Re: MCLegendII.1
Post by: [SAP]Francis on February 01, 2008, 09:35:07 PM
Quote from: JohnyB on February 01, 2008, 06:33:47 PM
Quote from: [SAP]Francis on February 01, 2008, 05:00:26 PM
Lmfao! Jonny Bravo is that kid's program at Teletoon! LOL :P

lol, it's a cartoon character. Cartoon characters never get old.  :D
LOL! Nice mod! I love it!!!!!!!!!! :P
Title: Re: MCLegendII.1
Post by: Bulakbol on February 01, 2008, 10:48:06 PM
Quote from: Chriss Cohn on February 01, 2008, 08:42:49 PM
Great mod, exactly what i was searching for....  ;D ;D


Thanks Chriss Cohn.


Quote from: [SAP]Francis on February 01, 2008, 09:35:07 PM<br /LOL! Nice mod! I love it!!!!!!!!!!

Thanks again. How's your shoutbox color project?  :D
Title: Re: MCLegendII.1
Post by: Fano on February 02, 2008, 07:25:03 AM

I need help to install "MCLegendII.1" on the WoW-DK Theme.

thanks


Title: Re: MCLegendII.1
Post by: Chriss Cohn on February 02, 2008, 07:41:23 AM
Quote from: Fano on February 02, 2008, 07:25:03 AM

I need help to install "MCLegendII.1" on the WoW-DK Theme.

thanks
Don't get me wrong, but you register here, then in your first post you just say "i need whatever", put the corresponding file in the attachments and you really think someone would now do all the work for you???
Great........  ::) :-X :-\ :o

I advice you to try it out for yourself, i installed it yesterday in my custom theme and it was done in less than 10mins (im not a php-coder btw)...
Its just copy-and-paste if you have the right editor.
Upload the mod into a package-parser (http://www.adrevenueshare.com/parser) or open the install.xml in the package and do the changes manually, it not hard - really!

Best Regards, Christian
Title: Re: MCLegendII.1
Post by: Fano on February 02, 2008, 09:18:16 AM
Excuse me. You did not think that way. I do not expect at all this to finish somebody for me completely.

Somebody would be only nice if I could these force changes I must these conclude briefly explain.

I know this normally is only one " copy and paste", but you must change at the structure apparently here, since this one is not so available.
Title: Re: MCLegendII.1
Post by: Bulakbol on February 02, 2008, 04:03:47 PM
Thanks Chriss Cohn for the reminder and advice. The wow-dk is little different and Fano might be confused. So I am going to do the editing for him.


@Fano. The wow-dk uses div's and not tr's and the hr color is hardcoded to #FFFFFF so I use the same hr color.  Attached is your edited BoardIndex.template.php for your wow-dk theme. Make sure you have this mod installed before using the attached BoardIndex.template.php.
Title: Re: MCLegendII.1
Post by: Fano on February 02, 2008, 06:05:48 PM

great...Thank You....   

If you think that I am confused possibly because the text is so confusing. So I say my English is not so good.
So I did a translation program to help.
And this has the text so confusing translated.
Title: Re: MCLegendII.1
Post by: Fallen Angel on February 02, 2008, 08:07:41 PM
Got a lil problem..

I tryed to install it into DilberMC theme, but now it looks like, the attach file.

I put this into my /Themes/Dilber MC/BoardIndex.template.php

</tr>';
if (!empty($modSettings['arrange_mclegend']))
{
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">';
foreach($context['mcl_group'] AS $key => $dummy)
for ($i = 0; $i < count($context['mc_legend']); $i++)
  if ($context['mc_legend'][$i]['id'] == $context['mcl_group'][$key])
  echo '[', $context['mc_legend'][$i]['link'], ']&nbsp;&nbsp;';
          echo '
          </span>
</td>
</tr>';
}
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';

Title: Re: MCLegendII.1
Post by: Chriss Cohn on February 02, 2008, 08:49:31 PM
Haha, yesterday i got the same error at my first try.....
As far as i remember (i had some beers) it was either the td-rowspan you have to change or it was because i posted the whole part after/into the wrong existing "<tr>'s"

Regards, Christian
Title: Re: MCLegendII.1
Post by: Bulakbol on February 02, 2008, 09:10:46 PM
Quote from: Fallen Angel on February 02, 2008, 08:07:41 PM
Got a lil problem..

I tryed to install it into DilberMC theme, but now it looks like, the attach file.

I put this into my /Themes/Dilber MC/BoardIndex.template.php


You have that right. The problem is in the rowspan. BoarIndex.template.php, look for

<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">

and add 1 to the rowspan. Must look like this.

<td rowspan="3" class="windowbg" width="20" valign="middle" align="center">

If you still encounter problem, let me know.
Title: Re: MCLegendII.1
Post by: Bulakbol on February 02, 2008, 09:15:29 PM
Quote from: Fano on February 02, 2008, 06:05:48 PM

great...Thank You....   

If you think that I am confused possibly because the text is so confusing. So I say my English is not so good.
So I did a translation program to help.
And this has the text so confusing translated.

So, did you get everything working now Fano?
Title: Re: MCLegendII.1
Post by: [SAP]Francis on February 02, 2008, 09:58:19 PM
Quote from: JohnyB on February 01, 2008, 10:48:06 PM
Quote from: [SAP]Francis on February 01, 2008, 09:35:07 PM<br /LOL! Nice mod! I love it!!!!!!!!!!

Thanks again. How's your shoutbox color project?  :D
Very bad :(. I have a problem that I can't fix. The code you gave me worked. But, I saw something I shouldn't have seen. If I shout something. My color is red. I will see my name red ONLY if MY color is red. Means, that a global moderator looks at the shoutbox, he sees all the names in Blue. That's my problem :-/.
Title: Re: MCLegendII.1
Post by: Fallen Angel on February 03, 2008, 05:03:59 AM
Quote from: JohnyB on February 02, 2008, 09:10:46 PM
Quote from: Fallen Angel on February 02, 2008, 08:07:41 PM
Got a lil problem..

I tryed to install it into DilberMC theme, but now it looks like, the attach file.

I put this into my /Themes/Dilber MC/BoardIndex.template.php


You have that right. The problem is in the rowspan. BoarIndex.template.php, look for

<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">

and add 1 to the rowspan. Must look like this.

<td rowspan="3" class="windowbg" width="20" valign="middle" align="center">

If you still encounter problem, let me know.

That worked! Thanx alot!
Title: Re: MCLegendII.1
Post by: Fano on February 03, 2008, 08:10:38 AM

@JohnyB


   
No, the format of the forum is just confused. Legend may not be displayed
Title: Re: MCLegendII.1
Post by: Bulakbol on February 03, 2008, 10:17:48 AM
Quote from: Fano on February 03, 2008, 08:10:38 AM

@JohnyB
   
No, the format of the forum is just confused. Legend may not be displayed

Did you try both the BoardIndex.template.php that I attached? Can you post a link to your site?
Title: Re: MCLegendII.1
Post by: Fano on February 04, 2008, 08:25:44 AM
   
Have tried everything. Can you unfortunately no link to my forum, as currently about my local PC


"MCLegendDB.php" file must be in the "source" folder is the pure or wrong?


Have else until now still not had problems Mod


Would you possibly have any idea what's wrong?


Thanks for your help!
Title: Re: MCLegendII.1
Post by: Bulakbol on February 04, 2008, 01:01:13 PM
Quote from: Fano on February 04, 2008, 08:25:44 AM
Have tried everything. Can you unfortunately no link to my forum, as currently about my local PC

"MCLegendDB.php" file must be in the "source" folder is the pure or wrong?

Have else until now still not had problems Mod

Would you possibly have any idea what's wrong?

Thanks for your help!

I think you are confused. The MCLegendDB.php is part of the installation program. You don't need it after the installation. Here's what you should do.

Use your FTP program and upload the MCLegendII.1 to your Packages directory. Then go to Admin -> Packages. You will see the list of packages including the MCLegendII.1. Click the [Apply Mod] from the right side. SMF will then test for errors.

If there's error,  do not install the package. Post the error here so I can tell you what to do to fix it.

If there's no error, click the {Install Now} button located at the bottom right. You can then use the BoardIndex.template,php that I attached to my earlier post.

You can read this About Packages (http://docs.simplemachines.org/index.php?board=49.0;sort=subject). It might help you understand how packages work.
Title: Re: MCLegendII.1
Post by: Sabre™ on February 05, 2008, 01:03:17 AM
Brilliant mod mate :)       Thanks.

I was wondering, if there is a way to have the groups based on post count, fall under one display member group.  Such as members.

eg. [Admin] [Global mod] [Moderator] [Members] <-- All other member groups.

I ask this, as I have many membergroups, and have to keep increasing them as the members hit larger post counts.

Your assistance would be greatly appreciated.  :)

If this cannot be done, then I thank you for taking the time to consider the thought.

Thanks  :)
Title: Re: MCLegendII.1
Post by: Bulakbol on February 05, 2008, 04:04:42 AM
Thanks Fernside.

Nice idea of yours. So, the [members] will become a button? That when you click it it will display the post group in place of the primary group? Just like two pages? It will become complicated because I have to split the group into 2. Kinda hard mate. If you want to, we can display your legend in two lines. Primary groups first then the post groups under it.
Title: Re: MCLegendII.1
Post by: Kimmen on February 07, 2008, 10:02:58 AM
You were right. When i switch to core theme, it works.

Now, here is my boardindex.template.php

<?php
// Version: 1.1; BoardIndex

function template_main()
{
global $context$settings$options$txt$scripturl$modSettings;

// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">'
theme_linktree(), '</td>
<td align="right">'
;
if (!$settings['show_sp1_info'])
echo '
'
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#38;#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#38;#8226;&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '
'
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');
echo '
</td>
</tr>
</table>'
;

// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<table border="0" width="100%" class="tborder" cellspacing="' 
, ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' '0' '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="catbg"> &nbsp;'
$txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">'
;

// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

var foreColor, backEl, backColor;

if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;

backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;

backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}

// List all the lines of the news for display.
var smfFadeContent = new Array(
"'
implode('",
"'
$context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>'
;
}

/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */
$first true;
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder" style="margin-top: ' 
$first '0;' '1ex;' '' $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' '''">
<div class="catbg'
$category['new'] ? '2' '''" style="padding: 5px 5px 5px 10px;">';
$first false;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="'
$category['collapse_href'], '">'$category['collapse_image'], '</a>';

echo '
'
$category['link'], '
</div>'
;

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">'
;

/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td ' 
, !empty($board['children']) ? 'rowspan="2"' '' ' class="windowbg" width="6%" align="center" valign="top"><a href="'$scripturl'?action=unread;board='$board['id'], '.0">';

// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
'
$board['description'];

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
'
$board['posts'], ' '$txt[21], ' <br />
'
$board['topics'],' '$txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">'
;

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>'
$txt[22], '</b>  '$txt[525], ' '$board['last_post']['member']['link'] , '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], '<br />
'
$txt[30], ' '$board['last_post']['time'];
echo '
</span>
</td>
</tr>'
;
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg'
, !empty($settings['seperate_sticky_lock']) ? '3' '''">
<span class="smalltext"><b>'
$txt['parent_boards'], '</b>: 'implode(', '$children), '</span>
</td>
</tr>'
;
}
}
echo '
</table>'
;
}
echo '
</div>'
;
}

if ($context['user']['is_logged'])
{
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltext">
<img src="' 
$settings['images_url'] . '/new_some.gif" alt="" align="middle" /> '$txt[333], '
<img src="' 
$settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> '$txt[334], '
</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''">';

// Mark read button.
$mark_read_button = array('markread' => array('text' => 452'image' => 'markread.gif''lang' => true'url' => $scripturl '?action=markasread;sa=all;sesc=' $context['session_id']));

// Show the mark all as read button?
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '
<table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: -5px;">
<tr>
 '
template_button_strip($mark_read_button'top'), '
</tr>
</table>'
;
echo '
</td>
</tr>
</table>'
;
}

// Here's where the "Info Center" starts...
echo '<br />
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' '''>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="'
$settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
'
$txt[685], '
</div>
<div id="upshrinkHeaderIC"'
, empty($options['collapse_header_ic']) ? '' ' style="display: none;"''>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">'
;

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=recent"><img src="'$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" /></a>
</td>
<td class="windowbg2">'
;

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>
<div class="smalltext">
'
$txt[234], ' "'$context['latest_post']['link'], '" '$txt[235], ' ('$context['latest_post']['time'], ')<br />
</div>'
;
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%" border="0">'
;

/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td class="middletext" valign="top"><b>'
$post['link'], '</b> '$txt[525], ' '$post['poster']['link'], ' ('$post['board']['link'], ')</td>
<td class="middletext" align="right" valign="top" nowrap="nowrap">'
$post['time'], '</td>
</tr>'
;
echo '
</table>'
;
}
echo '
</td>
</tr>'
;
}

// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=calendar"><img src="'$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">'
;

// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';

// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
'
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';

// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>'
;
}


// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=stats"><img src="'$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$context['common_stats']['total_posts'], ' '$txt[95], ' '$txt['smf88'], ' '$context['common_stats']['total_topics'], ' '$txt[64], ' '$txt[525], ' '$context['common_stats']['total_members'], ' '$txt[19], '. '$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>
<br /> ' 
$txt[659] . ': <b>"' $context['latest_post']['link'] . '"</b>  ( ' $context['latest_post']['time'] . ' )<br />
<a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />
<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</span>
</td>
</tr>'
;
}

// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[158], '</td>
</tr><tr>
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" />'$context['show_who'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">'
;

echo '
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' ''$context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];

echo ')';
}

echo $context['show_who'] ? '</a>' '''
<div class="smalltext">'
;

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
'
$txt[140], ':<br />'implode(', '$context['list_users_online']);

echo '
<br />
'
$context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' $scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.
'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>'
;

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
 echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
'
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" />'$context['allow_pm'] ? '</a>' '''
</td>
<td class="windowbg2" valign="top">
<b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>
<div class="smalltext">
'
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], ' <a href="'$scripturl'?action=pm">'$txt[662], '</a> '$txt[663], '
</div>
</td>
</tr>'
;
}

// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="'
$scripturl'?action=login"><img src="'$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>'
$txt[35], ':</b><br />
<input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>'
$txt[36], ':</b><br />
<input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>'
$txt[497], ':</b><br />
<input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'
$modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>'
$txt[508], ':</b><br />
<input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="'
$txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>'
;
}

echo '
</table>
</div>
</div>'
;
}

?>
Title: Re: MCLegendII.1
Post by: Bulakbol on February 07, 2008, 10:11:50 AM
I got it. I'll take a look and I'll get back to you.
Title: Re: MCLegendII.1
Post by: Kimmen on February 07, 2008, 10:17:09 AM
I found this file. settings.norwegian.php

<?php
// Version: 1.1.3; Settings

// Important! Before editing these language files please read the text at the topic of index.english.php.

$txt['theme_thumbnail_href'] = $settings['images_url'] . '/thumbnail.gif';
$txt['theme_description'] = 'A fast loading and an organized theme. Red/Pink colors. Egad Blaze by by <a href="www.egadforums.com">Egad</a>';
$txt['arrange_mclegend'] = 'Membergroup legend display arrangement.<div class="smalltext">(Must be separated by comma. i.e. 1,2,8,7,6,5,4)</div>';

?>


As you can see, i added the line you gave me in the other topic, but it didnt work out to well. Still same problem.
Title: Re: MCLegendII.1
Post by: Bulakbol on February 07, 2008, 10:29:44 AM
It showed on the picture you posted. Post a link to your site so I will have idea of what went wrong.
Title: Re: MCLegendII.1
Post by: Kimmen on February 07, 2008, 10:32:15 AM
I made it  :D

Now the language is working. I even translated it into norwegian. Wohohoho.

Here is btw the url: http://themanagersleague.com/index.php
Title: Re: MCLegendII.1
Post by: Bulakbol on February 07, 2008, 10:37:04 AM
Ok good. Here's your BoardIndex.template,php. Make a backup before you use this.

Title: Re: MCLegendII.1
Post by: Kimmen on February 07, 2008, 10:38:11 AM
Thanks, i will try.

Here is a screenshot of the language problem i fixed thanks to you.

http://bildr.no/view/152650
Title: Re: MCLegendII.1
Post by: Kimmen on February 07, 2008, 10:40:55 AM
Yes, now it is working. Thanks man !

Really nice of you helping me out like this.
Title: Re: MCLegendII.1
Post by: Bulakbol on February 07, 2008, 10:45:28 AM
Quote from: Kim Arne on February 07, 2008, 10:40:55 AM
Yes, now it is working. Thanks man !

Really nice of you helping me out like this.

Great! Am glad you got it working. You are welcome.  :)
Title: Re: MCLegendII.1
Post by: Sadil on February 07, 2008, 04:32:50 PM
Hey Johny. :)

I'm having some minor issues editing my BoardIndex.template.php file. I managed to make one of the two modifications made to it, but I can't seem to perform this action:

QuoteFind:

Quote<td rowspan="2" class="windowbg"



Replace with:

Quote<td rowspan="3" class="windowbg"

The issue I'm having is that there's no code in my file with <td rowspan="2" class="windowbg" and I've no clue where this code is supposed to be. I attached the file to the post. If you could try to figure out where what went wrong and even fix it, I'd appreciate it. :)

(I'm guessing one of my mods made a modification to the file that messed with that piece of code)
Title: Re: MCLegendII.1
Post by: Bulakbol on February 07, 2008, 04:45:05 PM
Hi Sadil. I'll take a look at your BoardIndex.template.php. I'll get back to you after.


<EDIT> I modified your BoardIndex.template.php.  The old Member Color Legend was installed that's why the format was messed-up. I took out all the codes that aren't needed. </EDIT>

Title: Re: MCLegendII.1
Post by: Sadil on February 07, 2008, 04:54:20 PM
Thanks!!! :D
Title: Re: MCLegendII.1
Post by: Bulakbol on February 07, 2008, 04:57:27 PM
You're welcome Sadil.  ;) Let me know if you still have problem.
Title: Re: MCLegendII.1
Post by: Sadil on February 07, 2008, 05:02:24 PM
Yes, works like a charm! I thought the mod had been properly uninstalled, but I guess not... :-\

Oh well! :D Thanks a bunch!
Title: Re: MCLegendII.1
Post by: Bulakbol on February 07, 2008, 05:05:28 PM
'Glad it's okey now. You are welcome.  ;)
Title: Re: MCLegendII.1
Post by: rowedf on February 12, 2008, 07:40:29 PM
I'm having an issue.  The administrator is the only one that can click the membergroup and see a list of members in that group.  Is that normal ?
Title: Re: MCLegendII.1
Post by: Sadil on February 12, 2008, 08:11:30 PM
Quote from: rowedf on February 12, 2008, 07:40:29 PM
I'm having an issue.  The administrator is the only one that can click the membergroup and see a list of members in that group.  Is that normal ?

Yes, that is quite normal. If you'll take a closer look you can notice the list being located in the Admin Panel. Whoever can access that page has the authority to remove someone from the group, which I gather isn't such a smart thing to let regular users do. ;)
Title: Re: MCLegendII.1
Post by: rowedf on February 13, 2008, 09:43:36 AM
I think it's a very nice thing for members to be able to view who's in which group.  Is it possible to have them be able to view it, but not see the action links to remove or change someone's membergroup ?
Title: Re: MCLegendII.1
Post by: Sadil on February 13, 2008, 09:57:40 AM
Well, yes. You can edit the code of the board index template to link to a sorted memberlist.

/index.php?action=mlist;sort=ID_GROUP;start=0

This will show the memberlist with membergroups sorted. Administrators are at the top, newbies are at the bottom. To change the code, follow these steps:

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

REPLACE it with:
   $link = !empty($row['onlineColor']) ? '<a href="'. $scripturl . '/index.php?action=mlist;sort=ID_GROUP;start=0" style="color: '. $row['onlineColor']. ';">'. $row['groupName']. '</a>' : $row['groupName'];


This will make it so that when someone isn't an Administrator, it will link them to the memberlist with the membergroups sorted at the top. I'm afraid that's the best I can do right now.
Title: Re: MCLegendII.1
Post by: Bulakbol on February 13, 2008, 11:46:38 AM
@Sadil
    Thanks.

@rowedf
   Are you okay now?
Title: Re: MCLegendII.1
Post by: rowedf on February 13, 2008, 11:55:49 AM
Quote from: Sadil on February 12, 2008, 08:11:30 PM
Quote from: rowedf on February 12, 2008, 07:40:29 PM
I'm having an issue.  The administrator is the only one that can click the membergroup and see a list of members in that group.  Is that normal ?

Yes, that is quite normal. If you'll take a closer look you can notice the list being located in the Admin Panel. Whoever can access that page has the authority to remove someone from the group, which I gather isn't such a smart thing to let regular users do. ;)

I'd be fine if my global moderators could access it.  Their permissions allows them to change people's groups, when they type in the URL to that page, it allows them to view it, but the links at the bottom aren't active.
Title: Re: MCLegendII.1
Post by: Bulakbol on February 13, 2008, 02:43:41 PM
Hi rowedf. Try this. In Sources/BoardIndex.php, find

if (allowedTo('moderate_forum'))

and replace with

if (allowedTo('manage_membergroups'))

Give your global moderators permission to "Manage and assign membergroups".  Tick the checkbox in Admin -> Permissions -> Global Moderators -> Manage and assign membergroups.
Title: Re: MCLegendII.1
Post by: rowedf on February 13, 2008, 03:39:52 PM
Quote from: JohnyB on February 13, 2008, 02:43:41 PM
Hi rowedf. Try this. In Sources/BoardIndex.php, find

if (allowedTo('moderate_forum'))

This line of code is not on the Board index file for Helios.
Title: Re: MCLegendII.1
Post by: rowedf on February 13, 2008, 03:45:47 PM
Thank you very much, I missed that "Sources" path the first time.
Title: Re: MCLegendII.1
Post by: Bulakbol on February 15, 2008, 03:10:58 AM
I hope you are okay now rowdf.   ;)
Title: Re: MCLegendII.1
Post by: Paracelsus on February 15, 2008, 08:43:30 AM
Works flawlessly...

I use it on a heavily modded forum (over 30 mods) with no problems... had to customize it according to my theme, but it was just a matter of simple HTML.
Title: Re: MCLegendII.1
Post by: Bulakbol on February 17, 2008, 04:53:33 AM
Thanks Paracelsus.  ;)
Title: Re: MCLegendII.1
Post by: eleven0 on February 19, 2008, 10:24:48 PM
Great mod!
Title: Re: MCLegendII.1
Post by: No.Body on February 19, 2008, 10:29:08 PM
Thanks!!!
Title: Re: MCLegendII.1
Post by: Bulakbol on February 20, 2008, 01:05:23 AM
You're welcome guys. And I thank you too.  :)
Title: Re: MCLegendII.1
Post by: senyorito on February 21, 2008, 02:14:37 AM
Thanks JohnnyB!

Works well on my custom theme.  Colored bracket works well too.
Title: Re: MCLegendII.1
Post by: Bulakbol on February 21, 2008, 05:37:08 AM
Quote from: senyorito on February 21, 2008, 02:14:37 AM
Thanks JohnnyB!

Works well on my custom theme.  Colored bracket works well too.

Thanks for trying this mod senyorito.
Title: Re: MCLegendII.1
Post by: Bulakbol on February 28, 2008, 07:28:20 PM
The Membergroup Color Legend II.1 is updated. I added support for other Themes.

Supported Themes
- Aa New Damage
- Babylon
- Classic
- Default Core
- Dilber Multicolor
- Helios_Multi
- Wowdk_114v1
Title: Re: MCLegendII.1
Post by: Eliana Tamerin on February 29, 2008, 02:36:21 PM
JohnyB, can this be made to display groups 0 and -1 (regular members and guests, respectively)? I tried inputing the group IDs in the admin panel and it doesn't show up for me.
Title: Re: MCLegendII.1
Post by: Bulakbol on February 29, 2008, 03:17:10 PM
Quote from: Eliana Tamerin on February 29, 2008, 02:36:21 PM
JohnyB, can this be made to display groups 0 and -1 (regular members and guests, respectively)? I tried inputing the group IDs in the admin panel and it doesn't show up for me.

Hi Eliana. Guests are not members so, they are not included in membergroups. They don't show up in the legend because id #0 and/or  #-1 doesn't exist. What you could do is create a primary groups called [Guest] and [Regular Member] base-off of guest. Assign color and stars/badge for them if you like or 0 stars. Then add the membergroup id number in ACP. 
Title: Re: MCLegendII.1
Post by: Eliana Tamerin on February 29, 2008, 05:38:25 PM
Ahh, you are correct, they do not exist in the database as a membergroup. Thanks for the info.
Title: Re: MCLegendII.1
Post by: Bulakbol on March 01, 2008, 11:46:47 AM
You are welcome Eliana.  ;)
Title: Re: MCLegendII.1
Post by: Basie on March 01, 2008, 12:03:25 PM
How do I know what number my member groups are?

After installing (without changing anything) My board lists "[Admin]  [Global Moderator] [Level 1]". Where 'level 1' is the first of 20 post-count based groups.

I want it to display "[Admin]  [Global Moderator] [Content managers]". With Content managers being a group I created which is not post-count based.
Title: Re: MCLegendII.1
Post by: senyorito on March 01, 2008, 12:27:30 PM
Go to Admin Control Panel (ACP) > Members > Membergroups, hover your mouse pointer to the name of your membergroup (ie Administrator, Global Moderator), then you'll see a tooltip of the URL of the membergroup's text link.  It's something like this:

_http://www.yoursite.com/index.php?action=membergroups;sa=members;group=1

The number on the last part of the link (number 1) is what we called group's number.
Title: Re: MCLegendII.1
Post by: Bulakbol on March 01, 2008, 12:48:06 PM
Thanks senyorito.

@seek2501.
   Senyorito is right. Are you okey with senyorito's help?  If you are still having problem, let us know.
Title: Re: MCLegendII.1
Post by: Eliana Tamerin on March 01, 2008, 03:40:34 PM
Perhaps for future versions, you could populate the options with membergroups in the database, which can then be checked/unchecked easily.
Title: Re: MCLegendII.1
Post by: Basie on March 02, 2008, 12:13:14 PM
Quote from: JohnyB on March 01, 2008, 12:48:06 PM
@seek2501.
   Senyorito is right. Are you okey with senyorito's help?  If you are still having problem, let us know.

Yes, that worked fine. Thanks. :)
Title: Re: MCLegendII.1
Post by: Bulakbol on March 02, 2008, 03:54:13 PM
@Eliana
   Another good idea Eliana. Unfortunately, :P when SMF version 2.0 is released, this mod will join the original one in the archive folder.  :( It's built-in in SMF version 2.0.



@seek2501.
  Cool.  Good to know you are now okay @seek2501.
Title: Re: MCLegendII.1
Post by: Eliana Tamerin on March 02, 2008, 04:22:00 PM
There are still people using the 1.0.x line, who says this mod won't still be used well into 2.0? It's at least worth adding in for those people. I know I won't be using 2.0 on a live site until it has all the functionality/mods I want.
Title: Re: MCLegendII.1
Post by: Bulakbol on March 02, 2008, 04:41:35 PM
You are very right. If I get hold of the version 2.0 of SMF, it might take a while before using it on a live site. Who knows, they might even use this one instead of the built-in one if this is more friendly.  :P Now, you are tickling my brain. haha
Title: Re: MCLegendII.1
Post by: Eliana Tamerin on March 02, 2008, 09:51:05 PM
Sorry, but it's so easy to tickle you. I'm an idea person, it's my fatal flaw. :P
Title: Re: MCLegendII.1
Post by: Bulakbol on March 03, 2008, 05:28:38 AM
Quote from: Eliana Tamerin on March 02, 2008, 09:51:05 PM
Sorry, but it's so easy to tickle you. I'm an idea person, it's my fatal flaw. :P

Well, it's a good idea so it tickles me haha. There's nothing wrong with having lots of ideas. It's actually an asset and not a flaw. Fatal asset.  :D
Title: Re: MCLegendII.1
Post by: No.Body on March 05, 2008, 05:47:01 PM
I am having problem adding this  :(

In the parser it says

Find :


echo '
<br />
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>


and add after


';
if (!empty($modSettings['arrange_mclegend']))
{
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">';
foreach($context['mcl_group'] AS $key => $dummy)
for ($i = 0; $i < count($context['mc_legend']); $i++)
if ($context['mc_legend'][$i]['id'] == $context['mcl_group'][$key])
{
  echo '[', $context['mc_legend'][$i]['link'], ']&nbsp;&nbsp;';
  continue;
}
          echo '
          </span>
</td>
</tr>';
}
echo '



But i have already installed the "Users Online Today Mod" and i get an error when adding the 2nd code above after the code below.

So the code goes like this and it's different from the first code to find.  :(


echo '
                                <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
                                <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
                        </span>
                  <hr /><span class="smalltext">
                     ', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
                     ', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
                  </span>
                </td>
        </tr>';



Title: Re: MCLegendII.1
Post by: Eliana Tamerin on March 05, 2008, 06:31:50 PM
I had a similar problem. Just insert it after the first </span>, I think. Toy around with it until it looks right.
Title: Re: MCLegendII.1
Post by: Bulakbol on March 05, 2008, 09:32:35 PM
Hi WarriorX. If you still need help with this mod, attach your BoardIndex.template.php and I'll do the edit for you if you can't do it yourself.

@Eliana. That's the way I learned things. Trial and error.  ;)
Title: Re: MCLegendII.1
Post by: senyorito on March 05, 2008, 09:51:09 PM
Quote from: JohnyB on March 05, 2008, 09:32:35 PM
@Eliana. That's the way I learned things. Trial and error.  ;)

I concur!
Title: Re: MCLegendII.1
Post by: No.Body on March 06, 2008, 12:28:51 PM
Quote from: JohnyB on March 05, 2008, 09:32:35 PM
Hi WarriorX. If you still need help with this mod, attach your BoardIndex.template.php and I'll do the edit for you if you can't do it yourself.

@Eliana. That's the way I learned things. Trial and error.  ;)

It's working fine now with Eliana advice.

But the problem is now on the spacing  :(

(http://img232.imageshack.us/my.php?image=spaceib6.jpg)

Title: Re: MCLegendII.1
Post by: senyorito on March 06, 2008, 12:42:54 PM
@WarriorX:  Bro, can you please attach your BoardIndex.template.php so that bro JohnyB can look at it (I might as well wants to give help).
Title: Re: MCLegendII.1
Post by: No.Body on March 06, 2008, 12:47:30 PM

Okay. Here.

Btw, I am using the Black22 w/ TP.

Thanks in advance!
Title: Re: MCLegendII.1
Post by: Bulakbol on March 06, 2008, 12:49:23 PM
Hi WarriorX, got it. I'll get back to you. Thanks.

Thanks for the help senyorito.
Title: Re: MCLegendII.1
Post by: senyorito on March 06, 2008, 12:57:26 PM
@JohnyB:  You're welcome bro.

@WarriorX:  Hmm, it seems that you are missing 2 lines from the beginning of the template.

<?php
// Version: 1.1; BoardIndex

Title: Re: MCLegendII.1
Post by: No.Body on March 06, 2008, 01:02:14 PM
Quote from: senyorito on March 06, 2008, 12:57:26 PM
@JohnyB:  You're welcome bro.

@WarriorX:  Hmm, it seems that you are missing 2 lines from the beginning of the template.

<?php
// Version: 1.1; BoardIndex



Yes. Its in the template but it didn't include it coz its in the first box and i only copied  the code in the second box :)
Title: Re: MCLegendII.1
Post by: Bulakbol on March 06, 2008, 01:44:05 PM
I noticed. I added it anyway. Here's your BoardIndex.template.php. I modified some of the code because the <hr /> doesn't look good. Try it and if you have more problem, let me know.



EDIT:
  deleted the wrong file.
Title: Re: MCLegendII.1
Post by: No.Body on March 06, 2008, 01:49:51 PM
Thanks JohnyB.

I copied and paste the content of the file you give to my BoardIndex and i still get same problem on the spacing just like above.  :(


(http://img232.imageshack.us/my.php?image=spaceib6.jpg)
Title: Re: MCLegendII.1
Post by: Bulakbol on March 06, 2008, 01:58:37 PM
Sorry, I grabbed the wrong one.  :P My bad. I apologize.

Title: Re: MCLegendII.1
Post by: No.Body on March 06, 2008, 02:09:01 PM
Quote from: JohnyB on March 06, 2008, 01:58:37 PM
Sorry, I grabbed the wrong one.  :P My bad. I apologize.



Perfect! Its working now.

Thank you very much and no need to apologize. Lol.
Title: Re: MCLegendII.1
Post by: Bulakbol on March 06, 2008, 02:10:31 PM
Quote from: WarriorX on March 06, 2008, 02:09:01 PM
Quote from: JohnyB on March 06, 2008, 01:58:37 PM
Sorry, I grabbed the wrong one.  :P My bad. I apologize.



Perfect! Its working now.

Thank you very much and no need to apologize. Lol.


That's great! haha I made a mistake so I have to apologize.
Title: Re: MCLegendII.1
Post by: Bulakbol on March 18, 2008, 09:12:56 AM
SMF version 2.0 Beta 3 is now out. The built-in legend is different and I think I will update this mod to work with version 2.0.
Title: Re: MCLegendII.1
Post by: senyorito on March 18, 2008, 11:34:25 AM
Yeah bro it's quite different.  It's only limited to non-post based groups.
Title: Re: MCLegendII.1
Post by: Bulakbol on March 18, 2008, 04:29:32 PM
MCLegendII 1.1.2 for Version 2.0 Beta 3 Public.
- 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, under Options tab, edit 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 or arrange group id's that you want to be displayed.
- To enable the display of the color legend, disable the built-in group key from
   ~ Admin -> Current Theme, under Themes Settings tab, untick "Show group key on board index" checkbox.
    
Supported Themes
  - Babylon
  - Classic
  - Default Core
Title: Re: MCLegendII.1
Post by: Bulakbol on March 18, 2008, 04:36:17 PM
Quote from: senyorito on March 18, 2008, 11:34:25 AM
Yeah bro it's quite different.  It's only limited to non-post based groups.

Yes bro. It's different so I uploaded one for version 2.0 B3P. Someone might want to use this mod instead of the built-in one.  I do. :D
Title: Re: MCLegendII.1
Post by: senyorito on March 19, 2008, 12:11:02 AM
^ Well I for myself bro, though almost all of my membergroups are non-post based group, but I do still have 2 post based membergroups.  So you're latest released version is a must for people who have the same settings/format with me. ;D

Thanks again bro. *clap*clap*clap*
Title: Re: MCLegendII.1
Post by: Bulakbol on March 19, 2008, 08:56:18 AM
 8) I hope this mod will not end up in the archive section.  :P
Title: Re: MCLegendII.1
Post by: Asterix[M] on March 30, 2008, 04:43:41 PM
Please help me add this mod. This is my BoardIndex.template file

Thx
Title: Re: MCLegendII.1
Post by: Bulakbol on March 30, 2008, 06:01:23 PM
Quote from: Asterix[M] on March 30, 2008, 04:43:41 PM
Please help me add this mod. This is my BoardIndex.template file

Thx

Hi Asterix[M]. I'll see what I can do. I'll get back to you. Are you using default theme?
Title: Re: MCLegendII.1
Post by: Asterix[M] on March 30, 2008, 06:08:36 PM
I use Fg:.:Zm theme, thx for help
Title: Re: MCLegendII.1
Post by: Bulakbol on March 30, 2008, 06:11:10 PM
Quote from: Asterix[M] on March 30, 2008, 06:08:36 PM
I use Fg:.:Zm theme, thx for help

Is that theme from SMF? I have to download it to try. It won't run on default theme.

edit:

I found it. I'll get back to you.

<edit>
I am back.  :D Here's your edited BoardIndex.template.php. Thanks for using this mod.
</edit>
Title: Re: MCLegendII.1
Post by: Asterix[M] on March 30, 2008, 06:28:48 PM
thank you, work fine  :)
Title: Re: MCLegendII.1
Post by: Bulakbol on March 30, 2008, 06:31:15 PM
You're welcome.  ;) Enjoy and good luck.
Title: Re: MCLegendII.1
Post by: Lasalle on March 31, 2008, 04:37:08 PM
I've got problem with 1024x768 resolution with this mode it scrolls horizontal (picture), in 1280x1024 everything is OK. I tried to use already modified file boardindex.template.php almost similar to my theme but it look the same (and errors  ;)).

I use bright forest theme, with apollobb is the same problem.
My code:

if (!empty($modSettings['arrange_mclegend']))
{
echo '
<tr>
<td class="titlebg" colspan="2">Podział na grupy</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=stats"><img src="', $settings['images_url'], '/icons/info.gif" alt="', Grupy, '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">';
foreach($context['mcl_group'] AS $key => $dummy)
for ($i = 0; $i < count($context['mc_legend']); $i++)
if ($context['mc_legend'][$i]['id'] == $context['mcl_group'][$key])
{
  echo '[', $context['mc_legend'][$i]['link'], ']&nbsp;&nbsp;';
  continue;
}
          echo '
          </span>
</td>
</tr>';
}
Title: Re: MCLegendII.1
Post by: Bulakbol on April 01, 2008, 12:52:38 AM
Hi Lasalle. I can't view the picture that you attached. I downloaded the BoardIndex.template though and here's a screenshot using your attached template. On the left is viewed using 1024 x 768 resolution while the one on the right is viewed with 1440x900 resolution. Can you attach an image with well known format? Like jpg so I can view and find the problem?
Title: Re: MCLegendII.1
Post by: Lasalle on April 01, 2008, 07:15:10 AM
OK, I made screen to jpg file. Only in higher than 1024X768 resolution it looks good. Without Code of this mod in boardintex.templete.php Forum works in all resolutions.

I saw fille You have attached. Now I think that there is no problem with board...php file, I've too many groups, but I need them :/.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 01, 2008, 07:42:22 AM
awww sorry, I misunderstood you. I thought you are talking about scroll bar. So, do you want the legend in two lines? How many groups do you want on the first line?
Title: Re: MCLegendII.1
Post by: Lasalle on April 01, 2008, 07:57:17 AM
No, You understood me good the horizontal scroll bar is the problem.

Sorry my English is probably not good enough to write, what i have on my mind.

I edited picture to point places on my mind. :)
Title: Re: MCLegendII.1
Post by: Bulakbol on April 01, 2008, 08:04:39 AM
hmnn sorry. Its not the scroll bar. It's the box with dark color. Isn't it?

edit: What browser are you using for the 1024 x 968?
Title: Re: MCLegendII.1
Post by: Lasalle on April 01, 2008, 08:10:52 AM
Quote from: JohnyB on April 01, 2008, 08:04:39 AM
hmnn sorry. Its not the scroll bar. It's the box with dark color. Isn't it?

hmm, "information center" box with this mod is made bigger, and the horizontal scroll bar appears, the dark green field also.

In 1024x768 I use Mozilla Firefox 2.0.0.13, with old IE version 6.0 the same problem.

Yes with default core theme is the same problem.

Mayby it is problem with mods? The same appears with Apollobb theme
Title: Re: MCLegendII.1
Post by: Bulakbol on April 01, 2008, 08:14:52 AM
Not sure bud. I think it does something to do with the design of your theme. Try asking the theme's author while I'm checking it. I'll get back to you.


<EDIT>
Lasalle, try using the default theme. Let me know if the problem exist with the default theme.
</EdIT>

<EDIT2>
Sorry Lassale but it is your theme that causing all of those scrollbars and broken layout. I can't do anything about it. I found one error though. In your BoardIndex.template.php Line 409. Replace the alt="', Grupy, '" with alt="Grupy".
</EDIT>
Title: Re: MCLegendII.1
Post by: Lasalle on April 01, 2008, 09:39:13 AM
I appreciate that You tried help JohnyB. Thanks for Your time.


Edited: 
OK, this is the file, but I copied it from Admin Panel (copy and paste), not from FTP  :(, I can't access FTP till friday. But it should be the same.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 01, 2008, 09:42:14 AM
Attach your index.template,php Lasalle. I would like to see it why the width is "fix" and not dynamic.


<EDIT>
I got it. Thanks. I'll let you know if I can find anything.
</EDIT>
Title: Re: MCLegendII.1
Post by: Bulakbol on April 03, 2008, 11:24:24 PM
Quote from: Lasalle on April 01, 2008, 09:39:13 AM
I appreciate that You tried help JohnyB. Thanks for Your time.


Edited: 
OK, this is the file, but I copied it from Admin Panel (copy and paste), not from FTP  :(, I can't access FTP till friday. But it should be the same.

Thanks Lasalle. I'll check your files and see if i can find the problem.
Title: Re: MCLegendII.1
Post by: robbie93 on April 04, 2008, 03:12:45 PM
yet another cool mod JohnyB :D

Title: Re: MCLegendII.1
Post by: Bulakbol on April 04, 2008, 07:00:49 PM
Hi Robbie. Thanks for the compliment bud.  8)
Title: Re: MCLegendII.1
Post by: уιℓмαz on April 04, 2008, 11:54:09 PM
Thank but this mod didn't work me. I tried it on both my local server and live site but it didn't work.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 05, 2008, 12:02:21 AM
Quote from: уιℓмαz on April 04, 2008, 11:54:09 PM
Thank but this mod didn't work me. I tried it on both my local server and live site but it didn't work.

Which one? The one for 2 Beta 3 or 1.1.4? Remember, the one for Beta 3 is you have to disable the built-in one by going to Admin -> Current Theme. Under the Theme Settings  tab, untick "Show group key on board index" checkbox. This mod will automatically take over.

What about giving me more details on why it didn't work?
Title: Re: MCLegendII.1
Post by: уιℓмαz on April 05, 2008, 12:05:16 AM
On SMF 2.0 Beta 3 public. It installed clearly and i set all settings in admin panel. But there wasn't any change.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 05, 2008, 12:39:58 AM
Quote from: уιℓмαz on April 05, 2008, 12:05:16 AM
On SMF 2.0 Beta 3 public. It installed clearly and i set all settings in admin panel. But there wasn't any change.

You have to turn off the built-in legend. Let me know if it still don't work. I would like to see it myself. How about link to your site?
Title: Re: MCLegendII.1
Post by: уιℓмαz on April 05, 2008, 01:25:53 AM
Quote from: JohnyB on April 05, 2008, 12:39:58 AM
You have to turn off the built-in legend.

Thanks now it works.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 06, 2008, 02:37:43 PM
Quote from: уιℓмαz on April 05, 2008, 01:25:53 AM
Quote from: JohnyB on April 05, 2008, 12:39:58 AM
You have to turn off the built-in legend.

Thanks now it works.

That's great. Good to hear it's working. Thank for using this mod.  8)
Title: Re: MCLegendII.1
Post by: Manu.G on April 08, 2008, 04:03:30 AM
Hi,

and again a great mod  :D
I saw it in the 2.0 version and wanted to have it too, now I have it, thanky JohnyB!  :D

I'm a dumb with php-coding, that's why I asking for some help.
I'm using the User Online Mod and tried to move the MCLegend under the User-Online Mod, but I wasn't to able to move it to the place I want to have it.
Can you help me please?  :)


I think I got it.
I found out, after a lot of tries, where I have to put the code and what I have to
remove.

I made this:

I searched in $themedir/BoardIndex.template.php for

        <td class="windowbg" width="20" valign="middle" align="center">
            <img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
        </td>


and replaced it with

        <td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
            <img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
        </td>


I add at the end of this
<td class="windowbg2" valign="top">
                        <b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
                        <div class="smalltext">
                            ', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
                        </div>
                    </td>
                </tr>';


the code for MCLII

            if (!empty($modSettings['arrange_mclegend']))
            {
                echo '
                <tr>
                    <td class="windowbg2" width="100%">
                        <span class="smalltext">';
                        foreach($context['mcl_group'] AS $key => $dummy)
                            for ($i = 0; $i < count($context['mc_legend']); $i++)   
                                if ($context['mc_legend'][$i]['id'] == $context['mcl_group'][$key])
                                {
                                   echo '[', $context['mc_legend'][$i]['link'], ']&nbsp;&nbsp;';
                                   continue;
                                }
                         echo '
                     </span>
                    </td>
                </tr>';


In my test forum it works as you can see at the pic, but please note, I'm a dumb
in php and don't know if it will work in your forum.  :-\
Title: Re: MCLegendII.1
Post by: coolcrustycat on April 08, 2008, 02:36:33 PM
Thanks for the mod - it's the first time that I've tried using any other than the forum software updates, so I was 'just a little nervous' .

However, after reading through all of this thread, it seems that the original reason for using it, won't work.

What I wanted to do, was to allow all of the moderators (who are hidden when online), see how many other mods are likely to be online. Unfortunately, Mods don't have access to the ACP as only Admin modify membergroups, and some earlier posts seem to have said that we wouldn't therefore be able to offer them the facility provided by this mod.

Is there anyway around this (especially for the php illiterate)?

Otherwise - it works great!
Title: Re: MCLegendII.1
Post by: Bulakbol on April 08, 2008, 07:25:35 PM
@Manu0372. Looks cool. Cool color too. I'll try your code and see if it doesn't break on IE, FF and Opera. I'll get back to you.

@coolcrustycat. Are talking about 1.1.4 version and global moderators? Do you want your global moderators to see the groups in the legend?

If you want your global moderators to see invisible users, why not give them permission to moderate forum members? The problem is, they will see the IP's too.  :P


<edit>
@manu0372. Yes. It's a good location for the Legend if you have the Users Online Today mod installed. And you got the coding right.  8)
I moved it outside the bracket like this and it works very well.
// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" />', $context['allow_pm'] ? '</a>' : '', '
</td>
<td class="windowbg2" valign="top">
<b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
<div class="smalltext">
', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
</div>
</td>
</tr>';
}
if (!empty($modSettings['arrange_mclegend']))
{
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">';
foreach($context['mcl_group'] AS $key => $dummy)
for ($i = 0; $i < count($context['mc_legend']); $i++)
if ($context['mc_legend'][$i]['id'] == $context['mcl_group'][$key])
{
  echo '[', $context['mc_legend'][$i]['link'], ']&nbsp;&nbsp;';
  continue;
}
          echo '
          </span>
</td>
</tr>';
}

</edit>
Title: Re: MCLegendII.1
Post by: coolcrustycat on April 09, 2008, 06:42:30 AM
Aye - it is the 1.1.4 version. Global and another Mod groups viewing ips isn't a problem, and yes we do want them to be able to see the groups in the legend, but without having access to the ACP.

The problem with allowing them to moderate members, is that we don't want:

access to registration management
access to the view/delete members screen
activate accounts
get approval notifications and approve accounts

These are functions that Admins use - (sites for members with mental health problems can sometimes get 'heated' ) which restricts us from allowing these functions to non-admin.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 09, 2008, 09:55:11 AM
Hi coolcrustycat. If you want certain members only to see invisible logged-in members, we'll try to do something. Install the GroupOnlineStatus then give your member a permission and we'll make that member see invisibles. In Sources/BoardIndex.php, look for
elseif (empty($row['showOnline']) && !allowedTo('moderate_forum'))

and replace with
elseif (empty($row['showOnline']) && !allowedTo('hide_online_status'))

Try that if that's the one you are after.

Regarding the list of members in a group, SMF 2.0 Beta 3 has it but not 1.1.4. I think we need database query.
Title: Re: MCLegendII.1
Post by: coolcrustycat on April 09, 2008, 02:42:34 PM
So basically, we would be able to select the people who are mods, and allow them to see all of the hidden members (as Admins currently can)?

That'd be a fantastic help.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 09, 2008, 10:54:49 PM
Quote from: coolcrustycat on April 09, 2008, 02:42:34 PM
So basically, we would be able to select the people who are mods, and allow them to see all of the hidden members (as Admins currently can)?

That'd be a fantastic help.

Yes coolcrustycat, I think that's what you want. Have you tried what I told you to edit? Did it work?
Title: Re: MCLegendII.1
Post by: coolcrustycat on April 11, 2008, 08:02:50 AM
Installed the GroupOnlineStatus without problem.

Changed the line in the BoardIndex.php as you've suggested:

elseif (empty($row['showOnline']) && !allowedTo('hide_online_status'))

Ticked the relevant boxes re allowing each membergroup the option to be hidden.

Mods still can't see other hidden mods - but I feel as though there might be a tick or something missing as it doesn't quite make sense in my head?

Title: Re: MCLegendII.1
Post by: Bulakbol on April 12, 2008, 02:29:58 AM
Hi Coolcrustycat. I tried it again and it works on my testboard.  Does some of your mods see hidden online and some don't? 
Title: Re: MCLegendII.1
Post by: coolcrustycat on April 12, 2008, 04:05:47 PM
Neither of the groups assigned as Moderators can see anybody who's hidden. What I don't understand, is why they should though, as their groups have only the same options at remaining hidden (or not) - wouldn't the code need to be changed for the specific mod groups that we want to be able to view all like admin can?
Title: Re: MCLegendII.1
Post by: Bulakbol on April 12, 2008, 08:02:31 PM
Hi coolcrustycat. Why did you allow them to hide their online status anyway?  :P
It's a permission thing.  I allowed special member to hide thier online status but I don't allow them to see hidden members. Only me, the admin.
Title: Re: MCLegendII.1
Post by: Apllicmz on April 13, 2008, 01:45:16 AM
thanks she work fine 100% 114 and 2.0b3
translate portuguese pt_PT/pt_BR

Help

<file name="$languagedir/Help.portuguese.php" error="skip">
<operation>
<search position="end"><![CDATA[$helptxt['featuresettings'] = '<b>Editar caracter&#237;sticas e op&#231;&#245;es</b><br />]]></search>
<add><![CDATA[$helptxt['arrange_mclegend'] = 'Organizar a exibi&#231;&#227;o do seu groupo de membros a cor e legenda. Digite o n&#250;mero grupo identifica&#231;ao que devem ser separados por v&#237;rgula. Nenhuma v&#237;rgula ap&#243;s o &#250;ltimo n&#250;mero. (i.e. 1,2,8,7,6,5,4).
Para activar a exibi&#231;&#227;o de desativar o "Show group key on board index" from Admin -> Actual Tema, sob Tema guia Configura&#231;&#245;es.';

]]></add>
</operation>
</file>

<file name="$languagedir/Help.brazilian.php" error="skip">
<operation>
<search position="end"><![CDATA[$helptxt['featuresettings'] = '<b>Editar caracter&#237;sticas e op&#231;&#245;es</b><br />]]></search>
<add><![CDATA[$helptxt['arrange_mclegend'] = 'Organizar a exibi&#231;&#227;o do seu groupo de membros a cor e legenda. Digite o n&#250;mero grupo identifica&#231;ao que devem ser separados por v&#237;rgula. Nenhuma v&#237;rgula ap&#243;s o &#250;ltimo n&#250;mero. (i.e. 1,2,8,7,6,5,4).
Para activar a exibi&#231;&#227;o de desativar o "Show group key on board index" from Admin -> Actual Tema, sob Tema guia Configura&#231;&#245;es.';

]]></add>
</operation>
</file>



ModSettings

<file name="$languagedir/ManageSettings.portuguese.php" error="skip">
<operation>
<search position="before"><![CDATA[$txt['default_personal_text'] = 'Default texto pessoal';]]></search>
<add><![CDATA[
$txt['arrange_mclegend'] = '<div style="color: blue;">Mostrar grupo de membro por Legenda.</div><div class="smalltext">(Devem ser separados por vírgula. i.e. 1,2,8,7,6,5,4)</div>';]]></add>
</operation>
</file>

<file name="$languagedir/ManageSettings.brazilian.php" error="skip">
<operation>
<search position="before"><![CDATA[$txt['default_personal_text'] = 'Default texto pessoal';]]></search>
<add><![CDATA[
$txt['arrange_mclegend'] = '<div style="color: blue;">Mostrar grupo de membro por Legenda.</div><div class="smalltext">(Devem ser separados por vírgula. i.e. 1,2,8,7,6,5,4)</div>';]]></add>
</operation>
</file>


Title: Re: MCLegendII.1
Post by: coldy316 on April 13, 2008, 07:04:24 AM
i couldnt get this to work on my board and i'm using the 1.1.4 version with the bbpolloskin
Title: Re: MCLegendII.1
Post by: klra on April 13, 2008, 11:48:06 AM
works great for me - ver 1.1.4-

(http://imageshack.us)
Title: Re: MCLegendII.1
Post by: Jade Elizabeth on April 13, 2008, 04:32:22 PM
G'day JB :D

Got an error lol
QuoteFatal error: packageinstall() [function.require]: Failed opening required '/home/jade/public_html/forums/Packages/temp/MCLegendDB2B3.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jade/public_html/forums/Sources/Packages.php on line 883

I don't have trouble installing any other mods, and I have not changed anything.
http://www.simplemachines.org/community/index.php?topic=234033.0 <He has the same problem, however, we both have the temp folder required.

I cant be bothered manually installing it lol ;).
Title: Re: MCLegendII.1
Post by: Bulakbol on April 13, 2008, 06:07:19 PM
@Joomlamz. Thanks for the translation. I have question about them though. In the English help file, the search position is <search postion="before"> but you use "end". Is it okay to use like that? And also the second one is for "ModSettings". The one you gave me is for ManageSettings. I don't know if ModSettings exist in the language files. Please verify. Thanks.

@klra. Cool. That's great.  Thanks for using this mod.

@Coldy316. What happened when you install the mod? Did you get any error?


@Alundra. If your server denied adding something in your database, just enter your groups id in Admin -> Feature and Options. Under Options tab, enter id's in  "Membergroup legend display arrangements".  Let me know if it does not work.

<edit @Alundra> If the mod won't install because of the the error, unzip the package, remove the
<code>MCLegendDB2B3.php</code>
from package-info.xml, re-zip the package and install. If there's no error, you can then enter your group id. Don't forget to turn-off the build-in legend in Admin -> Current Theme, and untick the checkbox for "Show group key on board index".
</edit>
Title: Re: MCLegendII.1
Post by: coolcrustycat on April 14, 2008, 03:43:16 AM
We have to let Mods remain hidden to stop certain members taking advantage of the fact that there mightn't be many mods online at that particular moment (feelings run high sometimes on the forum when members are stressed). 

Members are given the option of remaining hidden to help remain anonymous - after a while people can be recognised by writing styles and content, and some of the issues causing members to join in the first place can be extremely delicate.

All we need is to able to assign mod groups the ability to see hidden members  :P
Title: Re: MCLegendII.1
Post by: Paracelsus on April 14, 2008, 05:59:44 AM
Quote from: coolcrustycat on April 14, 2008, 03:43:16 AM
All we need is to able to assign mod groups the ability to see hidden members  :P

This option is available in permission setting, but it's 'packed up' with a group of others that include somewhat delicate admin tasks. You can find it in Member Administration -> Moderate forum members or something like it.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 15, 2008, 12:56:32 AM
Quote from: coolcrustycat on April 14, 2008, 03:43:16 AM

All we need is to able to assign mod groups the ability to see hidden members  :P

Sorry coolcrustycat. I thought my solution work for you. I guess I am wrong.
Title: Re: MCLegendII.1
Post by: coolcrustycat on April 15, 2008, 01:25:09 PM
JohnyB - you're an ace guy for trying.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 16, 2008, 01:58:53 PM
Quote from: coolcrustycat on April 15, 2008, 01:25:09 PM
JohnyB - you're an ace guy for trying.

I'm trying to help as much as I can.  ;)
Title: Re: MCLegendII.1
Post by: Joker Grafix on April 19, 2008, 04:59:28 PM
Awesome mod. I've always wanted to have the legend on the index of my board. Here is a question though. Is there another mod that colors the name under Who's Online? I have the colors for each member group colored but it doesn't display it on Who's Online unless it was a shop-bought color.

However the membergroup colors do show on the User Logged In Today mod. It's just that on Who's Online the names stay in their default forum color.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 20, 2008, 11:56:37 AM
Hi Joker Grafix. Thanks for trying/using this mod.

There's a mod called Member Color Link (http://custom.simplemachines.org/mods/index.php?mod=111). This is the one I am using. Try that one.
Title: Re: MCLegendII.1
Post by: ruaduck on April 25, 2008, 04:17:48 PM
I was wondering how i would add it into Starlight theme by RebelRose.  That theme rocks and so i would like to make this mod available for my members. (since they don't want a different theme)
Title: Re: MCLegendII.1
Post by: Bulakbol on April 26, 2008, 01:01:57 AM
Quote from: ruaduck on April 25, 2008, 04:17:48 PM
I was wondering how i would add it into Starlight theme by RebelRose.  That theme rocks and so i would like to make this mod available for my members. (since they don't want a different theme)

Hi ruaduck. The Starlight theme is almost the same as the default theme so, if you will install it manually, it will be easy. But if you aren't familiar with php, you can attach your BoardIndex.template.php and I'll edit it for you.
Title: Re: MCLegendII.1
Post by: ruaduck on April 26, 2008, 01:11:36 AM
Yeah i am very unfamiliar with PHP.  So here is my boardindex
Title: Re: MCLegendII.1
Post by: Bulakbol on April 26, 2008, 01:24:53 AM
I'll get back to you after I edit your Starlight theme's BoardIndex.template.php.
Title: Re: MCLegendII.1
Post by: ruaduck on April 26, 2008, 01:28:08 AM
thank you so much. This is very appreciated.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 26, 2008, 01:31:02 AM
Here's your edited BoardIndex.template.php. Install the mod first before using this template. Thanks for trying/using this mod.
Title: Re: MCLegendII.1
Post by: ruaduck on April 26, 2008, 01:40:11 AM
thank you so much. WOrks GREAT!!!!
Title: Re: MCLegendII.1
Post by: Marcus Forsberg on April 26, 2008, 09:01:53 AM
Swedish translation:

Help.swedish.php:
$helptxt['arrange_mclegend'] = 'Arrangera visnigen av gruppfärgerna. Skriv in gruppen id och måste vara separerade med kommatecken. Inget komma efter det sista numret.. (e.x. 1,2,8,7,6,5,4)';

ModSettings.swedish.php:
$txt['arrange_mclegend'] = 'Arrangering av visningen av gruppfärgerna.<div class="smalltext">(Måste separeras med kommatecken. e.x. 1,2,8,7,6,5,4)</div>';



Title: Re: MCLegendII.1
Post by: Bulakbol on April 26, 2008, 02:07:18 PM
Thanks MTF95 for the translation. I'll add them on both versions.
Title: Re: MCLegendII.1
Post by: X3mE on May 08, 2008, 06:52:06 AM
Quote from: JohnyB on April 13, 2008, 06:07:19 PM
If the mod won't install because of the the error, unzip the package, remove the
<code>MCLegendDB2B3.php</code>
from package-info.xml, re-zip the package and install. If there's no error, you can then enter your group id. Don't forget to turn-off the build-in legend in Admin -> Current Theme, and untick the checkbox for "Show group key on board index".

I've had the same error and this worked. Thanks!
Title: Re: MCLegendII.1
Post by: Bulakbol on May 08, 2008, 06:00:25 PM
Quote from: ruaduck on April 26, 2008, 01:40:11 AM
thank you so much. WOrks GREAT!!!!

Thanks ruaduck.


Quote from: X3mE on May 08, 2008, 06:52:06 AM
Quote from: JohnyB on April 13, 2008, 06:07:19 PM
If the mod won't install because of the the error, unzip the package, remove the
<code>MCLegendDB2B3.php</code>
from package-info.xml, re-zip the package and install. If there's no error, you can then enter your group id. Don't forget to turn-off the build-in legend in Admin -> Current Theme, and untick the checkbox for "Show group key on board index".

I've had the same error and this worked. Thanks!


That's good to hear. 

Thanks guys for trying/using this mod.
Title: Re: MCLegendII.1
Post by: Marcus Forsberg on May 12, 2008, 01:51:08 AM
You should use this swedish translation instead, as this should make the edits visible when parsing this mod

Help.swedish.php:
$helptxt['arrange_mclegend'] = 'Arrangera visnigen av gruppf&auml;rgerna. Skriv in gruppens id som m&aring;ste vara separerade med kommatecken. Inget komma efter det sista numret. (e.x. 1,2,8,7,6,5,4)';

ModSettings.swedish.php:
$txt['arrange_mclegend'] = 'Arrangering av visningen av gruppf&auml;rgerna.<div class="smalltext">(M&aring;ste separeras med kommatecken. e.x. 1,2,8,7,6,5,4)</div>';
Title: Re: MCLegendII.1
Post by: Bulakbol on May 12, 2008, 02:21:18 AM
Not too sure if that will work MTF95 because of html entities.  There's built-in parser now so there will be less (if any) parsing problem.
Title: Re: MCLegendII.1
Post by: Dante_Arg on May 16, 2008, 02:53:28 PM
Hi, first congratz for this great mod, i m using it and is working perfect.

Second: sorry for my bad english, but i need know something:

It´s possible to make the names of the member groups index forum clickeables? to see a list of members of that group? because i can do that like admin, but general mods and users cant do. Its possible for Users and General Mods?

Thank you
Title: Re: MCLegendII.1
Post by: Bulakbol on May 16, 2008, 03:30:18 PM
Quote from: Dante_Arg on May 16, 2008, 02:53:28 PM
Hi, first congratz for this great mod, i m using it and is working perfect.

Second: sorry for my bad english, but i need know something:

It´s possible to make the names of the member groups index forum clickeables? to see a list of members of that group? because i can do that like admin, but general mods and users cant do. Its possible for Users and General Mods?

Thank you

Sorry but only those permitted to moderate members can view the list of group members. Version 2.0 Beta 3.1 has that function but not 1.1.5. If you want your global moderators to view members in a group, give them permission to "Moderate forum members" or "Manage and assign membergroups". Can't remember which one but one of them.
Title: Re: MCLegendII.1
Post by: Dante_Arg on May 16, 2008, 03:40:15 PM
thanks u johny
Title: Re: MCLegendII.1
Post by: Marcus Forsberg on May 17, 2008, 02:45:44 AM
Could u help me install this on Kelo-lt?
Title: Re: MCLegendII.1
Post by: Bulakbol on May 17, 2008, 03:39:30 PM
Attach your BoardIndex.template.php and I'll edit it.
Title: Re: MCLegendII.1
Post by: Marcus Forsberg on May 17, 2008, 03:50:34 PM
Managed to do it my self, it wasn't hard!
Title: Re: MCLegendII.1
Post by: WinXPTeam on May 20, 2008, 02:25:49 PM
Thanks..
Title: Re: MCLegendII.1
Post by: Bulakbol on May 21, 2008, 11:35:54 AM
Here's your BoardIndex.template.php WisnXpTheme. Try this one after installing the mod. Post here if you have problem. Thanks for trying/using this mod.

Title: Re: MCLegendII.1
Post by: WinXPTeam on May 21, 2008, 05:10:36 PM
Ty it works
Title: Re: MCLegendII.1
Post by: Sheila * R on May 29, 2008, 06:34:02 PM
SMF version: 1.1.5

Theme: CS Classic / serv Ramadhan

Default Forum Language: English


-------------------------------------------------------------

After installation of this mod it appears that under "Features and Options - Basic Features" there is a third section added. There is the text box with the numbers in it , however, there is no text next to it to indicate what it says it is for. Also the  groups are not showing at the bottom of my page like they should.
Title: Re: MCLegendII.1
Post by: ccbtimewiz on May 29, 2008, 08:52:02 PM
Quote from: A Mother's Luv on May 29, 2008, 06:34:02 PM
SMF version: 1.1.5

Theme: CS Classic / serv Ramadhan

Default Forum Language: English


-------------------------------------------------------------

After installation of this mod it appears that under "Features and Options - Basic Features" there is a third section added. There is the text box with the numbers in it , however, there is no text next to it to indicate what it says it is for. Also the  groups are not showing at the bottom of my page like they should.

This modification requires manual hacking of the boardindex.template.file of your theme. Also, make certain that your forum's language setting (under Server Settings) is English and not utf8-english.

If you require assistance in editing your template, simply attach it and I'll do it for you.
Title: Re: MCLegendII.1
Post by: Bulakbol on May 30, 2008, 12:28:05 AM
Hello Mother. :)

Open default/languages/ModSettings.english.php and add the following line before the (?>) ending php tag.
$txt['arrange_mclegend'] = 'Membergroup legend display arrangement.<div class="smalltext">(Must be separated by comma. i.e. 1,2,8,7,6,5,4)</div>';

and also in default/languages/Help.english.php, add this line also.
$helptxt['arrange_mclegend'] = 'Arrange the display of your membergroups color legend. Enter the group id number and must be separated by comma. No comma after the last number. (i.e. 1,2,8,7,6,5,4)';

Let us know if that doesn't help. Thanks for trying/using this mod.  ;)

Title: Re: MCLegendII.1
Post by: Sheila * R on May 30, 2008, 03:33:39 PM
Quote from: JohnyB on May 30, 2008, 12:28:05 AM
Hello Mother. :)

Open default/languages/ModSettings.english.php and add the following line before the (?>) ending php tag.
$txt['arrange_mclegend'] = 'Membergroup legend display arrangement.<div class="smalltext">(Must be separated by comma. i.e. 1,2,8,7,6,5,4)</div>';

and also in default/languages/Help.english.php, add this line also.
$helptxt['arrange_mclegend'] = 'Arrange the display of your membergroups color legend. Enter the group id number and must be separated by comma. No comma after the last number. (i.e. 1,2,8,7,6,5,4)';

Let us know if that doesn't help. Thanks for trying/using this mod.  ;)



Where am I supposed to be opening this from?


Quote from: ccbtimewiz on May 29, 2008, 08:52:02 PM
This modification requires manual hacking of the boardindex.template.file of your theme. Also, make certain that your forum's language setting (under Server Settings) is English and not utf8-english.

If you require assistance in editing your template, simply attach it and I'll do it for you.

I am set to English
Title: Re: MCLegendII.1
Post by: Bulakbol on May 30, 2008, 06:05:49 PM
Hello Mother's Luv.
Were there any errors when you installed the mod?
You need FTP program to download or edit SMF files. I am using FileZilla (http://filezilla-project.org/download.php) if you don't have one installed yet. It's free.

You can find Modifications.english.php in the default/languages folder.
Title: Re: MCLegendII.1
Post by: pp08 on June 15, 2008, 10:53:42 PM
hi i have been wanting to have this for long time now not the color just mainly those groups displayed in the main page but i dont know what to edit. also i instaled this mod and i see the slot to change the numbers to board name so they will diplay in order but first i need to have the groups displayed so please help me do that
Title: Re: MCLegendII.1
Post by: Bulakbol on June 16, 2008, 01:17:40 PM
If the mod was installed without error, go to Admin->Features and Options->Basic Features, and in the text box of "Membergroup legend display arrangement.", enter (1,2,3,8,7,6,4). 
Title: Re: MCLegendII.1
Post by: pp08 on June 16, 2008, 09:15:57 PM
Quote from: JohnyB on June 16, 2008, 01:17:40 PM
If the mod was installed without error, go to Admin->Features and Options->Basic Features, and in the text box of "Membergroup legend display arrangement.", enter (1,2,3,8,7,6,4). 

done that but nothing shows in main page i am using the "fire" theme does that make a difference should i maually change anything on the theme?
Title: Re: MCLegendII.1
Post by: Bulakbol on June 16, 2008, 09:25:35 PM
You have to manually install the mod to your custom theme to make it work.  Use the SMF Mod Parser (http://sleepycode.com/PackageParser/index.php) and edit your BoardIndex.template.php.
Title: Re: MCLegendII.1
Post by: pp08 on June 16, 2008, 10:11:52 PM
ok i just tried the smf mon parser and this is what it shows


General Package Information
This is general information about the package, such as the package ID and name.
Package ID: JB:MCLII
Package name: MCLegendII.2
Package version: 2.0
Package type: modification

Installation instructions for SMF versions: 1.1 - 1.1.99
Note: If a file does not exist in your theme, it doesn't matter (as the file from the Default theme will be used).

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 395: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xED 0x72 0x67 0x75 in /home/sleepy1/public_html/PackageParser/index.php on line 501

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: po de membro por Legenda.</div><div class="smalltext">(Devem ser separados por v in /home/sleepy1/public_html/PackageParser/index.php on line 501

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 501

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/sleepy1/public_html/PackageParser/index.php:501 Stack trace: #0 /home/sleepy1/public_html/PackageParser/index.php(501): SimpleXMLElement->__construct('<?xml version="...') #1 /home/sleepy1/public_html/PackageParser/index.php(470): parseModificationXML('/home/sleepy1/b...', Object(SimpleXMLElement), 'theme') #2 /home/sleepy1/public_html/PackageParser/index.php(125): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'theme') #3 /home/sleepy1/public_html/PackageParser/index.php(823): parseArchive('/tmp/phpV1o28r', 'install', 'theme') #4 {main} thrown in /home/sleepy1/public_html/PackageParser/index.php on line 501
Title: Re: MCLegendII.1
Post by: Bulakbol on June 16, 2008, 10:20:14 PM
That is because of the language string. You can use the in-built parser though. Go back to the mod site, change version of smf and then click submit button.

http://custom.simplemachines.org/mods/index.php?mod=1077
Title: Re: MCLegendII.1
Post by: pp08 on June 16, 2008, 10:26:10 PM
if i try from the mod site i dont see my theme...... i am so confused i just need to have the groups displayed in the main page is there any other mods or any other option?
Title: Re: MCLegendII.1
Post by: Bulakbol on June 16, 2008, 10:44:54 PM
Yeah, you are confused. Attach your BoardIndex.template.php and I'll see what I can do. What custom theme are you using again?
Title: Re: MCLegendII.1
Post by: pp08 on June 18, 2008, 11:28:38 PM
Quote from: JohnyB on June 16, 2008, 10:44:54 PM
Yeah, you are confused. Attach your BoardIndex.template.php and I'll see what I can do. What custom theme are you using again?

thank you in advance for trying to help.
i am using smf 1.1.5 and i am using theme "fire" designed by Tamuril and this is the link to her theme if you need it
http://custom.simplemachines.org/themes/index.php?lemma=689

also as you asked i am attaching the file please let me know if you need anything else thank you

p.s. this is not going to mess up my forum right? i got scared when i saw the fetal error
Title: Re: MCLegendII.1
Post by: Bulakbol on June 19, 2008, 01:39:48 AM
Here's your BoardIndex.template.php back pp08. Thanks for using this mod.

Title: Re: MCLegendII.1
Post by: pp08 on June 19, 2008, 02:24:18 AM
thank you so much, i just uploaded it and now its showing the groups however its showing "regular groups" and "post count based groups" which is ok it works if thats how it was made but what is messing up is its showing all the groups even if no one from that group is online. i need to only show the group name if any users are online from that group. other wise it should stay hidden, thats how it was made isnt it? otherwise what would be the point for the groups to sshow... also as a user i can not click on the groups to view who is in that group. can you help me with it plz
Title: Re: MCLegendII.1
Post by: Bulakbol on June 19, 2008, 02:49:04 AM
This mod will display membergroup legend regardless of members online status. That's the way I made it. You can arrange the display of group legend by going to Admin-> Features and Options and enter your group id's in "Membergroups legend arrangement." text box.

But if you want only the legend for online members then you don't need this mod. You need the old version. You have to manually edit your BoardIndex.tempte.php. It might work.
http://custom.simplemachines.org/mods/index.php?mod=207
Title: Re: MCLegendII.1
Post by: pp08 on June 20, 2008, 05:32:01 PM
in the features and options i tried to rearrange by changing the numbers but no matter what i change it seems to pull up what ever group it wants how can i fix this?
Title: Re: MCLegendII.1
Post by: pp08 on June 20, 2008, 06:09:32 PM
also how do i understand which number refers to which group/club?
Title: Re: MCLegendII.1
Post by: Bulakbol on June 21, 2008, 02:06:27 AM
Go to Admin-> membergroups then hover your mouse over your group names and the browser's progress bar, you'll see something like ... sa=members;group=2. The "2" is the groups id of that group.
Title: Re: MCLegendII.1
Post by: fangweile on June 21, 2008, 03:11:58 AM
Hello there,

I installed this mod and it works fine, however it is possible to show only the membergroup legend of the current online users. Not all the membergroups?
Title: Re: MCLegendII.1
Post by: Bulakbol on June 21, 2008, 03:59:48 AM
To display only group legend of online members, you have to replace the code to

if (!empty($modSettings['arrange_mclegend']))
{
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">';
foreach($context['online_groups'] AS $group)
             if(!empty($group['color']) && $group['color'] != '')
                    echo '[<span style="color:' . $group['color'] . '">' . $group['name'] . '</span>] ';
      echo '
      </span>
</td>
</tr>';
}


The code above is from Jay Bachatero's Membergroup Color Legend (http://custom.simplemachines.org/mods/index.php?mod=207) mod.
Title: Re: MCLegendII.1
Post by: fangweile on June 21, 2008, 04:24:33 AM
I already tried the Jay Bachatero's Membergroup Color legend but I want to add a link to the membergroup name just like in your mod. ANy idea how to do this??
Title: Re: MCLegendII.1
Post by: Bulakbol on June 21, 2008, 04:57:23 AM
You can try this. Edit your Sources/BoardIndex.php and find
// Some basic color coding...
and add this above it.
if (allowedTo('moderate_forum'))
$glink = '<a href="'. $scripturl . '?action=membergroups;sa=members;group='. $row['ID_GROUP']. '" style="color: '. $row['onlineColor']. ';">'. $row['groupName']. '</a>'; 


then find
'color' => $row['onlineColor']

and replace with
'color' => $row['onlineColor'],
'glink' => $glink


and in your defautl/BoardIndex.template.php, use this
if (!empty($modSettings['arrange_mclegend']))
{
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">';
foreach($context['online_groups'] AS $group)
echo '[<span style="color:' . $group['color'] . '">' . $group['glink'] . '</span>] ';

          echo '
          </span>
</td>
</tr>';
}
Title: Re: MCLegendII.1
Post by: fangweile on June 21, 2008, 05:12:35 AM
Hello there

It perfectly work when I log as an Admin, I can see the link btw

However when i try to log in as another user
It only display this

[] []

and it generates and forum error log from that user

Undefined variable: glink
File:/htdocs/Sources/BoardIndex.php

I think this code is causing this
if (allowedTo('moderate_forum'))

???
Title: Re: MCLegendII.1
Post by: Bulakbol on June 21, 2008, 05:30:48 AM
Oppsss sorry, I forgot the else thing. Replace this (Sources/BoardIndex.php)
if (allowedTo('moderate_forum'))
$glink = '<a href="'. $scripturl . '?action=membergroups;sa=members;group='. $row['ID_GROUP']. '" style="color: '. $row['onlineColor']. ';">'. $row['groupName']. '</a>'; 


with  this.
if (allowedTo('moderate_forum'))
$glink = '<a href="'. $scripturl . '?action=membergroups;sa=members;group='. $row['ID_GROUP']. '" style="color: '. $row['onlineColor']. ';">'. $row['groupName']. '</a>'; 
else
$glink = !empty($row['onlineColor']) ? '<span style="color: '. $row['onlineColor']. ';">'. $row['groupName']. '</span>' : $row['groupName'];
Title: Re: MCLegendII.1
Post by: fangweile on June 21, 2008, 05:34:39 AM
OMG, thanks a lot for your help,
It really works fine now. You are so great.

Thanks again. ^_^
Title: Re: MCLegendII.1
Post by: Bulakbol on June 21, 2008, 05:37:40 AM
You're welcome. 'Glad it's working now. :)
Title: Re: MCLegendII.1
Post by: pp08 on June 21, 2008, 10:10:12 PM
Quote from: JohnyB on June 21, 2008, 02:06:27 AM
Go to Admin-> membergroups then hover your mouse over your group names and the browser's progress bar, you'll see something like ... sa=members;group=2. The "2" is the groups id of that group.


thank you so much i can see the groups now
Title: Re: MCLegendII.1
Post by: tyty1234 on June 29, 2008, 05:16:24 AM
Is there an action like http://www.simplemachines.org/index.php?action=groups to view which members are in that specific group? Because I don't like the fact where it goes to the admin panel when people click on it.
Title: Re: MCLegendII.1
Post by: Bulakbol on June 29, 2008, 05:37:36 AM
@pp08
  You're welcome.  Thank you too for trying or using this mod.

@tyty1993
Have you tried this mod? Because I don't know about the "admin panel".
The 1.1.5 version - only groups with permission to manage membergroups + admins.
The 2.0 Beta 3.1 version - yes if you allow them to view members list.

Title: Re: MCLegendII.1
Post by: tyty1234 on June 29, 2008, 05:47:42 AM
Quote from: JohnyB on June 29, 2008, 05:37:36 AM
@tyty1993
Have you tried this mod? Because I don't know about the "admin panel".
The 1.1.5 version - only groups with permission to manage membergroups + admins.
The 2.0 Beta 3.1 version - yes if you allow them to view members list.
Aww, I have 1.1.5........
Thanks for the quick reply though!
Title: Re: MCLegendII.1
Post by: Bulakbol on June 29, 2008, 05:56:44 AM
No problem. :)
Title: Re: MCLegendII.1
Post by: InsaneneSs on July 01, 2008, 01:52:29 AM
Quote from: JohnyB on June 29, 2008, 05:56:44 AM
No problem. :)

Can you make this work on this 2 themes?

Outline - http://www.dzinerstudio.com/index.php?action=tpmod;dl=item52
DarkBreack - http://www.dzinerstudio.com/index.php?action=tpmod;dl=item55

When i try to install:

15. Executar modificação ./Themes/default/languages/Help.portuguese.php Falha
17. Executar modificação ./Themes/default/languages/ModSettings.portuguese.php Falha
Title: Re: MCLegendII.1
Post by: Bulakbol on July 01, 2008, 09:22:26 PM
@Became17
You can still go ahead with the installation. Just add the language strings after. If you are still interested, I can give you instructions how to add the language strings and also what to find and replace in both the DarkBreak and Outline themes.
Title: Re: MCLegendII.1
Post by: InsaneneSs on July 01, 2008, 10:08:03 PM
Quote from: JohnyB on July 01, 2008, 09:22:26 PM
@Became17
You can still go ahead with the installation. Just add the language strings after. If you are still interested, I can give you instructions how to add the language strings and also what to find and replace in both the DarkBreak and Outline themes.

Sorry man but my english is terrible.. Can you say the instructions?
Title: Re: MCLegendII.1
Post by: Bulakbol on July 01, 2008, 10:31:31 PM
@Became17
Go ahead with the installation, then open your default/languages/Help.portuguese.php and the the very end, add the following lines.
$helptxt['arrange_mclegend'] = 'Organizar a exibi&#231;&#227;o do seu groupo de membros a cor e legenda. Digite o n&#250;mero grupo identifica&#231;ao que devem ser separados por v&#237;rgula. Nenhuma v&#237;rgula ap&#243;s o &#250;ltimo n&#250;mero. (i.e. 1,2,8,7,6,5,4).
Para activar a exibi&#231;&#227;o de desativar o "Show group key on board index" from Admin -> Actual Tema, sob Tema guia Configura&#231;&#245;es.';


Open your default/languages/ModSettings.portuguese.php and add the following line at the very end before the ?> tag.
$txt['arrange_mclegend'] = '<div style="color: blue;">Mostrar grupo de membro por Legenda.</div><div class="smalltext">(Devem ser separados por vírgula. i.e. 1,2,8,7,6,5,4)</div>';

The instructions for the two themes will follow later. I have to check them.
Title: Re: MCLegendII.1
Post by: InsaneneSs on July 01, 2008, 10:38:39 PM
JohnyB don't you think i should wait for the themes instructions?
Title: Re: MCLegendII.1
Post by: Bulakbol on July 01, 2008, 10:57:02 PM
Quote from: Became17 on July 01, 2008, 01:52:29 AM

When i try to install:

15. Executar modificação ./Themes/default/languages/Help.portuguese.php Falha
17. Executar modificação ./Themes/default/languages/ModSettings.portuguese.php Falha

I replied to this. I thought you are using three themes.

edit:
I downloaded the themes already. I'll get back to you.
/edit
Title: Re: MCLegendII.1
Post by: InsaneneSs on July 02, 2008, 10:08:55 PM
Quote from: JohnyB on July 01, 2008, 10:57:02 PM
Quote from: Became17 on July 01, 2008, 01:52:29 AM

When i try to install:

15. Executar modificação ./Themes/default/languages/Help.portuguese.php Falha
17. Executar modificação ./Themes/default/languages/ModSettings.portuguese.php Falha

I replied to this. I thought you are using three themes.

edit:
I downloaded the themes already. I'll get back to you.
/edit

Thanks! See as well the "Images on board" mod please xD

http://www.simplemachines.org/community/index.php?topic=246022.40

Title: Re: MCLegendII.1
Post by: rodolfo on July 04, 2008, 11:37:46 AM
Thank you very match for this mod and sorry for my bad english.

I have installed this mod without error, but in the info center section i don't see nothing of the legend.

Watch this screen:


I have the core themes for my forum, but i use the italian language with UTF-8 support.
I search in the thread and found the solution for to see the description of functions in the admin pannel. But i not found nothing.
Thankyou very mutch and sorry for my very bad english  :D
Title: Re: MCLegendII.1
Post by: ccbtimewiz on July 04, 2008, 03:25:49 PM
Weird. Did you set the modification's settings in Features and Options?
Title: Re: MCLegendII.1
Post by: rodolfo on July 05, 2008, 03:12:17 AM
This is the screen of my "features and options", ples check it is correct.


Title: Re: MCLegendII.1
Post by: Eliana Tamerin on July 06, 2008, 10:10:13 PM
Looks right.
Title: Re: MCLegendII.1
Post by: Bulakbol on July 07, 2008, 03:08:37 AM
@Rodolfo
   Yes, it looks right. Attach your Sources/BoardIndex.php and the BoardIndex.template.php to your next post.
Title: Re: MCLegendII.1
Post by: @L3 on July 07, 2008, 02:48:00 PM
i've a problem with my theme Amber :D

Witch is the modify for my My BoardIndex.template.php

...
// "Users online" - in order of activity.
echo '
<tr>
<td class="catbg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td class="windowbg0" width="20" valign="middle" rowspan="2" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg02" width="100%">';

if ($context['show_who'])
echo '
<a href="', $scripturl, '?action=who">';

echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
...


Tnx for your mod ;)
Title: Re: MCLegendII.1
Post by: Achilles991 on July 07, 2008, 06:16:08 PM
Oh... I have a problem because of number of groups... I have more groups then one line can support... I don't know the way to separate legend in two lines, and my legend looks bad... Can somebody help me with this? If you don't know what i am talking about visit www.petnica.info , and look at the bottom of the page...
Title: Re: MCLegendII.1
Post by: Bulakbol on July 08, 2008, 04:32:30 AM
@@L3
Edit the amber11final/BoardIndex.template.php. Look for
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';


and replace with
</tr>';
if (!empty($modSettings['arrange_mclegend']))
{
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">';
foreach($context['mcl_group'] AS $key => $dummy)
for ($i = 0; $i < count($context['mc_legend']); $i++)
if ($context['mc_legend'][$i]['id'] == $context['mcl_group'][$key])
{
  echo '[', $context['mc_legend'][$i]['link'], ']&nbsp;&nbsp;';
  continue;
}
          echo '
          </span>
</td>
</tr>';
}
echo '
<tr>
<td colspan="2" class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';
Title: Re: MCLegendII.1
Post by: Bulakbol on July 08, 2008, 04:35:14 AM
Quote from: Achilles991 on July 07, 2008, 06:16:08 PM
Oh... I have a problem because of number of groups... I have more groups then one line can support... I don't know the way to separate legend in two lines, and my legend looks bad... Can somebody help me with this? If you don't know what i am talking about visit www.petnica.info , and look at the bottom of the page...

To create two rows of groupnames, BoardIndex.template.php, look for
Quoteforeach($context['mcl_group'] AS $key => $dummy)
                     for ($i = 0; $i < count($context['mc_legend']); $i++)   
                        if ($context['mc_legend'][$i]['id'] == $context['mcl_group'][$key])
                        {
                           echo '[', $context['mc_legend'][$i]['link'], ']&nbsp;&nbsp;';
                           continue;
                        }
and replace.
Quote
$row = 0;
foreach($context['mcl_group'] AS $key => $dummy)
   for ($i = 0; $i < count($context['mc_legend']); $i++)   
      if ($context['mc_legend'][$i]['id'] == $context['mcl_group'][$key])
      {
         if ($row == 2)
            echo '<br />';
            echo '[', $context['mc_legend'][$i]['link'], ']&nbsp;&nbsp;';
            $row++;
            continue;
      }

replace the #2 with the count of groupnames for the first row.
Title: Re: MCLegendII.1
Post by: @L3 on July 08, 2008, 07:55:52 AM
Tnx JonnyB, now that's ok! ;)
Title: Re: MCLegendII.1
Post by: Achilles991 on July 08, 2008, 08:35:06 AM
It works, thank you very much!
Title: Re: MCLegendII.1
Post by: Anub1s on July 08, 2008, 09:02:59 AM
jonny i must say man you have some good mods behind you.

this mod is good it was a pain with my custom desiding it dident want to stay its normal size lol but we got there eventualy lol.
Title: Re: MCLegendII.1
Post by: Bulakbol on July 09, 2008, 12:47:09 AM
Thank you very much guys for using or trying this mod. You are welcome of course.
Title: Re: MCLegendII.1
Post by: rodolfo on July 11, 2008, 04:12:45 AM
Hello JohnyB,

this is the file that you asked. My english is very bad :D
Title: Re: MCLegendII.1
Post by: Ur_Irish_Rose on July 11, 2008, 10:14:29 AM
Awsome Mod :) Thank you for making it :) took me a bit of time to get my staff sorted on it.

I just went into the admin area typed in 1,2,3,4,5,6 etc till i got to 25 lol then i went to the main screen and noted all my staff and what number they were, lol went back into the admin area and put them in order and hey presto :)

Simple and easy mod to use and to set up :)

Thank you once again :)

Sharon

Title: Re: MCLegendII.1
Post by: Bulakbol on July 11, 2008, 09:27:29 PM
@rodolfo
   Your BoardIndex.php is okay. Here's your edited BoardIndex.template.php.


@Ur_Irish_Rose
  haha So you had fun? It's fun isn't it? :)


Thanks for using this mod.
Title: Re: MCLegendII.1
Post by: rodolfo on July 12, 2008, 03:15:24 AM
Thanks very much for your fast help.

This mod is very beautyful. Yhanks for your job ;D
Title: Re: MCLegendII.1
Post by: xsghost on July 28, 2008, 11:53:36 AM
Can someone please help me make this mod available for the theme Aa New Damage V2? Im new to SMF and not sure how to mod the files manually.

Thanks
Title: Re: MCLegendII.1
Post by: ccbtimewiz on July 28, 2008, 12:54:37 PM
Quote from: xsghost on July 28, 2008, 11:53:36 AM
Can someone please help me make this mod available for the theme Aa New Damage V2? Im new to SMF and not sure how to mod the files manually.

Thanks

Attach your index.template.php file.
Title: Re: MCLegendII.1
Post by: xsghost on July 28, 2008, 01:10:32 PM
Thanks for the help ccbtimewiz :D

Heres the file :)
Title: Re: MCLegendII.1
Post by: ccbtimewiz on July 28, 2008, 02:11:01 PM
Here you are, sir.
Title: Re: MCLegendII.1
Post by: xsghost on July 28, 2008, 03:12:16 PM
Thanks ccbtimewiz, but when I uploaded it and went to my site I got this error:

QuoteTemplate Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.

Any help?

Thanks
Title: Re: MCLegendII.1
Post by: ccbtimewiz on July 28, 2008, 04:49:11 PM
I can't find why it would do that. Could you tell me the exact line where it finds the error?
Title: Re: MCLegendII.1
Post by: xsghost on July 28, 2008, 07:32:32 PM
Quote from: ccbtimewiz on July 28, 2008, 04:49:11 PM
I can't find why it would do that. Could you tell me the exact line where it finds the error?

Parse error: syntax error, unexpected $end in .../Themes/Aa_New_Damage_v2/BoardIndex.template.php on line 1127

1118:
1119:       </div>
1120:
1121:    </div>';
1122:
1123: }
1124:
1125:
1126:
1127: ?>
1128:
1129:
Title: Re: MCLegendII.1
Post by: Adish - (F.L.A.M.E.R) on July 28, 2008, 08:16:20 PM
Any way I can run this onto the theme Dark Night ?

Just like any theme edits to get it displayed onto different theme.

Please let me know.

Thanks.
Title: Re: MCLegendII.1
Post by: Bulakbol on July 29, 2008, 02:59:06 AM
@xsghost
   Try this one. Let me know if it doesn't work.



@optimushunk
   You have to edit your BoardIndex.template.php. Try it, it is easy. Only few lines to edit.
Title: Re: MCLegendII.1
Post by: Adish - (F.L.A.M.E.R) on July 29, 2008, 07:03:53 AM
can you give me the code edits for that theme please? i tried package parser but didnt get it right. i got this error.

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 395: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xED 0x72 0x67 0x75 in /home/ars/public_html/package.php on line 431

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: po de membro por Legenda.</div><div class="smalltext">(Devem ser separados por v in /home/ars/public_html/package.php on line 431

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/ars/public_html/package.php on line 431

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/ars/public_html/package.php:431 Stack trace: #0 /home/ars/public_html/package.php(431): SimpleXMLElement->__construct('<?xml version="...') #1 /home/ars/public_html/package.php(400): parseModificationXML('/tmp/install-1....', Object(SimpleXMLElement), 'all') #2 /home/ars/public_html/package.php(75): parsePackageInfoXML('/tmp/package-in...', 'install', 'all') #3 /home/ars/public_html/package.php(758): parseArchive('/tmp/php9QCBUO', 'install', 'all') #4 {main} thrown in /home/ars/public_html/package.php on line 431


thanks
Title: Re: MCLegendII.1
Post by: Adish - (F.L.A.M.E.R) on July 29, 2008, 07:16:51 AM
Is this right what I have done ?

Find:-
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />


Replace With:-
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center"> ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '

Find:-
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


Add After:-
if (!empty($modSettings['arrange_mclegend'])) { echo ' <tr>  <td class="windowbg2" width="100%">  <span class="smalltext">'; foreach($context['mcl_group'] AS $key => $dummy) for ($i = 0; $i < count($context['mc_legend']); $i++) if ($context['mc_legend'][$i]['id'] == $context['mcl_group'][$key]) { echo '[', $context['mc_legend'][$i]['link'], ']&nbsp;&nbsp;'; continue; } echo ' </span>  </td>  </tr>'; }


Please let me know. I get it right if seen but if there are code errors then I might face some side effects.

Thanks.
Title: Re: MCLegendII.1
Post by: Eliana Tamerin on July 29, 2008, 09:48:39 AM
optimushunk, why don't you just use the package parser on the SMF mod site? You seem to get errors with other parsers, which leads me to believe its an issue with the parser you're using, not the mods. The SMF mod site (http://custom.simplemachines.org/mods/) has a parser built in, which you can use by going to the mod, selecting your SMF version from the drop down, and clicking the radio button to indicate which mod package you wish to parse (if there are more than one) and then parsing it.
Title: Re: MCLegendII.1
Post by: Adish - (F.L.A.M.E.R) on July 29, 2008, 11:15:41 AM
Quote from: Eliana Tamerin on July 29, 2008, 09:48:39 AM
optimushunk, why don't you just use the package parser on the SMF mod site? You seem to get errors with other parsers, which leads me to believe its an issue with the parser you're using, not the mods. The SMF mod site (http://custom.simplemachines.org/mods/) has a parser built in, which you can use by going to the mod, selecting your SMF version from the drop down, and clicking the radio button to indicate which mod package you wish to parse (if there are more than one) and then parsing it.

yep i used the parser onto the site shown in the mod dowload page, thats the way i might have got that code right. well is it right ? I tried it and worked well but maybe some error might be somewhere as i dont know it properly. Please let me know if its right or wrong.

Thanks.
Title: Re: MCLegendII.1
Post by: xsghost on July 30, 2008, 09:04:33 AM
JohnyB you rock :D. Thanks it worked great
Title: Re: MCLegendII.1
Post by: edi67 on July 30, 2008, 01:11:49 PM
NICE ONE
Title: Re: MCLegendII.1
Post by: Bulakbol on July 30, 2008, 05:20:20 PM
@optimushunk
   You manually edited correctly. If you encounter error trlated to this mod, please let me know.

@all
   Thanks guys.  8)
Title: Re: MCLegendII.1
Post by: tk2012 on July 30, 2008, 05:23:01 PM
Just want to say that I use your Mods on my 1.1.5 forum and now on my 2.0 b3.1 forum!  Your mods not only add depth, but also INSTALL CORRECTLY without any problems. 

YOU ROCK MY FRIEND!
Title: Re: MCLegendII.1
Post by: Bulakbol on July 30, 2008, 05:36:09 PM
awww I'm flattered. :)  Thanks everyone.
Title: Re: MCLegendII.1
Post by: Adish - (F.L.A.M.E.R) on July 30, 2008, 07:18:21 PM
hey how to remove the brackets at the side ?
Title: Re: MCLegendII.1
Post by: ccbtimewiz on July 30, 2008, 07:22:16 PM
Quote from: optimushunk on July 30, 2008, 07:18:21 PM
hey how to remove the brackets at the side ?

Open BoardIndex.template.php

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

Replace with:
echo '', $context['mc_legend'][$i]['link'], '&nbsp;&nbsp;';
Title: Re: MCLegendII.1
Post by: Adish - (F.L.A.M.E.R) on July 30, 2008, 07:45:27 PM
ohh.. only to remove [ from those single brackets.. thats so genious of you..!! lolz thanks for your help again... my 2 major probs left are the user online today thing and sbox.. hope someone helps me out soon there..

thanks buddy
Title: Re: MCLegendII.1
Post by: ManilaGurL on July 30, 2008, 08:46:54 PM
I just want to make sure on what to do to be able to use this mod correctly. Please help. Thanks

SMF 1.1.5 with TinyPortal installed.

8.    Execute Modification    ./Themes/dilbermc/BoardIndex.template.php    Test failed


Installing this package will perform the following actions:
Type Action Description
1. Execute Code MCLegendDB114.php
2. Execute Modification ./Sources/ModSettings.php Test successful
3. Execute Modification ./Sources/BoardIndex.php Test successful
4. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
5. Execute Modification ./Themes/babylon/BoardIndex.template.php Test successful
6. Execute Modification ./Themes/classic/BoardIndex.template.php Test successful
7. Execute Modification ./Themes/Aa_New_Damage/BoardIndex.template.php Skipping file
8. Execute Modification ./Themes/dilbermc/BoardIndex.template.php Test failed
9. Execute Modification ./Themes/helios_multi11/BoardIndex.template.php Skipping file
10. Execute Modification ./Themes/wowdk_114v1/BoardIndex.template.php Skipping file
11. Execute Modification ./Themes/GoldCharm1/BoardIndex.template.php Skipping file
12. Execute Modification ./Themes/shinyblue115/BoardIndex.template.php Skipping file
13. Execute Modification ./Themes/default/languages/Help.english.php Test successful
14. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
15. Execute Modification ./Themes/default/languages/Help.portuguese.php Skipping file
16. Execute Modification ./Themes/default/languages/Help.brazilian.php Skipping file
17. Execute Modification ./Themes/default/languages/ModSettings.portuguese.php Skipping file
18. Execute Modification ./Themes/default/languages/ModSettings.brazilian.php Skipping file
19. Execute Modification ./Themes/default/languages/Help.swedish.php Skipping file
20. Execute Modification ./Themes/default/languages/ModSettings.swedish.php Skipping file
21. Execute Modification ./Themes/default/languages/Help.polish.php Skipping file
22. Execute Modification ./Themes/default/languages/ModSettings.polish.php Skipping file
Title: Re: MCLegendII.1
Post by: ccbtimewiz on July 30, 2008, 08:48:06 PM
Depends, are you using dilbermc?
Title: Re: MCLegendII.1
Post by: ManilaGurL on July 30, 2008, 09:39:05 PM
Yes, I am!
Title: Re: MCLegendII.1
Post by: ccbtimewiz on July 30, 2008, 09:39:45 PM
Attach your boardindex.template.php file from that theme and I'll make the edit for you.
Title: Re: MCLegendII.1
Post by: ManilaGurL on July 31, 2008, 01:03:44 AM
Oops, sorry.
Title: Re: MCLegendII.1
Post by: Bulakbol on July 31, 2008, 01:53:09 AM
Here's your BoardIndex.template.php Manilagurl. Use this file after installation. Let me know if you want the "before" installation copy.
Title: Re: MCLegendII.1
Post by: ManilaGurL on July 31, 2008, 02:26:13 AM
Thanks a lot Johny B! It worked! Nice mod. :)
Title: Re: MCLegendII.1
Post by: Bulakbol on July 31, 2008, 02:30:50 AM
You're welcome.  ;) Thanks for using this mod.
Title: Re: MCLegendII.1
Post by: ManilaGurL on July 31, 2008, 02:47:25 AM
Ooops, where do I find the membergroup key or numbers? I want to add more groups in there but  I don't know their number.
Title: Re: MCLegendII.1
Post by: tk2012 on July 31, 2008, 02:59:49 AM
There's probably an easier way, but I simply listed the numbers in order like:

1,2,3,4,5,6,7,8,9,10,11,12,13,14

and then looked to see what corresponded to what number and moved them around like:

1,2,3,10,11,12

Also, you will know what the next membergroup number will be by what number doesn't have a group corresponding to it, too!

Until you get a better answer, I hope that helps!
Title: Re: MCLegendII.1
Post by: ManilaGurL on July 31, 2008, 03:09:01 AM
Got it! Thanks again. :)
Title: Re: MCLegendII.1
Post by: SgtMic on July 31, 2008, 01:12:22 PM
Quote from: ManilaGurL on July 31, 2008, 02:47:25 AM
Ooops, where do I find the membergroup key or numbers? I want to add more groups in there but  I don't know their number.

If you have access to phpmyadmin:
1. Select the database
2. Select membergroups
3. Select browse

That will show you the membergroup ID #.
Title: Re: MCLegendII.1
Post by: Bulakbol on July 31, 2008, 06:01:41 PM
@Manilagurl
   You can go to Admin=> Membergroups=> Edit membergroups and hover your mouse over your Membergroups' name. You will see the number at the bottom of your browser. Something like ...sa=members;group=1 for Administrator.
Title: Re: MCLegendII.1
Post by: ManilaGurL on August 01, 2008, 12:27:49 AM
JohnB, that's the easiest way! Thanks for the tip! :)

SgtMic, thank you as well.
Title: Re: MCLegendII.1
Post by: Adish - (F.L.A.M.E.R) on August 02, 2008, 09:19:40 PM
When clicked on the base on the membergroups which are shown by a normal user account, it shows a message that you are not allowed to assign membergroup. I suppose it should just show a list of the users in that group. So how shall I bring the list intead of that message ?

Please help.

Thank you.
Title: Re: MCLegendII.1
Post by: Bulakbol on August 03, 2008, 07:02:44 PM
Sorry optimushunk, that's a feature in version 2.0 beta 3.1 but not in 1.1.5. If you really want it then you have to upgrade to version 2.0. :)
Title: Re: MCLegendII.1
Post by: Adish - (F.L.A.M.E.R) on August 03, 2008, 07:13:21 PM
ow... the mods I am using are max compatible with 1.1.5.. thats badd.. :( i'll soon check out for the newer versions for the other mods I am using up...

thank you for the information.
Title: Re: MCLegendII.1
Post by: cele on August 06, 2008, 01:38:55 PM
Hi! Thanks for this mod.
My problem it's that i want to install this in Outline Theme,
but i don't know how :(

Can you help me please?
Excuse my bad english :P
Title: Re: MCLegendII.1
Post by: ccbtimewiz on August 06, 2008, 03:41:55 PM
Quote from: cele on August 06, 2008, 01:38:55 PM
Hi! Thanks for this mod.
My problem it's that i want to install this in Outline Theme,
but i don't know how :(

Can you help me please?
Excuse my bad english :P

Please attach your boardindex.template.php file from your theme and I'll do the edits for you.

Make note you have to attach this file via additional options in your post.

How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)
Title: Re: MCLegendII.1
Post by: cele on August 07, 2008, 07:16:27 AM
Here is.
Thanks a lot for your help  :)
Title: Re: MCLegendII.1
Post by: ccbtimewiz on August 07, 2008, 07:44:22 AM
All done and ready for action.  :P
Title: Re: MCLegendII.1
Post by: cele on August 07, 2008, 02:23:55 PM
Thanks a lot! now it's working!!!  :-*

Title: Re: MCLegendII.1
Post by: azn102 on August 08, 2008, 06:14:42 PM
can any1 help me insert this mod to this theme:

Fg:.:Zm (for 1.1.5)

http://custom.simplemachines.org/themes/index.php?action=search;basic_search=Fg%3A.%3AZm

thanks to any1 that can help
Title: Re: MCLegendII.1
Post by: ccbtimewiz on August 08, 2008, 06:25:13 PM
This should do the trick.
Title: Re: MCLegendII.1
Post by: azn102 on August 08, 2008, 06:28:01 PM
ccbtimewiz thanks youuu it work perfectly
Title: Re: MCLegendII.1
Post by: Bulakbol on August 09, 2008, 03:17:07 AM
Awww I'm late.  :P I thank you ccbtimewiz for the help. You are very helpful as usual.  8)
Title: Re: MCLegendII.1
Post by: ccbtimewiz on August 09, 2008, 09:53:01 AM
Thanks. :)

Glad to help out. :P
Title: Re: MCLegendII.1
Post by: Adish - (F.L.A.M.E.R) on August 09, 2008, 09:54:53 AM
can anyone give me a site link to the installed mod in a 2.0 beta 3 version.. i would like to check it please..
Title: Re: MCLegendII.1
Post by: Bulakbol on August 09, 2008, 11:30:43 AM
Sample of SMF 2.0 Beta 3.1 membercolor legend (http://www.shinyblue.kalesangbayan.com/index.php) for F.L.A.M.E.R.
Title: Re: MCLegendII.1
Post by: tovaanu on August 09, 2008, 10:14:28 PM
can u please help me install this for SMF Default Theme - Core

thnx
Title: Re: MCLegendII.1
Post by: Ur_Irish_Rose on August 10, 2008, 08:15:14 AM
I had to reinsatll my forum due to Tiny Portal hosting makin a mess and I get this error

Execute Modification ./Themes/dilbermc/BoardIndex.template.php

Can anyone help me pls

MODIFIED THIS

this is on the CORE theme :|
Title: Re: MCLegendII.1
Post by: ccbtimewiz on August 10, 2008, 11:53:48 AM
Attach your boardindex.template.php and I'll help you.
Title: Re: MCLegendII.1
Post by: Ur_Irish_Rose on August 10, 2008, 01:22:11 PM
Is this what you are looking for :(


Title: Re: MCLegendII.1
Post by: ccbtimewiz on August 10, 2008, 01:24:36 PM
That file already has the correct edits. Are you sure it isn't working?
Title: Re: MCLegendII.1
Post by: Ur_Irish_Rose on August 10, 2008, 01:34:49 PM
Its the error im getting im also getting language errors :( this is what I cant understand

what i passed you was the error I got when tryin to upload this Mod :|

Im really confused as there are 5 other MODS that wont go in either and they worked fine b4 the move and the banners moved also and alot of things just dont work im trying to get these fixed as soon as I can as I have been already robbed of HOSTING COST from Tiny Portal Hosting :(
Title: Re: MCLegendII.1
Post by: Bulakbol on August 10, 2008, 11:04:22 PM
@tovaanu
  What was the error when you tried to install the mod?

@Ur_Irish_Rose
  What was the error again? Are there any error from your error log?
Title: Re: MCLegendII.1
Post by: Adish - (F.L.A.M.E.R) on August 11, 2008, 06:24:24 AM
Quote from: JohnyB on August 09, 2008, 11:30:43 AM
Sample of SMF 2.0 Beta 3.1 membercolor legend (http://www.shinyblue.kalesangbayan.com/index.php) for F.L.A.M.E.R.

Thank you. I just checked it, its great.. :)
Title: Re: MCLegendII.1
Post by: Bulakbol on August 11, 2008, 11:11:51 AM
You are welcome opti.. err F.L.A.I.M.E.R. :)
Title: Re: MCLegendII.1
Post by: Th3On3 on August 11, 2008, 01:01:23 PM
Well I am having Some trouble installing this MOD with the Theme I want to use on my Forum. I am using the Theme Basic by Crip. Here is a Link: http://custom.simplemachines.org/themes/index.php?lemma=752

Here is a Link to My Forum:
http://www.l2-element.com/forum/index.php

I installed this Mod fine, However it doesn't show up in the Users Online at the bottom of the page as you can see...

Thanks For the Help,
Staunton
Title: Re: MCLegendII.1
Post by: ccbtimewiz on August 11, 2008, 01:01:58 PM
Quote from: Th3On3 on August 11, 2008, 01:01:23 PM
Well I am having Some trouble installing this MOD with the Theme I want to use on my Forum. I am using the Theme Basic by Crip. Here is a Link: http://custom.simplemachines.org/themes/index.php?lemma=752

Here is a Link to My Forum:
http://www.l2-element.com/forum/index.php

I installed this Mod fine, However it doesn't show up in the Users Online at the bottom of the page as you can see...

Thanks For the Help,
Staunton

You need to manually edit your boardindex.template.php file of your theme. Attach it and I'll do it for you, if you want.
Title: Re: MCLegendII.1
Post by: Th3On3 on August 11, 2008, 01:22:24 PM
Thank you  :) :) :) - Here is is:

Title: Re: MCLegendII.1
Post by: ccbtimewiz on August 11, 2008, 01:23:44 PM
In your theme folder.
Title: Re: MCLegendII.1
Post by: Th3On3 on August 11, 2008, 01:26:27 PM
Quote from: ccbtimewiz on August 11, 2008, 01:23:44 PM
In your theme folder.
Look at my post above
Title: Re: MCLegendII.1
Post by: ccbtimewiz on August 11, 2008, 01:57:31 PM
Alright, I finished it. Here you are..
Title: Re: MCLegendII.1
Post by: Th3On3 on August 11, 2008, 02:19:05 PM
Quote from: ccbtimewiz on August 11, 2008, 01:57:31 PM
Alright, I finished it. Here you are..
:) :) :) :) :) :)
Thank you so much
Title: Re: MCLegendII.1
Post by: Ur_Irish_Rose on August 14, 2008, 08:05:13 PM
Quote from: JohnyB on August 10, 2008, 11:04:22 PM


@Ur_Irish_Rose
  What was the error again? Are there any error from your error log?

I had to reinsatll my forum due to Tiny Portal hosting makin a mess and I get this error

Execute Modification ./Themes/dilbermc/BoardIndex.template.php

Can anyone help me pls

MODIFIED THIS

this is on the CORE theme :|
Title: Re: MCLegendII.1
Post by: Bulakbol on August 14, 2008, 11:17:19 PM
Attach your BoardIndex.template.php and I'll look at it.
Title: Re: MCLegendII.1
Post by: Carb0n on August 17, 2008, 12:02:37 AM
How would I make it.
Legend :: Administrators, Global moderators, Golden, Trusted, Webmaster
Instead of [Administrator] [Trusted]

With the mod from above,  I don't like how [] looks in brackets.
Title: Re: MCLegendII.1
Post by: Bulakbol on August 17, 2008, 11:46:08 PM
@Carbon
  Navigate to your Admin panel => Features and Options => Basic Features, then in the "Membergroup legend display arrangement." textbox, enter your membergroup ID's. They will be displayed the way you arrange them. To find membergroup ID, go to Admin => Membergroups => Edit Membergroups. Hover your mouse over to the membergroup names and the ID number will be displayed at the bottom of your browser. Something like "...action=membergroups;sa=members;group=1". The 1 is ID for Admin.
Title: Re: MCLegendII.1
Post by: Ur_Irish_Rose on August 20, 2008, 12:18:01 PM
I have before and was told it was okay so i don't know what else to do
Title: Re: MCLegendII.1
Post by: Bulakbol on August 20, 2008, 03:22:27 PM
@Ur_Irish_Rose
  The avatarOnBoard mod and this mod (MCLegend) were already installed. Use this BoardIndex.template.php after the installation. You go ahead with the installation and then use this file after.
Title: Re: MCLegendII.1
Post by: azn102 on August 20, 2008, 08:11:48 PM
I have try install it on my own but i gave me all error...it work wen i refresh but then i refresh again it went back to error lol..

Please help me insert it into my board index template
Title: Re: MCLegendII.1
Post by: Bulakbol on August 21, 2008, 04:58:59 PM
@azn
   I thought ccbtimewiz's edit resolved your issue. Have you tried using the edited BoardIndex.template.php? Post the error you are getting.
Title: Re: MCLegendII.1
Post by: azn102 on August 21, 2008, 08:01:32 PM
my server crash and lose all the file so i install a different themes ....i almost got it work but when i refresh i get template parse error.

idk really know where i mess up
Title: Re: MCLegendII.1
Post by: Carb0n on August 23, 2008, 01:02:02 PM
Quote from: JohnyB on August 17, 2008, 11:46:08 PM
@Carbon
  Navigate to your Admin panel => Features and Options => Basic Features, then in the "Membergroup legend display arrangement." textbox, enter your membergroup ID's. They will be displayed the way you arrange them. To find membergroup ID, go to Admin => Membergroups => Edit Membergroups. Hover your mouse over to the membergroup names and the ID number will be displayed at the bottom of your browser. Something like "...action=membergroups;sa=members;group=1". The 1 is ID for Admin.

i know, but i'd rather see commas then see brackets imho. That's what i was asking.
Title: Re: MCLegendII.1
Post by: Bulakbol on August 25, 2008, 07:47:52 PM
@azn102
  I apologize for the delay. What are the errors you get when you tried to install to your new updated forum?

@Carb0n
  Sorry, I misunderstood. BoardIndex.template.php
Code (look for) Select
echo '[', $context['mc_legend'][$i]['link'], ']&nbsp;&nbsp;';
Code (replace) Select
echo ' ', $context['mc_legend'][$i]['link'], ',&nbsp;';


<edit> @azn102 Try the attached BoardIndex.template.php. </edit>
Title: Re: MCLegendII.1
Post by: Ur_Irish_Rose on August 29, 2008, 03:57:05 AM
Quote from: JohnyB on August 20, 2008, 03:22:27 PM
@Ur_Irish_Rose
  The avatarOnBoard mod and this mod (MCLegend) were already installed. Use this BoardIndex.template.php after the installation. You go ahead with the installation and then use this file after.

Totally lost :| Did you say just to go ahead and install it and do what modifycations after ?
Title: Re: MCLegendII.1
Post by: Bulakbol on August 30, 2008, 07:35:15 PM
Install this mod and ignore the failed test. After the installation, upload the edited file that I attached (from my previous post).
Title: Re: MCLegendII.1
Post by: Ur_Irish_Rose on September 03, 2008, 03:08:26 AM
Thank you JohnyB, this went in :)

Title: Re: MCLegendII.1
Post by: ghof on September 04, 2008, 09:18:54 PM
How do i install this mod on Musiconica theme? manually, the coding are different
Title: Re: MCLegendII.1
Post by: Bulakbol on September 04, 2008, 09:27:21 PM
Different theme different coding so you have to install the mod manually. Try the in-bulit parser

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1077;attach=55546;smf_version=1.1.5
Title: Re: MCLegendII.1
Post by: ghof on September 05, 2008, 06:45:22 AM
Quote from: JohnyB on September 04, 2008, 09:27:21 PM
Different theme different coding so you have to install the mod manually. Try the in-bulit parser

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1077;attach=55546;smf_version=1.1.5

I just told you that, i have tried manually, but do no have enough knowledge to do it because it is so different, so i was wondering if you could look at the musiconica theme and help me out?
Title: Re: MCLegendII.1
Post by: jepot5 on September 05, 2008, 09:02:55 AM
Nice mod.

i have a question.
I have about 11 membergroups on my forum to show on the index page.

I want to insert a line break after the 6th membergroup is shown.

Please help me.
Title: Re: MCLegendII.1
Post by: Bulakbol on September 05, 2008, 09:32:25 PM
@jepot5
Ckeck this post. Reply #235.
http://www.simplemachines.org/community/index.php?topic=219437.msg1607323#msg1607323
Title: Re: MCLegendII.1
Post by: jepot5 on September 06, 2008, 12:41:13 AM
Ok thanks.
Title: Re: MCLegendII.1
Post by: aw06 on September 06, 2008, 10:35:57 PM
Can you edit my BoardIndex please so i can use this mod  :P

Thanks in advance
Title: Re: MCLegendII.1
Post by: Bulakbol on September 07, 2008, 02:10:30 AM
@aw06
  Try this edited BoardIndex.template.php.
Title: Re: MCLegendII.1
Post by: aw06 on September 07, 2008, 02:18:12 AM
Works, but i dont see the options for it in features and options ...

dont see it in the default theme either  ::)
Title: Re: MCLegendII.1
Post by: Bulakbol on September 07, 2008, 02:21:44 AM
Did you install the mod? No errors in the error log?
Title: Re: MCLegendII.1
Post by: aw06 on September 07, 2008, 02:37:20 AM
Quote from: JohnyB on September 07, 2008, 02:21:44 AM
Did you install the mod? No errors in the error log?

NO errors ...

Also only Admin and Global show colours .. the rest are blue(default theme) Black(Custom Theme)

Also, some of my Groups are missing ..

Im using SMF 1.1.5
Title: Re: MCLegendII.1
Post by: aw06 on September 07, 2008, 03:00:47 AM
Got it sorted out  8)

Thanks
Title: Re: MCLegendII.1
Post by: aw06 on September 07, 2008, 03:17:08 AM
 :-[ o wait,,,, getting these errors

8: Undefined index: sp-forum
File: /home/adrianw/public_html/forum/Themes/default/Admin.template.php (eval?)
Line: 591


8: Undefined index: sp-forum
File: /home/adrianw/public_html/forum/Themes/igoh112/BoardIndex.template.php (eval?)
Line: 591


8: Undefined index: sp-forum
File: /home/adrianw/public_html/forum/Themes/default/Errors.template.php (eval?)
Line: 591


Any idea ?


When i uninstall the mod i get these error  :-\

8: Undefined index: sp-forum
File: /home/adrianw/public_html/forum/Themes/default/Errors.template.php (eval?)
Line: 591
Title: Re: MCLegendII.1
Post by: Bulakbol on September 07, 2008, 03:23:19 AM
It could be language string. Check your other mods that uses sp_forum string.
Title: Re: MCLegendII.1
Post by: aw06 on September 07, 2008, 06:15:43 AM
ok , how can i make the links clickable to guest/regular members ?
Title: Re: MCLegendII.1
Post by: Bulakbol on September 07, 2008, 06:38:25 AM
You can do that in SMF 2.0 betas but not in 1.1.5. Sorry.
Title: Re: MCLegendII.1
Post by: aw06 on September 07, 2008, 08:57:35 AM
Quote from: JohnyB on September 07, 2008, 06:38:25 AM
You can do that in SMF 2.0 betas but not in 1.1.5. Sorry.

OK, kool thanks 8)
Title: Re: MCLegendII.1
Post by: bros on September 12, 2008, 02:18:24 PM
Just downloaded the version for Beta 4.

Fatal error: require() [function.require]: Failed opening required '/home/xxxxx/public_html/boards/Packages/temp/MCLegendDB2B3.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxx/public_html/boards/Sources/Packages.php on line 899
Title: Re: MCLegendII.1
Post by: Bulakbol on September 13, 2008, 02:18:19 AM
Try creating a temp folder and chmod to 777.
Title: Re: MCLegendII.1
Post by: bros on September 13, 2008, 10:37:23 PM
Already have a temp folder at 777
Title: Re: MCLegendII.1
Post by: MDragon on September 15, 2008, 09:53:21 AM
I installed this on 1.1.6, and it displays the default admin/mod colors, as well as my four other non-colored groups.  However, I do not have the "Membergroup display arrangement" under features and options so I can't add anything to it or change the order.
Title: Re: MCLegendII.1
Post by: Bulakbol on September 15, 2008, 10:00:08 PM
@bros
  I'mm looking at the mod again for Beta 4. I'll get back to you.

@MDragon
  In your Sources/ModSettings.php,
Code (look for) Select
// Stats, compression, cookies.... server type stuff.
and make sure that the following lines are added. Otherwise add it. It should look like this.


// MCLegendII
array('text', 'arrange_mclegend'),
'',
// Stats, compression, cookies.... server type stuff.

Title: Re: MCLegendII.1
Post by: dkinser on September 16, 2008, 03:28:23 PM
Hi Johnny,

I hope you can help me as well as you've helped the others.

I've applied your mod, all seems well, but I cannot get the boxes to show below the users online.  We are on 1.1.5 version of SMF

I am attaching my BoardIndex.php from the theme WOW-DK d 1.1.2.

You'll see we have numerous groups that are colored, yet I cannot get your boxes to show.

Again, any help will be greatly appreciated.
Title: Re: MCLegendII.1
Post by: Bulakbol on September 17, 2008, 02:42:13 AM
Here you go dkinser. The easiest edit.

Title: Re: MCLegendII.1
Post by: dkinser on September 17, 2008, 06:12:53 AM
Thank you very much Johnny :)

In that code you added, is that where I would change the color of the brackets to match the color of the groups?  I saw your earlier post on changing that, but I can't find the line that you say to change.

Again, thanks for your help.
Title: Re: MCLegendII.1
Post by: chadon on September 17, 2008, 08:34:04 AM
Hi Johnny.
I am trying to help someone to install your mod but I am having a hard time finding what to edit in the Dark Night theme. Is it possible to get some help from you? 
Here is the BoardIndex.template.php.
Title: Re: MCLegendII.1
Post by: Bulakbol on September 18, 2008, 01:00:11 AM
@chadon
Try it yourself. After installing this mod, open dark night theme's BoardIndex.template.php and
Code (find) Select
<td class="windowbg2">', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '</td>
Code (replace) Select
<td rowspan="2" class="windowbg2">', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '</td>

Code (find) Select
// Show YaBB SP1 style information...
Code (replace) Select
if (!empty($context['membergroups']))
echo '
<tr>
<td colspan="2" class="windowbg2" width="100%">
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>
</td>
</tr>';

// Show YaBB SP1 style information...





@dkinser
To change the color of the brackets to match the color of the groups, you have to do two file edits. Sources/BoardIndex.php
Code (find) Select
$link = '<a href="'. $scripturl . '?action=membergroups;sa=members;group='. $row['ID_GROUP']. '" style="color: '. $row['onlineColor']. ';">'. $row['groupName']. '</a>'; 
else
$link = !empty($row['onlineColor']) ? '<span style="color: '. $row['onlineColor']. ';">'. $row['groupName']. '</span>' : $row['groupName'];

Code (replace) Select
$link = '<a href="'. $scripturl . '?action=membergroups;sa=members;group='. $row['ID_GROUP']. '" style="color: '. $row['onlineColor']. ';">['. $row['groupName']. ']</a>'; 
else
$link = !empty($row['onlineColor']) ? '<span style="color: '. $row['onlineColor']. ';">['. $row['groupName']. ']</span>' : $row['groupName']. ']';


and in Boardindex.template.php
Code (find) Select
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>
Code (replace) Select
<span class="smalltext">' . implode('&nbsp;&nbsp;', $context['membergroups']) . '</span>
Title: Re: MCLegendII.1
Post by: chadon on September 18, 2008, 06:57:02 AM
Thank you JohnnyB, I appreciate your help  ;)
Title: Re: MCLegendII.1
Post by: cfp85 on September 18, 2008, 03:32:57 PM
Hi JohnnyB ...

is the script for dark night theme the same with triton theme ? i cant find the first script ..here it is ..
Title: Re: MCLegendII.1
Post by: Atheo on September 18, 2008, 06:20:09 PM
Same problem as bros....

Fatal error: require() [function.require]: Failed opening required '/home/#######/#####/########/Packages/temp/MCLegendDB2B3.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/########/#####/#########/Sources/Packages.php on line 899
Title: Re: MCLegendII.1
Post by: Bulakbol on September 19, 2008, 04:53:48 AM
@dkinser and chadon
You are both welcome.

@cfp85
Try the attached BoardIndex.template.php

@Atheo and bros
Try the new package. Let me know hoe it goes.
Title: Re: MCLegendII.1
Post by: midkin on September 19, 2008, 11:09:38 AM
Hello there JohnyB.
Could you please edit my BoardIndex.template.php in order i am able to use ur mod?

Thanks in advance!

-------
Nick
Title: Re: MCLegendII.1
Post by: bros on September 19, 2008, 01:33:32 PM
Quote from: JohnyB on September 19, 2008, 04:53:48 AM
@dkinser and chadon
You are both welcome.

@cfp85
Try the attached BoardIndex.template.php

@Atheo and bros
Try the new package. Let me know hoe it goes.

Fatal error: require() [function.require]: Failed opening required '/home/xxxx/public_html/boards/Packages/temp/MCLegendDB2B3.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/boards/Sources/Packages.php on line 899

Yes, I have a temp folder. It is CHMOD 777
Title: Re: MCLegendII.1
Post by: Atheo on September 19, 2008, 03:57:16 PM
Johnny which package do you mean?
Title: Re: MCLegendII.1
Post by: erichamby on September 19, 2008, 11:37:00 PM
Why does this keep showing my key twice?

http://terranbytes.com/index.php
Title: Re: MCLegendII.1
Post by: Bulakbol on September 20, 2008, 01:29:27 PM
@Atheo
I uploaded a new package. Minor changes. If it still give you error, I suggest to talk to your host.

@erichamby
The mod was probably installed twice. If you don't know how to delete the duplicate, attach your BoardIndex.template.php and I'll remove it for you.
Title: Re: MCLegendII.1
Post by: General_Naga on September 20, 2008, 04:31:41 PM
How do I prevent people viewing whos in each group? I ask this because you can see the e-mail addresses of all the members of the group even if they have their e-mail address "hidden".

Are the lists of members in a group generated by your excellent mod or are they just called from the standard software?

Thanks
Title: Re: MCLegendII.1
Post by: dkinser on September 20, 2008, 05:05:38 PM
from what I've seen, only Admins can see the list under the groups.  The others don't get the link, just the name.
Title: Re: MCLegendII.1
Post by: erichamby on September 20, 2008, 05:57:41 PM
You was correct, thank you so much for the help and support. :)
Title: Re: MCLegendII.1
Post by: General_Naga on September 21, 2008, 12:36:53 PM
Quote from: dkinser on September 20, 2008, 05:05:38 PM
from what I've seen, only Admins can see the list under the groups.  The others don't get the link, just the name.

Thanks but my standard users can see the groups. I'm using SMF 2.0 b4
Title: Re: MCLegendII.1
Post by: bros on September 21, 2008, 11:17:08 PM
Fatal error: require() [function.require]: Failed opening required '/home/xxxxx/public_html/boards/Packages/temp/MCLegendDB2B3.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/boards/Sources/Packages.php on line 899

Yes, I downloaded the new one from the mod section. I replaced Packages.php with a fresh version. I deleted the temp folder, replaced it with a new one with chmod 777. Still doesn't work.
Title: Re: MCLegendII.1
Post by: Bulakbol on September 22, 2008, 10:04:47 AM
@General_Naga
Go to Admin => Permissions => General permissions, select "Regular Members" and untick the "View the memberlist" checkbox.

@bros
Try chmoding the temp folder with 755. If still does not work, talk to your host. I can't do anything with file permissions.

@erichamby
Hope you are okay now.
Title: Re: MCLegendII.1
Post by: General_Naga on September 22, 2008, 10:14:32 AM
Cheers for that JohnyB, but I would prefer to still allow members to view the main members list. Is there a way to remove the links from your mod?
Title: Re: MCLegendII.1
Post by: bros on September 22, 2008, 12:43:33 PM
Quote from: JohnyB on September 22, 2008, 10:04:47 AM
@General_Naga
Go to Admin => Permissions => General permissions, select "Regular Members" and untick the "View the memberlist" checkbox.

@bros
Try chmoding the temp folder with 755. If still does not work, talk to your host. I can't do anything with file permissions.

@erichamby
Hope you are okay now.

Same error.

I can install any mod but this one, even other mods of yours. I could install it on SMF 2 Beta 3.1 Public

Anything that this mod might do that might make it not work? O_o
Title: Re: MCLegendII.1
Post by: bros on September 22, 2008, 12:44:57 PM
Hey. I fixed it by removing these lines from Packages.php:
// Now include the file and be done with it ;).
require($boarddir . '/Packages/temp/' . $context['base_path'] . $action['filename']);


Title: Re: MCLegendII.1
Post by: cfp85 on September 23, 2008, 03:42:11 PM
thanks JohnyB .. working now !
Title: Re: MCLegendII.1
Post by: Lo0kBeHiNdU on September 23, 2008, 03:48:15 PM
Hello,

Im using a custom theme which is based on the Core theme..this mod doesn;t work.

1st: i want to make this work
2nd: i want to display in the legend only the online groups.

Thnx!
Title: Re: MCLegendII.1
Post by: Nibogo on September 27, 2008, 10:45:27 AM
Spanish_latin:
ModSettings.spanish_latin.php
$txt['arrange_mclegend'] = 'Leyendas de grupos de miembros para mostrar.<br /><span class="smalltext">(Deben estar separados por comas. i.e. 1,2,8,7,6,5,4)</span>';
Help.spanish_latin.php
$helptxt['arrange_mclegend'] = 'Estos son las leyendas de grupos de miembros que se mostraran. Ingresa el numero del ID del grupo a mostrar y deben estar separados por comas. Sin coma despues del ultimo numero. (i.e. 1,2,8,7,6,5,4)';
Title: Re: MCLegendII.1
Post by: Ravac on September 27, 2008, 11:10:06 AM
ModSettings.serbian-utf8.php
$txt['arrange_mclegend'] = 'Група легенда приказ договора.<br /><span class="smalltext">(Морају бити раздвојени са зарезом. Пример: 1,2,8,7,6,5,4)</span>';

Help.serbian-utf8.php
$helptxt['arrange_mclegend'] = 'Поређај приказ боја групе легенда. Укуцај ID број група, и морају бити раздвојени са зарезом. А не стављајте зарез после задњег броја! (Пример: 1,2,8,7,6,5,4)';
___________________________________________

ModSettings.serbian-utf8.php (Latinic)
$txt['arrange_mclegend'] = 'Grupa legenda prikaz dogovora.<br /><span class="smalltext">(Moraju biti razdvojeni sa zarezom. Primer: 1,2,8,7,6,5,4)</span>';

Help.serbian-utf8.php (Latinic)
$helptxt['arrange_mclegend'] = 'Poređaj prikaz boje grupa legenda. Ukucaj ID broj grupa, i moraju biti razdvojeni sa zarezom. A ne stavljajte zarez posle zadnjeg broja! (Primer: 1,2,8,7,6,5,4)';
Title: Re: MCLegendII.1
Post by: Bulakbol on September 28, 2008, 01:13:37 AM
Quote from: bros on September 22, 2008, 12:44:57 PM
Hey. I fixed it by removing these lines from Packages.php:
// Now include the file and be done with it ;).
require($boarddir . '/Packages/temp/' . $context['base_path'] . $action['filename']);


Are you sure bros? No errors?


@ravac and NIBOGO
Thanks for the tyranslation guys. I'll add them to the package when I have time. Tomorrow maybe.

@Lo0kBeHiNdU
The first mod does that. Membergroups Color Legend for online members only (http://custom.simplemachines.org/mods/index.php?mod=207)
Title: Re: MCLegendII.1
Post by: bros on September 28, 2008, 01:15:34 AM
Quote from: JohnyB on September 28, 2008, 01:13:37 AM
Quote from: bros on September 22, 2008, 12:44:57 PM
Hey. I fixed it by removing these lines from Packages.php:
// Now include the file and be done with it ;).
require($boarddir . '/Packages/temp/' . $context['base_path'] . $action['filename']);


Are you sure bros? No errors?

None at all after I removed that little bit. Then I re-added it afterwards.
Title: Re: MCLegendII.1
Post by: Bulakbol on September 28, 2008, 01:19:50 AM
Thanks bros. Appreciated your confirmation.
Title: Re: MCLegendII.1
Post by: kupals on September 28, 2008, 11:27:01 AM
how can i post the legend???
Title: Re: MCLegendII.1
Post by: Patriot89 on September 28, 2008, 03:33:33 PM
I'm using a custom Theme, and when I apply the mod the bottom of the page goes out of wack.

Without putting the numbers in the field



Now putting in 1,2,3

Title: Re: MCLegendII.1
Post by: Bulakbol on September 29, 2008, 12:17:27 AM
@ravac
Thanks but I had problem adding the utf8 language.

@NIBOGO
Thanks for the spanish_latin translation.

@kupals
Use the package manager to install this mod.

@Patriot89
Attach your BoardIndex.template.php. I need to know the name of the theme you are using.
Title: Re: MCLegendII.1
Post by: Patriot89 on September 29, 2008, 12:25:32 AM
I developed a theme using the theme maker on the SMF boards.

The file is attached.
Title: Re: MCLegendII.1
Post by: Ravac on September 29, 2008, 12:30:06 AM
probably because cyrillic, ok , put (Latinic) anyway  that latter use everybody.

if is not about cyrillic, then I have no answer :S
Title: Re: MCLegendII.1
Post by: Patriot89 on September 29, 2008, 12:31:28 AM
I fixed it, there was a duplication in the code:
Quote
if (!empty($modSettings['arrange_mclegend']))
         {
            echo '
            <tr>
               <td class="windowbg2" width="100%">
                  <span class="smalltext">';
                  foreach($context['mcl_group'] AS $key => $dummy)
                     for ($i = 0; $i < count($context['mc_legend']); $i++)   
                        if ($context['mc_legend'][$i]['id'] == $context['mcl_group'][$key])
                        {
                           echo '[', $context['mc_legend'][$i]['link'], ']&nbsp;&nbsp;';
                           continue;
                        }
                     echo '
                  </span>
               </td>
            </tr>';
         }
            echo '';

that was duplicated it was repeated twice in the code.
Title: Re: MCLegendII.1
Post by: Bulakbol on September 29, 2008, 12:38:46 AM
@ravac
Thanks. I'll try it again later today.

@Patriot89
Cool. Good to know you fixed it. :)
Title: Re: MCLegendII.1
Post by: kupals on September 29, 2008, 01:39:00 AM
how can i put the legend.... i installed it already...
Title: Re: MCLegendII.1
Post by: Patriot89 on September 29, 2008, 02:10:59 PM
@kupals
You should just type in the Member ID Numbers in the appropriate field, its located in the Features and Options in the Admin Panel.
Title: Re: MCLegendII.1
Post by: kupals on September 29, 2008, 10:15:27 PM
Quote from: Patriot89 on September 29, 2008, 02:10:59 PM
@kupals
You should just type in the Member ID Numbers in the appropriate field, its located in the Features and Options in the Admin Panel.

i already type the member id number there... but i cant see the legend in t he bottom of my forum..
Title: Re: MCLegendII.1
Post by: aayushagrawal90 on September 30, 2008, 01:33:08 PM
i have installed this mod but it is not working on dilber multicolour theme.

plzz help
Title: Re: MCLegendII.1
Post by: bros on October 01, 2008, 12:27:43 AM
Quote from: aayushagrawal90 on September 30, 2008, 01:33:08 PM
i have installed this mod but it is not working on dilber multicolour theme.

plzz help

Modify the files of the theme manuall
Title: Re: MCLegendII.1
Post by: Patriot89 on October 01, 2008, 09:30:19 AM
Quote
i already type the member id number there... but i cant see the legend in t he bottom of my forum..

That may be because you do not have a member group for that ID number, that can happen when you delete and recreate member groups to your liking. Have you tried "1" which is Administrator? If that does not show up, you will need to supply your BoardIndex.template.php file, also may I have the link to your forum?
Title: Re: MCLegendII.1
Post by: Bulakbol on October 01, 2008, 07:13:02 PM
@kupals
Do you still need assistance?
Title: Re: MCLegendII.1
Post by: kupals on October 01, 2008, 09:50:41 PM
Quote from: JohnyB on October 01, 2008, 07:13:02 PM
@kupals
Do you still need assistance?

i need assistant bro... how will i modify the themes manual??
Title: Re: MCLegendII.1
Post by: Bulakbol on October 01, 2008, 11:17:53 PM
Have you installed the mod with no errors?
Title: Re: MCLegendII.1
Post by: kupals on October 01, 2008, 11:26:26 PM
Quote from: JohnyB on October 01, 2008, 11:17:53 PM
Have you installed the mod with no errors?

yeah i already installed it w/ no errors..... how will i put the legend in the bottom of my forums
Title: Re: MCLegendII.1
Post by: Bulakbol on October 02, 2008, 12:01:08 AM
Can you post a link to your forum?
Title: Re: MCLegendII.1
Post by: XchrisX on October 02, 2008, 06:12:37 AM
Hi, i had this installed before i upgraded to 2.0 beta 4 but when i try to install again now i get this error:

Fatal error: require() [function.require]: Failed opening required '/home/???/public_html/Packages/temp/MCLegendDB2B3.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/???/public_html/Sources/Packages.php on line 899
Title: Re: MCLegendII.1
Post by: kupals on October 02, 2008, 07:36:14 AM
Quote from: JohnyB on October 02, 2008, 12:01:08 AM
Can you post a link to your forum?
hey this is my forum my friend...

http://pinoyhangout.site40.net/index.php
Title: Re: MCLegendII.1
Post by: Bulakbol on October 03, 2008, 02:17:49 PM
@bro kupals
Ah, techhead11 theme. If you can't edit it yourself for some reason, attach your teachhead11/BoardIndex.template.php and I'll edit it for you. You can try it yourself if you want. Edit your BoardIndex.template.php and find
<td class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '

replace
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '


Find
// If they are logged in, but SP1 style information is off... show a personal message bar.
replace
if (!empty($context['membergroups']))
echo '
            <tr>
               <td colspan="2" class="windowbg2" width="100%">
                  <span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>
               </td>
            </tr>';

        // If they are logged in, but SP1 style information is off... show a personal message bar.
Title: Re: MCLegendII.1
Post by: kupals on October 05, 2008, 09:35:44 AM
@ SIR JohnyB

ok its already solved... hehehh thankz
Title: Re: MCLegendII.1
Post by: bros on October 05, 2008, 02:36:36 PM
Quote from: XchrisX on October 02, 2008, 06:12:37 AM
Hi, i had this installed before i upgraded to 2.0 beta 4 but when i try to install again now i get this error:

Fatal error: require() [function.require]: Failed opening required '/home/???/public_html/Packages/temp/MCLegendDB2B3.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/???/public_html/Sources/Packages.php on line 899

Do what I did. Edit that line out via FTP, install, and then edit it back in.
Title: Re: MCLegendII.1
Post by: Bulakbol on October 07, 2008, 04:24:30 PM
@XchrisX
Have you tried bros' advice?
Title: Re: MCLegendII.1
Post by: jamie-16 on October 07, 2008, 05:19:34 PM
hey am havin stuck with this i installed a new theme and i cant see it   :(

can some 1 help plz
Title: Re: MCLegendII.1
Post by: Bulakbol on October 07, 2008, 06:21:26 PM
Which theme are you using and what version of SMF?
Title: Re: MCLegendII.1
Post by: XchrisX on October 08, 2008, 01:02:52 PM
Quote from: JohnyB on October 07, 2008, 04:24:30 PM
@XchrisX
Have you tried bros' advice?

I will try now.
Title: Re: MCLegendII.1
Post by: edi67 on October 12, 2008, 09:53:33 AM
SOrry johnny but i triyng to install you mod in new smf 2.0 beta 4 version , the process of upgrading mod and installation seem to be ok but some second after installazion appear this:
Fatal error: packageinstall() [function.require]: Failed opening required '/membri/ediboard/Packages/temp/MCLegendDB2B3.php' (include_path='.:') in /membri/ediboard/Sources/Packages.php on line 899

and mod not work and seem to be not installed yet

you can help me ?
Title: Re: MCLegendII.1
Post by: bros on October 12, 2008, 12:49:12 PM
Quote from: edi67 on October 12, 2008, 09:53:33 AM
SOrry johnny but i triyng to install you mod in new smf 2.0 beta 4 version , the process of upgrading mod and installation seem to be ok but some second after installazion appear this:
Fatal error: packageinstall() [function.require]: Failed opening required '/membri/ediboard/Packages/temp/MCLegendDB2B3.php' (include_path='.:') in /membri/ediboard/Sources/Packages.php on line 899

and mod not work and seem to be not installed yet

you can help me ?

Look at what I did. Remove line 899 and the line before it (the code for that little block), install the mod, then add the lines back.
Title: Re: MCLegendII.1
Post by: edi67 on October 13, 2008, 03:11:24 AM
Quote from: bros on October 12, 2008, 12:49:12 PM
Quote from: edi67 on October 12, 2008, 09:53:33 AM
SOrry johnny but i triyng to install you mod in new smf 2.0 beta 4 version , the process of upgrading mod and installation seem to be ok but some second after installazion appear this:
Fatal error: packageinstall() [function.require]: Failed opening required '/membri/ediboard/Packages/temp/MCLegendDB2B3.php' (include_path='.:') in /membri/ediboard/Sources/Packages.php on line 899

and mod not work and seem to be not installed yet

you can help me ?

Look at what I did. Remove line 899 and the line before it (the code for that little block), install the mod, then add the lines back.

working perfectly ;) thx
Title: Re: MCLegendII.1
Post by: Bulakbol on October 14, 2008, 12:37:17 AM
That's great. I'll check my codes again when i have time. Sorry for the errors.
Title: Re: MCLegendII.1
Post by: TulE on October 14, 2008, 09:43:36 PM
Hi,

i instaled the Membergroup Color Legend II.2 but it don't appears.

Maybe it's because of the theme.
I use simple green theme.


Can you help me.
Title: Re: MCLegendII.1
Post by: tk2012 on October 18, 2008, 03:35:11 PM
JohnyB -

I went ahead and uploaded this package and received no errors.  But, when I hit INSTALL, the page went blank.  I go back into Browse Packages and it is listed as uploaded, but to Apply Mod.  I hit Apply Mod and the process continues in a loop like this after hitting INSTALL again the page goes blank.

Most of the other problems that I had the other day have been corrected with a fresh install of b4.0, but this one still won't work.  I'm going to do this mod manually and see what problems I receive, but wanted to know if you've heard of this previously?

I'm using default theme and b4.0

update:  in trying to do the edits manually, I came across one problem.  In the BoardIndex.template.php file, the file needed to search comes up twice in the file.  I went ahead and edited the first time it appears and uploaded the file.  It ended up working.

I don't know why it wouldn't install in the package manager.  It uploaded, passed the tests, but then went blank after hitting install and shoes up not applied.  Doing it manually worked for me!!
Title: Re: MCLegendII.1
Post by: Bulakbol on October 18, 2008, 10:39:44 PM
@tk2012
I am not sure why it happened like that. It could be a bad download.


I uploaded a new package and hopefully, the installtion error has been fixed.
Title: Re: MCLegendII.1
Post by: TulE on October 19, 2008, 11:21:05 AM
Johny here the attachment.
Title: Re: MCLegendII.1
Post by: hadesflames on October 20, 2008, 05:30:37 PM
Fatal error: require() [function.require]: Failed opening required '/home/hades/public_html/Packages/temp/mclegenddb114.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hades/public_html/Sources/Packages.php on line 552

is what i get on installation....smf version 1.1.6 and im using default theme
Title: Re: MCLegendII.1
Post by: Bulakbol on October 20, 2008, 08:11:12 PM
Sorry about that. I am going to update the package again. I am having a hard time.

<edit> Try the new package @hadesflames. </edit>
Title: Re: MCLegendII.1
Post by: jepot5 on October 20, 2008, 11:09:39 PM
Quote from: tk2012 on October 18, 2008, 03:35:11 PM
JohnyB -

I went ahead and uploaded this package and received no errors.  But, when I hit INSTALL, the page went blank.  I go back into Browse Packages and it is listed as uploaded, but to Apply Mod.  I hit Apply Mod and the process continues in a loop like this after hitting INSTALL again the page goes blank.

Most of the other problems that I had the other day have been corrected with a fresh install of b4.0, but this one still won't work.  I'm going to do this mod manually and see what problems I receive, but wanted to know if you've heard of this previously?

I'm using default theme and b4.0

update:  in trying to do the edits manually, I came across one problem.  In the BoardIndex.template.php file, the file needed to search comes up twice in the file.  I went ahead and edited the first time it appears and uploaded the file.  It ended up working.

I don't know why it wouldn't install in the package manager.  It uploaded, passed the tests, but then went blank after hitting install and shoes up not applied.  Doing it manually worked for me!!
Maybe a server problem.
Title: Re: MCLegendII.1
Post by: paulobraga on November 01, 2008, 07:10:05 AM
Good morning, I have this problem if somebody can help me?

thank you in advance and excuse my English


Theme= Extrem6
Title: Re: MCLegendII.1
Post by: Bulakbol on November 03, 2008, 10:00:47 PM
Here you go @paulobraga. Use this file after installing this mod.
Title: Re: MCLegendII.1
Post by: TulE on November 05, 2008, 01:40:38 PM
My theme don't supports the mod.
Can anyone help me.
Title: Re: MCLegendII.1
Post by: Bulakbol on November 06, 2008, 09:05:08 PM
@TulE
Are you still using "Simple Green" theme?
Title: Re: MCLegendII.1
Post by: Propaganistas on November 12, 2008, 03:15:32 PM
Hiya,

just sharing you that this mod also works for the theme Ancient and Rusted if you replace these codes in the install-1.x.xml

<!-- Themes/Aa_New_Damage/BoardIndex.template.php -->
<file name="$boarddir/Themes/Aa_New_Damage/BoardIndex.template.php" error="skip">


with these codes:

<!-- Themes/Ancient_and_Rusted/BoardIndex.template.php -->
<file name="$boarddir/Themes/Ancient_and_Rusted/BoardIndex.template.php" error="skip">


Of course you can also copy the part of Aa New Damage and then replace it with Ancient and Rusted. I've done this in the attached zip-file (only added Ancient and Rusted support in 1.x xml file and in Readme.txt)

Greetz
Propa
Title: Re: MCLegendII.1
Post by: Bulakbol on November 12, 2008, 05:53:44 PM
@Propaganistas
Thanks. I'll check the package.
Title: Re: MCLegendII.1
Post by: I AM Legend on November 13, 2008, 05:34:34 PM
Hi all,
I posted in support 1.1 and they directed me to here,
My forum version is 1.1.7
At the bottom of my forum in the Users Online, below that is the ranks, Admin, Global and so on, each rank has like this [Global Moderator] and a space, my question is how do i increase the space between them evenly?

my pic attachment is here:
http://www.simplemachines.org/community/index.php?action=dlattach;topic=274024.0;attach=75629;image

if needed, the mods installed on my forum are:
Mod Name     Version     
1.    Welcome Topic Mod    1.1    [ Uninstall ]
2.    Affiliates    1.1    [ Uninstall ]
3.    Admin Notepad    1.0    [ Uninstall ]
4.    MCLegendII.2    3.0    [ Uninstall ]
5.    SMF Staff Page    1.6    [ Uninstall ]
6.    Member Notepad    1.0    [ Uninstall ]
7.    Global Headers Footers    1.4.1    [ Uninstall ]
8.    Custom Copyright    1.1.5    [ Uninstall ]
9.    Member Color Link    3.0.5    [ Uninstall ]
10.    Disable Right click    2.0    [ Uninstall ]
11.    ColorizePost    2.0    [ Uninstall ]
12.    Images On Board    1.1    [ Uninstall ]
13.    AvatarOnBoard    2.1    [ Uninstall ]
14.    Sticky First Post (extends sticky topic)    1.3.2    [ Uninstall ]
15.    YouTube BBCode    2.3    [ Uninstall ]
16.    Hide Signatures for Guest    1.0    [ Uninstall ]
17.    Last Active On MemberList    1.01    [ Uninstall ]
18.    New Topic Button    1.0    [ Uninstall ]
19.    SimplePortal    2.0.2    [ Uninstall ]
20.    Lots_o_Smileys    1.0    [ Uninstall ]
21.    Add IP2Location to Track IP    1.1    [ Uninstall ]
22.    SMF Ranks    1.1    [ Uninstall ]
23.    SMF Archive    1.3    [ Uninstall ]
24.    Favorite drink    0.1    [ Uninstall ]
25.    Registration redirection    0.1    [ Uninstall ]
26.    Spoiler Tag    0.6    [ Uninstall ]
27.    JPG Thumbnails    1.0    [ Uninstall ]
28.    No More Ugly Avatar Scrollbars    1.0    [ Uninstall ]
29.    LogModAccountEdits    1.9    [ Uninstall ]
30.    Profil Moderator Managment    1.0.0    [ Uninstall ]
31.    E-Arcade    2.5.4    [ Uninstall ]
32.    SMF 1.0.15 / 1.1.7 Update    1.0

Thanks as always

Title: Re: MCLegendII.1
Post by: Kermit on November 13, 2008, 05:47:13 PM
@I AM Legend


you can try this


in BoardIndex.template.php

Code (find this) Select
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>



and to have more spaces between the membergroups,you should add that &nbsp;

also as an example




if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode(']&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[', $context['membergroups']) . ']</span>

Title: Re: MCLegendII.1
Post by: I AM Legend on November 13, 2008, 06:00:23 PM
thats awesome, ty very much
Title: Re: MCLegendII.1
Post by: Bulakbol on November 13, 2008, 07:40:26 PM
Thanks for the help Duncan85  :)
Title: Re: MCLegendII.1
Post by: Kermit on November 14, 2008, 02:16:30 AM
Your welcome  :P
Title: Re: MCLegendII.1
Post by: Triponic on November 14, 2008, 09:29:51 AM

Hi,

I installed the mod with no errors but it won't show up in the online status section at the bottom of my theme.I tried editing the settings on the 'Features and Options' page but nothing...also tried to edit the theme manually but couldnt find the codes. Im using SMF 1.1.7, tiny portal and the Anecdota theme. I've attached the respective file. If anyone could help me it would be much appreciated :)

Title: Re: MCLegendII.1
Post by: Bulakbol on November 14, 2008, 10:03:09 PM
@Triponic
Here yah go.
Title: Re: MCLegendII.1
Post by: Gonzalo on November 16, 2008, 09:10:00 AM
Che lo baje y lo subi como mod! lo instale pero no lo puedo ver en mi theme, ni cambiando de idioma, pero igual no tendria que aver problema ya que el mod trae el idioma que yo busco...

Si alguien me diria que modificaciones tengo que hacerle a mi theme se lo recontra agradeseria!

Este es mi theme...
http://www.dzinerstudio.com/index.php?action=tpmod;dl=item51

Saludos! GonZa.
Title: Re: MCLegendII.1
Post by: Bulakbol on November 16, 2008, 09:44:22 PM
@Gonzalo
Sorry amigo, no habla español. Please post in english.

In BoardIndex.template.php of your Outline theme, find
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
replace with
<td rowspan="3" class="windowbg" width="20" valign="middle" align="center">
Find
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.


replace with
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>
</td>
</tr>';
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
Title: Re: MCLegendII.1
Post by: TulE on November 18, 2008, 06:27:07 PM
Yap I am.
I like this theme.
Title: Re: MCLegendII.1
Post by: Bulakbol on November 19, 2008, 06:39:47 PM
@Tule
I think I told you what to edit but if you haven't done so, here's your edited BoardIndex.template.php.
Title: Re: MCLegendII.1
Post by: haito on November 28, 2008, 11:13:44 AM
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    MCLegendDB114.php    
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/BoardIndex.php    Test successful
4.    Execute Modification    ./Sources/MessageIndex.php    Test successful
5.    Execute Modification    ./Sources/ManageBoards.php    Test successful
6.    Execute Modification    ./Sources/Recent.php    Test failed
7.    Execute Modification    ./Sources/Stats.php    Test successful
8.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
9.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
10.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/default/index.template.php    Test successful
13.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
14.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
15.    Execute Modification    ./Themes/classic/index.template.php    Test successful
16.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
17.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
18.    Execute Modification    ./Themes/babylon/index.template.php    Test successful
19.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
20.    Execute Modification    ./Themes/default/languages/Modifications.german.php    Skipping file
21.    Execute Modification    ./Themes/default/languages/Modifications.italian.php    Skipping file
22.    Execute Modification    ./Themes/default/languages/Modifications.french.php    Skipping file
23.    Execute Modification    ./Themes/default/languages/Modifications.dutch.php    Skipping file
24.    Execute Modification    ./Themes/default/languages/Modifications.romanian.php    Skipping file

what happened with my recent.php?
Title: Re: MCLegendII.1
Post by: Bulakbol on November 28, 2008, 11:23:03 AM
@Haito
There seems to something wrong with the package you have. Please redownload the mod and reinstall. Let me know how things goes.
Title: Re: MCLegendII.1
Post by: haito on November 28, 2008, 11:35:36 AM
still........ :'(

1.     Execute Code     MCLegendDB114.php     
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/BoardIndex.php    Test successful
4.    Execute Modification    ./Sources/MessageIndex.php    Test successful
5.    Execute Modification    ./Sources/ManageBoards.php    Test successful
6.    Execute Modification    ./Sources/Recent.php    Test failed
7.    Execute Modification    ./Sources/Stats.php    Test successful
8.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
9.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
10.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/default/index.template.php    Test successful
13.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
14.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
15.    Execute Modification    ./Themes/classic/index.template.php    Test successful
16.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
17.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
18.    Execute Modification    ./Themes/babylon/index.template.php    Test successful
19.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
20.    Execute Modification    ./Themes/default/languages/Modifications.german.php    Skipping file
21.    Execute Modification    ./Themes/default/languages/Modifications.italian.php    Skipping file
22.    Execute Modification    ./Themes/default/languages/Modifications.french.php    Skipping file
23.    Execute Modification    ./Themes/default/languages/Modifications.dutch.php    Skipping file
24.    Execute Modification    ./Themes/default/languages/Modifications.romanian.php    Skipping file
Title: Re: MCLegendII.1
Post by: Bulakbol on November 28, 2008, 11:39:50 AM
@haito
I downloaded the package and checked it again. I am sure the mod does not touch Recent.php file. Where did you get your package?
Title: Re: MCLegendII.1
Post by: haito on November 28, 2008, 11:48:45 AM
this link... http://custom.simplemachines.org/mods/index.php?mod=1077
Title: Re: MCLegendII.1
Post by: Bulakbol on November 28, 2008, 11:58:31 AM
Please click this link then scroll the page down. You'll find out that there's no Recent.php in the package. I am not sure about your copy. Can you attach the package you are using?

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1077;attach=72903;smf_version=2.0_Beta_4

or this
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1077;attach=72903;smf_version=1.1.7
Title: Re: MCLegendII.1
Post by: haito on November 29, 2008, 06:32:44 AM
yeah...
Title: Re: MCLegendII.1
Post by: DownUnderCS on December 01, 2008, 06:47:35 PM
I'm having a problem with MCLegendII, but I can't find the official thread for it.

Basically, the mod is not responding to what I do. I've tried numerous times to set the order of the legend, but the order won't change.

I'm using SMF version 2.0 Beta 4.

Link: http://downundercs.tk
Title: Re: MCLegendII.1
Post by: Bulakbol on December 02, 2008, 06:56:43 PM
@haito
The package you attached does not have Recent.php in it. Please check it again.

@DownUnderCS
Your theme is supported. Not sure what happened though. You can attach your babylon/BoardIndex.template.php and I'll check it for you.
Title: Re: MCLegendII.1
Post by: aw06 on December 03, 2008, 02:56:19 PM
can you edit this for me ..

thanks
Title: Re: MCLegendII.1
Post by: Rhine on December 04, 2008, 04:48:11 PM
is it possible to sort users after the legend like if admin is first the admin which are online comes first and then next group etc?
Title: Re: MCLegendII.1
Post by: Bulakbol on December 04, 2008, 07:11:45 PM
@aw06
Here's your modified BoardIndex.template.php. Use this file after your installed the mod.

@Rhine
Go to Adimn => Features and Settings => Basic Features. You can arrange the group id numbers in "Membergroup legend display arrangement. text box. Enter 1 first before the other id number separated by comma.
Title: Re: MCLegendII.1
Post by: Rhine on December 05, 2008, 06:24:37 AM
I mean the who is online list to be order after the legend too.
Title: Re: MCLegendII.1
Post by: Bulakbol on December 05, 2008, 04:59:15 PM
Quote from: Rhine on December 05, 2008, 06:24:37 AM
I mean the who is online list to be order after the legend too.

Sorry, that's beyond the scope of this mod. You can request that as a mod to the Mod Request (http://www.simplemachines.org/community/index.php?board=79.0) board.
Title: Re: MCLegendII.1
Post by: TulE on December 08, 2008, 06:13:41 PM
Johny is there any way to make this working without changing the theme.
I have copyed the attachment into server and replaced the file but it don't works.
Title: Re: MCLegendII.1
Post by: Bulakbol on December 08, 2008, 08:04:00 PM
@TulE
Sorry, no. Every theme has their own BoardIndex.template.php so you have to edit your custom theme manually if it is not supported.  Do you need help?
Title: Re: MCLegendII.1
Post by: aw06 on December 09, 2008, 01:51:55 PM
Quote from: Bulakbol on December 04, 2008, 07:11:45 PM
@aw06
Here's your modified BoardIndex.template.php. Use this file after your installed the mod.

Does'nt show up  :-\
Title: Re: MCLegendII.1
Post by: Bulakbol on December 10, 2008, 04:30:26 PM
A link to your site will help me find the problem.
Title: Re: MCLegendII.1
Post by: holeski on December 13, 2008, 02:53:07 AM
I have read through and searched the tread so I hope I am not asking for info thats here somewhere and I just missed it.

I am using Sullen Madness theme and it doesn't look like there is a BoardIndex.template.php in themes for this. I found the ./Sources/ModSettings.php and ./Sources/BoardIndex.php fine.

Am I stupid, did I miss something or will it just not work with the Sullen Madness?

Title: Re: MCLegendII.1
Post by: Bulakbol on December 13, 2008, 04:10:38 PM
@holeski
If your custom theme does not have BoardIndex.template.php, then it uses the default one. (default/BoardIndex.template.php).
Title: Re: MCLegendII.1
Post by: holeski on December 13, 2008, 09:25:23 PM
Ok, I see. So I need to add this to the default theme since my theme reads off that instead of having its own. New at all this stuff. ;D

Thanks.
Title: Re: MCLegendII.1
Post by: Bulakbol on December 13, 2008, 09:27:29 PM
If you installed this mod via the Package Manager, then you don't have to edit the default/BoardIndex.template.php.
Title: Re: MCLegendII.1
Post by: holeski on December 14, 2008, 04:17:57 AM
Rock-n, works like a charm when I do it like that. Thanks
Title: Re: MCLegendII.1
Post by: Bulakbol on December 17, 2008, 01:07:58 AM
You're welcome holeski. I thank you too for using or trying this mod.
Title: Re: MCLegendII.1
Post by: .Vapor on December 29, 2008, 01:38:12 PM
Is it possible to use this mod with "Black Rain -V.2 (http://www.tinyportal.net/index.php/topic,18155.0.html)" theme?

Great mod by the way :) Thx for the help
Title: Re: MCLegendII.1
Post by: Bulakbol on December 30, 2008, 08:56:40 PM
@V@POR
Yes. Install the mod and then edit BoardIndex.template.php manually.
Code (find) Select
<td class="titlebg" colspan="2">', $txt[158], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">

Code (replace) Select
<td class="titlebg" colspan="2">', $txt[158], '</td>
   </tr><tr>
      <td colspan="2" class="windowbg" width="20" valign="middle" align="center">


Code (find) Select
// If they are logged in, but SP1 style information is off... show a personal message bar.
Code (replace) Select
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>
</td>
</tr>';

   // If they are logged in, but SP1 style information is off... show a personal message bar.
Title: Re: MCLegendII.1
Post by: foempspeedy on January 02, 2009, 01:48:07 PM
I am currently using 1.1.7 .
Does it work on that version and what i have to do for having it on darkit theme?
Plz assist

Thanks
Title: Re: MCLegendII.1
Post by: Bulakbol on January 03, 2009, 05:34:19 PM
@foempspeedy
Install this mod and then edit your darkit theme's  BoardIndex.template.php manually.
Code (find<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">) Select

Code (replace) Select
<td rowspan="3" class="windowbg" width="20" valign="middle" align="center">

Code (find) Select
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">

Code (replace) Select
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>
</td>
</tr>';
echo '
<tr>
<td colspan="2" class="windowbg2" width="100%">
Title: Re: MCLegendII.1
Post by: aw06 on January 13, 2009, 03:51:26 PM
can i make each member group clickable to regular members... ??
Title: Re: MCLegendII.1
Post by: Bulakbol on January 17, 2009, 04:01:10 PM
Sorry, no. Not in SMF version 1.1.7 unless you give them permission to "Moderate forum members" and "Manage and assign membergroups" which is not recommended.
Title: Re: MCLegendII.1
Post by: aw06 on January 17, 2009, 06:22:05 PM
Quote from: Bulakbol on January 17, 2009, 04:01:10 PM
Sorry, no. Not in SMF version 1.1.7 unless you give them permission to "Moderate forum members" and "Manage and assign membergroups" which is not recommended.

:P yup .. definately not recommended...
Title: Re: MCLegendII.1
Post by: Angie on Dialysis on January 22, 2009, 01:45:16 PM
Love this one but just wanted to comment that I wish that membergroups based on post count could just be put as members so mine would look like this:

[Administrator]  [Co-Admin]  [Global Moderator]  [Donator]  [Member] 

Instead of listing a long list of post ranks.

Is it possible for anything like that in the future? I have marked myself to be notified on any updates since I have put this one on my boards (Dilber MC theme) and it works! :)

Quote from: Sabre™ on February 05, 2008, 01:03:17 AM
Brilliant mod mate :)       Thanks.

I was wondering, if there is a way to have the groups based on post count, fall under one display member group.  Such as members.

eg. [Admin] [Global mod] [Moderator] [Members] <-- All other member groups.

I ask this, as I have many membergroups, and have to keep increasing them as the members hit larger post counts.

Your assistance would be greatly appreciated.  :)

If this cannot be done, then I thank you for taking the time to consider the thought.

Thanks  :)

Oh I see he made the same suggestion! And I see your response. I would like to see the Member listing simply link to mlist (members list) in general where as the other groups (staff) list to each corresponding group.

Don't know if that makes sense.
Title: Re: MCLegendII.1
Post by: Bulakbol on January 22, 2009, 09:33:58 PM
If you want to add [Members] to the group legend without color, edit your (SMF version 1.1.7) default/BoardIndex.template.php and find
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>

Code (replace) Select
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']
', $context['allow_memberlist'] ? '&nbsp;[<a href="'. $scripturl. '?action=mlist">' . $txt[331] . '</a>' : '', ']</span>

Title: Re: MCLegendII.1
Post by: Angie on Dialysis on January 23, 2009, 04:32:39 PM
Not sure you understand, I want colour but want Members just to encompass all the post count related member groups (non-staff). Will that code do that? On my board normal members are just green and staff are as my previous post how I posted it. 

My fiance (Sandmansa) does the coding for me so I will show him this post thanks.
Title: Re: MCLegendII.1
Post by: Bulakbol on January 25, 2009, 08:03:03 PM
@Angie of AKC
Let me know how things goes.
Title: Re: MCLegendII.1
Post by: Sandmansa on January 25, 2009, 09:18:55 PM
This is going to take some explaining so please bare with me.

What Angie is saying is that we have installed MCLegendII.2 mod and it is working prefectly.  But the thing is, she has a post count based member group that she doesn't want to list all of them seporately.  She wants to list them all as one member group, ie: Members.

Would we have to move all her members that are in this post count based member group into staff member group with general access or is there a way to configure this plugin so that everyone who is in the post count member group be sorted as one simple member?
Title: Re: MCLegendII.1
Post by: codnerd on January 26, 2009, 10:35:19 AM
I cannot get it in my BoardIndex.Template.php correctly. Can someone try to do it for me?
Title: Re: MCLegendII.1
Post by: Bulakbol on January 26, 2009, 02:47:05 PM
@Sandmansa
Did you try the code I gave to Angie Of AKC?

@codnerd
I want to test the BoardIndex.template.php after modifying it. Is this from the default theme?
Title: Re: MCLegendII.1
Post by: codnerd on January 26, 2009, 03:08:22 PM
It is from the template called Urban by DzinerStudio. Here is my site: CustomCoD.com.

Bulakbol, can you PM me with a way I can contact you via Messanger, such as MSN, XFire, Skype or so on. (very important)
Title: Re: MCLegendII.1
Post by: Bulakbol on January 26, 2009, 03:38:16 PM
Sorry, I do not use any kind of instant messenger. I can edit your BoardIndex.template without your custom theme. Just let me know if my edits break the layout though.
Title: Re: MCLegendII.1
Post by: Mraza on January 26, 2009, 04:51:40 PM
johnny boy  8)   how are you

i love your  mod but the problem is i can install it on my default theme but if i will edit my BoardIndex.Template.php of custom theme its making mess inside my picture is going out...please johnny if you can do this for me  :) thanks in advance i am attaching my file this is cargo theme from DzinerStudio

Title: Re: MCLegendII.1
Post by: Bulakbol on January 26, 2009, 07:12:17 PM
@mraza
Here's your modified BoardIndex.template.php. Let me know if there's problem.
Title: Re: MCLegendII.1
Post by: Mraza on January 26, 2009, 07:28:36 PM
Quote from: Bulakbol on January 26, 2009, 07:12:17 PM
@mraza
Here's your modified BoardIndex.template.php. Let me know if there's problem.

:) ;) :D ;D 8) :P rock man its' working great thank you very much... now just one thing i don't know if you can help me in this or i need to start any other post..in my admin panel>membergroub i can select administrator & global moderator but i can't select moderator i mean its not clickable. so i can not add any user to it..can you do something for this rock star johnnyB 8)
Title: Re: MCLegendII.1
Post by: Bulakbol on January 26, 2009, 07:39:52 PM
No, you can't add a board moderator to the membergroup.
The Moderator membergroup is a special membergroup. Permissions and settings assigned to this group apply to moderators but only on the boards they moderate. Outside these boards they're just like any other member.
Title: Re: MCLegendII.1
Post by: Sandmansa on January 27, 2009, 07:42:24 PM
Quote from: Bulakbol on January 26, 2009, 02:47:05 PM
@Sandmansa
Did you try the code I gave to Angie Of AKC?

I did just now and that worked out nicely.  Thanks again man.
Title: Re: MCLegendII.1
Post by: Bulakbol on January 27, 2009, 08:00:28 PM
@Sandmansa
Cool. Good to hear. You're welcome.
Title: Re: MCLegendII.1
Post by: oni_FFM on February 03, 2009, 04:02:38 PM
hi, thanks for your mod.
my forum uses Dilber MC theme, i can add custom member group but with the same color.
  1. how can i define custom color for each group?
  2. What happens when a member belongs to 2 member groups? which color he has?

thanks in advance
Title: Re: MCLegendII.1
Post by: Bulakbol on February 06, 2009, 01:56:49 AM
@oni_FFM
1. You have to enter a color when you create or edit a group.
2. The forum will use the regular groups color (admin, moderators, etc.). Not sure if that's the right answer to your question.
Title: Re: MCLegendII.1
Post by: oni_FFM on February 07, 2009, 05:54:15 PM
@Bulakbol what do you mean "enter a color when you create or edit a group"
in Admin -> Members -> Membergroups -> Edit or Addmembergroup
i didn't see any text field, where i can define a color for my group.
Title: Re: MCLegendII.1
Post by: Sandmansa on February 08, 2009, 01:07:18 AM
Admin - > Membergroups - > Edit Membergroups.  Each membergroup has an option to edit it with the "Modify" feature.  In the "Color in online list:" line, you can use most basic colors by name, such as red, yellow, green or blue.  Or you can use HTML color codes.  Hope that helps.
Title: Re: MCLegendII.1
Post by: oni_FFM on February 08, 2009, 08:55:43 AM
thanks Sandmansa, it works fine
thanks again for so a nice mod
Title: Re: MCLegendII.1
Post by: Kimmen on February 09, 2009, 10:07:22 PM
Hey.

Is there anyone that can help me modify my boardindex.template.php ? I have installed this mod and all went splendid, except that i have a custom theme. i don't really know how to edit this, so if anyone can configure my file, i would be happy.

I have also another wish, is it possible to make the membergroup and members online with bold written? This way all members shown in useronline have bold written and same for membergroups.

Thanks
Kimmen
Title: Re: MCLegendII.1
Post by: Bulakbol on February 09, 2009, 10:33:37 PM
@Sandmansa
I appreciated the help. Thanks.

@Kim Arne
Which custom theme are you using?
Title: Re: MCLegendII.1
Post by: Kimmen on February 10, 2009, 08:37:26 AM
I'm using Invazion TP.

Here is my site: http://www.theoaps.co.uk/index.php
I'm running SMF 1.1.8 & TP 1.0.5
Title: Re: MCLegendII.1
Post by: Bulakbol on February 17, 2009, 04:53:48 PM
I'll update my mods first Kim, then I'll edit your Invasion's BoardIndex.template.php. Attach the file to your next post and remind me after couple of days.
Title: Re: MCLegendII.1
Post by: Kimmen on February 17, 2009, 06:02:25 PM
Here it is.

Will remind you yes.
Title: Re: MCLegendII.1
Post by: Bulakbol on February 18, 2009, 11:51:43 PM
@Kim Arne
Here's your edited invasion BoardIndex.template.php. Use it after you install this mod.
Title: Re: MCLegendII.1
Post by: Kimmen on February 19, 2009, 11:10:24 AM
Thanks, it works  :)
Title: Re: MCLegendII.1
Post by: FFSFFS on February 27, 2009, 09:53:15 PM
Quote from: Bulakbol on December 30, 2008, 08:56:40 PM
@V@POR
Yes. Install the mod and then edit BoardIndex.template.php manually.
Code (find) Select
<td class="titlebg" colspan="2">', $txt[158], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">

Code (replace) Select
<td class="titlebg" colspan="2">', $txt[158], '</td>
   </tr><tr>
      <td colspan="2" class="windowbg" width="20" valign="middle" align="center">


Code (find) Select
// If they are logged in, but SP1 style information is off... show a personal message bar.
Code (replace) Select
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>
</td>
</tr>';

   // If they are logged in, but SP1 style information is off... show a personal message bar.



I'm currently using the BlackRainv2 theme for 2.0 and I cannot find the above passage in the boardindex - not sure if it different with smf2.0?

Thanks.
Title: Re: MCLegendII.1
Post by: Bulakbol on March 02, 2009, 10:05:55 PM
@FFSFFS
The BlackRainV220rc1 does not have its own BoardIndex.template.php. It uses the default Boardindex.template.php so if this mod was installed without error, it should work with your your custom theme.
Title: Re: MCLegendII.1
Post by: randommaker on March 22, 2009, 08:47:12 PM
I have installed the mod
I added a few more member groups
but it only seems to show 7 of them on the default them
Can anyone help me please?
Title: Re: MCLegendII.1
Post by: Bulakbol on March 28, 2009, 02:01:09 PM
Quote from: randommaker on March 24, 2009, 07:29:54 PM
I would appreciate some help!

For version 1.1.8, go to Admin => Features and Options and in the text box of "Membergroup legend display arrangement.", enter the group id's. Separate the id's with comma. Ex. 1,2,8,7,6,5,4. Add the new group id.
Title: Re: MCLegendII.1
Post by: Autumn13 on April 04, 2009, 01:35:10 PM
QuoteYou have to add ids of your new member groups to the Admin > Features and Options > Membergroup legend display arrangement setting.

Above quote was from my other thread. I was redirected to this thread, though I am using MCLegendII.2

I completely uninstalled the mod from my server, then reinstalled it. In my Features and Options, I do not have a tab at all for Membergroup Legend display. I have the Member Color Link..but that is for a different mod.

I supposedly need to assign my new membergroups an ID so they show up in the legend, but not sure how.

Would really appreciate some help.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 05, 2009, 04:49:44 AM
@Autumn13
No, this mod does not have its own tab. Go to Admin => Features and Options and abouth 12th checkbox, you'll find the text box of "Membergroup legend display arrangement." and it has 1,2,8,7,6,5,4 in it. That's where you add your new membergroup id.
Title: Re: MCLegendII.1
Post by: Mraza on April 06, 2009, 10:37:58 AM
hello JohnnyBro i am again in trouble with this mod. i installed it correctly on cargo theme but when i put to show like 1,3,2 in my admin panel...the picture of the left is is going all over the page and it's going all out please can you check my file i am attaching thanks...
Title: Re: MCLegendII.1
Post by: Bulakbol on April 07, 2009, 12:19:01 AM
@mraza
The grouplegend is fine at my end. Maybe there's something wrong somewhere. I don't use the mods that you installed so I can't check your entire file. Sorry.
Title: Re: MCLegendII.1
Post by: 6aro on April 07, 2009, 04:04:04 AM
Bulgarian translation for this mod

$helptxt['featuresettings'] = '<b>Редактиране на функциите и опциите</b><br />

$ helptxt [ 'arrange_mclegend'] = 'Подредете на дисплея вашата цветова легенда на потребителските групи. Въведете идентификационните номера на групите като ги отделите със запетая. Не слагайте запетая след последния номер. (т.е. 1,2,8,7,6,5,4). <br> За да се включи показването, трябва да се прекрати "Show group key on board index" от Admin -> Current Theme, under Theme Settings tab.';
Title: Re: MCLegendII.1
Post by: Bulakbol on April 07, 2009, 05:00:25 AM
Quote from: 6aro on April 07, 2009, 04:04:04 AM
Bulgarian translation for this mod

$helptxt['featuresettings'] = '<b>Редактиране на функциите и опциите</b><br />

$helptxt [ 'arrange_mclegend'] = 'Подредете на дисплея вашата цветова легенда на потребителските групи. Въведете идентификационните номера на групите като ги отделите със запетая. Не слагайте запетая след последния номер. (т.е. 1,2,8,7,6,5,4). <br> За да се включи показването, трябва да се прекрати "Show group key on board index" от Admin -> Current Theme, under Theme Settings tab.';


Thanks 6aro. I'll include the Bulgarian language translation soon. Can you provide the Bulgarian language translation for the ManageSettings.bulgarian.php too?
$txt['arrange_mclegend'] = '<span style="color: blue;">Membergroup legend display arrangement.</span><br /><span class="smalltext">(Must be separated by comma. i.e. 1,2,8,7,6,5,4)</span>';
Please use the code box next time?   :)
Title: Re: MCLegendII.1
Post by: 6aro on April 07, 2009, 07:21:45 AM
....
Quote

Thanks 6aro. I'll include the Bulgarian language translation soon. Can you provide the Bulgarian language translation for the ManageSettings.bulgarian.php too?
$txt['arrange_mclegend'] = '<span style="color: blue;">Membergroup legend display arrangement.</span><br /><span class="smalltext">(Must be separated by comma. i.e. 1,2,8,7,6,5,4)</span>';
Please use the code box next time?   :)


Yes!

$txt['arrange_mclegend'] = '<span style="color: blue;">Подредба на легендата на потребителските групи.</span><br /><span class="smalltext">(Трябва да са разделени със запетая. т.е. 1,2,8,7,6,5,4)</span>';
Title: Re: MCLegendII.1
Post by: Bulakbol on April 08, 2009, 01:54:00 AM
@6aro
I thank you so much but unfortunately, my text editor cannot recognize the foreign characters. It displays lots of question marks. (?????). If I can get the right configuration for my text editor (notepad++), I will try to add the Bulgarian language again. I'm sorry. I thank you for understanding.
Title: Re: MCLegendII.1
Post by: 6aro on April 08, 2009, 07:19:00 AM
Sory, my mistake! I converted all text to UTF-8 with Notepad++. I hoop this time everything is ok!



$txt['arrange_mclegend'] = '<span style="color: blue;">Подредба на легендата на потребителските групи.</span><br /><span class="smalltext">(Трябва да са разделени със запетая. т.е. 1,2,8,7,6,5,4)</span>';





$helptxt['featuresettings'] = '<b>Редактиране на функциите и опциите</b><br />

$helptxt [ 'arrange_mclegend'] = 'Подредете на дисплея вашата цветова легенда на потребителските групи. Въведете идентификационните номера на групите като ги отделите със запетая. Не слагайте запетая след последния номер. (т.е. 1,2,8,7,6,5,4). <br> За да се включи показването, трябва да се прекрати "Show group key on board index" от Admin -> Current Theme, under Theme Settings tab.';


Title: Re: MCLegendII.1
Post by: gameballa on April 08, 2009, 10:09:16 AM
is there anyway to show the all the groups on one page like

http://www.simplemachines.org/community/index.php?action=groups

Title: Re: MCLegendII.1
Post by: Bulakbol on April 09, 2009, 05:26:24 PM
@6aro
Thanks again 6aro. That one works. One more question tho. Is is like this? The red in color.
Quote<file name="$languagedir/ModSettings.bulgaria.php" error="skip">

@gameballa
Sorry. Version 2.0 RC1 does that but not the 1.1.8.
Title: Re: MCLegendII.1
Post by: 6aro on April 10, 2009, 12:36:13 PM
Quote from: Bulakbol on April 09, 2009, 05:26:24 PM
@6aro
Thanks again 6aro. That one works. One more question tho. Is is like this? The red in color.
Quote<file name="$languagedir/ModSettings.bulgaria.php" error="skip">
...

No! To Bulgarian language file is ModSettings.bulgarian.php
Title: Re: MCLegendII.1
Post by: Bulakbol on April 11, 2009, 03:01:20 AM
@6aro
That's what I thought.  :D Thanks again. I will update the package tomorrow.
Title: Re: MCLegendII.1
Post by: sammywantsya on April 15, 2009, 04:09:44 PM
N/m guys little reading won't hurt at all you guys helped me so much thanks :)
Title: Re: MCLegendII.1
Post by: Gantry on April 15, 2009, 08:45:54 PM
Okay I did a bit of testing, and as I understand it, this should not be so:

I have a global moderator membergroup colour #3469b9 (lets call it blue), not based off posts, group #2.
I have a founding member membergroup colour #009999 (lets call it cyan), not based off posts, group #10.

From reading a previous post here, it was said that if someone is in 2 membergroups such as the above, it should default them to the primary membergroup colour, which in this case is the global moderator group in blue.  However, the people who are members in both groups are defaulting to founding member, cyan.

I would like them to default to the higher-ranked position.  I tried switching the display order in the "Membergroup legend display arrangement" box but that didn't have any effect either.  Am I doing something wrong, did I misread the previous post that stated this, or is this a bug? What I would like is for the people's names to show up in blue, to reflect their global moderator status. Thanks!
Title: Re: MCLegendII.1
Post by: futeball on April 16, 2009, 01:08:05 AM
Just download MCLegendII RC 1. But, during installation using package manager, after click "Apply Mod" have error like this:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Im using version 1.1.6. What's the problem? Tq in advance.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 17, 2009, 11:12:35 AM
@Gantry
This mod default to primary group. A member can not have two primary groups. The other one should be additional group.


@futeball
The MCLegendII.2_RC1.zip  is only for SMF version 2.0 RC1. For 1.1.8 version, download the MCLegendII.2.zip package.
Title: Re: MCLegendII.1
Post by: Gantry on April 18, 2009, 03:33:53 AM
Quote from: Bulakbol on April 17, 2009, 11:12:35 AM
@Gantry
This mod default to primary group. A member can not have two primary groups. The other one should be additional group.

Okay, this didn't really help me, so I did some more research and discovered that if I (as administrator) just go into the member's profile, choose Account Related Settings, in there I can choose his Primary Membergroup.  I set it back to Global Moderator, and now he appears in the correct colour.

:)
Title: Re: MCLegendII.1
Post by: Bulakbol on April 19, 2009, 12:03:55 PM
I gave you the fact so I helped you.  :D
Title: Re: MCLegendII.1
Post by: lethal1320.com on April 19, 2009, 11:55:43 PM
Can you edit my boardindex.template file?

I had this edited and working for a long time, and I had to repair the site due to hosting error. Now for some reason I can not remember how i did it.  ::)

Thanks

*edit*

You can disregaurd this, I got some sleep and woke up refreshed and got the job done.  Great mod!

Thanks again.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 21, 2009, 12:52:21 AM
@lethal1320.com
I know you can do it.  Yes, a good sleep and a shower will make you fresh.  :D
Title: Re: MCLegendII.1
Post by: Blinker on April 26, 2009, 01:35:57 AM
Hi Bulakbol

I installed your mod on 1.1.8 and everything works well.

A couple of questions though:

1. I wanted to change the brackets to the membergroup colour. I followed this post http://www.simplemachines.org/community/index.php?topic=219437.msg1713183#msg1713183 carefully and now the brackets are gone altogether! They're not white or coloured, they're just gone!

2. I use a mod that shows Users Online in the Last 24 Hours and I wanted to have your mod appear under that list ie: at the very bottom, rather than under the users currently online list. Is that possible? I can upload my boardindex.template.php from my custom theme if you need to have a look.

Thanks in advance.
Title: Re: MCLegendII.1
Post by: Bulakbol on April 26, 2009, 05:43:49 AM
@Blinker
I will advice the same thing but let's try again. In Sources/BoardIndex.php
Code (find) Select
if (allowedTo('moderate_forum'))
$link = '<a href="'. $scripturl . '?action=membergroups;sa=members;group='. $row['ID_GROUP']. '" style="color: '. $row['onlineColor']. ';">'. $row['groupName']. '</a>'; 
else
$link = !empty($row['onlineColor']) ? '<span style="color: '. $row['onlineColor']. ';">'. $row['groupName']. '</span>' : $row['groupName'];

Code (replace) Select
if (allowedTo('moderate_forum'))
$link = '<a href="'. $scripturl . '?action=membergroups;sa=members;group='. $row['ID_GROUP']. '" style="color: '. $row['onlineColor']. ';">['. $row['groupName']. ']</a>'; 
else
$link = !empty($row['onlineColor']) ? '<span style="color: '. $row['onlineColor']. ';">['. $row['groupName']. ']</span>' : '[' . $row['groupName'] . ']';


and in default/BoardIndex.template.php,
Code (find) Select
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>
Code (replace) Select
<span class="smalltext">' . implode('&nbsp;&nbsp;', $context['membergroups']) . '</span>
Title: Re: MCLegendII.1
Post by: Blinker on April 26, 2009, 07:27:55 AM
Worked like a charm this time, thanks Bulakbol. :)

Any ideas on my second question. I use the other mod - http://custom.simplemachines.org/mods/index.php?mod=479, not UOT.
Title: Re: MCLegendII.1
Post by: allymcbeal on April 28, 2009, 06:09:03 PM
Hi, I have installed this mod.
In my theme I don't have this file "Themes/..../languages/ModSettings.english.php" so I don't  made the modify, but it works, is important to have that file?
Title: Re: MCLegendII.1
Post by: Blinker on April 28, 2009, 09:30:52 PM
Not to worry. Most custom themes use or fall back to the files from the default theme.
Title: Re: MCLegendII.1
Post by: allymcbeal on April 29, 2009, 07:56:19 AM
Ok, thank you, It works great! thank for the mod.
Title: Re: MCLegendII.1
Post by: arockets on May 13, 2009, 10:57:01 AM
This mod is great, thanks!

I have 2 questions:

1.  I went through the posts here to see if I could find the answer myself, but was unsuccessful.  Where do I look to find the group ID's?

2.  Is it possible to make them bold type?
Title: Re: MCLegendII.1
Post by: Bulakbol on May 13, 2009, 04:58:22 PM
@Blinker
Sorry, I have no time to look at the mod you are using.


@arockets
Go to Admin => Membergroups, then hover your mouse over the name of your membergroup. In your browser's status bar at the bottom of your browser, if you hover your mouse over the Administrator group, you'll see something like ... sa=members;groups=1.

To make the legend bold, edit your default/BoardIndex.template.php.
Code (find) Select
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>
Code (replace) Select
<span class="smalltext">[<b>' . implode('</b>]&nbsp;&nbsp;[<b>', $context['membergroups']) . '</b>]</span>
Title: Re: MCLegendII.1
Post by: MDragon on May 18, 2009, 05:06:52 PM
I do not seem to have this:

"Admin -> Features and options -> Membergroup legend display arrangement"

in my options.  Once I get to Features and Options I cannot find "Membergroup legend display arrangement"

The mod works but I'm unable to edit to add new membergroups because I don't have this option.
Title: Re: MCLegendII.1
Post by: Bulakbol on May 20, 2009, 05:49:18 AM
@MDragon
Version 1.1.8. Open your Sources/ModSettings.php and look for
// Stats, compression, cookies.... server type stuff.
Before that line, there should be
// MCLegendII
array('text', 'arrange_mclegend'),
'',


Make sure those lines exist.
Title: Re: MCLegendII.1
Post by: Roger Rabbit on June 02, 2009, 04:05:04 AM
good i'm using mystic jade themes and i checked the one you have mentioned above and is exist...however, i can't still find word "Membergroup legend display arrangements".

Thanks in advance.


nevermind about my question...i found the solution....

thanks for this great mod... ;)
Title: Re: MCLegendII.1
Post by: musicmad10 on June 03, 2009, 07:29:22 AM
Quote from: Bulakbol on May 20, 2009, 05:49:18 AM
@MDragon
Version 1.1.8. Open your Sources/ModSettings.php and look for
// Stats, compression, cookies.... server type stuff.
Before that line, there should be
// MCLegendII
array('text', 'arrange_mclegend'),
'',


Make sure those lines exist.
hi i have the same problem as McDragon, and I've checked for those lines in the modsettings.php and they are there. is there any other way of editing this mod?
Also should the usernames be in colour when people post on the forum? because thats not happening for me?
Title: Re: MCLegendII.1
Post by: Bulakbol on June 05, 2009, 03:49:09 AM
@Roger Rabbit
8) Congratz!

@musicmad10
I am not sure what causes not to show up. Maybe the readme file is incorrect. Go to Admin -> Features and options -> Basic Features. Then look for Membergroup legend display arrangement. text box.
Regarding the member colors, install this mod.
Member Color Link (http://custom.simplemachines.org/mods/index.php?mod=111)
Title: Re: MCLegendII.1
Post by: Diamond1444 on June 06, 2009, 01:22:28 PM
Can someone please tell me how I can get this to work with the Default Multi Colour Theme?
Title: Re: MCLegendII.1
Post by: Bulakbol on June 06, 2009, 03:30:26 PM
@Diamond1444
Did you try to install this mod? What files failed the search test? If no errors, then all you have to do is a simple edit to your theme's BoardIndex.template.php.
Title: Re: MCLegendII.1
Post by: Diamond1444 on June 06, 2009, 04:33:10 PM
It installed fine and it works on the Core theme.  I don't know what to edit in the template.  If you can tell me, I'll sure try.  Thanks!
Title: Re: MCLegendII.1
Post by: Bulakbol on June 06, 2009, 04:45:03 PM
Edit the BoardIndex.template.php of your theme manually.
Title: Re: MCLegendII.1
Post by: Diamond1444 on June 06, 2009, 05:19:51 PM
But what am I taking out or putting in?  That's where I'm confused.  Sorry.
Title: Re: MCLegendII.1
Post by: Bulakbol on June 06, 2009, 05:32:46 PM
@Diamond1444
You can compare the code here.
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1077;attach=72903;smf_version=1.1.8

If you need assistance, attach the file in question and we'll see what we can do.
Title: Re: MCLegendII.1
Post by: Diamond1444 on June 06, 2009, 06:17:38 PM
Oh, if you could I would really appreciate it!  I just can't find it - and I can't find the line to modify to make it bold either.  If you can help that would be wonderful.  Thank you!
Title: Re: MCLegendII.1
Post by: Bulakbol on June 06, 2009, 07:23:20 PM
@Diamond1444
Your edited BoardIndex.template.php is attached. Use this file after installation. Make a backup of the original file first.
Title: Re: MCLegendII.1
Post by: Diamond1444 on June 06, 2009, 08:16:00 PM
Thank you so much!!! :D
Title: Re: MCLegendII.1
Post by: mquin on June 15, 2009, 10:45:57 AM
It seems that this mod only works on certain themes, i'm using "Uncomplicated v1", and it doesn't show the legend at the bottom, any help to add it to the current theme?

Thanks,

Mquin
Title: Re: MCLegendII.1
Post by: Kyzer on June 15, 2009, 04:11:03 PM
Could you tell me how to install this mod on the World of Warcraft (http://custom.simplemachines.org/themes/index.php?lemma=1626) Theme?
Title: Re: MCLegendII.1
Post by: Bulakbol on June 17, 2009, 02:34:01 AM
@Diamond1444
You are welcome. Thank you too for using/trying this mod.

@mquin and Kyzer
Go to Admin => Current Theme => Themes Settings, then disable (untick checkbox) Show group key on board index.

@mquin
Version 2.0 RC1 theme. In your BoardIndex.template.php,
Code (find) Select
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))

echo '

<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';

Code (replace) Select
if (!empty($context['membergroups']))
echo '<div style="padding-top: 2px; margin-top: 2px; border-top: 1px solid #c6c6c6;">
[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']', '</div>';




@Kyzer
Version 2.0 RC1 theme. Go to package manager, click on the MCLegendII RC1 [Install] link, scroll down the page, if test are successful, tick the checkbox for World Of Warcraft. Click [Install Now] button.
Title: Re: MCLegendII.1
Post by: Narheru on July 03, 2009, 06:23:42 PM
Hello^^!
I want to install this mod on theme Outline 115. How can I do it?
I have SMF 1.1.9
Title: Re: MCLegendII.1
Post by: [Core] on July 03, 2009, 06:35:16 PM
Nice mod
Title: Re: MCLegendII.1
Post by: Bulakbol on July 04, 2009, 12:51:57 PM
@Chocozell
You have to edit your BoardIndex.template.php manually.
Code (find) Select
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
Code (replace) Select
<td rowspan="3" class="windowbg" width="20" valign="middle" align="center">

Code (find) Select
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '

</div>

</td>

</tr>

Code (replace) Select
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '

</div>

</td>

</tr>';
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>
</td>
</tr>';

echo '



@[<Sharp>]
Thanks for the compliment. :)
Title: Re: MCLegendII.1
Post by: Narheru on July 04, 2009, 06:39:01 PM
Thank You Bulakbol!
Title: Re: MCLegendII.1
Post by: Narheru on July 05, 2009, 10:32:17 AM
Re-Hello!
I have an other question.
I want to install this mod also on imPulse Theme (http://custom.simplemachines.org/themes/index.php?lemma=11579)? How can I do it?
Title: Re: MCLegendII.1
Post by: Bulakbol on July 07, 2009, 10:38:33 PM
@Chocozell
You're welcome. imPulse theme for 1.1.9 by Bloc does not have its own BoardIndex.template.php so, just install this mod and you are all set.
Title: Re: MCLegendII.1
Post by: souljaa on July 23, 2009, 05:24:53 PM
Thanks for this great mod!
Love it :)..But just a quick question, I've tried manually modifying the BoardIndex.template.php several times, but nothing seems to be showing up :s...I'm using the kelo-lt114_v3 theme.
www.forumbeats.net is my site
Are there any other files I'm supposed to be modifying?
Thanks!
Souljaa
Title: Re: MCLegendII.1
Post by: Bulakbol on July 25, 2009, 07:34:26 AM
@souljaa
If you tried harder, you'll get it right. Maybe you actually didn't :)  Attach your BoardIndex.template.php and I'll tell you what to edit.
Title: Re: MCLegendII.1
Post by: CesarManara on July 28, 2009, 03:19:16 PM
Language portuguese_brazilian on SMF 2.0 RC1.2.

Help.portuguese_brazilian.php
Code (Find) Select
$helptxt['featuresettings'] = '<b>Editar Recursos e Opções</b><br /> Existem diversos recursos nesta seção que podem ser mudados de acordo com a sua preferência.';
Code (Add Before) Select
$helptxt['arrange_mclegend'] = 'Para organizar a exibição da legenda de cores dos seus grupos de membros, digite o ID do grupo, os IDs devem ser separados por vírgula. Não colocar vírgula após o último número. (Exemplo: 1,2,8,7,6,5,4).<br />Para ativar a exebição, desligue a opção &quot;Exibir chave do grupo na index do fórum&quot; em Administrar --> Configuração do Fórum --> Configurações do Tema Atual.';

ManageSettings.portuguese_brazilian.php
Code (Find) Select
?>
Code (Add Before) Select
$txt['arrange_mclegend'] = '<span style="color: blue;"> Arrumação da legenda de grupos.</span><br /><span class="smalltext">(tem que estar separada por vírgula. Ex: 1,2,3,4,5.</span><br /><span class="smalltext">Para ativar a exebição, desligue a opção &quot;Exibir chave do grupo na index do fórum&quot; em Administrar --> Configuração do Fórum --> Configurações do Tema Atual.</span>';
Title: Re: MCLegendII.1
Post by: Bulakbol on July 28, 2009, 10:05:26 PM
@CesarManara
Thanks for the language translation. I will add the language to the next update.
Title: Re: MCLegendII.1
Post by: Roger Rabbit on July 29, 2009, 03:03:10 AM
hi bulakbol...i tried this mod and it's awesome...good job...

btw, i want to ask  on how to replacte the bracket "[]" to "|" i.e. "[Admin] [Global Moderator]" to "Admin | Global Moderator"

Thanks in advance... :-p
Title: Re: MCLegendII.1
Post by: Bulakbol on July 29, 2009, 05:16:21 AM
@Roger Rabbit
BoardIndex.template.php, find
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>

and replace with
<span class="smalltext">' . implode('&nbsp;|&nbsp;', $context['membergroups']) . '</span>
Title: Re: MCLegendII.1
Post by: devil_jin on July 29, 2009, 04:11:05 PM
To begin with the MOD is really cool I really like it a lot ... thanks   :)

Also is there any way to get the legend in a new table below the Users Online...

Thanks a lot in advance..

:)




Title: Re: MCLegendII.1
Post by: Bulakbol on July 31, 2009, 10:19:53 PM
Yes you can. Just move the block down. BoardIndex.template.php
Code (find) Select
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>
</td>
</tr>';


then move just above this line. Assuming that you are using the default theme SMF vrsion 1.1.10.
// If they are logged in, but SP1 style information is off... show a personal message bar.
Title: Re: MCLegendII.1
Post by: devil_jin on August 01, 2009, 03:59:19 PM
Quote from: Bulakbol on July 31, 2009, 10:19:53 PM
Yes you can. Just move the block down. BoardIndex.template.php
Code (find) Select
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>
</td>
</tr>';


then move just above this line. Assuming that you are using the default theme SMF vrsion 1.1.10.
// If they are logged in, but SP1 style information is off... show a personal message bar.

Oh Iam so sorry I forgot to mention I am using SMF 2.0 RC 1.2 and The Carbon Orange theme by Shortie..

Can you please suggest the codes for it; because I checked and they are different that what you suggested and also for the same I would like to change the bracket color to the member group color.

Thanks
Title: Re: MCLegendII.1
Post by: Bulakbol on August 01, 2009, 05:49:12 PM
@devil_jin
Sorry, I can't find the Carbon Orange theme. Do you have a link to the theme?
Title: Re: MCLegendII.1
Post by: devil_jin on August 01, 2009, 05:56:55 PM
Here's the link but I guess you will have to login to D/l it..

Click Me (http://graphicsmayhem.com/GMForum/index.php/topic,649.0.html)
Title: Re: MCLegendII.1
Post by: Bulakbol on August 01, 2009, 06:05:04 PM
@devil_jin
Sorry, I't not from the mod site so I am not downloading anything from anywhere. Attach your BoardIndex.template.php and I'll shoot in the dark.  :P
Title: Re: MCLegendII.1
Post by: devil_jin on August 01, 2009, 06:17:31 PM
Np here's my Boasrdindex.template.php and the Carbon Orange theme..

Thanks for the quick reply and your kind help..

:)
Title: Re: MCLegendII.1
Post by: Bulakbol on August 01, 2009, 06:50:44 PM
@devil_jin
Here's your BoardIndex.template.php. Moved the membrgroups under the most online stat.
Title: Re: MCLegendII.1
Post by: devil_jin on August 02, 2009, 02:42:15 AM
Thanks bulakbol..

:)
Title: Re: MCLegendII.1
Post by: troll711 on August 10, 2009, 04:27:53 PM
how would i get this to work on Helios_Multi theme
Title: Re: MCLegendII.1
Post by: TheListener on August 10, 2009, 10:06:58 PM
Do you have a board index template on the theme?
Title: Re: MCLegendII.1
Post by: TCEd on August 11, 2009, 11:01:53 AM
Hey guys, I've downloaded both versions, my SMF has latest version installed & I get this message on both;


The package you tried to upload either is not a valid package or has become corrupted.
Title: Re: MCLegendII.1
Post by: troll711 on August 11, 2009, 12:25:43 PM
Quote from: TheListener on August 10, 2009, 10:06:58 PM
Do you have a board index template on the theme?
yes i do
Title: Re: MCLegendII.1
Post by: TheListener on August 11, 2009, 07:12:50 PM
Quote from: TCEd on August 11, 2009, 11:01:53 AM
Hey guys, I've downloaded both versions, my SMF has latest version installed & I get this message on both;


The package you tried to upload either is not a valid package or has become corrupted.

Which smf are you using? Which theme?
Title: Re: MCLegendII.1
Post by: Sabre™ on August 11, 2009, 07:31:02 PM
Quote from: troll711 on August 10, 2009, 04:27:53 PM
how would i get this to work on Helios_Multi theme

If you are using smf 1.1.x, it should install as designed if installed via the package manager.

Check the helios themes BoardIndex.template.php for this
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
                        </span>


and see if this directly follows it
';
            if (!empty($context['membergroups']))
echo '<hr /><span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>';
      echo '


if it is not there, then add it.
Title: Re: MCLegendII.1
Post by: TheListener on August 11, 2009, 07:41:22 PM
Quote from: TCEd on August 11, 2009, 11:01:53 AM
Hey guys, I've downloaded both versions, my SMF has latest version installed & I get this message on both;


The package you tried to upload either is not a valid package or has become corrupted.

You may have to download the package again.

Title: Re: MCLegendII.1
Post by: troll711 on August 11, 2009, 08:46:38 PM
nope that didnt work and there are 2 lines like that in the file here it is

[code]
<?php
// Version: 1.1 RC3; BoardIndex

function template_main()
{
        global $context, $settings, $options, $txt, $scripturl, $modSettings;


        $topbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 16px; width: 22px;"><img src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft.gif" style="height: 16px; width: 22px; border: 0px; padding: 0px; margin: 0px;" alt="gfx" /></td><td style="height: 16px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid.gif); "></td><td style="height: 16px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright.gif" style="height: 16px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr><tr><td style="width: 22px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midleft.gif); "></td><td valign="top">';
        $botbox='</td><td style="width: 27px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midright.gif); "></td></tr><tr><td style="height: 14px; width: 22px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botleft.gif" style="height: 14px; width: 22px; border: 0px; padding: 0px; margin: 0px;" /></td><td style="height: 14px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botmid.gif); "></td><td style="height: 14px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botright.gif" style="height: 14px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';

        $leftbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 54px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-lefttop.gif" style="height: 54px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td nowrap="nowrap" style="text-align: center; height: 54px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-midtop.gif); ">';
        $rightbox='</td><td style="height: 54px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-topright.gif" style="height: 54px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';


        $leftboxbot='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 5px; height: 78px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botleft.gif" style="height: 78px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 78px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botmid.gif); ">';
        $rightboxbot='</td><td style="height: 78px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botright.gif" style="height: 78px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';

        $leftboxbot2='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 4px; height: 36px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft-40.gif" style="height: 36px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 36px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid-41.gif); ">';
        $rightboxbot2='</td><td style="padding-right: 0px; height: 36px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright-42.gif" style="height: 36px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';


        // Show some statistics next to the link tree if SP1 info is off.
        echo $leftbox.'
<table width="100%" cellpadding="0" cellspacing="0">
        <tr>
                <td style="text-align: left; padding-left: 0px;" valign="bottom">', theme_linktree(), '</td>
        </tr>
</table>'.$rightbox;

        // Show the news fader?  (assuming there are things to show...)
        if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
        {
                echo $topbox;
                echo '
<div style="padding: 0px; margin-bottom: 2px;">
        <table border="0" width="100%" cellspacing="1" cellpadding="4">
                <tr>
                        <td align="left" style="font-weight: bold;">&nbsp;&nbsp;', $txt[102], '</td>
                </tr>
                <tr>
                        <td valign="middle" align="center" height="60">';

                // Prepare all the javascript settings.
      echo '
            <div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>', $context['news_lines'][0], '</b></div>
            <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
               // The fading delay (in ms.)
               var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
               // Fade from... what text color? To which background color?
                                        var smfFadeFrom = {"r": 255, "g": 255, "b": 255}, smfFadeTo = {"r": 0, "g": 0, "b": 0};
                                        // Surround each item with... anything special?
                                        var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

                                        var foreColor, backEl, backColor;

                                        if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
                                        {
                                                foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                                                smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                                                backEl = document.getElementById(\'smfFadeScroller\');
                                                while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
                                                        backEl = backEl.parentNode;

                                                backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                                                smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
                                        }
                                        else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
                                        {
                                                foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
                                                smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                                                backEl = document.getElementById(\'smfFadeScroller\');
                                                while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
                                                        backEl = backEl.parentNode;

                                                backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
                                                smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
                                        }
                                        // List all the lines of the news for display.
                                        var smfFadeContent = new Array(
                                                "', implode('",
                                                "', $context['fader_news_lines']), '"
                                        );
                                // ]]></script>
                                <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
                        </td>
                </tr>
        </table>
</div>';
echo $botbox;
        }

        /* Each category in categories is made up of:
                id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
                new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
                and boards. (see below.) */
        echo $topbox;
        foreach ($context['categories'] as $category)
        {
                echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="6">
        <tr>
                <td colspan="2" class="catbg', $category['new'] ? '2' : '', '" height="18">';

                // If this category even can collapse, show a link to collapse it.
                if ($category['can_collapse'])
                        echo '
                        <a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

                echo '
                        ', $category['link'], '
                </td>
                <td width="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[21], '</b></td>
                <td width="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[330], '</b></td>
                <td width="22%" align="center" class="catbg', $category['new'] ? '2' : '', '"> ', $txt[22], '</td>
        </tr>';

                // Assuming the category hasn't been collapsed...
                if (!$category['is_collapsed'])
                {
                        /* Each board in each category's boards has:
                                new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
                                children (see below.), link_children (easier to use.), children_new (are they new?),
                                topics (# of), posts (# of), link, href, and last_post. (see below.) */
                        foreach ($category['boards'] as $board)
                        {
                                echo '
        <tr class="windowbg2">
                <td class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

                                // If the board is new, show a strong indicator.
                                if ($board['new'])
                                        echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
                                // This board doesn't have new posts, but its children do.
                                elseif ($board['children_new'])
                                        echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
                                // No new posts at all!  The agony!!
                                else
                                        echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

                                echo '</a></td>
                <td>
                        <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
                        ', $board['description'];

                                // Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
                                if (!empty($board['moderators']))
                                        echo '
                        <div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';

                                // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
                                if (!empty($board['children']))
                                {
                                        // Sort the links into an array with new boards bold so it can be imploded.
                                        $children = array();
                                        /* Each child in each board's children has:
                                                id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
                                        foreach ($board['children'] as $child)
                                        {
                                                $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                                                $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
                                        }

                                        echo '
                        <div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
                                }

                                // Show some basic information about the number of posts, etc.
                                echo '
                </td>
                <td class="windowbg" valign="middle" align="center" style="width: 8ex;"><span class="smalltext">
                        ', $board['posts'], '</span></td>
                <td class="windowbg" valign="middle" align="center" style="width: 8ex;"><span class="smalltext">
                        ', $board['topics'],'
                </span></td>
                <td class="smalltext" valign="middle" width="25%" style="padding-left: 12px;">';

                                /* The board's and children's last_post's have:
                                        time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
                                        link, href, subject, start (where they should go for the first unread post.),
                                        and member. (which has id, name, link, href, username in it.) */
                                if (!empty($board['last_post']['id']))
                                        echo $board['last_post']['time'], '<br />
                       <b>', $board['last_post']['link'], '</b> ', $txt[525], '
                       ', $board['last_post']['member']['link'];

                                echo '
                </td>
        </tr>';
                        }
                }

                echo '
</table></div>';
        }

        echo $botbox;

        echo $leftboxbot;
        if ($context['user']['is_logged'])
        {
                echo '
<div style="padding-top: 16px;"><table border="0" width="100%" cellspacing="0" cellpadding="0" valign="top">
        <tr>
                <td align="left" class="smalltext" valign="top">
                        <img src="' . $settings['images_url'] . '/new_some.gif" alt="" align="absmiddle" border="0" /> ', $txt[333], '
                        <img src="' . $settings['images_url'] . '/new_none.gif" alt=""  align="absmiddle" border="0" style="margin-left: 4ex;" /> ', $txt[334], '
                </td>
                <td align="right" class="smalltext">';
                // Show the mark all as read button?
                if ($settings['show_mark_read'])
                        echo '
                        <a href="', $scripturl, '?action=markasread;sa=all;sesc=' . $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" />' : $txt[452]), '</a>';
                echo '
                </td>
        </tr>
</table></div>';
        }
        else
           echo '<div style="padding: 0px;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
        <tr>
                <td align="left" class="smalltext">

                </td>
                <td align="right" class="smalltext">
                </td>
        </tr>
</table></div>';
echo $rightboxbot;

        // Here's where the "Info Center" starts...

       echo $leftboxbot2.'<div style="font-weight: bold; text-align: center;">'.$txt[685].'</div>'.$rightboxbot2;

       echo '<div style="padding-left: 0px; padding-right: 0px;">'.$topbox;
       echo '

<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4"> ';

        // This is the "Recent Posts" bar.
        if (!empty($settings['number_recent_posts']))
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[214], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=recent">
                                <img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" border="0" /></a>
                </td>
                <td class="windowbg2">';

                // Only show one post.
                if ($settings['number_recent_posts'] == 1)
                {
                        // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (it's id.)
                        echo '
                        <b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
                        <div class="smalltext">
                                ', $txt[234], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
                        </div>';
                }
                // Show lots of posts.
                elseif (!empty($context['latest_posts']))
                {
                        echo '
                        <table width="100%" border="0">';
                        /* Each post in latest_posts has:
                                board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
                                subject, short_subject (shortened with...), time, link, and href. */
                        foreach ($context['latest_posts'] as $post)
                                echo '
                                <tr>
                                        <td class="smalltext" align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
                                        <td class="smalltext" valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
                                        <td class="smalltext" align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
                                </tr>';
                        echo '
                        </table>';
                }
                echo '
                </td>
        </tr>';
        }

        // Show information about events, birthdays, and holidays on the calendar.
        if ($context['show_calendar'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=calendar">
                                <img src="', $settings['images_url'], '/icons/calendar.gif" alt="', $txt['calendar24'], '" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%">
                        <span class="smalltext">';

                // Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
                if (!empty($context['calendar_holidays']))
                        echo '
                                <span style="color: #', $modSettings['cal_holidaycolor'], ';">', $txt['calendar5'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';

                // People's birthdays.  Like mine.  And yours, I guess.  Kidding.
                if (!empty($context['calendar_birthdays']))
                {
                        echo '
                                <span style="color: #', $modSettings['cal_bdaycolor'], ';">', $context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
                        /* Each member in calendar_birthdays has:
                                id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
                        foreach ($context['calendar_birthdays'] as $member)
                                echo '
                                <a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<b>' : '', $member['name'], $member['is_today'] ? '</b>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
                }
                // Events like community get-togethers.
                if (!empty($context['calendar_events']))
                {
                        echo '
                                <span style="color: #', $modSettings['cal_eventcolor'], ';">', $context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
                        /* Each event in calendar_events should have:
                                title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
                        foreach ($context['calendar_events'] as $event)
                                echo '
            ', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';

                        // Show a little help text to help them along ;).
                        if ($context['calendar_can_edit'])
                                echo '
                                (<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
                }
                echo '
                        </span>
                </td>
        </tr>';
        }

        // Show a member bar.  Not heavily ornate, but functional at least.
        if ($settings['show_member_bar'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[331], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        ', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' : '', '<img src="', $settings['images_url'], '/icons/members.gif" alt="', $txt[332], '" border="0" />', $context['show_member_list'] ? '</a>' : '', '
                </td>
                <td class="windowbg2" width="100%">
                        <b>', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' . $txt[332] . '</a>' : $txt[332], '</b>
                        <div class="smalltext">', $txt[200], '</div>
                </td>
        </tr>';
        }

        // Show YaBB SP1 style information...
        if ($settings['show_sp1_info'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[645], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=stats">
                                <img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%">
                        <table border="0" width="90%"><tr>
                                <td class="smalltext">
                                        <div style="float: ', !$context['right_to_left'] ? 'left' : 'right', '; width: 50%;">', $txt[490], ': <b>', $context['common_stats']['total_topics'], '</b></div>', $txt[489], ': <b>', $context['common_stats']['total_posts'], '</b><br />', !empty($context['latest_post']) ? '
                                        ' . $txt[659] . ': &quot;' . $context['latest_post']['link'] . '&quot;  (' . $context['latest_post']['time'] . ')<br />' : '', '
                                        <a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
                                        <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
                                </td>
                                <td width="32%" class="smalltext" valign="top">
                                        ', $txt[488], ': <b><a href="', $scripturl, '?action=mlist">', $context['common_stats']['total_members'], '</a></b><br />
                                        ', $txt[656], ': <b>', $context['common_stats']['latest_member']['link'], '</b><br />';
                // If they are logged in, show their unread message count, etc..
                if ($context['user']['is_logged'])
                        echo '
                                        ', $txt['smf199'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a></b> ', $txt['newmessages3'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'], '</a></b>';
                echo '
                                </td>
                        </tr></table>
                </td>
        </tr>';
        }

        // "Users online" - in order of activity.
        echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[158], '</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '
                </td>
                <td class="windowbg2" width="100%">';

        if ($context['show_who'])
                echo '
                        <a href="', $scripturl, '?action=who">';

        echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

        // Handle hidden users and buddies.
        if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
        {
                echo ' (';

                // Show the number of buddies online?
                if ($context['show_buddies'])
                        echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];

                // How about hidden users?
                if (!empty($context['num_users_hidden']))
                        echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];

                echo ')';
        }

        if ($context['show_who'])
                echo '</a>';

        echo '
                        <span class="smalltext">';

        // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
        if (!empty($context['users_online']))
                echo '
                                ', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
                                             
   // users in chat
   if (isset($context['chat_links'])){
      if (count($context['chat_links']) == 0 )
        echo '<br />' . $txt['chat_no_user'];
      elseif (count($context['chat_links']) == 1 )
        echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']);
      else
        echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);
  }

        echo '
                                <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
                                <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
                        </span>
                        <hr /><span class="smalltext">
                        Most users online today: '.$modSettings['mostOnlineToday'].' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        Most users online ever: <b>'.$modSettings['mostOnline'].'</b> ( '.timeformat($modSettings['mostDate']).'  )

                        </span>


                </td>
        </tr>';

        // If they are logged in, but SP1 style information is off... show a personal message bar.
        if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[159], '</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
         ', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" border="0" />', $context['allow_pm'] ? '</a>' : '', '
                </td>
                <td class="windowbg2" valign="top">
Title: Re: MCLegendII.1
Post by: TheListener on August 11, 2009, 08:51:35 PM
I may be wrong but at a guess I would say you only need the one.

However please don't take it as gospel.

make a back up first, try deleting one and if it doesn't work start pulling your hair out before replacing.

Title: Re: MCLegendII.1
Post by: Sabre™ on August 11, 2009, 09:06:45 PM
Quote from: TheListener on August 11, 2009, 08:51:35 PM
... if it doesn't work start pulling your hair out before replacing.

LOL

@ troll711
There is only one occurrence of the code I specified in what you have posted.
Look over it again and add what I mentioned.

One is set as this
                                        <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
                                </td>


That isn't the one, it is the one that ends with </span> as stated in my previous post ;)

Could you also edit that post and use the [code ] [ /code]  bbcode please.
It is the button with this image on it when youre posting  #

p.s
Are you using the most recent version of the helios theme??
helios_multi11final.zip
That is the one you should use on a live site
Title: Re: MCLegendII.1
Post by: TheListener on August 11, 2009, 09:09:09 PM
Is it a plane?

Is it a bird?

NO it's Sabre



- who let him out on the loose?-
Title: Re: MCLegendII.1
Post by: troll711 on August 11, 2009, 11:12:56 PM
i upgraded to the new version and still no dice here is the code with what you told me to add
[code]
<?php
// Version: 1.1; BoardIndex

function template_main()
{
        global $context, $settings, $options, $txt, $scripturl, $modSettings;


        $topbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 16px; width: 22px;"><img src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft.gif" style="height: 16px; width: 22px; border: 0px; padding: 0px; margin: 0px;" alt="gfx" /></td><td style="height: 16px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid.gif); "></td><td style="height: 16px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright.gif" style="height: 16px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr><tr><td style="width: 22px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midleft.gif); "></td><td valign="top">';
        $botbox='</td><td style="width: 27px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midright.gif); "></td></tr><tr><td style="height: 14px; width: 22px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botleft.gif" style="height: 14px; width: 22px; border: 0px; padding: 0px; margin: 0px;" /></td><td style="height: 14px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botmid.gif); "></td><td style="height: 14px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botright.gif" style="height: 14px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';

        $leftbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 54px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-lefttop.gif" style="height: 54px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td nowrap="nowrap" style="text-align: center; height: 54px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-midtop.gif); ">';
        $rightbox='</td><td style="height: 54px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-topright.gif" style="height: 54px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';


        $leftboxbot='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 5px; height: 78px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botleft.gif" style="height: 78px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 78px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botmid.gif); ">';
        $rightboxbot='</td><td style="height: 78px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botright.gif" style="height: 78px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';

        $leftboxbot2='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 4px; height: 36px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft-40.gif" style="height: 36px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 36px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid-41.gif); ">';
        $rightboxbot2='</td><td style="padding-right: 0px; height: 36px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright-42.gif" style="height: 36px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';


        // Show some statistics next to the link tree if SP1 info is off.
        echo $leftbox.'
<table width="100%" cellpadding="0" cellspacing="0">
        <tr>
                <td style="text-align: left; padding-left: 0px;" valign="bottom">', theme_linktree(), '</td>
        </tr>
</table>'.$rightbox;

        // Show the news fader?  (assuming there are things to show...)
        if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
        {
                echo $topbox;
                echo '
<div style="padding: 0px; margin-bottom: 2px;">
        <table border="0" width="100%" cellspacing="1" cellpadding="4">
                <tr>
                        <td align="left" style="font-weight: bold;">&nbsp;&nbsp;', $txt[102], '</td>
                </tr>
                <tr>
                        <td valign="middle" align="center" height="60">';

                // Prepare all the javascript settings.
      echo '
            <div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>', $context['news_lines'][0], '</b></div>
            <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
               // The fading delay (in ms.)
               var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
               // Fade from... what text color? To which background color?
                                        var smfFadeFrom = {"r": 255, "g": 255, "b": 255}, smfFadeTo = {"r": 0, "g": 0, "b": 0};
                                        // Surround each item with... anything special?
                                        var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

                                        var foreColor, backEl, backColor;

                                        if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
                                        {
                                                foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                                                smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                                                backEl = document.getElementById(\'smfFadeScroller\');
                                                while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
                                                        backEl = backEl.parentNode;

                                                backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                                                smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
                                        }
                                        else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
                                        {
                                                foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
                                                smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                                                backEl = document.getElementById(\'smfFadeScroller\');
                                                while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
                                                        backEl = backEl.parentNode;

                                                backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
                                                smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
                                        }
                                        // List all the lines of the news for display.
                                        var smfFadeContent = new Array(
                                                "', implode('",
                                                "', $context['fader_news_lines']), '"
                                        );
                                // ]]></script>
                                <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
                        </td>
                </tr>
        </table>
</div>';
echo $botbox;
        }

        /* Each category in categories is made up of:
                id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
                new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
                and boards. (see below.) */
        echo $topbox;
        foreach ($context['categories'] as $category)
        {
                echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="6">
        <tr>
                <td colspan="2" class="catbg', $category['new'] ? '2' : '', '" height="18">';

                // If this category even can collapse, show a link to collapse it.
                if ($category['can_collapse'])
                        echo '
                        <a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

                echo '
                        ', $category['link'], '
                </td>
                <td width="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[21], '</b></td>
                <td width="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[330], '</b></td>
                <td width="22%" align="center" class="catbg', $category['new'] ? '2' : '', '"> ', $txt[22], '</td>
        </tr>';

                // Assuming the category hasn't been collapsed...
                if (!$category['is_collapsed'])
                {
                        /* Each board in each category's boards has:
                                new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
                                children (see below.), link_children (easier to use.), children_new (are they new?),
                                topics (# of), posts (# of), link, href, and last_post. (see below.) */
                        foreach ($category['boards'] as $board)
                        {
                                echo '
        <tr class="windowbg2">
                <td class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

                                // If the board is new, show a strong indicator.
                                if ($board['new'])
                                        echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
                                // This board doesn't have new posts, but its children do.
                                elseif ($board['children_new'])
                                        echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
                                // No new posts at all!  The agony!!
                                else
                                        echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

                                echo '</a></td>
                <td>
                        <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
                        ', $board['description'];

                                // Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
                                if (!empty($board['moderators']))
                                        echo '
                        <div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';

                                // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
                                if (!empty($board['children']))
                                {
                                        // Sort the links into an array with new boards bold so it can be imploded.
                                        $children = array();
                                        /* Each child in each board's children has:
                                                id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
                                        foreach ($board['children'] as $child)
                                        {
                                                $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                                                $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
                                        }

                                        echo '
                        <div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
                                }

                                // Show some basic information about the number of posts, etc.
                                echo '
                </td>
                <td class="windowbg" valign="middle" align="center" style="width: 8ex;"><span class="smalltext">
                        ', $board['posts'], '</span></td>
                <td class="windowbg" valign="middle" align="center" style="width: 8ex;"><span class="smalltext">
                        ', $board['topics'],'
                </span></td>
                <td class="smalltext" valign="middle" width="25%" style="padding-left: 12px;">';

                                /* The board's and children's last_post's have:
                                        time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
                                        link, href, subject, start (where they should go for the first unread post.),
                                        and member. (which has id, name, link, href, username in it.) */
                                if (!empty($board['last_post']['id']))
                                        echo $board['last_post']['time'], '<br />
                       <b>', $board['last_post']['link'], '</b> ', $txt[525], '
                       ', $board['last_post']['member']['link'];

                                echo '
                </td>
        </tr>';
                        }
                }

                echo '
</table></div>';
        }

        echo $botbox;

        echo $leftboxbot;
        if ($context['user']['is_logged'])
        {
                echo '
<div style="padding-top: 16px;"><table border="0" width="100%" cellspacing="0" cellpadding="0" valign="top">
        <tr>
                <td align="left" class="smalltext" valign="top">
                        <img src="' . $settings['images_url'] . '/new_some.gif" alt="" align="absmiddle" border="0" /> ', $txt[333], '
                        <img src="' . $settings['images_url'] . '/new_none.gif" alt=""  align="absmiddle" border="0" style="margin-left: 4ex;" /> ', $txt[334], '
                </td>
                <td align="right" class="smalltext">';
                // Show the mark all as read button?
      if ($settings['show_mark_read'] && !empty($context['categories']))
                        echo '
                        <a href="', $scripturl, '?action=markasread;sa=all;sesc=' . $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" />' : $txt[452]), '</a>';
                echo '
                </td>
        </tr>
</table></div>';
        }
        else
           echo '<div style="padding: 0px;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
        <tr>
                <td align="left" class="smalltext">

                </td>
                <td align="right" class="smalltext">
                </td>
        </tr>
</table></div>';
echo $rightboxbot;

        // Here's where the "Info Center" starts...

       echo $leftboxbot2.'<div style="font-weight: bold; text-align: center;">'.$txt[685].'</div>'.$rightboxbot2;

       echo '<div style="padding-left: 0px; padding-right: 0px;">'.$topbox;
       echo '

<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4"> ';

        // This is the "Recent Posts" bar.
        if (!empty($settings['number_recent_posts']))
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[214], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=recent">
                                <img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" border="0" /></a>
                </td>
                <td class="windowbg2">';

                // Only show one post.
                if ($settings['number_recent_posts'] == 1)
                {
                        // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (it's id.)
                        echo '
                        <b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
                        <div class="smalltext">
                                ', $txt[234], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
                        </div>';
                }
                // Show lots of posts.
                elseif (!empty($context['latest_posts']))
                {
                        echo '
                        <table width="100%" border="0">';
                        /* Each post in latest_posts has:
                                board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
                                subject, short_subject (shortened with...), time, link, and href. */
                        foreach ($context['latest_posts'] as $post)
                                echo '
                                <tr>
                                        <td class="smalltext" align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
                                        <td class="smalltext" valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
                                        <td class="smalltext" align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
                                </tr>';
                        echo '
                        </table>';
                }
                echo '
                </td>
        </tr>';
        }

        // Show information about events, birthdays, and holidays on the calendar.
        if ($context['show_calendar'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=calendar">
                                <img src="', $settings['images_url'], '/icons/calendar.gif" alt="', $txt['calendar24'], '" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%">
                        <span class="smalltext">';

                // Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
                if (!empty($context['calendar_holidays']))
                        echo '
                                <span style="color: #', $modSettings['cal_holidaycolor'], ';">', $txt['calendar5'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';

                // People's birthdays.  Like mine.  And yours, I guess.  Kidding.
                if (!empty($context['calendar_birthdays']))
                {
                        echo '
                                <span style="color: #', $modSettings['cal_bdaycolor'], ';">', $context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
                        /* Each member in calendar_birthdays has:
                                id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
                        foreach ($context['calendar_birthdays'] as $member)
                                echo '
                                <a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<b>' : '', $member['name'], $member['is_today'] ? '</b>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
                }
                // Events like community get-togethers.
                if (!empty($context['calendar_events']))
                {
                        echo '
                                <span style="color: #', $modSettings['cal_eventcolor'], ';">', $context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
                        /* Each event in calendar_events should have:
                                title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
                        foreach ($context['calendar_events'] as $event)
                                echo '
            ', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';

                        // Show a little help text to help them along ;).
                        if ($context['calendar_can_edit'])
                                echo '
                                (<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
                }
                echo '
                        </span>
                </td>
        </tr>';
        }

        // Show a member bar.  Not heavily ornate, but functional at least.
        if ($settings['show_member_bar'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[331], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        ', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' : '', '<img src="', $settings['images_url'], '/icons/members.gif" alt="', $txt[332], '" border="0" />', $context['show_member_list'] ? '</a>' : '', '
                </td>
                <td class="windowbg2" width="100%">
                        <b>', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' . $txt[332] . '</a>' : $txt[332], '</b>
                        <div class="smalltext">', $txt[200], '</div>
                </td>
        </tr>';
        }

        // Show YaBB SP1 style information...
        if ($settings['show_sp1_info'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[645], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=stats">
                                <img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%">
                        <table border="0" width="90%"><tr>
                                <td class="smalltext">
                                        <div style="float: ', !$context['right_to_left'] ? 'left' : 'right', '; width: 50%;">', $txt[490], ': <b>', $context['common_stats']['total_topics'], '</b></div>', $txt[489], ': <b>', $context['common_stats']['total_posts'], '</b><br />', !empty($context['latest_post']) ? '
                                        ' . $txt[659] . ': &quot;' . $context['latest_post']['link'] . '&quot;  (' . $context['latest_post']['time'] . ')<br />' : '', '
                                        <a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
                                        <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
                                </td>
                                <td width="32%" class="smalltext" valign="top">
                                        ', $txt[488], ': <b><a href="', $scripturl, '?action=mlist">', $context['common_stats']['total_members'], '</a></b><br />
                                        ', $txt[656], ': <b>', $context['common_stats']['latest_member']['link'], '</b><br />';
                // If they are logged in, show their unread message count, etc..
                if ($context['user']['is_logged'])
                        echo '
                                        ', $txt['smf199'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a></b> ', $txt['newmessages3'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'], '</a></b>';
                echo '
                                </td>
                        </tr></table>
                </td>
        </tr>';
        }

        // "Users online" - in order of activity.
        echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[158], '</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '
                </td>
                <td class="windowbg2" width="100%">';

        if ($context['show_who'])
                echo '
                        <a href="', $scripturl, '?action=who">';

        echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

        // Handle hidden users and buddies.
        if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
        {
                echo ' (';

                // Show the number of buddies online?
                if ($context['show_buddies'])
                        echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];

                // How about hidden users?
                if (!empty($context['num_users_hidden']))
                        echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];

                echo ')';
        }

        if ($context['show_who'])
                echo '</a>';

        echo '
                        <span class="smalltext">';

        // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
        if (!empty($context['users_online']))
                echo '
                                ', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

        echo '
                                <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
                                <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
                        </span>
                  ';
                        if (!empty($context['membergroups']))
                           echo '<hr /><span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>';
                        echo '
                        <hr /><span class="smalltext">
                        Most users online today: '.$modSettings['mostOnlineToday'].' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        Most users online ever: <b>'.$modSettings['mostOnline'].'</b> ( '.timeformat($modSettings['mostDate']).'  )

                        </span>


                </td>
        </tr>';

        // If they are logged in, but SP1 style information is off... show a personal message bar.
        if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[159], '</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
         ', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" border="0" />', $context['allow_pm'] ? '</a>' : '', '
                </td>
                <td class="windowbg2" valign="top">
                        <b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
                        <div class="smalltext">
Title: Re: MCLegendII.1
Post by: Sabre™ on August 11, 2009, 11:20:50 PM
Have you enabled the mod and selected the groups to which you'd like to display?
Admin -> Features and options -> Membergroup legend display arrangement.

You also forgot to add the closing tag to the above code.
[ /code]
Title: Re: MCLegendII.1
Post by: TCEd on August 12, 2009, 09:53:26 AM
Quote from: TheListener on August 11, 2009, 07:12:50 PM
Quote from: TCEd on August 11, 2009, 11:01:53 AM
Hey guys, I've downloaded both versions, my SMF has latest version installed & I get this message on both;


The package you tried to upload either is not a valid package or has become corrupted.

Which smf are you using? Which theme?

we're using DarkBreak by DzinerStudio
http://agw.interactivetournaments.com/forums/index.php
Title: Re: MCLegendII.1
Post by: troll711 on August 12, 2009, 10:52:29 PM
Quote from: Sabre™ on August 11, 2009, 11:20:50 PM
Have you enabled the mod and selected the groups to which you'd like to display?
Admin -> Features and options -> Membergroup legend display arrangement.

You also forgot to add the closing tag to the above code.
[ /code]
thats not even listed
Title: Re: MCLegendII.1
Post by: TheListener on August 12, 2009, 10:58:02 PM
Quote from: TCEd on August 12, 2009, 09:53:26 AM
Quote from: TheListener on August 11, 2009, 07:12:50 PM
Quote from: TCEd on August 11, 2009, 11:01:53 AM
Hey guys, I've downloaded both versions, my SMF has latest version installed & I get this message on both;


The package you tried to upload either is not a valid package or has become corrupted.

Which smf are you using? Which theme?

we're using DarkBreak by DzinerStudio
http://agw.interactivetournaments.com/forums/index.php
Quote from: troll711 on August 12, 2009, 10:52:29 PM
Quote from: Sabre™ on August 11, 2009, 11:20:50 PM
Have you enabled the mod and selected the groups to which you'd like to display?
Admin -> Features and options -> Membergroup legend display arrangement.

You also forgot to add the closing tag to the above code.
[ /code]
thats not even listed

Can ya give us your forums addys so we can have a nosy please folks.

Title: Re: MCLegendII.1
Post by: Sabre™ on August 13, 2009, 03:42:32 AM
Troll, you have installed the mod and it is working ok in the SMF default theme yeah?
All the code for the language files etc are in place, it is only not displaying on the Helios theme?
Follow this line
Admin -> Features and options,  you should be on the Basic Features page.
If you scroll down, do you see this text anywhere?
Membergroup legend display arrangement
Title: Re: MCLegendII.1
Post by: troll711 on August 14, 2009, 10:38:26 PM
ok reinstalled and now i see that. but still dont show the legend

EDIT

FIXED! thanks everyone for the help
Title: Re: MCLegendII.1
Post by: Bulakbol on August 15, 2009, 04:24:24 PM
I appreciated the help Sabre and The Listener. Glad to know troll711 got everything sorted. Thanks.
Title: Re: MCLegendII.1
Post by: AggReSSiVe on August 16, 2009, 10:18:28 AM
2.0 rc1.2 also can not run!
Title: Re: MCLegendII.1
Post by: Bulakbol on August 17, 2009, 03:18:08 AM
The version 3.0 should work with RC1.2. Have you tried version 3.0?
Title: Re: MCLegendII.1
Post by: Kiana on August 27, 2009, 01:41:30 PM
It was easy to get this mod to work on all themes except Mystic Opal... any chance you could help a bit? Sorry, I've been trying for a while now, I'm just not very good at these things. =[

By the way, thanks for making this, it's awesome! :D
Title: Re: MCLegendII.1
Post by: Chupko on August 31, 2009, 06:33:20 AM
I need this mod for theme "Cargo" from DiznerStudio..  Here is BoardIndex.template.php
Title: Re: MCLegendII.1
Post by: Smitten on September 02, 2009, 12:44:42 AM
Hello! Thanks for this mod.

I have a problem with Kani theme.

I can´t install correctly, see my image.

I give you my boardindex.php

Thanks again.
Title: Re: MCLegendII.1
Post by: TheListener on September 02, 2009, 10:01:39 AM
Will this work on 1.1.10?
Title: Re: MCLegendII.1
Post by: Gantry on September 03, 2009, 03:12:11 AM
yes it works fine on 1.1.10
Title: Re: MCLegendII.1
Post by: ishaan on September 03, 2009, 01:39:37 PM
BROTHER plzz provide.

1.1.10 Manual Install Instructions for SMF
Title: Re: MCLegendII.1
Post by: Sabre™ on September 03, 2009, 04:42:56 PM
Go to the mods [Download] (http://custom.simplemachines.org/mods/index.php?mod=1077) page, and to the right you will see this text: Manual Install Instructions for SMF
Make sure you select MCLegendII.2.zip, and then use the dropdown to select your version(1.1.10).
When that is done, click on the Parse button, and you will be directed to the page that will show you the Manual Install Instructions for SMF 1.1.10.

Enjoy :)
Title: Re: MCLegendII.1
Post by: ishaan on September 03, 2009, 06:03:25 PM
Brother. there is manual edit of 1.1.10.
when i try to the open the page this message is showing

QuoteAn Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.
[/b]
Title: Re: MCLegendII.1
Post by: Sabre™ on September 03, 2009, 06:10:43 PM
MCLegendII.2.zip is for SMF 1.1.10
MCLegendII.2_RC1.zip is for SMF 2

Make sure you're choosing MCLegendII.2.zip
Click [HERE] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1077;attach=72903;smf_version=1.1.10)

Good luck :)
Title: Re: MCLegendII.1
Post by: TheListener on September 03, 2009, 06:13:08 PM
Ishaan

Please let us know if you require any help installing the mod.

Title: Re: MCLegendII.1
Post by: Kiana on September 05, 2009, 12:44:17 AM
Could I please get some help with my theme question? :(
Title: Re: MCLegendII.1
Post by: TheListener on September 05, 2009, 12:45:47 AM
Have you had any errors in your log recently?
Title: Re: MCLegendII.1
Post by: Sabre™ on September 05, 2009, 04:11:28 AM
@ Chupco, Smitten and Kiana

Try the attached templates that have your name on it. Dont forget to remove your name before uploading it ;)
Post back if you have any problems, or would like the position moved.

Kiana, I did two for you because the code seemed like it'd fit in that position nicely, and it would be completely different to everyone elses.
the 1st is where I think it'd look better, and the 2nd is how it should be normally.

Enjoy :)
Title: Re: MCLegendII.1
Post by: Chupko on September 05, 2009, 06:18:01 AM
Thank You very much Sabre™ :)
Title: Re: MCLegendII.1
Post by: [B]_Punisher on September 05, 2009, 09:48:25 PM
is there anything i can change to get it to work with the theme back n black?
Title: Re: MCLegendII.1
Post by: chered on September 05, 2009, 11:18:00 PM
hi im using smf 1.1.10 and MCLegendII.2. however i found it funny the membergroup is showing but all are duplicate. im using custom template.
Title: Re: MCLegendII.1
Post by: Sabre™ on September 06, 2009, 03:41:28 AM
Quote from: Chupko on September 05, 2009, 06:18:01 AM
Thank You very much Sabre™ :)

My pleasure mate
Enjoy :)

[quote author=_Punisher link=topic=219437.msg2245544#msg2245544 date=1252201705]
is there anything i can change to get it to work with the theme back n black?[/quote]

If your theme has a BoardIndex.template.php, then that is the file you need to edit to get it to display.

Quote from: chered on September 05, 2009, 11:18:00 PM
hi im using smf 1.1.10 and MCLegendII.2. however i found it funny the membergroup is showing but all are duplicate. im using custom template.

That means the code has been added to your template twice.
Look in your BoardIndex.template.php and remove the duplicate code.
It would be a good idea to check the other templates this mod uses aswell.

Good Luck :)
Title: Re: MCLegendII.1
Post by: [B]_Punisher on September 06, 2009, 11:23:45 AM
ok now what do i change or replace there
Title: Re: MCLegendII.1
Post by: TheListener on September 06, 2009, 11:25:14 AM
Have you made a back up of the file?
Title: Re: MCLegendII.1
Post by: [B]_Punisher on September 06, 2009, 11:35:14 AM
yea
Title: Re: MCLegendII.1
Post by: TheListener on September 06, 2009, 11:36:46 AM
Please attach the requested file as an attachment.
Title: Re: MCLegendII.1
Post by: [B]_Punisher on September 06, 2009, 11:40:17 AM
here you go
Title: Re: MCLegendII.1
Post by: Sabre™ on September 06, 2009, 04:55:17 PM
Hi mate, to receive optimum assistance you should read [THIS] (http://docs.simplemachines.org/index.php?topic=493) and [THIS] (http://docs.simplemachines.org/index.php?topic=494).
The more information you provide, the faster your issue(s) will be solved.
It isnt really necessary for this thread, as you can pretty much see where the issue is, but for more complicated issues, they are the structure best put forth.

Welcome to SMF mate :)
Title: Re: MCLegendII.1
Post by: Sabre™ on September 06, 2009, 10:46:12 PM
@ _Punisher

Try the attached template.
Title: Re: MCLegendII.1
Post by: [B]_Punisher on September 07, 2009, 02:02:55 AM
this is the error i get with it

Template Parse Error!
There was a problem loading the /Themes/BacknBlack1110/BoardIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
Title: Re: MCLegendII.1
Post by: Sabre™ on September 07, 2009, 02:12:21 AM
Thats strange, I've just gone through that template again and even ran it through one of my test sites, and it works flawless.

As I recall, your original template was manually modified and would not have parsed.

Did you rename the one I attached from boardindex.template.php to BoardIndex.template.php, so your old one would be overwritten?
Title: Re: MCLegendII.1
Post by: [B]_Punisher on September 07, 2009, 09:05:13 AM
i copied the one you gave me and pasted it right in the place of the old one so i have to add it some where else?
Title: Re: MCLegendII.1
Post by: Sabre™ on September 07, 2009, 05:08:31 PM
Nope, that is the correct place to add it.
So there is only one boardindex.template.php in your Back n Black themes directory, and it has been renamed as mentioned above?
Acknowledging whether you've done the process(es) offered helps to eliminate them so we can try other things.
Could you attach the template youve added to your site please?
Cheers :)

Title: Re: MCLegendII.1
Post by: [B]_Punisher on September 08, 2009, 01:00:40 PM
here the BoardIndex.template.php
Title: Re: MCLegendII.1
Post by: Sabre™ on September 08, 2009, 04:48:37 PM
Buddy, that is your original template, the one that is supposed to have been overwritten and gone.
If you follow these steps exactly, everything will work for you:
1.) Install the mod if it is not installed already.
2.) Click [HERE] (http://www.simplemachines.org/community/index.php?topic=219437.msg2247128#msg2247128) and download that attachment.
3.) The attachment name is boardindex.template.php, rename it to BoardIndex.template.php. See how there are now capital letters there.
4.) Upload your new BoardIndex.template.php into the Back n Black themes folder, so it overwites your old one. If there are more than one in there, then delete the others as theyre not needed.
5.) Go into your admin panel and select which membergroups will be displayed.
6.) Sit back and have a coke and a smile as you see your working mod in action.

If these directions do not get your modification working, then Im sorry my friend, there is nothing more I can do for you, and the mods author would be the best person to assist you.

Good luck :)
Title: Re: MCLegendII.1
Post by: [B]_Punisher on September 08, 2009, 05:32:35 PM
it works now where do i got to add the member group i dont see it in the admin panel
Title: Re: MCLegendII.1
Post by: Sabre™ on September 08, 2009, 05:42:41 PM
[quote author=_Punisher link=topic=219437.msg2250099#msg2250099 date=1252445555]
it works now...[/quote]

Fantastic mate, congrats!
Click [HERE] (http://www.simplemachines.org/community/index.php?topic=219437.msg1401884#msg1401884) for the directions to help you use the mod.
Title: Re: MCLegendII.1
Post by: [B]_Punisher on September 08, 2009, 05:53:53 PM
sweet thanks im all set to go i appreciate the help
Title: Re: MCLegendII.1
Post by: Sabre™ on September 08, 2009, 05:55:35 PM
Anytime buddy :)
Enjoy
Title: Re: MCLegendII.1
Post by: TwitchisMental on September 12, 2009, 09:54:17 PM
Well I installed this mod,and everything works,but it won't show my full member group :( .

How to add this?

I am using the mystic blue theme btw :) .

Oh and I didn't get the admincp tab either =[.

Oh and one last problem, I just want it to show Admin,Global Moderator,Moderator,Full Member,and Member
Title: Re: MCLegendII.1
Post by: TwitchisMental on September 14, 2009, 07:04:34 PM
bump
Title: Re: MCLegendII.1
Post by: Sabre™ on September 14, 2009, 09:54:48 PM
What version of smf are you using?
Check your language files.
If you have utf8 then add the strings to those templates also.
Read the first page on how to choose which membergroups are displayed.
You will have to manually make the edits to your themes boardindex.template.php
Title: Re: MCLegendII.1
Post by: TwitchisMental on September 15, 2009, 10:56:16 PM
Quote from: Sabre™ on September 14, 2009, 09:54:48 PM
What version of smf are you using?
Check your language files.
If you have utf8 then add the strings to those templates also.
Read the first page on how to choose which membergroups are displayed.
You will have to manually make the edits to your themes boardindex.template.php

What version of smf are you using? 2.0rc1-2
Check your language files. Did they are fine
If you have utf8 then add the strings to those templates also. ??
Read the first page on how to choose which membergroups are displayed. Did
You will have to manually make the edits to your themes boardindex.template.php What to edit?
Title: Re: MCLegendII.1
Post by: Hell Raiser on September 20, 2009, 02:37:50 AM
Does anyone know how to install it on Urban theme ?  :P
Title: Re: MCLegendII.1
Post by: Sabre™ on September 20, 2009, 03:27:23 AM
No  :P

But if the Urban theme has its own BoardIndex.template.php, attach it to your next post and I'll sort the code out for it.   :P :P :P  :rollseyes:
Title: Re: MCLegendII.1
Post by: Hell Raiser on September 20, 2009, 06:01:27 AM
I Already Did  :P :P :P :P :P :P :P :P :P :P

Title: Re: MCLegendII.1
Post by: Sabre™ on September 20, 2009, 06:04:51 AM
Cool.
It'd be good if you edit your comment next time, so we can focus more on those that still need assistance.
God job mate :)
Title: Re: MCLegendII.1
Post by: DreaMNauT on September 27, 2009, 03:48:34 AM
At first thank u for this veeeery practical mod!!

Can u help me adding the code of your mod in the AS theme??
I have attached the boardindex.template
Thanks again man
Title: Re: MCLegendII.1
Post by: DreaMNauT on September 27, 2009, 05:11:55 AM
Quote from: DreaMNauT on September 27, 2009, 03:48:34 AM
At first thank u for this veeeery practical mod!!

Can u help me adding the code of your mod in the AS theme??
I have attached the boardindex.template
Thanks again man


I am not so patient man sooo...

Here is the new boardindex.template.php for AS Theme attached
Title: Re: MCLegendII.1
Post by: Sabre™ on September 27, 2009, 05:16:45 PM
Quote from: DreaMNauT on September 27, 2009, 05:11:55 AM
I am not so patient man sooo...

Nobody gets paid to help you here, and we are all volunteers, so unfortunately, patience is what you'll need.
Somebody has downloaded one of your attached files, so I'll leave it for them to do.
Title: Re: MCLegendII.1
Post by: DreaMNauT on September 28, 2009, 02:32:08 AM
Quote from: Sabre™ on September 27, 2009, 05:16:45 PM
Quote from: DreaMNauT on September 27, 2009, 05:11:55 AM
I am not so patient man sooo...

Nobody gets paid to help you here, and we are all volunteers, so unfortunately, patience is what you'll need.
Somebody has downloaded one of your attached files, so I'll leave it for them to do.


Offcourse man..:)
I didnt meant to offend anybody, without every single one in this community, i wouldnt had my forum up and running
Thanks again
Title: Re: MCLegendII.1
Post by: Sabre™ on September 29, 2009, 05:05:36 AM
Oh no no.. my bad!
I thought you still needed assistance with your template, but you've provided the completed template for that theme.
My apologies mate, I read your post incorrect  :-[

Thanks for uploading that template, Im sure it will benefit somebody.

regards
Title: Re: MCLegendII.1
Post by: alexandervba on October 07, 2009, 02:42:48 PM
Why is the mod only using 80% of the space it has? I dont get it :s



ive marked the zones in red... why isnt it using that space?

look at the room on the right it still has... Compared to the active member list, its only using 80% of the table :s
Title: Re: MCLegendII.1
Post by: Swayforth on October 09, 2009, 01:47:36 AM
Hello all!

SMF 1.1.10
MCLegendII.2 ..... 3.0
Theme = BlackrainV2 by crip.

Having an issue doing the manual edit for the BoardIndex.template.php. Any help is appreciated.

Title: Re: MCLegendII.1
Post by: Sabre™ on October 09, 2009, 04:42:05 PM
Try the attached file
Title: Re: MCLegendII.1
Post by: Swayforth on October 09, 2009, 05:44:30 PM
can't wait to get home and try it out, thank you!
Title: Re: MCLegendII.1
Post by: Sabre™ on October 09, 2009, 06:06:14 PM
My pleasure, if there are any problems, just post back and we'll sort it out.
But it looks like it should work as designed :)
Title: Re: MCLegendII.1
Post by: Swayforth on October 09, 2009, 08:26:26 PM
Quote from: Sabre™ on October 09, 2009, 06:06:14 PM
My pleasure, if there are any problems, just post back and we'll sort it out.
But it looks like it should work as designed :)

Works great! thank you
Title: Re: MCLegendII.1
Post by: MadMick on October 26, 2009, 06:20:59 AM
Guys, I have installed this mod and it works fine on 1.1.10, what I am having trouble with, and its probably me being retarded, is some of my membergroups wont shot the colours I select for them?.

For example, I have a group called SinBin, which I marked #000000 for black, and a WO (Women Only) marked in #FF00CC for Pink, yet both of those groups still show as the default colour in the online list.

The colours in the Legend work just fine?

It seems really odd as some of my groups do work with different colours, like Sponsors (Green) and club members (yellow)

Any ideas?.

Edit to add, worked it out, the member has to have the particular member group as their Primary group for it to show the colour picked
Title: Re: MCLegendII.1
Post by: [SAP]Francis on November 09, 2009, 09:41:20 PM
Too bad it is not yet available for SMF 2.0 RC2. :(
Title: Re: MCLegendII.1
Post by: the_shadow on November 10, 2009, 10:04:58 AM
i feel the same :S :(
Title: Re: MCLegendII.1
Post by: devil_jin on November 10, 2009, 04:13:00 PM
Using it on my RC1.2 forum works cool..

would love to see this working on RC2.....

Really a great mod..

:)
Title: Re: MCLegendII.1
Post by: Sabre™ on November 10, 2009, 05:18:59 PM
Due to 'real life' events, JohnyB(Bulakbol) has very little time to update his mods, so unless somebody updates them or takes over his mods, then I wouldn't expect an update anytime soon.
But you never know, he may surely find time to do this :)
Title: Re: MCLegendII.1
Post by: Mr.kakO on November 15, 2009, 09:51:22 AM
alguien que me configure mi BoardIndex.template para el theme cargo

porfavor

Title: Re: MCLegendII.1
Post by: Calcricho on November 16, 2009, 03:16:32 AM
I used this mod in 2.0 rc1 now update version 2.0 RC2 wing and does not work any suggestions.

or no more update?

Thanks
Title: Re: MCLegendII.1
Post by: Kimmen on November 21, 2009, 08:35:40 PM
I have also gone over to SMF2 RC2, would really love to have this working on it.
Title: Re: MCLegendII.1
Post by: Eclipse16V on November 24, 2009, 07:37:47 AM
Please update it for SMF 2.0 RC2

Thx
Title: Re: MCLegendII.1
Post by: lfma on November 24, 2009, 01:44:20 PM
Quote from: Eclipse16V on November 24, 2009, 07:37:47 AM
Please update it for SMF 2.0 RC2

Thx

I would like that too...

Title: Re: MCLegendII.1
Post by: Sabre™ on November 24, 2009, 02:49:42 PM
removed
Title: Re: MCLegendII.1
Post by: lfma on November 25, 2009, 10:21:20 AM
Quote from: Sabre™ on November 24, 2009, 02:49:42 PM
Try the attached for RC2

Works great on 2.0 RC2, thanks a lot Sabre™

Title: Re: MCLegendII.1
Post by: Rowdy on November 25, 2009, 10:31:16 AM
The package works great but causes the forum to fail xhtml validation. Any chance for a fix?

QuoteError  Line 355, Column 993: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

...2px; border-top: 1px solid #c6c6c6;">

Thanks!
Title: Re: MCLegendII.1
Post by: Sabre™ on November 25, 2009, 05:03:14 PM
Try the attached.
Cheers.
Title: Re: MCLegendII.1
Post by: Kimmen on November 25, 2009, 08:00:44 PM
Thanks m8 !

I tried to find a way to make it show the membergroups in bold written, but i see that the code has changed. Could you show me what to edit in order to get membergroups shown in bold written?

Also if you bother, i would want user online list to be with bold written as well.

I use SMF 2 RC2 with Square Theme !


Greets
Kimmen
Title: Re: MCLegendII.1
Post by: Sabre™ on November 25, 2009, 08:56:03 PM
Add font-weight:bold; to the div to display the membergroups in bold.
eg.
<div style="padding-top: 2px; margin-top: 2px; border-top: 1px solid #c6c6c6; font-size:10px; font-weight:bold;">

For the online list, Im not familiar with your theme, but if you have this
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
{
echo '
', sprintf($txt['users_active'], $modSettings['lastActive']), ':<br />', implode(', ', $context['list_users_online']);
echo '
</p>';


change it to this
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
{
echo '
', sprintf($txt['users_active'], $modSettings['lastActive']), ':<br /><b>', implode(', ', $context['list_users_online']);
echo '
</b></p>';


If your boardindex.template has a different line of code for this(unlikely), then attach the template and I'll edit it for you :)

@RowdyMusician
Did it validate mate?

Cheers
Title: Re: MCLegendII.1
Post by: Kimmen on November 25, 2009, 09:43:05 PM
Many thanks for fast reply !

This works perfect. I did not have any boardindex.template.php file in my theme, so i edited the default theme's template instead, and it works as a charm.

Thanks again Sabre™

Greets
Kimmen
Title: Re: MCLegendII.1
Post by: Rowdy on November 25, 2009, 09:48:34 PM
There was an error on install this time. I am having a few beers so I am not going to try and post the code and all that tonight. Will do so tomorrow.

Happy Thanksgiving!
Title: Re: MCLegendII.1
Post by: Sabre™ on November 25, 2009, 09:54:08 PM
My pleasure Kimmen :)

Happy thanksgiving Rowdy :)
Title: Re: MCLegendII.1
Post by: Kimmen on November 25, 2009, 10:50:07 PM
@ Sabre™

I just found an option in Admin --> Current Theme --> Show group key on board index:

When i tick it, users will see who is in that specific group, but all the post count groups disappear from the legend at the bottom. I am left with Admin and Global Moderator. Is it possible to fix it so that i can use this option without loosing sight of the post count groups in the legend?
Title: Re: MCLegendII.1
Post by: Sabre™ on November 25, 2009, 11:14:22 PM
Members should be able to see who is in that specific group if you have 'View the memberlist and groups' ticked in the permissions.
So untick  'Admin --> Current Theme --> Show group key on board index:'  and check that permission in the  'Regular Members' section of your permissions area.
See if that works :)
Title: Re: MCLegendII.1
Post by: Rowdy on November 26, 2009, 10:05:03 AM
Okay, the newest package has an error in boardindex.template.php on install. It is not finding this code as is to replace:

  // Showing membergroups? if (!empty($settings['show_group_key']) && !empty($context['membergroups'])) echo ' <br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']'; } echo ' </p> 

Because the echo ' </p>: is not there at the end.


Thanks and Happy Thanksgiving!

Title: Re: MCLegendII.1
Post by: Sabre™ on November 26, 2009, 01:59:11 PM
Have you manually edited that area?
If you cannot find the closing </p>, that means it has been removed from your template.
I had a feeling your error was going to be a modified template, or it wouldn't have installed ok for Kimmen, or myself.
If in doubt, download a fresh copy of RC2, and look at the template.

p.s.
your code isn't going to function right if it's in one line as posted.
Title: Re: MCLegendII.1
Post by: Kimmen on November 26, 2009, 02:32:54 PM
Quote from: Sabre™ on November 25, 2009, 11:14:22 PM
Members should be able to see who is in that specific group if you have 'View the memberlist and groups' ticked in the permissions.
So untick  'Admin --> Current Theme --> Show group key on board index:'  and check that permission in the  'Regular Members' section of your permissions area.
See if that works :)

Yes, it does m8. Thanks.. :)
Title: Re: MCLegendII.1
Post by: Rowdy on November 27, 2009, 02:18:57 AM
It was edited by the AJAX chat integration mod. I managed to make the manual edits. It is working properly and validating with no errors in log or trouble so far. I am having copy and paste issues, hence the one line code.

Thanks very much for the help
Title: Re: MCLegendII.1
Post by: Sabre™ on November 27, 2009, 02:23:48 AM
Just glad I could help mate.
Cheers :)
Title: Re: MCLegendII.1
Post by: adbrad on November 30, 2009, 05:09:07 PM
Quote from: Sabre™ on November 25, 2009, 05:03:14 PM
Try the attached.
Cheers.

thanks sabre works great on my rc2 test forum.
Title: Re: MCLegendII.1
Post by: Sabre™ on November 30, 2009, 05:38:27 PM
My pleasure mate :)

Update for RC2 is [HERE] (http://www.simplemachines.org/community/index.php?topic=219437.msg2375396#msg2375396) for those that may have missed it.
Title: Re: MCLegendII.1
Post by: SikLiFe on December 07, 2009, 01:23:20 AM
I'm not quite sure, I've installed it for 1.1.11, And it doesn't even show up here.

~ Admin -> Features and options -> Membergroup legend display arrangement.

Could this be caused by my theme? I'm currently using THIS (http://custom.simplemachines.org/themes/index.php?lemma=1716) theme.

thanks for any help supported.. Great looking mod, Would love to beable to use the features.

~siklife
Title: Re: MCLegendII.1
Post by: futeball on December 08, 2009, 04:58:57 AM
If this mod support smf 1.1.11 it would be great. From the mod page it seems that 1.1.11 is not supported yet.
Title: Re: MCLegendII.1
Post by: SikLiFe on December 10, 2009, 07:29:12 PM
okay well anyone else? I need to know how to set which groups to display because it doesn't come up in the admin panel, I coded IN the plugin onto my theme that works, but the setting groups looks like it sends MySQL. :( with out uninstalling and messing up everything and changing the groups in the zip before i install how else could i go about this?
Title: Re: MCLegendII.1
Post by: BCK on December 15, 2009, 01:00:56 PM
will this work with..1.1.11 and can it be installed thru admin or do you have to manually do for themes???thx in advance
Title: Re: MCLegendII.1
Post by: Sabre™ on December 15, 2009, 02:04:57 PM
You will need to manually edit your 'custom' themes BoardIndex.template.php
Title: Re: MCLegendII.1
Post by: BCK on December 17, 2009, 02:01:58 AM
thx for reply...appriciated...
Title: Re: MCLegendII.1
Post by: Carlos Faria on December 28, 2009, 08:13:43 PM
Someone could help me, when I edited my BoardIndex.template.php unconfigure the board.

They can check and change my BoardIndex.template.php?

SMF 1.1.11

1.  Member Color Link  3.0.7 
2. Ultimate Profile 0.9
3. Pm_Informer 2.0.0.1
4. Aeva ~ Auto-Embed Video & Audio 7.0
5. VisualWarning 1.42
6. Pretty URLs 1.0RC
7. Ad Managment 2.3.1
8. Hide SMF Version 1.0.5
9. The Rules 1.2
10. nCode Image Resizer 1.2
11. Related Topics 1.3.3
12. Shared Forum Mod 0.2.5.4
13. SMFShop 3.1.5
14. MCLegendII.2
15. SMF 1.0.19 / 1.1.11 Update
16. Karma Buttons
17. Black


Already thank you.
Title: Re: MCLegendII.1
Post by: C4G-TK on December 31, 2009, 05:42:58 PM
Thanks again Sabre! 
Worked great for RC2 that I can tell!
Title: Re: MCLegendII.1
Post by: C4G-TK on January 02, 2010, 06:02:38 PM
@ [T]uGa [M]aSter

What exactly are you asking someone to do or have a problem with?

Title: Re: MCLegendII.1
Post by: Carlos Faria on January 03, 2010, 02:09:40 PM
Quote from: C4G-TK on January 02, 2010, 06:02:38 PM
@ [T]uGa [M]aSter

What exactly are you asking someone to do or have a problem with?

The problem is that I can not edit my BoardIndex.template.php whichever is requested in parse MOD.  :'(  :'(
Title: Re: MCLegendII.1
Post by: Kiana on January 03, 2010, 03:02:55 PM
A late thank you for the code (which you posted on page 30)!
Title: Re: MCLegendII.1
Post by: simplebeer on January 03, 2010, 04:45:26 PM
But it should working correctly with 1.1.11 ?

And do i parse RC2 or RC3  ::)
Title: Re: MCLegendII.1
Post by: C4G-TK on January 03, 2010, 09:46:19 PM
@ [T]uGa [M]aSter

Try this one.  You have a mod being used that already changed something in the 1st edit of your BoardIndex.template.  The second edit wasn't done either.  If it doesn't work, reload the file that you supplied in your previous post.

Let me know.
Title: Re: MCLegendII.1
Post by: Carlos Faria on January 04, 2010, 04:15:53 AM
Quote from: C4G-TK on January 03, 2010, 09:46:19 PM
@ [T]uGa [M]aSter

Try this one.  You have a mod being used that already changed something in the 1st edit of your BoardIndex.template.  The second edit wasn't done either.  If it doesn't work, reload the file that you supplied in your previous post.

Let me know.

It did not work.  :'(

Title: Re: MCLegendII.1
Post by: C4G-TK on January 04, 2010, 11:04:35 AM
Sorry Bud, I tried.
I'm using RC1.2 and RC2, so I couldn't check before I sent.

The only thing that I can think of is that you might skip the 1st edit and only do the second edit.  Then, figure out which mod removed/altered the code of the first edit and ask that author how you can incorporate the 1st edit into what he changed/altered.

Or, just do the second edit and see if it works w/o the first edit.
Title: Re: MCLegendII.1
Post by: Carlos Faria on January 04, 2010, 03:19:06 PM
Ok, Thank you for your help. :)
Title: Re: MCLegendII.1
Post by: Sabre™ on January 06, 2010, 05:13:17 PM
Quote from: Kiana on January 03, 2010, 03:02:55 PM
A late thank you for the code (which you posted on page 30)!

My pleasure :)

@ [T]uGa [M]aSter
From your attached image, the code on line 783 needs to be removed.
I haven't looked at your template as of yet, but if you still have issues with this mod after removing that line, then reattach your template and I'll have a look.
Title: Re: MCLegendII.1
Post by: Carlos Faria on January 07, 2010, 03:32:42 PM
Quote from: Sabre™ on January 06, 2010, 05:13:17 PM
From your attached image, the code on line 783 needs to be removed.
I haven't looked at your template as of yet, but if you still have issues with this mod after removing that line, then reattach your template and I'll have a look.

Neither had seen it... But did not result...  :'(
Title: Re: MCLegendII.1
Post by: Sabre™ on January 09, 2010, 09:07:09 AM
In case you have made other changes to the template(installed another mod), could you attach your copy here to have a look at.
Title: Re: MCLegendII.1
Post by: dkinser on January 10, 2010, 08:35:58 PM
This may not be the best thread for this, but since Johnny helped me sort this mod out I figured I'd try.

Is there a way to hide who can see who's online by group?  That is, I want admin and mods to see who's online, but not regular members.

If this isn't the right thread, can someone point me to where it should go or possibly answer this?

In essence, we want Admin and Moderators to see who is online, but nobody else, especially guests.

Thanks.
Title: Re: MCLegendII.1
Post by: adbrad on January 11, 2010, 05:48:01 AM
Quote from: dkinser on January 10, 2010, 08:35:58 PM
This may not be the best thread for this, but since Johnny helped me sort this mod out I figured I'd try.

Is there a way to hide who can see who's online by group?  That is, I want admin and mods to see who's online, but not regular members.

If this isn't the right thread, can someone point me to where it should go or possibly answer this?

In essence, we want Admin and Moderators to see who is online, but nobody else, especially guests.

Thanks.
think this may have been better in the relevant support section also we would possibly need a screen shot showing what you want to hide and the version of smf you are using
Title: Re: MCLegendII.1
Post by: Sabre™ on January 11, 2010, 02:26:22 PM
Indeed.
It isn't difficult to do achieve, and would be best dealt with the way adbrad has mentioned.
Title: Re: MCLegendII.1
Post by: TheListener on January 18, 2010, 04:31:34 PM
My membergroups are not showing correctly despite being listed in the admin area.

What would you require to look at?
Title: Re: MCLegendII.1
Post by: Sabre™ on January 18, 2010, 09:15:35 PM
Further information/explanation of what you mean would be good.
Are they in a different order?
Are some not showing at all?
Maybe a screenshot of what you're seeing in your AP and board may help.
You can pm me if you'd like me to take a look for you.
Title: Re: MCLegendII.1
Post by: TheListener on January 18, 2010, 09:23:34 PM
Quote from: Sabre™ on January 18, 2010, 09:15:35 PM
You can pm me if you'd like me to take a look for you.

Don't tempt me kiddo  ;D

They won't show in their correct order and some don't even show.
Title: Re: MCLegendII.1
Post by: Sabre™ on January 18, 2010, 11:37:31 PM
For anybody that experiences Brack1s problem, the solution is to un-tick  'Admin --> Current Theme --> Show group key on board index:'
Title: Re: MCLegendII.1
Post by: haito on February 14, 2010, 10:00:25 PM
please edit my boardindex...
thx before  8)
Title: Re: MCLegendII.1
Post by: Andiiieee[: on February 14, 2010, 10:44:44 PM
Quote from: Bulakbol on January 29, 2008, 06:09:46 PM
Thanks, if you actually installed it.   ;D

is there any way you could make it RC2 compatible?
Title: Re: MCLegendII.1
Post by: adbrad on February 15, 2010, 09:13:27 AM
Quote from: Andiiieee[: on February 14, 2010, 10:44:44 PM
Quote from: Bulakbol on January 29, 2008, 06:09:46 PM
Thanks, if you actually installed it.   ;D

is there any way you could make it RC2 compatible?


see this post http://www.simplemachines.org/community/index.php?topic=219437.msg2375396#msg2375396 the rc2 version is attached
Title: Re: MCLegendII.1
Post by: Arkino on February 15, 2010, 11:34:11 PM
for SMF 2.0 RC2? please?
Title: Re: MCLegendII.1
Post by: Sabre™ on February 16, 2010, 12:07:11 AM
lol
See if the one post above yours is useful :)
Title: Re: MCLegendII.1
Post by: kb_Luis on March 07, 2010, 04:27:41 PM
when will the update be ready for 2.0 RC2 for this MOD

Thanks :)
Title: Re: MCLegendII.1
Post by: TheListener on March 07, 2010, 05:48:47 PM
The mod works perfectly on my forum which is on 2.0 RC2.

www.parascifi.net
Title: Re: MCLegendII.1
Post by: kb_Luis on March 07, 2010, 07:12:54 PM
Yep did not read all the post got it working now thanks. ;D

Ps:Great mod  ;D
Title: Re: MCLegendII.1
Post by: steve51184 on March 09, 2010, 07:38:14 PM
rc3 update?
Title: Re: MCLegendII.1
Post by: TheListener on March 09, 2010, 07:42:37 PM
Someone may have to give Sabre a poke in the ribs.

;D
Title: Re: MCLegendII.1
Post by: Sabre™ on March 09, 2010, 10:50:24 PM
Here's the RC3 version.
Remember to remove any previous versions before installing this. That should be standard protocol with packages not offering upgrades.
Cheers and enjoy :)
Title: Re: MCLegendII.1
Post by: TheListener on March 09, 2010, 10:56:15 PM
Er hiya Sabre

:D

It worked then.
Title: Re: MCLegendII.1
Post by: Eclipse16V on March 15, 2010, 02:19:07 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
Title: Re: MCLegendII.1
Post by: Sabre™ on March 15, 2010, 02:58:22 AM
Instead of posting the same question in almost every thread of the Modifications and Packages board(I saw 20 before I stopped checking the threads), try reading each thread for any updates.
For example, if you read the last two posts of this thread in particular, you would see that there is a working version for RC3.
And if you looked even four pages back (http://www.simplemachines.org/community/index.php?topic=219437.msg2351387#msg2351387), you would have read that the mod author wont be updating the mod himself.
Good luck ;)
Title: Re: MCLegendII.1
Post by: robbie93 on April 20, 2010, 11:16:55 PM
Thanks for the RC3 version Sabre™  ;D
Title: Re: MCLegendII.1
Post by: Arantor on April 21, 2010, 06:35:12 AM
So what's the difference between the RC3 version of the mod and the one built into 2.0 RC3 anyway?
Title: Re: MCLegendII.1
Post by: adbrad on April 21, 2010, 10:54:40 AM
this also shows post based groups and you can easily set to any order through the acp
Title: Re: MCLegendII.1
Post by: robbie93 on April 21, 2010, 10:57:08 AM
Quote from: Arantor on April 21, 2010, 06:35:12 AM
So what's the difference between the RC3 version of the mod and the one built into 2.0 RC3 anyway?

lead me to that path Arantor please, I searched and couldnt find :)
Title: Re: MCLegendII.1
Post by: Arantor on April 21, 2010, 05:00:10 PM
robbie: It's already covered on this very page, it's an option in Admin > Current Theme.
Title: Re: MCLegendII.1
Post by: robbie93 on April 21, 2010, 05:42:09 PM
Quote from: Arantor on April 21, 2010, 05:00:10 PM
robbie: It's already covered on this very page, it's an option in Admin > Current Theme.

Ooops I missed it  ;D thanks anyway   :D
Title: Re: MCLegendII.1
Post by: TheListener on April 21, 2010, 05:43:57 PM
It doesn't cover the post count groups.
Title: Re: MCLegendII.1
Post by: ishaan on April 24, 2010, 06:32:00 PM
Hello I am using SMF 2.0 RC3 .

i am installed ur mod MCLegendII.1.

i want know how to "Re-arrange the display of groups" ?

Now its shows this type



I want to arrange this type.

[SF OWNER] [GLOBAL MODERATOR]   [MODERATOR]  [POLICE] [GOOD LINKER] [SHINING STAFF]  [VIP]


Help me please ...


ALSO WANT TO KNOW HOW TO DELETE A GROUP ?







Title: Re: MCLegendII.1
Post by: Arantor on April 24, 2010, 06:32:59 PM
You cannot delete the Moderator group, it isn't possible.

And if Administrator is group 1, you can't delete that either.
Title: Re: MCLegendII.1
Post by: ishaan on April 24, 2010, 07:02:07 PM
The Administrator Group is created by me.. so please tell me how to delete ?
Title: Re: MCLegendII.1
Post by: Arantor on April 24, 2010, 07:06:02 PM
Click on the modify option, there's a delete option in there.
Title: Re: MCLegendII.1
Post by: ishaan on April 24, 2010, 07:10:01 PM
Thanks a lot Brother. could you please tell me this too

I am using SMF 2.0 RC3 .

i want know how to "Re-arrange the display of groups" ?

Now its shows this type



I want to arrange this type.

[SF OWNER] [GLOBAL MODERATOR]   [MODERATOR]  [POLICE] [GOOD LINKER] [SHINING STAFF]  [VIP]


Title: Re: MCLegendII.1
Post by: Arantor on April 24, 2010, 07:11:44 PM
They're in alphabetic order. Rename the SF Owner group.

In any case this is now off topic and should really be in its own topic in 2.x Support as it's not related to this mod.
Title: Re: MCLegendII.1
Post by: TheListener on April 24, 2010, 07:16:04 PM
@ Arantor the previous request is related to the mod.

@Ishaan to get the membergroups in the order you want them in, hover over the membergroup name and you should see a number appear in the same way as a topic number.

Make a note of the number then in the appropriate section in admin place the numbers in the required order.

An example would be:

Admin = 1, Mod = 2, Groupname = ( etc.
Title: Re: MCLegendII.1
Post by: ishaan on April 24, 2010, 07:26:08 PM
BRo.. I don't understand .. can you plss tell me steps ?
Title: Re: MCLegendII.1
Post by: adbrad on April 25, 2010, 03:52:46 AM
first go to admin>configuration>current theme and make sure the following option is unchecked

Show group key on board index:

then on the board index if you hover over the key you should see a link like so

index.php?action=groups;sa=members;group=4

the number on the end is the group number note  that down then go to
admin>configuration>features and options and look for

Membergroup legend display arrangement.                   1,10,2,12,8,7,6,5,4
(Must be separated by comma. i.e. 1,2,8,7,6,5,4)

and just rearrange the numbers to the order you want
hope this helps
Title: Re: MCLegendII.1
Post by: ULTRAHEROX on April 26, 2010, 09:31:25 PM
I dont have the option Show group key on board index:

HELP ME
Title: Re: MCLegendII.1
Post by: ishaan on April 26, 2010, 10:01:24 PM
The option not there.

also i am using SMF 2.0 RC3

plss help me
Title: Re: MCLegendII.1
Post by: ULTRAHEROX on April 26, 2010, 10:09:35 PM
Whrere is the option?
Title: Re: MCLegendII.1
Post by: adbrad on April 27, 2010, 04:48:23 AM
the option is there i use rc3 also
admin>configuration>themes and layout>theme settings
choose your theme from the list then on the second section
Theme Options and Preferences
its the 14th item down on mine as i have favicon mod so yours may be 13th
make sure this option is unticked
if you wanted to assign me an admin account and pm me details i will look into it
Title: Re: MCLegendII.1
Post by: MATTEK on April 29, 2010, 04:19:05 AM
How did you guys manage to get this installed? I tried emulating and everything and it said it's incompatible with my version of smf.
Title: Re: MCLegendII.1
Post by: Sabre™ on April 29, 2010, 04:54:51 AM
For RC3 (http://www.simplemachines.org/community/index.php?topic=219437.msg2531758#msg2531758)
Title: Re: MCLegendII.1
Post by: MATTEK on April 29, 2010, 05:49:24 PM
Quote from: Sabre™ on April 29, 2010, 04:54:51 AM
For RC3 (http://www.simplemachines.org/community/index.php?topic=219437.msg2531758#msg2531758)
Thanks.  8)
Title: Re: MCLegendII.1
Post by: Kurakama on May 24, 2010, 05:41:09 PM
Quote from: MATTEK on April 29, 2010, 05:49:24 PM
Quote from: Sabre™ on April 29, 2010, 04:54:51 AM
For RC3 (http://www.simplemachines.org/community/index.php?topic=219437.msg2531758#msg2531758)
Thanks.  8)

+1

thank you ;)))
Title: Re: MCLegendII.1
Post by: Sabre™ on May 25, 2010, 12:21:24 AM
My pleasure peeps.
Enjoy :)
Title: Re: MCLegendII.1
Post by: Succubus Evaligan on June 03, 2010, 04:29:58 PM
Where is the version 3.0 for 1.1.11? ?_?
Title: Re: MCLegendII.1
Post by: Sabre™ on June 03, 2010, 07:20:55 PM
Try MCLegendII.2.zip (http://custom.simplemachines.org/mods/index.php?mod=1077) from the mod page.
I believe the author didnt get around to renaming it before he left.
Title: Re: MCLegendII.1
Post by: adbrad on June 04, 2010, 09:08:47 AM
Quote from: Sabre™ on June 03, 2010, 07:20:55 PM
Try MCLegendII.2.zip (http://custom.simplemachines.org/mods/index.php?mod=1077) from the mod page.
I believe the author didnt get around to renaming it before he left.

if the original author left who will be taking over the mod as it technically been abandonned
Title: Re: MCLegendII.1
Post by: Sabre™ on June 04, 2010, 09:14:09 AM
Whoever contacts him and gets the rights.
But he offered it to me, but I have no time for full time support, so as far as I know, anybody could update his mods and place their version within the respective threads.
Use at your own risk type deal.
Title: Re: MCLegendII.1
Post by: blow on July 24, 2010, 03:38:18 PM
@Sabre™: Thanks for the RC3 version. But it just doesn't work for me.  :(
It does nothing when I activate the mod...

(I used to use the RC1 version with no problems.  :-\)
Title: Re: MCLegendII.1
Post by: TheListener on July 24, 2010, 04:31:37 PM
Quote from: blow on July 24, 2010, 03:38:18 PM
@Sabre™: Thanks for the RC3 version. But it just doesn't work for me.  :(
It does nothing when I activate the mod...

(I used to use the RC1 version with no problems.  :-\)

What do you mean by "it does nothing?"

Were there any errors on install?
Title: Re: MCLegendII.1
Post by: blow on July 24, 2010, 04:47:23 PM
The installation runs fine, no errors.
But the membergroups legends on the forum index keeps the original sequence instead of mine...
Title: Re: MCLegendII.1
Post by: TheListener on July 24, 2010, 05:09:51 PM
Can ya let us see a link please bud.

Which language is used?
Title: Re: MCLegendII.1
Post by: blow on July 24, 2010, 05:37:23 PM
Brack, I'm sorry I can't give you the link while my forum is currently offline. Anyway, there's no great deal to see — the legends got the new styling (top border, 10px font), but it just doesn't follow the number sequence I put on the admin panel.

Here I'm using portuguese_pt (utf8) language files. Could it be the matter?
Title: Re: MCLegendII.1
Post by: TheListener on July 24, 2010, 05:44:36 PM
Quote from: blow on July 24, 2010, 05:37:23 PM

Here I'm using portuguese_pt (utf8) language files. Could it be the matter?

Hm

I'm no expert but the language files may be the cause.

All I can suggest is you wait for Sabre to pop back online.
Title: Re: MCLegendII.1
Post by: Sabre™ on July 24, 2010, 05:58:34 PM
Un-tick  'Admin --> Current Theme --> Show group key on board index:'
Title: Re: MCLegendII.1
Post by: TheListener on July 24, 2010, 06:01:08 PM
Sheesh Sabre you sure have good hearing.

It was that old trick again was it.

>:(
Title: Re: MCLegendII.1
Post by: Sabre™ on July 24, 2010, 06:10:58 PM
lol I just woke up. Must have heard you callin in my sleep ;)
When the user says something like "keeps the original sequence instead of mine", it usually means they need to untick the group key selection. Usually..
Title: Re: MCLegendII.1
Post by: blow on July 24, 2010, 11:58:31 PM
Haha.
You nailed it! All working now.

Thank you two.  ;)
Title: Re: MCLegendII.1
Post by: Leto Atreides II on August 10, 2010, 05:43:03 PM
I installed this one a 1.1.11 forum, and nothing shows - there is no "Show group key on board index" under Admin, Current Theme, Theme Settings; is this a compatibility issue, and if so, is there a membergroup legend display arrangement mod that will work for 1.1.11?
Title: Re: MCLegendII.1
Post by: Sabre™ on August 10, 2010, 06:01:11 PM
Admin -> Features and options -> Membergroup legend display arrangement.
You scroll down on the features & options page to find the "Membergroup legend display arrangement" text, where you add your groups
Title: Re: MCLegendII.1
Post by: Leto Atreides II on August 10, 2010, 06:05:19 PM
Quote from: Sabre™ on August 10, 2010, 06:01:11 PM
Admin -> Features and options -> Membergroup legend display arrangement.
You scroll down on the features & options page to find the "Membergroup legend display arrangement" text, where you add your groups
I added my groups there; nothing showed on the forum index. It seems to be a matter of having the feature activated.

Edit: the forum in question: http://www.kriegbrut.org/boards/forum/index.php
Title: Re: MCLegendII.1
Post by: Sabre™ on August 10, 2010, 06:30:57 PM
If your theme is a custom one and not the default, you will need to make the manual edits to your themes boardindex.template.php.
On the download page for the mod, select the version you installed, and select smf 1.1.11 where it states 'Manual Install Instructions for SMF'.
Use the edits within for your template.
Slight changes may be needed if your themes template largely differs from the default.
Title: Re: MCLegendII.1
Post by: Leto Atreides II on August 10, 2010, 06:45:53 PM
Arrrgghhh.... Compatible versions are listed as 1.1.4, 1.1.5, 1.1.6, 1.1.8, 2.0 Beta 3 Public, 2.0 Beta 3.1 Public, 2.0 Beta 4, 2.0 RC1; and when I try to parse for 1.1.11, I get the error message:
QuoteAn Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.
So... I guess this means I won't be able to get it to work at all?

On a side note, after the first few tries at running this thing failed, I installed a simple staff color legend (http://custom.simplemachines.org/mods/index.php?mod=1440), which did yield installation instructions for 1.1.11 when parsed. However, after a successful install, it also didn't work; I guess this is one of those situations where the manual edits to my theme's boardindex.template.php are necessary?
Title: Re: MCLegendII.1
Post by: Sabre™ on August 10, 2010, 07:15:35 PM
Yes, the edits to your themes boardindex.template are necessary to display the function.
Parse the mod for 1.1.8, I dont think the updates to 1.1.11 touched the area this mod alters.
If you get stuck, attach the template here, and I'll make the required edits for you :)
Title: Re: MCLegendII.1
Post by: Leto Atreides II on August 10, 2010, 08:41:06 PM
Quote from: Sabre™ on August 10, 2010, 07:15:35 PM
Yes, the edits to your themes boardindex.template are necessary to display the function.
Parse the mod for 1.1.8, I dont think the updates to 1.1.11 touched the area this mod alters.
If you get stuck, attach the template here, and I'll make the required edits for you :)
Unfortunately, even when I parse the mod for the versions listed as compatible, I get this error message:

Quote
An Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.

http://custom.simplemachines.org/mods/index.php?mod=1077

I did get the other simple color legend to work, but I'm not pleased with it. It's too simple!
Title: Re: MCLegendII.1
Post by: Sabre™ on August 10, 2010, 08:50:22 PM
Try [THIS] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1077;attach=72903;smf_version=1.1.11).
Remember, MCLegendII.2.zip is for the smf1 branch, the other is for smf2.
Title: Re: MCLegendII.1
Post by: Leto Atreides II on August 10, 2010, 10:11:26 PM
Yeargh! Well it works now, but I screwed something up... some tables seem to be broken or distorted or something...

http://www.kriegbrut.org/boards/forum/index.php

:(
Title: Re: MCLegendII.1
Post by: Sabre™ on August 10, 2010, 11:28:18 PM
You've forgotten rowspan="3"
Title: Re: MCLegendII.1
Post by: Leto Atreides II on August 11, 2010, 04:57:00 AM
I put that in at first, then got rid of it because I thought it was causing the problem... I'll try again.
Title: Re: MCLegendII.1
Post by: Leto Atreides II on August 11, 2010, 05:00:18 AM
Oh, great. I put it back in, and now more tables are broken. :( It seems to affect the table issue near the top of the forum and have no effect on the issue at the bottom of the forum.
Title: Re: MCLegendII.1
Post by: Sabre™ on August 11, 2010, 05:47:12 AM
What is the purpose of your site?
There is no explanation of what it is. If it is of racist attitude, I must step away from assisting you.
Title: Re: MCLegendII.1
Post by: Leto Atreides II on August 11, 2010, 02:22:55 PM
It's a civil rights activist site. No more 'racist' than an organization like the NAACP might be deemed.
Title: Re: MCLegendII.1
Post by: Leto Atreides II on August 11, 2010, 02:34:15 PM
Some of the broken tables can't be seen except by logged-in staff, so here's a screenshot of what the top looks like:


I've tried rowspan="3" in the default theme BoardIndex.template.php and in the active theme "arka sokak" BoardIndex.template.php; I've tried it in both at once and in just one at a time. I can get rid of the broken table at the top, but nothing seems to get rid of the broken tables at the bottom.
Title: Re: MCLegendII.1
Post by: Sabre™ on August 11, 2010, 07:19:55 PM
Attach your custom themes boardindex.template.php, and I'll have a look at it.
Reverse any "manual" edits youve made to your default themes template.
Title: Re: MCLegendII.1
Post by: Leto Atreides II on August 11, 2010, 07:37:35 PM
Here's the address: http://www.kriegbrut.org/boards/forum/Themes/arka_sokak/BoardIndex.template.php

And here's the code:

<?php
// Version: 1.1; BoardIndex

function template_main()
{
global $context$settings$options$txt$scripturl$modSettings;

// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">'
theme_linktree(), '</td>
<td align="right">'
;
if (!$settings['show_sp1_info'])
echo '
'
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#38;#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#38;#8226;&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '
'
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');
echo '
</td>
</tr>
</table>'
;

// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<table border="0" width="100%" class="tborder" cellspacing="' 
, ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' '0' '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="catbg"> &nbsp;'
$txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">'
;

// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

var foreColor, backEl, backColor;

if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;

backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;

backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}

// List all the lines of the news for display.
var smfFadeContent = new Array(
"'
implode('",
"'
$context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>'
;
}

/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */
$first true;
foreach ($context['categories'] as $category)
{
echo '
<div style="margin-top: ' 
$first '0;' '1ex;' '' $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' '''">
<div class="catbgsol">
<div class="catbgsag">
<div class="catbg"  style="padding: 5px 0 0 10px;">'
;
$first false;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="'
$category['collapse_href'], '">'$category['collapse_image'], '</a>';

echo '
'
$category['link'], '
</div></div></div>'
;

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="3" class="bordercolor" style="margin-top: 0px;">'
;

/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td ' 
, !empty($board['children']) ? 'rowspan="3"' '' ' class="windowbg" width="3%" align="center"><a href="'$scripturl'?action=unread;board='$board['id'], '.0">';

// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
'
$board['description'];

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
'
$board['posts'], ' '$txt[21], ' <br />
'
$board['topics'],' '$txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">'
;

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>'
$txt[22], '</b>  '$txt[525], ' '$board['last_post']['member']['link'] , '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], '<br />
'
$txt[30], ' '$board['last_post']['time'];
echo '
</span>
</td>
</tr>'
;
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg'
, !empty($settings['seperate_sticky_lock']) ? '3' '''">
<span class="smalltext"><b>'
$txt['parent_boards'], '</b>: 'implode(', '$children), '</span>
</td>
</tr>'
;
}
}
echo '
</table>'
;
}
echo '
</div>'
;
}

if ($context['user']['is_logged'])
{
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltext">
</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''">';
echo '
</td>
</tr>
</table>'
;
}

// Here's where the "Info Center" starts...
echo '<br />
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' '''>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="'
$settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
'
$txt[685], '
</div>
<div id="upshrinkHeaderIC"'
, empty($options['collapse_header_ic']) ? '' ' style="display: none;"''>
<table border="0" width="100%" cellspacing="0" cellpadding="4" class="bordercolor">'
;

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=recent"><img src="'$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" /></a>
</td>
<td class="windowbg2">'
;

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>
<div class="smalltext">
'
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />
</div>'
;
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%" border="0">'
;

/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td class="middletext" valign="top"><b>'
$post['link'], '</b> '$txt[525], ' '$post['poster']['link'], ' ('$post['board']['link'], ')</td>
<td class="middletext" align="right" valign="top" nowrap="nowrap">'
$post['time'], '</td>
</tr>'
;
echo '
</table>'
;
}
echo '
</td>
</tr>'
;
}

// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=calendar"><img src="'$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">'
;

// Holidays like "none", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';

// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
'
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';

// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>'
;
}


// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=stats"><img src="'$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$context['common_stats']['total_posts'], ' '$txt[95], ' '$txt['smf88'], ' '$context['common_stats']['total_topics'], ' '$txt[64], ' '$txt[525], ' '$context['common_stats']['total_members'], ' '$txt[19], '. '$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>
<br /> ' 
$txt[659] . ': <b>&quot;' $context['latest_post']['link'] . '&quot;</b>  ( ' $context['latest_post']['time'] . ' )<br />
<a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />
<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</span>
</td>
</tr>'
;
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' 
implode(']&nbsp;&nbsp;['$context['membergroups']) . ']</span>
</td>
</tr>'
;

echo '';
}

// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[158], '</td>
</tr><tr>
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" />'$context['show_who'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">'
;

echo '
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' ''$context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];

echo ')';
}

echo $context['show_who'] ? '</a>' '''
<div class="smalltext">'
;

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
'
$txt[140], ':<br />'implode(', '$context['list_users_online']);

echo '
<br />
'
$context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' $scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.
'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>'
;

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
 echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
'
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" />'$context['allow_pm'] ? '</a>' '''
</td>
<td class="windowbg2" valign="top">
<b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>
<div class="smalltext">
'
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], ' <a href="'$scripturl'?action=pm">'$txt[662], '</a> '$txt[663], '
</div>
</td>
</tr>'
;
}

// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="'
$scripturl'?action=login"><img src="'$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>'
$txt[35], ':</b><br />
<input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>'
$txt[36], ':</b><br />
<input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>'
$txt[497], ':</b><br />
<input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'
$modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>'
$txt[508], ':</b><br />
<input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="'
$txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>'
;
}

echo '
</table>
</div>
</div>'
;

//The begin of the simple sc mod
if (!empty($modSettings['show_ssclmod_in_board_index']))
echo 
'
<table border="0" width="100%" cellspacing="1" cellpadding="4" >
      <tr>
         <td class="windowbg2" width="100%" valign="middle" align="center">
                        <span style="color: #000000;" > | </span>
                        <span style="color: red;" ><strong>'
$txt['admin'], '</strong></span>
                        <span style="color: #000000;" > | </span>
                        <span style="color: blue;" ><strong>'
$txt['globmod'], '</strong></span>
                        <span style="color: #000000;" > | </span>
                        <span style="color: green;"><strong>'
$txt['mod'], '</strong></span>
<span style="color: #000000;" > | </span>
         </td>
      </tr>
</table>'
;

}

?>


I reverted to the 'default' theme while trying to find the problem, and I notice that the tables are broken there as well... so it is not strictly a custom-theme problem. Going by what I know of HTML tables, it's got to be something as simple as the equivalent of a tag being left out, or an extra one added, or one misplaced... or something like that.
Title: Re: MCLegendII.1
Post by: Sabre™ on August 11, 2010, 09:01:48 PM
Here is your code, it should work as designed.
You had left over edits within, and had placed the code in a position not reliable for your custom theme.

Let me know if your other tables are ok now aswell.
Title: Re: MCLegendII.1
Post by: Leto Atreides II on August 11, 2010, 09:13:31 PM
That does seem to have solved the problem in the custom theme. The default theme is still buggered though. If I compare the edit you made with the original code I sent you, should I be able to spot the necessary edits easily enough?
Title: Re: MCLegendII.1
Post by: Leto Atreides II on August 11, 2010, 09:36:54 PM
WOW! I looked and I found it! I'm learning PHP! Thank you very much!  :D
Title: Re: MCLegendII.1
Post by: Sabre™ on August 11, 2010, 09:51:02 PM
lol My pleasure mate :)
Another thing you could have done for your default theme is uninstall the mod, remove your manual edits, then reinstall the mod. Or upload a fresh copy of the template, then reinstall your mods.
I only saw 2 that modified that template, but didn't read the whole template.

Good job with fixing it buddy :)
Title: Re: MCLegendII.1
Post by: !RFAN on August 31, 2010, 06:19:02 AM
sorry but i could not find the option in admin area to put IDs of members... i'm using Smf 2 Rc3
i wanna show all member on legend...post base and primary
thanks... :)
Title: Re: MCLegendII.1
Post by: Sabre™ on August 31, 2010, 07:56:15 AM
Admin -> Features and options: then scroll down to find the "Membergroup legend display arrangement" text, where you add your groups.
Title: Re: MCLegendII.1
Post by: !RFAN on August 31, 2010, 05:00:34 PM
i cant find this option.... looks like i have installed any other version...
legends are being shown in info center..but for admin and moderator.. and no option in admin section...
Title: Re: MCLegendII.1
Post by: Leto Atreides II on August 31, 2010, 08:38:41 PM
Quote from: !RFAN on August 31, 2010, 05:00:34 PM
i cant find this option.... looks like i have installed any other version...
legends are being shown in info center..but for admin and moderator.. and no option in admin section...


Did you install the Simple Staff Color Legend (http://custom.simplemachines.org/mods/index.php?mod=1440)? I had that, and found it ugly and unversatile. The one you want is Membergroup Color Legend II.2 (http://custom.simplemachines.org/mods/index.php?mod=1077).
Title: Re: MCLegendII.1
Post by: !RFAN on September 01, 2010, 01:27:46 AM
i have installed "Membergroup Color Legend "
i will re-install this
Title: Re: MCLegendII.1
Post by: the_shadow on October 19, 2010, 11:43:16 AM
there's some way to put this mod on RC3???

ThNkX
Title: Re: MCLegendII.1
Post by: -=[Vyorel]=- on October 19, 2010, 05:48:04 PM
Quote from: the_shadow on October 19, 2010, 11:43:16 AM
there's some way to put this mod on RC3???

ThNkX

MCLegendII.1 for RC3 (http://www.simplemachines.org/community/index.php?topic=219437.msg2531758#msg2531758)
Title: Re: MCLegendII.1
Post by: !RFAN on October 20, 2010, 06:42:26 PM
it is not showing my post based membergroups even after setting groups numbers in admin settings... anything wrong?
Title: Re: MCLegendII.1
Post by: Sabre™ on October 21, 2010, 05:45:07 AM
Try [THIS] (http://www.simplemachines.org/community/index.php?topic=219437.msg2716009#msg2716009) step and see if it helps.
Title: Re: MCLegendII.1
Post by: !RFAN on October 21, 2010, 10:06:12 AM
already done... but no results :s
Title: Re: MCLegendII.1
Post by: Kurakama on November 03, 2010, 02:38:34 AM
plz update for rc4
Title: Re: MCLegendII.1
Post by: Sabre™ on November 03, 2010, 03:12:04 AM
There were no edits made to the strings this mod alters from RC3 to RC4, so the RC3 version found [HERE] (http://www.simplemachines.org/community/index.php?topic=219437.msg2531758#msg2531758) will work for RC4 aswell.
Title: Re: MCLegendII.1
Post by: sharks on December 01, 2010, 11:24:43 AM
To avoid re-posting my suggestions, here is a link to the post: http://www.simplemachines.org/community/index.php?topic=411332.0
Title: Re: MCLegendII.1
Post by: C4G-TK on December 05, 2010, 01:49:34 PM
Quote from: Sabre™ on November 03, 2010, 03:12:04 AM
There were no edits made to the strings this mod alters from RC3 to RC4, so the RC3 version found [HERE] (http://www.simplemachines.org/community/index.php?topic=219437.msg2531758#msg2531758) will work for RC4 aswell.

Worked like a charm for me.  ;)
Title: Re: MCLegendII.1
Post by: sharks on December 05, 2010, 03:14:08 PM
Quote from: sharks on December 01, 2010, 11:24:43 AM
To avoid re-posting my suggestions, here is a link to the post: http://www.simplemachines.org/community/index.php?topic=411332.0

Anyone considered my suggestions. They could make this mod so much better.
Title: Re: MCLegendII.1
Post by: Sabre™ on December 06, 2010, 12:58:31 AM
Your first suggestion is a standard addition to the SMF2 branch, I doubt whether anyone would port that for SMF1, as most are looking to the new code rather than the old, but it is possible.
With your second suggestion, we presume most would know what an administrator, moderator etc are, as some don't initially recognise the board translation of "legend", but it is merely a text string you'd add to your Modifications.english.php along the lines of
$txt['legend'] = 'Legend:';

then call it from your BoardIndex.template.php by replacing this
<span class="smalltext">[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>

with this
<span class="smalltext">' . $txt['legend'] . '[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']</span>
Title: Re: MCLegendII.1
Post by: sharks on December 06, 2010, 04:27:18 AM
Quote from: Sabre™ on December 06, 2010, 12:58:31 AM
Your first suggestion is a standard addition to the SMF2 branch, I doubt whether anyone would port that for SMF1, as most are looking to the new code rather than the old, but it is possible.

I know that 1st suggestion is integrated in the default SMF2 installation. But at of this time, and until 2.0 final is released, SMF 1.1.12 is the stable platform and recommended by none other than the SMF for use on production forums. 2.0 RC versions are, quote: "Note: As this is in development, we do not recommend running SMF 2.0 RC4 on a production site."
So... it is very much worthwhile for someone to support this mod for SMF 1.1.x and as i do not have the knowledge necessary to code it myself, hopefully someone will take the initiative to update this very useful mod for the SMF community.
Thanks for the help to sort out the "legend" text addition. I think it's useful as most forums have special ranks other than the standard admin, moderators, etc.
Title: Re: MCLegendII.1
Post by: Kimmen on January 02, 2011, 07:33:04 AM
Hey Sabre,
Could use your help. I am trying to install this on my new site, i am running SMF RC4 + TP 1.0 RC1 with Crips Anecdota Theme. I get this error on installing:

Click image to make it bigger.
(http://bildr.no/view/791011)

Can you help me with this one?

I also prefer to have the membergroup names in bold written, same with useronline, if this can be done.

Greetings
Kim
Title: Re: MCLegendII.1
Post by: sharks on January 02, 2011, 09:10:22 AM
Kimmen, the installation is actually successful and it will work but only if you use the default theme. For custom themes, you will need to do the necessary changes manually to add the elements of this mod. To know what changes to do, use the parse tool from the official mod page. Or use the link in my sig.
Title: Re: MCLegendII.1
Post by: elguapo on January 03, 2011, 05:03:18 AM
update to RC4 please.. i need this one sir.. thanks
Title: Re: MCLegendII.1
Post by: Kimmen on January 03, 2011, 10:16:50 AM
Quote from: sharks on January 02, 2011, 09:10:22 AM
Kimmen, the installation is actually successful and it will work but only if you use the default theme. For custom themes, you will need to do the necessary changes manually to add the elements of this mod. To know what changes to do, use the parse tool from the official mod page. Or use the link in my sig.

I get this error message on parse from mod page: Sorry, but this modification does not appear to be compatible with the selected version.
The link in your signature, also gives alot of warnings and errors. Ive installed it though, but i dunno what else to change, so it works with my theme.

ive put in my boardindex.template.php file, if that helps.
Title: Re: MCLegendII.1
Post by: TheListener on January 03, 2011, 12:16:18 PM
Quote from: elguapo on January 03, 2011, 05:03:18 AM
update to RC4 please.. i need this one sir.. thanks

The mod already works on RC4
Title: Re: MCLegendII.1
Post by: elguapo on January 03, 2011, 12:50:36 PM
i tried installing the RC1 which is the latest version on the mod site but it's not compatible with RC4 sir.
Title: Re: MCLegendII.1
Post by: sharks on January 03, 2011, 02:26:24 PM
Yet another abandoned mod for grabs, if anyone still has hopes for SMF... SO many things that can be improved in this to add more functionality.

Bulakbol hasn't been online since November 27, 2009, 01:01:36 AM
http://www.simplemachines.org/community/index.php?action=profile;u=67763

This is a useful mod, if only it was still supported. I might have to learn PHP faster and just do it myself. No ETA on that one.

Quote from: Brack1 on January 03, 2011, 12:16:18 PM
Quote from: elguapo on January 03, 2011, 05:03:18 AM
update to RC4 please.. i need this one sir.. thanks

The mod already works on RC4

Actually, there is no need for this mod in 2.0 RC4 as it's already integrated into SMF by default. Just enable it from the theme options.
Title: Re: MCLegendII.1
Post by: elguapo on January 04, 2011, 12:20:52 AM
thanks so much shark.. :D  how about the colored member links?
Title: Re: MCLegendII.1
Post by: Sabre™ on January 04, 2011, 12:47:32 AM
A working version for RC4 can be found [HERE] (http://www.simplemachines.org/community/index.php?topic=219437.msg2531758#msg2531758).

@ Kimmen
Try the attached template.
I quickly injected the code, so if there are any issues, please feel free to post a screen shot and it will be corrected.
But the code looks ok to me ;)

Quote from: sharks on January 03, 2011, 02:26:24 PM
Actually, there is no need for this mod in 2.0 RC4 as it's already integrated into SMF by default. Just enable it from the theme options.

As discussed several times, this mod also offers "post based" groups, whereas the standard feature in which you describe does not.
Title: Re: MCLegendII.1
Post by: elguapo on January 04, 2011, 05:26:45 AM
what to do with the board index sir?
Title: Re: MCLegendII.1
Post by: Kimmen on January 05, 2011, 02:41:11 PM
@Sabre™

Thanks for your help, it looks great  ;)
Title: Re: MCLegendII.1
Post by: Sabre™ on January 08, 2011, 01:32:08 AM
My Pleasure mate :)

@ elguapo
Did you try installing the RC4 version I linked to?
If so, did it install into your theme without error?
Title: Re: MCLegendII.1
Post by: elguapo on January 10, 2011, 12:46:38 AM
i didn't sir sabre.. i just enabled it in my default theme, :D
Title: Re: MCLegendII.1
Post by: Sabre™ on January 12, 2011, 12:15:49 AM
Okay great!
So you do not require any further assistance?
Title: Re: MCLegendII.1
Post by: elguapo on January 12, 2011, 02:28:19 AM
not anymore for this paticular mod sir. thanks mod for rc4 is my problem now. :(
Title: Re: MCLegendII.1
Post by: ~Dragon~ on January 29, 2011, 01:00:00 AM
I tried on legend how issues on weird on actually issues! I wonder
I am tough on research find not sure!
Title: Re: MCLegendII.1
Post by: TheListener on January 29, 2011, 02:56:22 AM
Quote from: smithtr on January 29, 2011, 01:00:00 AM
I tried on legend how issues on weird on actually issues! I wonder
I am tough on research find not sure!

Can you show us the problem as a screenshot?

What errors are you having?

Title: Re: MCLegendII.1
Post by: ~Dragon~ on January 29, 2011, 01:31:44 PM
Quote from: Brack1 on January 29, 2011, 02:56:22 AM
Quote from: smithtr on January 29, 2011, 01:00:00 AM
I tried on legend how issues on weird on actually issues! I wonder
I am tough on research find not sure!

Can you show us the problem as a screenshot?

What errors are you having?
sure
I have screenshot issues on

add visting admin, newbie, 
that is weird! I notice it
Title: Re: MCLegendII.1
Post by: Sabre™ on January 29, 2011, 05:34:21 PM
I'm unsure what the problem is.
If it is that only two member groups are displaying, "Un-tick"  'Admin --> Current Theme --> Show group key on board index:'
If it is a 'layout' issue, then attach your boardindex.template.php and an explanation of the design/layout you desire.
Title: Re: MCLegendII.1
Post by: ~Dragon~ on January 29, 2011, 06:18:48 PM
Quote from: Sabre™ on January 29, 2011, 05:34:21 PM
I'm unsure what the problem is.
If it is that only two member groups are displaying, "Un-tick"  'Admin --> Current Theme --> Show group key on board index:'
If it is a 'layout' issue, then attach your boardindex.template.php and an explanation of the design/layout you desire.

I found it solve mark

THank Sabrae :)

I am glad of found it

solve mark work
Title: Re: MCLegendII.1
Post by: hcfwesker on February 07, 2011, 01:39:20 AM
Quote from: Sabre™ on April 29, 2010, 04:54:51 AM
For RC3 (http://www.simplemachines.org/community/index.php?topic=219437.msg2531758#msg2531758)

Sabre , you're amazing!  thanx, bud :)
Title: Re: MCLegendII.1
Post by: lafouine4478 on June 04, 2011, 02:03:27 PM
Saddened for my English.

I use SMF 1.1.13 with the mods MCLegendII.2 he works with my personalized theme. But I shall like knowing if it is possible that a user not being moderator of the forum can see member(limb) of a group because at present I have that the list and no possibility of seeing this list as with the account an administrator(director) without the features of the admin naturally.

Site: http://elevensmf.perso.sfr.fr/index.php
Account: test Login Testeur MdP
Title: Re: MCLegendII.1
Post by: lafouine4478 on June 12, 2011, 04:44:17 AM
Up ??
Title: Re: MCLegendII.1
Post by: Kimmen on July 21, 2011, 04:58:06 PM
Will this mod be updated to fit the final SMF 2.0 ??
Title: Re: MCLegendII.1
Post by: TheListener on July 21, 2011, 05:59:38 PM
Quote from: Kimmen on July 21, 2011, 04:58:06 PM
Will this mod be updated to fit the final SMF 2.0 ??

Already does
Title: Re: MCLegendII.1
Post by: Kimmen on July 21, 2011, 07:12:50 PM
Really, can i install from package manager, or must i do manually??
Title: Re: MCLegendII.1
Post by: hcfwesker on July 21, 2011, 09:53:01 PM
Quote from: Kimmen on July 21, 2011, 07:12:50 PM
Really, can i install from package manager, or must i do manually??

Use the link from this post.  It's compatible with RC3, but should upload even without emulating to RC3.

http://www.simplemachines.org/community/index.php?topic=219437.msg2531758#msg2531758
Title: Re: MCLegendII.1
Post by: Sabre™ on August 06, 2011, 02:47:05 AM
@ lafouine4478
Do you still require assistance buddy?
Title: Re: MCLegendII.1
Post by: KrisiS on October 05, 2011, 01:56:22 PM
I have just installed this on 2.0 RC3 but I got errors when installing, see the attached image.
It came up with a successful installation after completion but would not work. I tried un-ticking the legend box but it still didn't work.

Can someone help me to get this working on theme: Darkmodern by Crip?

Thanks
Title: Re: MCLegendII.1
Post by: Inti31 on October 05, 2011, 02:54:30 PM
Nice! I just implemented that mod (I did just little changes) successful into my test forum runs on 2.0.1 (just visible when logged in)

(http://postimage.org/image/2qf8ut9tw/)

cheers Inti31
Title: Re: MCLegendII.1
Post by: Maniaco on November 04, 2011, 08:23:11 AM
Quote from: Inti31 on October 05, 2011, 02:54:30 PM
Nice! I just implemented that mod (I did just little changes) successful into my test forum runs on 2.0.1 (just visible when logged in)

(http://postimage.org/image/2qf8ut9tw/)

cheers Inti31

Hello, could be attached and with the changes made? I would love to install it on my forum 2.0.1 with these changes, many thanks.
Title: Re: MCLegendII.1
Post by: Grosraisin on November 04, 2011, 09:10:31 AM
Hi,

For those who would have trouble with mods and SMF 2.0, I made a change to this mod if there is no matter what time was this:

Edite: Suppression du mod :/
Title: Re: MCLegendII.1
Post by: Sabre™ on February 11, 2012, 06:15:10 PM
May I ask Why you removed your version Grosraisin?
Title: Re: MCLegendII.1
Post by: fords8 on February 12, 2012, 01:33:11 PM
I made the edits that needed done to the mod to install on a 2.0.2 board. Not sure if I can attach to the topic or not without getting in trouble.
Title: Re: MCLegendII.1
Post by: xiCanadian on February 14, 2012, 12:25:12 AM
Can someone please give me the version for SMF 2.0.2 I would really appericate this.
Title: Re: MCLegendII.1
Post by: kat on February 24, 2012, 02:45:29 PM
As the author hasn't been in since November 27, 2009, I guess he's not gonna answer you, fords. :(

I'll give the cust team a wave, to see what can be done, if anything.
Title: Re: MCLegendII.1
Post by: xiCanadian on February 27, 2012, 10:48:39 PM
Quote from: K@ on February 24, 2012, 02:45:29 PM
As the author hasn't been in since November 27, 2009, I guess he's not gonna answer you, fords. :(

I'll give the cust team a wave, to see what can be done, if anything.

Thank you.
Title: Re: MCLegendII.1
Post by: hcfwesker on March 04, 2012, 02:42:30 PM
Here you go.  http://custom.simplemachines.org/mods/index.php?mod=3067
Title: Re: MCLegendII.1
Post by: xiCanadian on March 04, 2012, 11:21:37 PM
Quote from: hcfwesker on March 04, 2012, 02:42:30 PM
Here you go.  http://custom.simplemachines.org/mods/index.php?mod=3067

I need to organized the member groups.
Title: Re: MCLegendII.1
Post by: hcfwesker on March 04, 2012, 11:41:38 PM
huh?  you have to assign colors to membergroups where you add.modify them.  the mod just changes the color you assign where their names appear on all pages.
Title: Re: MCLegendII.1
Post by: Pimpghost on June 19, 2012, 02:56:41 PM
How would you get this mod to work on custom downloaded themes? I got it to work on the default theme...
Title: Re: MCLegendII.1
Post by: TheListener on June 19, 2012, 02:58:06 PM
In the same way as other mods.

You tick the themes box on install.

Title: Re: MCLegendII.1
Post by: Pimpghost on June 19, 2012, 03:38:07 PM
I got it installed, but it doesnt show on my theme i installed. But if i switch to the default SMF theme it shows up.
Title: Re: MCLegendII.1
Post by: TheListener on June 19, 2012, 05:17:15 PM
Quote from: Pimpghost on June 19, 2012, 03:38:07 PM
I got it installed, but it doesnt show on my theme i installed. But if i switch to the default SMF theme it shows up.

A manual edit will be required.
Title: Re: MCLegendII.1
Post by: Pimpghost on June 19, 2012, 05:20:00 PM
Would you be able to assist me with that?
Title: Re: MCLegendII.1
Post by: TheListener on June 19, 2012, 05:22:35 PM
Dodgy link removed.  ???

This is the mods parser.
Title: Re: MCLegendII.1
Post by: Arantor on June 19, 2012, 05:24:46 PM
/me wishes people would actually look at the link they're posting. ::)

That link just throws an error.
Title: Re: MCLegendII.1
Post by: Pimpghost on June 19, 2012, 05:27:44 PM
Like Arantor says, link doesn't work.
Title: Re: MCLegendII.1
Post by: TheListener on June 19, 2012, 05:28:07 PM
Hmm thanks for pointing the eooro out.

http://www.tytyweb.net/projects/smf/package-parser/

pimpghost try the above link.
Title: Re: MCLegendII.1
Post by: Jade Elizabeth on June 20, 2012, 12:12:21 AM
The mod site has a parse option you know.
Title: Re: MCLegendII.1
Post by: Sabre™ on June 20, 2012, 03:36:12 AM
@Pimpghost
Which branch of SMF are you installing into? SMF1 or SMF2?
Are you using an official version from the download section of this site, and which package?
Or a package put together by a member?

Here are the two parsed instructions for the official versions;
[SMF1] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1077;attach=72903;smf_version=1.1.16) and [SMF2] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1077;attach=87121;smf_version=2.0.2).

Good luck buddy :)

Edit:
If it's an unofficial version, then use a package parser, there are a few available online as Old Fossil has shown.
Title: Re: MCLegendII.1
Post by: Rowe on October 07, 2012, 10:19:43 PM
Could someone link me to where the file is for 2.0.2?...

I can't find a compatible script for 2.0.2
Title: Re: MCLegendII.1
Post by: TheListener on October 07, 2012, 10:26:55 PM
Quote from: Rowe on October 07, 2012, 10:19:43 PM
Could someone link me to where the file is for 2.0.2?...

I can't find a compatible script for 2.0.2

Reply 699 as I mentioned in your other post.

:)
Title: Re: MCLegendII.1
Post by: Kill Em All on December 25, 2012, 10:39:05 PM
For anyone looking for an update for 2.0.3.

The one on reply 699 had an error.

Here is a fixed version, it isn't fixed however for the core theme.

Mod edit: The mod does not have a license and therefore may not be updated by anyone except for the author.
Title: Re: MCLegendII.1
Post by: jarmore on December 27, 2012, 11:57:50 AM
it is impossible to do something? this is the mod I'm missing ! :(

~ 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).
Title: Re: MCLegendII.1
Post by: hcfwesker on December 30, 2012, 01:25:50 AM
Ummm, question does not compute.  Explain please.
Title: Re: MCLegendII.1
Post by: NightzKung on January 01, 2013, 10:52:05 PM
Quote from: Sabre™ on June 20, 2012, 03:36:12 AM
@Pimpghost
Which branch of SMF are you installing into? SMF1 or SMF2?
Are you using an official version from the download section of this site, and which package?
Or a package put together by a member?

Here are the two parsed instructions for the official versions;
[SMF1] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1077;attach=72903;smf_version=1.1.16) and [SMF2] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1077;attach=87121;smf_version=2.0.2).

Good luck buddy :)

Edit:
If it's an unofficial version, then use a package parser, there are a few available online as Old Fossil has shown.
confirms installed smf 2.0.3 no error
thank you
Title: Re: MCLegendII.1
Post by: Zinx on May 19, 2013, 04:16:18 PM
i have failed test when attempting to install

Execute Modification   ./Sources/ManageSettings.php   Test failed
Execute Modification ./Themes/default/languages/Help.english.php Test failed
Title: Re: MCLegendII.1
Post by: TheListener on May 19, 2013, 11:05:22 PM
Quote from: Zinx on May 19, 2013, 04:16:18 PM
i have failed test when attempting to install

Execute Modification   ./Sources/ManageSettings.php   Test failed
Execute Modification ./Themes/default/languages/Help.english.php Test failed

Where did you install the mod from?
Title: Re: MCLegendII.1
Post by: NekoJonez on May 30, 2013, 07:04:54 AM
Is it a bug for me or is this how the mod is coded BUT, if I have groups that get their permissions from the regular members, this mod only displays the main group. Not the separate groups. :C
Title: Re: MCLegendII.1
Post by: the_shadow on June 26, 2013, 06:56:04 PM
someone knows a similar mod? i can´t put this working
Title: Re: MCLegendII.1
Post by: TheListener on June 26, 2013, 06:58:44 PM
Quote from: the_shadow on June 26, 2013, 06:56:04 PM
someone knows a similar mod? i can´t put this working

Maybe if you tell us why this can't work then someone can help you get it to work.

;)
Title: Re: MCLegendII.1
Post by: Sandmansa on August 12, 2013, 09:37:10 PM
smf 2.0.4, the following line can not be found in sources/managesettings.php.  There is nothing even remotely close.  A little help please?

// Stats, compression, cookies.... server type stuff.
Title: Re: MCLegendII.1
Post by: TheListener on August 13, 2013, 08:00:43 PM
Look for the nearest thing to it.

Do you use notepad++?
Title: Re: MCLegendII.1
Post by: Sandmansa on August 13, 2013, 09:39:49 PM
I use metapad v3.51.  A little old school but does what I need.

But the closest thing I can find would be this....

// Statistics.
array('check', 'trackStats'),
array('check', 'hitStats'),
'',
Title: Re: MCLegendII.1
Post by: Sandmansa on August 22, 2013, 01:00:11 AM
Okay, I installed it on 2.0.5 and it works as advertised.  But I have one question.  Is it possible to have this legend show all post count base membergroups as just one general group?
Title: Re: MCLegendII.1
Post by: GamePersia on February 26, 2014, 05:08:43 AM
Update this mod,....smf 2.0.7.... :(
Title: Re: MCLegendII.1
Post by: TheListener on February 26, 2014, 01:14:54 PM
Quote from: GamePersia on February 26, 2014, 05:08:43 AM
Update this mod,....smf 2.0.7.... :(

The mod works on 2.0.7 already.
Title: Re: MCLegendII.1
Post by: gaurav09 on August 05, 2014, 11:21:08 PM
PLEASE anyone uploade this mod for smf 208   :'( :'( :'(

it's giving me many errors  ::) ::)

Please update a fresh version, or tell me how to manually change order of displayed member group at footer ?
Title: Re: MCLegendII.1
Post by: g0ats3cks on August 09, 2014, 01:12:21 PM
Yes, I am getting Test Failed for ./Sources/ManageSettings.php and ./Themes/default/languages/Help.english.php

Any chance of this getting updated for 2.0.8?
Title: Re: MCLegendII.1
Post by: NanoSector on August 09, 2014, 02:00:36 PM
http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version
Title: Re: MCLegendII.1
Post by: Arantor on August 09, 2014, 02:01:29 PM
Version emulation won't help with such things :(
Title: Re: MCLegendII.1
Post by: NanoSector on August 09, 2014, 02:06:39 PM
Ups, I thought that page contained more information.

Try to manually perform the edits, then.
Title: Re: MCLegendII.1
Post by: Arantor on August 09, 2014, 02:10:00 PM
Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods) perhaps.
Title: Re: MCLegendII.1
Post by: NanoSector on August 09, 2014, 02:26:06 PM
Yeah that's what I was looking for.