• Welcome to Simple Machines Community Forum. Please login or sign up.
January 21, 2022, 07:13:18 AM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


MCLegendII.1

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

Previous topic - Next topic

Bulakbol

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.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Bulakbol

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
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Eliana Tamerin

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.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Bulakbol

February 29, 2008, 03:17:10 PM #83 Last Edit: February 29, 2008, 03:18:49 PM by JohnyB
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. 
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Eliana Tamerin

Ahh, you are correct, they do not exist in the database as a membergroup. Thanks for the info.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Bulakbol

You are welcome Eliana.  ;)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Basie

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.

senyorito

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.

Bulakbol

Thanks senyorito.

@seek2501.
   Senyorito is right. Are you okey with senyorito's help?  If you are still having problem, let us know.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Eliana Tamerin

Perhaps for future versions, you could populate the options with membergroups in the database, which can then be checked/unchecked easily.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Basie

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. :)

Bulakbol

@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.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Eliana Tamerin

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.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Bulakbol

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
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Eliana Tamerin

Sorry, but it's so easy to tickle you. I'm an idea person, it's my fatal flaw. :P
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Bulakbol

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
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

No.Body

I am having problem adding this  :(

In the parser it says

Find :


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


and add after


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



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

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


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




Eliana Tamerin

I had a similar problem. Just insert it after the first </span>, I think. Toy around with it until it looks right.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Bulakbol

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.  ;)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

senyorito

Quote from: JohnyB on March 05, 2008, 09:32:35 PM
@Eliana. That's the way I learned things. Trial and error.  ;)

I concur!

Advertisement: