News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

MCLegendII.1

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

Previous topic - Next topic

InsaneneSs

#220
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

Bulakbol

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

InsaneneSs

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?

Bulakbol

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

InsaneneSs

JohnyB don't you think i should wait for the themes instructions?

Bulakbol

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

InsaneneSs

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


rodolfo

Thank you very match for this mod and sorry for my bad english.

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

Watch this screen:


I have the core themes for my forum, but i use the italian language with UTF-8 support.
I search in the thread and found the solution for to see the description of functions in the admin pannel. But i not found nothing.
Thankyou very mutch and sorry for my very bad english  :D

ccbtimewiz

Weird. Did you set the modification's settings in Features and Options?

rodolfo

This is the screen of my "features and options", ples check it is correct.



Eliana Tamerin

Do NOT PM me for support.

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

Bulakbol

@Rodolfo
   Yes, it looks right. Attach your Sources/BoardIndex.php and the BoardIndex.template.php to your next post.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

@L3

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 ;)

Achilles991

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

Bulakbol

@@L3
Edit the amber11final/BoardIndex.template.php. Look for
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';


and replace with
</tr>';
if (!empty($modSettings['arrange_mclegend']))
{
echo '
<tr>
<td class="windowbg2" width="100%">
<span class="smalltext">';
foreach($context['mcl_group'] AS $key => $dummy)
for ($i = 0; $i < count($context['mc_legend']); $i++)
if ($context['mc_legend'][$i]['id'] == $context['mcl_group'][$key])
{
  echo '[', $context['mc_legend'][$i]['link'], ']&nbsp;&nbsp;';
  continue;
}
          echo '
          </span>
</td>
</tr>';
}
echo '
<tr>
<td colspan="2" class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Bulakbol

#235
Quote from: Achilles991 on July 07, 2008, 06:16:08 PM
Oh... I have a problem because of number of groups... I have more groups then one line can support... I don't know the way to separate legend in two lines, and my legend looks bad... Can somebody help me with this? If you don't know what i am talking about visit www.petnica.info , and look at the bottom of the page...

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

replace the #2 with the count of groupnames for the first row.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

@L3

Tnx JonnyB, now that's ok! ;)

Achilles991

It works, thank you very much!

Anub1s

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.

Bulakbol

Thank you very much guys for using or trying this mod. You are welcome of course.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: