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.
How will this work for membergroups that are not based on post counts?
Great mod JohnyB ;)
I've been waiting a while for this one. Installed on my forum without a problem.
(http://t-hill.com/images/demo999.jpg)
Great work fella ;D
Sg
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.
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
:-* :-* :-*
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.
thank u dude
all thing perfect and good
Bye
Looks good.
Thanks, if you actually installed it. ;D
I have on 2 sites. Soon to be added to the other 3.
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'], '] ';
and replace with
echo $context['mc_legend'][$i]['link'], ' ';
Nice on the bracket coloring.
I can't imagine you could afford any sites since you are only 4 years old. :)
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 ::)
i will try this useful mod thx jonny
Cool mod. Thanks!
Thanks guys. If you have questions or suggestions, yell. ;)
Nice work
i try to translate to Pt she not work
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?
Great mod for people who can't wait for SMF 2.0 heh
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?
Put me on the list of those who can't wait for 2.0! 8)
Nice mod!
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?
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.
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 ?
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.
Awesome, than you very much! Here it is. I was also wondering if it could go below the Users Online Today instead ?
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>
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
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
Great mod, exactly what i was searching for.... ;D ;D
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
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
I need help to install "MCLegendII.1" on the WoW-DK Theme.
thanks
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
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.
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.
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.
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'], '] ';
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>';
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
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.
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?
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 :-/.
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!
@JohnyB
No, the format of the forum is just confused. Legend may not be displayed
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?
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!
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.
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 :)
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.
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'], ' &#8226; ', $txt[95], ': ', $context['common_stats']['total_posts'], ' &#8226; ', $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"> ', $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']) == 1 ? $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'] == 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 ')';
}
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'] == 1 ? $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>';
}
?>
I got it. I'll take a look and I'll get back to you.
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.
It showed on the picture you posted. Post a link to your site so I will have idea of what went wrong.
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
Ok good. Here's your BoardIndex.template,php. Make a backup before you use this.
Thanks, i will try.
Here is a screenshot of the language problem i fixed thanks to you.
http://bildr.no/view/152650
Yes, now it is working. Thanks man !
Really nice of you helping me out like this.
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. :)
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)
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>
Thanks!!! :D
You're welcome Sadil. ;) Let me know if you still have problem.
Yes, works like a charm! I thought the mod had been properly uninstalled, but I guess not... :-\
Oh well! :D Thanks a bunch!
'Glad it's okey now. You are welcome. ;)
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 ?
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 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 ?
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.
@Sadil
Thanks.
@rowedf
Are you okay now?
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.
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.
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.
Thank you very much, I missed that "Sources" path the first time.
I hope you are okay now rowdf. ;)
Works flawlessly... (http://www.forumscp.com/Smileys/phpbb/Great.gif)
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.
Thanks Paracelsus. ;)
Great mod!
Thanks!!!
You're welcome guys. And I thank you too. :)
Thanks JohnnyB!
Works well on my custom theme. Colored bracket works well too.
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.
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
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.
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.
Ahh, you are correct, they do not exist in the database as a membergroup. Thanks for the info.
You are welcome Eliana. ;)
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.
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.
Thanks senyorito.
@seek2501.
Senyorito is right. Are you okey with senyorito's help? If you are still having problem, let us know.
Perhaps for future versions, you could populate the options with membergroups in the database, which can then be checked/unchecked easily.
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. :)
@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.
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.
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
Sorry, but it's so easy to tickle you. I'm an idea person, it's my fatal flaw. :P
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
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'], '] ';
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>';
I had a similar problem. Just insert it after the first </span>, I think. Toy around with it until it looks right.
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. ;)
Quote from: JohnyB on March 05, 2008, 09:32:35 PM
@Eliana. That's the way I learned things. Trial and error. ;)
I concur!
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/img232/8661/spaceib6.th.jpg) (http://img232.imageshack.us/my.php?image=spaceib6.jpg)
@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).
Okay. Here.
Btw, I am using the Black22 w/ TP.
Thanks in advance!
Hi WarriorX, got it. I'll get back to you. Thanks.
Thanks for the help senyorito.
@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
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 :)
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.
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/img232/8661/spaceib6.th.jpg) (http://img232.imageshack.us/my.php?image=spaceib6.jpg)
Sorry, I grabbed the wrong one. :P My bad. I apologize.
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.
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.
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.
Yeah bro it's quite different. It's only limited to non-post based groups.
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
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
^ 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*
8) I hope this mod will not end up in the archive section. :P
Please help me add this mod. This is my BoardIndex.template file
Thx
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?
I use Fg:.:Zm theme, thx for help
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>
thank you, work fine :)
You're welcome. ;) Enjoy and good luck.
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'], '] ';
continue;
}
echo '
</span>
</td>
</tr>';
}
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?
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 :/.
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?
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. :)
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?
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
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>
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.
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>
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.
yet another cool mod JohnyB :D
Hi Robbie. Thanks for the compliment bud. 8)
Thank but this mod didn't work me. I tried it on both my local server and live site but it didn't work.
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?
On SMF 2.0 Beta 3 public. It installed clearly and i set all settings in admin panel. But there wasn't any change.
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?
Quote from: JohnyB on April 05, 2008, 12:39:58 AM
You have to turn off the built-in legend.
Thanks now it works.
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)
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'], '] ';
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. :-\
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!
@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'], '] ';
continue;
}
echo '
</span>
</td>
</tr>';
}
</edit>
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.
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.
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.
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?
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?
Hi Coolcrustycat. I tried it again and it works on my testboard. Does some of your mods see hidden online and some don't?
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?
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.
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ísticas e opções</b><br />]]></search>
<add><![CDATA[$helptxt['arrange_mclegend'] = 'Organizar a exibição do seu groupo de membros a cor e legenda. Digite o número grupo identificaçao que devem ser separados por vírgula. Nenhuma vírgula após o último número. (i.e. 1,2,8,7,6,5,4).
Para activar a exibição de desativar o "Show group key on board index" from Admin -> Actual Tema, sob Tema guia Configurações.';
]]></add>
</operation>
</file>
<file name="$languagedir/Help.brazilian.php" error="skip">
<operation>
<search position="end"><![CDATA[$helptxt['featuresettings'] = '<b>Editar características e opções</b><br />]]></search>
<add><![CDATA[$helptxt['arrange_mclegend'] = 'Organizar a exibição do seu groupo de membros a cor e legenda. Digite o número grupo identificaçao que devem ser separados por vírgula. Nenhuma vírgula após o último número. (i.e. 1,2,8,7,6,5,4).
Para activar a exibição de desativar o "Show group key on board index" from Admin -> Actual Tema, sob Tema guia Configuraçõ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>
i couldnt get this to work on my board and i'm using the 1.1.4 version with the bbpolloskin
works great for me - ver 1.1.4-
(http://img239.imageshack.us/img239/5317/userscolorqo2.jpg) (http://imageshack.us)
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 ;).
@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>
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
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.
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.
JohnyB - you're an ace guy for trying.
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. ;)
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.
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.
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)
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.
Yeah i am very unfamiliar with PHP. So here is my boardindex
I'll get back to you after I edit your Starlight theme's BoardIndex.template.php.
thank you so much. This is very appreciated.
Here's your edited BoardIndex.template.php. Install the mod first before using this template. Thanks for trying/using this mod.
thank you so much. WOrks GREAT!!!!
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>';
Thanks MTF95 for the translation. I'll add them on both versions.
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!
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.
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ärgerna. Skriv in gruppens id som 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>';
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.
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
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.
thanks u johny
Could u help me install this on Kelo-lt?
Attach your BoardIndex.template.php and I'll edit it.
Managed to do it my self, it wasn't hard!
Thanks..
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.
Ty it works
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.
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.
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. ;)
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
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.
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
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).
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?
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.
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
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
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?
Yeah, you are confused. Attach your BoardIndex.template.php and I'll see what I can do. What custom theme are you using again?
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
Here's your BoardIndex.template.php back pp08. Thanks for using this mod.
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
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
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?
also how do i understand which number refers to which group/club?
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.
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?
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.
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??
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>';
}
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'))
???
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'];
OMG, thanks a lot for your help,
It really works fine now. You are so great.
Thanks again. ^_^
You're welcome. 'Glad it's working now. :)
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
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.
@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.
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!
No problem. :)
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
@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.
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?
@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ção do seu groupo de membros a cor e legenda. Digite o número grupo identificaçao que devem ser separados por vírgula. Nenhuma vírgula após o último número. (i.e. 1,2,8,7,6,5,4).
Para activar a exibição de desativar o "Show group key on board index" from Admin -> Actual Tema, sob Tema guia Configuraçõ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.
JohnyB don't you think i should wait for the themes instructions?
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
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
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:
(http://misateam.dyndns.org:82/files/1/legend.png)
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
Weird. Did you set the modification's settings in Features and Options?
This is the screen of my "features and options", ples check it is correct.
(http://misateam.dyndns.org:82/files/1/preferenze.png)
Looks right.
@Rodolfo
Yes, it looks right. Attach your Sources/BoardIndex.php and the BoardIndex.template.php to your next post.
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 ;)
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...
@@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'], '] ';
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>';
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'], '] ';
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'], '] ';
$row++;
continue;
}
replace the #
2 with the count of groupnames for the first row.
Tnx JonnyB, now that's ok! ;)
It works, thank you very much!
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.
Thank you very much guys for using or trying this mod. You are welcome of course.
Hello JohnyB,
this is the file that you asked. My english is very bad :D
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
@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.
Thanks very much for your fast help.
This mod is very beautyful. Yhanks for your job ;D
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
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.
Thanks for the help ccbtimewiz :D
Heres the file :)
Here you are, sir.
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
I can't find why it would do that. Could you tell me the exact line where it finds the error?
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:
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.
@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.
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
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'], '] '; 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.
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.
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.
JohnyB you rock :D. Thanks it worked great
NICE ONE
@optimushunk
You manually edited correctly. If you encounter error trlated to this mod, please let me know.
@all
Thanks guys. 8)
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!
awww I'm flattered. :) Thanks everyone.
hey how to remove the brackets at the side ?
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'], '] ';
Replace with:
echo '', $context['mc_legend'][$i]['link'], ' ';
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
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
Depends, are you using dilbermc?
Yes, I am!
Attach your boardindex.template.php file from that theme and I'll make the edit for you.
Oops, sorry.
Here's your BoardIndex.template.php Manilagurl. Use this file after installation. Let me know if you want the "before" installation copy.
Thanks a lot Johny B! It worked! Nice mod. :)
You're welcome. ;) Thanks for using this mod.
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.
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!
Got it! Thanks again. :)
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 #.
@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.
JohnB, that's the easiest way! Thanks for the tip! :)
SgtMic, thank you as well.
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.
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. :)
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.
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
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)
Here is.
Thanks a lot for your help :)
All done and ready for action. :P
Thanks a lot! now it's working!!! :-*
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
This should do the trick.
ccbtimewiz thanks youuu it work perfectly
Awww I'm late. :P I thank you ccbtimewiz for the help. You are very helpful as usual. 8)
Thanks. :)
Glad to help out. :P
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..
Sample of SMF 2.0 Beta 3.1 membercolor legend (http://www.shinyblue.kalesangbayan.com/index.php) for F.L.A.M.E.R.
can u please help me install this for SMF Default Theme - Core
thnx
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 :|
Attach your boardindex.template.php and I'll help you.
Is this what you are looking for :(
That file already has the correct edits. Are you sure it isn't working?
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 :(
@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?
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.. :)
You are welcome opti.. err F.L.A.I.M.E.R. :)
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
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.
Thank you :) :) :) - Here is is:
In your theme folder.
Alright, I finished it. Here you are..
Quote from: ccbtimewiz on August 11, 2008, 01:57:31 PM
Alright, I finished it. Here you are..
:) :) :) :) :) :)
Thank you so much
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 :|
Attach your BoardIndex.template.php and I'll look at it.
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.
@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 have before and was told it was okay so i don't know what else to do
@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.
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
@azn
I thought ccbtimewiz's edit resolved your issue. Have you tried using the edited BoardIndex.template.php? Post the error you are getting.
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
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.
@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
echo '[', $context['mc_legend'][$i]['link'], '] ';
echo ' ', $context['mc_legend'][$i]['link'], ', ';
<edit> @azn102 Try the attached BoardIndex.template.php. </edit>
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 ?
Install this mod and ignore the failed test. After the installation, upload the edited file that I attached (from my previous post).
Thank you JohnyB, this went in :)
How do i install this mod on Musiconica theme? manually, the coding are different
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
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?
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.
@jepot5
Ckeck this post. Reply #235.
http://www.simplemachines.org/community/index.php?topic=219437.msg1607323#msg1607323
Ok thanks.
Can you edit my BoardIndex please so i can use this mod :P
Thanks in advance
@aw06
Try this edited BoardIndex.template.php.
Works, but i dont see the options for it in features and options ...
dont see it in the default theme either ::)
Did you install the mod? No errors in the error log?
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
Got it sorted out 8)
Thanks
:-[ 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
It could be language string. Check your other mods that uses sp_forum string.
ok , how can i make the links clickable to guest/regular members ?
You can do that in SMF 2.0 betas but not in 1.1.5. Sorry.
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)
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
Try creating a temp folder and chmod to 777.
Already have a temp folder at 777
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.
@bros
I'mm looking at the mod again for Beta 4. I'll get back to you.
@MDragon
In your Sources/ModSettings.php,
// 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.
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.
Here you go dkinser. The easiest edit.
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.
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.
@chadon
Try it yourself. After installing this mod, open dark night theme's BoardIndex.template.php and
<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>
<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>
// Show YaBB SP1 style information...
if (!empty($context['membergroups']))
echo '
<tr>
<td colspan="2" class="windowbg2" width="100%">
<span class="smalltext">[' . implode('] [', $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
$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'];
$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
<span class="smalltext">[' . implode('] [', $context['membergroups']) . ']</span>
<span class="smalltext">' . implode(' ', $context['membergroups']) . '</span>
Thank you JohnnyB, I appreciate your help ;)
Hi JohnnyB ...
is the script for dark night theme the same with triton theme ? i cant find the first script ..here it is ..
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
@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.
Hello there JohnyB.
Could you please edit my BoardIndex.template.php in order i am able to use ur mod?
Thanks in advance!
-------
Nick
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
Johnny which package do you mean?
Why does this keep showing my key twice?
http://terranbytes.com/index.php
@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.
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
from what I've seen, only Admins can see the list under the groups. The others don't get the link, just the name.
You was correct, thank you so much for the help and support. :)
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
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.
@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.
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?
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
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']);
thanks JohnyB .. working now !
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!
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)';
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)';
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 NIBOGOThanks for the tyranslation guys. I'll add them to the package when I have time. Tomorrow maybe.
@Lo0kBeHiNdUThe first mod does that. Membergroups Color Legend for online members only (http://custom.simplemachines.org/mods/index.php?mod=207)
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.
Thanks bros. Appreciated your confirmation.
how can i post the legend???
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
(http://ttkalliance.com/modNotApplied.jpg)
Now putting in 1,2,3
(http://ttkalliance.com/problemWithMod.jpg)
@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.
I developed a theme using the theme maker on the SMF boards.
The file is attached.
probably because cyrillic, ok , put (Latinic) anyway that latter use everybody.
if is not about cyrillic, then I have no answer :S
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'], '] ';
continue;
}
echo '
</span>
</td>
</tr>';
}
echo '';
that was duplicated it was repeated twice in the code.
@ravac
Thanks. I'll try it again later today.
@Patriot89
Cool. Good to know you fixed it. :)
how can i put the legend.... i installed it already...
@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.
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..
i have installed this mod but it is not working on dilber multicolour theme.
plzz help
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
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?
@kupals
Do you still need assistance?
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??
Have you installed the mod with no errors?
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
Can you post a link to your forum?
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
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
@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('] [', $context['membergroups']) . ']</span>
</td>
</tr>';
// If they are logged in, but SP1 style information is off... show a personal message bar.
@ SIR JohnyB
ok its already solved... hehehh thankz
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.
@XchrisX
Have you tried bros' advice?
hey am havin stuck with this i installed a new theme and i cant see it :(
can some 1 help plz
Which theme are you using and what version of SMF?
Quote from: JohnyB on October 07, 2008, 04:24:30 PM
@XchrisX
Have you tried bros' advice?
I will try now.
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 ?
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.
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
That's great. I'll check my codes again when i have time. Sorry for the errors.
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.
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!!
@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.
Johny here the attachment.
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
Sorry about that. I am going to update the package again. I am having a hard time.
<edit> Try the new package @hadesflames. </edit>
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.
Good morning, I have this problem if somebody can help me?
thank you in advance and excuse my English
Theme= Extrem6
Here you go @paulobraga. Use this file after installing this mod.
My theme don't supports the mod.
Can anyone help me.
@TulE
Are you still using "Simple Green" theme?
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
@Propaganistas
Thanks. I'll check the package.
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
@I AM Legend
you can try this
in BoardIndex.template.php
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode('] [', $context['membergroups']) . ']</span>
and to have more spaces between the membergroups,you should add that
also as an example
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode('] [', $context['membergroups']) . ']</span>
thats awesome, ty very much
Thanks for the help Duncan85 :)
Your welcome :P
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 :)
@Triponic
Here yah go.
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.
@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('] [', $context['membergroups']) . ']</span>
</td>
</tr>';
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
Yap I am.
I like this theme.
@Tule
I think I told you what to edit but if you haven't done so, here's your edited BoardIndex.template.php.
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?
@Haito
There seems to something wrong with the package you have. Please redownload the mod and reinstall. Let me know how things goes.
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
@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?
this link... http://custom.simplemachines.org/mods/index.php?mod=1077
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
yeah...
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
@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.
can you edit this for me ..
thanks
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?
@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.
I mean the who is online list to be order after the legend too.
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.
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.
@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?
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 :-\
A link to your site will help me find the problem.
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?
@holeski
If your custom theme does not have BoardIndex.template.php, then it uses the default one. (default/BoardIndex.template.php).
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.
If you installed this mod via the Package Manager, then you don't have to edit the default/BoardIndex.template.php.
Rock-n, works like a charm when I do it like that. Thanks
You're welcome holeski. I thank you too for using or trying this mod.
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
@[email protected]Yes. Install the mod and then edit BoardIndex.template.php manually.
<td class="titlebg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<td class="titlebg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td colspan="2" class="windowbg" width="20" valign="middle" align="center">
// If they are logged in, but SP1 style information is off... show a personal message bar.
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode('] [', $context['membergroups']) . ']</span>
</td>
</tr>';
// If they are logged in, but SP1 style information is off... show a personal message bar.
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
@foempspeedy
Install this mod and then edit your darkit theme's BoardIndex.template.php manually.
<td rowspan="3" class="windowbg" width="20" valign="middle" align="center">
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
', $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('] [', $context['membergroups']) . ']</span>
</td>
</tr>';
echo '
<tr>
<td colspan="2" class="windowbg2" width="100%">
can i make each member group clickable to regular members... ??
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.
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...
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.
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('] [', $context['membergroups']) . ']</span>
<span class="smalltext">[' . implode('] [', $context['membergroups']) . ']
', $context['allow_memberlist'] ? ' [<a href="'. $scripturl. '?action=mlist">' . $txt[331] . '</a>' : '', ']</span>
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.
@Angie of AKC
Let me know how things goes.
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?
I cannot get it in my BoardIndex.Template.php correctly. Can someone try to do it for me?
@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?
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)
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.
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
@mraza
Here's your modified BoardIndex.template.php. Let me know if there's problem.
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)
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.
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.
@Sandmansa
Cool. Good to hear. You're welcome.
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
@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.
@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.
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.
thanks Sandmansa, it works fine
thanks again for so a nice mod
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
@Sandmansa
I appreciated the help. Thanks.
@Kim Arne
Which custom theme are you using?
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
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.
Here it is.
Will remind you yes.
@Kim Arne
Here's your edited invasion BoardIndex.template.php. Use it after you install this mod.
Thanks, it works :)
Quote from: Bulakbol on December 30, 2008, 08:56:40 PM
@[email protected]
Yes. Install the mod and then edit BoardIndex.template.php manually.
<td class="titlebg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<td class="titlebg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td colspan="2" class="windowbg" width="20" valign="middle" align="center">
// If they are logged in, but SP1 style information is off... show a personal message bar.
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode('] [', $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.
@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.
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?
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.
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.
@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.
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...
@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.
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.';
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? :)
....
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>';
@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.
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.';
is there anyway to show the all the groups on one page like
http://www.simplemachines.org/community/index.php?action=groups
@6aroThanks 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">
@gameballaSorry. Version 2.0 RC1 does that but not the 1.1.8.
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
@6aro
That's what I thought. :D Thanks again. I will update the package tomorrow.
N/m guys little reading won't hurt at all you guys helped me so much thanks :)
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!
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.
@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.
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.
:)
I gave you the fact so I helped you. :D
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.
@lethal1320.com
I know you can do it. Yes, a good sleep and a shower will make you fresh. :D
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.
@Blinker
I will advice the same thing but let's try again. In Sources/BoardIndex.php
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'];
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,
<span class="smalltext">[' . implode('] [', $context['membergroups']) . ']</span>
<span class="smalltext">' . implode(' ', $context['membergroups']) . '</span>
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.
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?
Not to worry. Most custom themes use or fall back to the files from the default theme.
Ok, thank you, It works great! thank for the mod.
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?
@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.
<span class="smalltext">[' . implode('] [', $context['membergroups']) . ']</span>
<span class="smalltext">[<b>' . implode('</b>] [<b>', $context['membergroups']) . '</b>]</span>
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.
@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.
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... ;)
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?
@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)
Can someone please tell me how I can get this to work with the Default Multi Colour Theme?
@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.
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!
Edit the BoardIndex.template.php of your theme manually.
But what am I taking out or putting in? That's where I'm confused. Sorry.
@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.
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!
@Diamond1444
Your edited BoardIndex.template.php is attached. Use this file after installation. Make a backup of the original file first.
Thank you so much!!! :D
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
Could you tell me how to install this mod on the World of Warcraft (http://custom.simplemachines.org/themes/index.php?lemma=1626) Theme?
@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,
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo '
<br />[' . implode('] [', $context['membergroups']) . ']';
if (!empty($context['membergroups']))
echo '<div style="padding-top: 2px; margin-top: 2px; border-top: 1px solid #c6c6c6;">
[' . implode('] [', $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.
Hello^^!
I want to install this mod on theme Outline 115. How can I do it?
I have SMF 1.1.9
Nice mod
@Chocozell
You have to edit your BoardIndex.template.php manually.
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
<td rowspan="3" class="windowbg" width="20" valign="middle" align="center">
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>
', $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('] [', $context['membergroups']) . ']</span>
</td>
</tr>';
echo '
@[<Sharp>]
Thanks for the compliment. :)
Thank You Bulakbol!
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?
@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.
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
@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.
Language portuguese_brazilian on SMF 2.0 RC1.2.
Help.portuguese_brazilian.php
$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.';
$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 "Exibir chave do grupo na index do fórum" em Administrar --> Configuração do Fórum --> ConfiguraƧƵes do Tema Atual.';
ManageSettings.portuguese_brazilian.php
?>
$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 "Exibir chave do grupo na index do fórum" em Administrar --> Configuração do Fórum --> ConfiguraƧƵes do Tema Atual.</span>';
@CesarManara
Thanks for the language translation. I will add the language to the next update.
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
@Roger Rabbit
BoardIndex.template.php, find
<span class="smalltext">[' . implode('] [', $context['membergroups']) . ']</span>
and replace with
<span class="smalltext">' . implode(' | ', $context['membergroups']) . '</span>
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..
:)
Yes you can. Just move the block down. BoardIndex.template.php
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode('] [', $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.
Quote from: Bulakbol on July 31, 2009, 10:19:53 PM
Yes you can. Just move the block down. BoardIndex.template.php
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode('] [', $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
@devil_jin
Sorry, I can't find the Carbon Orange theme. Do you have a link to the theme?
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)
@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
Np here's my Boasrdindex.template.php and the Carbon Orange theme..
Thanks for the quick reply and your kind help..
:)
@devil_jin
Here's your BoardIndex.template.php. Moved the membrgroups under the most online stat.
Thanks bulakbol..
:)
how would i get this to work on Helios_Multi theme
Do you have a board index template on the theme?
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.
Quote from: TheListener on August 10, 2009, 10:06:58 PM
Do you have a board index template on the theme?
yes i do
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?
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('] [', $context['membergroups']) . ']</span>';
echo '
if it is not there, then add it.
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.
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;"> ', $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], ' "', $context['latest_post']['link'], '" ', $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] . ': "' . $context['latest_post']['link'] . '" (' . $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'].'
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">
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.
Quote from: TheListener on August 11, 2009, 08:51:35 PM
... if it doesn't work start pulling your hair out before replacing.
LOL
@ troll711There 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
Is it a plane?
Is it a bird?
NO it's Sabre
- who let him out on the loose?-
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;"> ', $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], ' "', $context['latest_post']['link'], '" ', $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] . ': "' . $context['latest_post']['link'] . '" (' . $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('] [', $context['membergroups']) . ']</span>';
echo '
<hr /><span class="smalltext">
Most users online today: '.$modSettings['mostOnlineToday'].'
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">
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]
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: 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
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.
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
ok reinstalled and now i see that. but still dont show the legend
EDIT
FIXED! thanks everyone for the help
I appreciated the help Sabre and The Listener. Glad to know troll711 got everything sorted. Thanks.
2.0 rc1.2 also can not run!
The version 3.0 should work with RC1.2. Have you tried version 3.0?
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
I need this mod for theme "Cargo" from DiznerStudio.. Here is BoardIndex.template.php
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.
Will this work on 1.1.10?
yes it works fine on 1.1.10
BROTHER plzz provide.
1.1.10 Manual Install Instructions for SMF
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 :)
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]
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 :)
Ishaan
Please let us know if you require any help installing the mod.
Could I please get some help with my theme question? :(
Have you had any errors in your log recently?
@ 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 :)
Thank You very much Sabre⢠:)
is there anything i can change to get it to work with the theme back n black?
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.
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 :)
ok now what do i change or replace there
Have you made a back up of the file?
yea
Please attach the requested file as an attachment.
here you go
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 :)
@ _Punisher
Try the attached template.
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.
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?
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?
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 :)
here the BoardIndex.template.php
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 :)
it works now where do i got to add the member group i dont see it in the admin panel
[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.
sweet thanks im all set to go i appreciate the help
Anytime buddy :)
Enjoy
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
bump
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
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?
Does anyone know how to install it on Urban theme ? :P
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:
I Already Did :P :P :P :P :P :P :P :P :P :P
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 :)
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
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
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.
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
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
Why is the mod only using 80% of the space it has? I dont get it :s
(http://foe-rs.com/MC.PNG)
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
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.
Try the attached file
can't wait to get home and try it out, thank you!
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 :)
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
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
Too bad it is not yet available for SMF 2.0 RC2. :(
i feel the same :S :(
Using it on my RC1.2 forum works cool..
would love to see this working on RC2.....
Really a great mod..
:)
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 :)
alguien que me configure mi BoardIndex.template para el theme cargo
porfavor
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
I have also gone over to SMF2 RC2, would really love to have this working on it.
Please update it for SMF 2.0 RC2
Thx
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...
removed
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ā¢
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!
Try the attached.
Cheers.
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
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
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
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!
My pleasure Kimmen :)
Happy thanksgiving Rowdy :)
@ 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?
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 :)
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('] [', $context['membergroups']) . ']'; } echo ' </p>
Because the echo ' </p>:
is not there at the end.
Thanks and Happy Thanksgiving!
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.
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.. :)
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
Just glad I could help mate.
Cheers :)
Quote from: Sabre⢠on November 25, 2009, 05:03:14 PM
Try the attached.
Cheers.
thanks sabre works great on my rc2 test forum.
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.
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
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.
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?
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
You will need to manually edit your 'custom' themes BoardIndex.template.php
thx for reply...appriciated...
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.
Thanks again Sabre!
Worked great for RC2 that I can tell!
@ [T]uGa [M]aSter
What exactly are you asking someone to do or have a problem with?
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. :'( :'(
A late thank you for the code (which you posted on page 30)!
But it should working correctly with 1.1.11 ?
And do i parse RC2 or RC3 ::)
@ [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.
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. :'(
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.
Ok, Thank you for your help. :)
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.
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... :'(
In case you have made other changes to the template(installed another mod), could you attach your copy here to have a look at.
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.
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
Indeed.
It isn't difficult to do achieve, and would be best dealt with the way adbrad has mentioned.
My membergroups are not showing correctly despite being listed in the admin area.
What would you require to look at?
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.
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.
For anybody that experiences Brack1s problem, the solution is to un-tick 'Admin --> Current Theme --> Show group key on board index:'
please edit my boardindex...
thx before 8)
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?
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
for SMF 2.0 RC2? please?
lol
See if the one post above yours is useful :)
when will the update be ready for 2.0 RC2 for this MOD
Thanks :)
The mod works perfectly on my forum which is on 2.0 RC2.
www.parascifi.net
Yep did not read all the post got it working now thanks. ;D
Ps:Great mod ;D
rc3 update?
Someone may have to give Sabre a poke in the ribs.
;D
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 :)
Er hiya Sabre
:D
It worked then.
Nice Mod
Please update it for SMF 2.0RC3 ;)
Thanks
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 ;)
Thanks for the RC3 version Sabre⢠;D
So what's the difference between the RC3 version of the mod and the one built into 2.0 RC3 anyway?
this also shows post based groups and you can easily set to any order through the acp
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 :)
robbie: It's already covered on this very page, it's an option in Admin > Current Theme.
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
It doesn't cover the post count groups.
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
(http://i40.tinypic.com/b55mz5.jpg)
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 ?
(http://i41.tinypic.com/2hqry86.jpg)
You cannot delete the Moderator group, it isn't possible.
And if Administrator is group 1, you can't delete that either.
The Administrator Group is created by me.. so please tell me how to delete ?
Click on the modify option, there's a delete option in there.
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
(http://i40.tinypic.com/b55mz5.jpg)
I want to arrange this type.
[SF OWNER] [GLOBAL MODERATOR] [MODERATOR] [POLICE] [GOOD LINKER] [SHINING STAFF] [VIP]
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.
@ 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.
BRo.. I don't understand .. can you plss tell me steps ?
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
I dont have the option Show group key on board index:
HELP ME
The option not there.
also i am using SMF 2.0 RC3
plss help me
Whrere is the option?
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
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.
For RC3 (http://www.simplemachines.org/community/index.php?topic=219437.msg2531758#msg2531758)
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)
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 ;)))
My pleasure peeps.
Enjoy :)
Where is the version 3.0 for 1.1.11? ?_?
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.
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
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.
@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. :-\)
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?
The installation runs fine, no errors.
But the membergroups legends on the forum index keeps the original sequence instead of mine...
Can ya let us see a link please bud.
Which language is used?
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?
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.
Un-tick 'Admin --> Current Theme --> Show group key on board index:'
Sheesh Sabre you sure have good hearing.
It was that old trick again was it.
>:(
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..
Haha.
You nailed it! All working now.
Thank you two. ;)
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?
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
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
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.
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?
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 :)
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!
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.
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
:(
You've forgotten rowspan="3"
I put that in at first, then got rid of it because I thought it was causing the problem... I'll try again.
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.
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.
It's a civil rights activist site. No more 'racist' than an organization like the NAACP might be deemed.
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:
(http://www.kriegbrut.org/images/brokentables.PNG)
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.
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.
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'], ' &#8226; ', $txt[95], ': ', $context['common_stats']['total_posts'], ' &#8226; ', $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"> ', $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']) == 1 ? $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], ' "', $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 "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>"' . $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>';
if (!empty($context['membergroups']))
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">[' . implode('] [', $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'] == 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 ')';
}
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']