Active Members In Topic

Started by snork13, June 01, 2006, 02:09:14 PM

Previous topic - Next topic

Blinker

#100
Hi snork13, nice mod. Installed fine and works on my custom theme.

One problem though: when I go to my permissions it generates two errors -

8: Undefined index: permissionname_0_any
File: /home/content/x/x/x/xxxxxxxxx/html/forum/Sources/ManagePermissions.php
Line: 1524

8: Undefined index: permissionname_0_own
File: /home/content/x/x/x/xxxxxxxxx/html/forum/Sources/ManagePermissions.php
Line: 1520


Line 1520 in my managepermissions.php is

'name' => $has_own_any ? $txt['permissionname_' . $perm . '_own'] : ''

It's the same code for line 1524 except "own" changes to "any" at the end.

How can I stop these errors?

DeviDarkL

#101
Great Mod ;)

Here are the Portuguese and Brazilian Translations:
<file name="$themedir/languages/Help.portuguese_pt.php" error="skip">
<operation>
<search position="end"><![CDATA[ ?>]]></search>
<add><![CDATA[
$helptxt['activeMemberEnable'] = 'Esta opção permite que ligues ou desligues a habilidade dos utilizadores verem quem é que é mais activo no tópico.';
$helptxt['activeMemberCountenable'] = 'Esta opção permite que ligues ou desligues a habilidade de contar posts';

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

<file name="$themedir/languages/index.portuguese_pt.php" error="skip">
<operation>
<search position="end"><![CDATA[ ?>]]></search>
<add><![CDATA[
$txt['am_description'] = 'Minimizar ou Expandir a lista de Membros mais Activos no Tópico.';
]]></add>
</operation>
</file>

<file name="$themedir/languages/ManagePermissions.portuguese_pt.php" error="skip">
<operation>
<search position="end"><![CDATA[ ?>]]></search>
<add><![CDATA[
$txt['cannot_activeMember_view'] = 'Desculpa, não estás autorizado a ver os Membros mais Activos no Tópico.';
$txt['permissionname_activeMember_view'] = 'Ver os Membros mais Activos no Tópico';
$txt['permissionhelp_activeMember_view'] = 'Permitir aos membros ver os Membros mais Activos no Tópico.  Se não estiver ligado, não verão os Membros mais Activos.';

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

<file name="$themedir/languages/ManageSettings.portuguese_pt.php" error="skip">
<operation>
<search position="before"><![CDATA[
$txt['karmaLabel'] = 'Título do Karma';
$txt['karmaApplaudLabel'] = 'Aumentar Karma';
$txt['karmaSmiteLabel'] = 'Diminuir Karma';
]]></search>
<add><![CDATA[
$txt['activeMemberEnable'] = 'Activar os membros mais activos no tópico';
$txt['activeMemberCountenable'] = 'Permitir a contagem de posts nos membros mais activos no tópico';
$txt['activeMemberColor'] = 'Cor de fundo da fila dos membros mais activos';
$txt['activeMemberTextColor'] = 'Cor do texto do membros mais activo';
$txt['activeMemberSort'] = 'Ordenar por posts mais altos ou mais baixos no tópico';
$txt['activeMemberName'] = 'Odernar pelo nome do membro ou nome real';
$txt['active_desc'] = 'Ordenação Descendente';
$txt['active_asc'] = 'Ordenação Ascendente';
$txt['active_mname'] = 'Nome do Membro';
$txt['active_rname'] = 'Nome Real';
]]></add>
</operation>
</file>

<file name="$themedir/languages/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end"><![CDATA[ ?>]]></search>
<add><![CDATA[
$txt['activeMembers_title'] = 'Membros mais Activos:';

]]></add>
</operation>
</file>
<file name="$themedir/languages/Help.brazilian.php" error="skip">
<operation>
<search position="end"><![CDATA[ ?>]]></search>
<add><![CDATA[
$helptxt['activeMemberEnable'] = 'Esta opção permite que ligues ou desligues a habilidade dos utilizadores verem quem é que é mais activo no tópico.';
$helptxt['activeMemberCountenable'] = 'Esta opção permite que ligues ou desligues a habilidade de contar posts';

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

<file name="$themedir/languages/index.brazilian.php" error="skip">
<operation>
<search position="end"><![CDATA[ ?>]]></search>
<add><![CDATA[
$txt['am_description'] = 'Minimizar ou Expandir a lista de Membros mais Activos no Tópico.';
]]></add>
</operation>
</file>

<file name="$themedir/languages/ManagePermissions.brazilian.php" error="skip">
<operation>
<search position="end"><![CDATA[ ?>]]></search>
<add><![CDATA[
$txt['cannot_activeMember_view'] = 'Desculpa, não estás autorizado a ver os Membros mais Activos no Tópico.';
$txt['permissionname_activeMember_view'] = 'Ver os Membros mais Activos no Tópico';
$txt['permissionhelp_activeMember_view'] = 'Permitir aos membros ver os Membros mais Activos no Tópico.  Se não estiver ligado, não verão os Membros mais Activos.';

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

<file name="$themedir/languages/ManageSettings.brazilian.php" error="skip">
<operation>
<search position="before"><![CDATA[
$txt['karmaLabel'] = 'Etiqueta de Karma';
$txt['karmaApplaudLabel'] = 'Etiqueta de Karma Positivo';
$txt['karmaSmiteLabel'] = 'Etiqueta de Karma Negativo';
]]></search>
<add><![CDATA[
$txt['activeMemberEnable'] = 'Activar os membros mais activos no tópico';
$txt['activeMemberCountenable'] = 'Permitir a contagem de posts nos membros mais activos no tópico';
$txt['activeMemberColor'] = 'Cor de fundo da fila dos membros mais activos';
$txt['activeMemberTextColor'] = 'Cor do texto do membros mais activo';
$txt['activeMemberSort'] = 'Ordenar por posts mais altos ou mais baixos no tópico';
$txt['activeMemberName'] = 'Odernar pelo nome do membro ou nome real';
$txt['active_desc'] = 'Ordenação Descendente';
$txt['active_asc'] = 'Ordenação Ascendente';
$txt['active_mname'] = 'Nome do Membro';
$txt['active_rname'] = 'Nome Real';
]]></add>
</operation>
</file>

<file name="$themedir/languages/Modifications.brazilian.php" error="skip">
<operation>
<search position="end"><![CDATA[ ?>]]></search>
<add><![CDATA[
$txt['activeMembers_title'] = 'Membros mais Activos:';

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

Blinker

Quote from: Blinker on March 07, 2009, 11:30:08 PM
Hi snork13, nice mod. Installed fine and works on my custom theme.

One problem though: when I go to my permissions it generates two errors -

8: Undefined index: permissionname_0_any
File: /home/content/x/x/x/xxxxxxxxx/html/forum/Sources/ManagePermissions.php
Line: 1524

8: Undefined index: permissionname_0_own
File: /home/content/x/x/x/xxxxxxxxx/html/forum/Sources/ManagePermissions.php
Line: 1520


Line 1520 in my managepermissions.php is

'name' => $has_own_any ? $txt['permissionname_' . $perm . '_own'] : ''

It's the same code for line 1524 except "own" changes to "any" at the end.

How can I stop these errors?

Still getting these errors. Can anyone help me.

One other question - the mod displays the members original account name. Some of my members have different display names. Is it possible to get it to show the display name instead of the original username?

Dr.Stinglock

Quote from: Blinker on April 06, 2009, 07:28:32 PM
One other question - the mod displays the members original account name. Some of my members have different display names. Is it possible to get it to show the display name instead of the original username?

One other answer..
Quote
New in 1.7->1.8

+Added ability for admin to change active members display name from either member name(name registered with) or real name(display name in profile)
Those large signatures really look great!
Especially when it takes up ten times the size of the actual post!!

Blinker

Hey rodregis

I did notice earlier in the thread that this ability should be in v1.8 yet that is what I have installed and no such option appears. Even the option to change the order of post count (asc vs desc) is missing (it's in the screenshot on the mod page).

Here are screenshots from my forum...both my custom theme and default theme.

Kanianlak

Still needed a table verison instead of the div for display.template.php

Anyone? Please.

snork13

Quote from: Kanianlak on April 07, 2009, 04:56:00 AM
Still needed a table verison instead of the div for display.template.php

Anyone? Please.

the older version were table, the default theme for 2.0 is moving away from tables.
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

snork13

Quote from: Blinker on April 07, 2009, 04:45:09 AM
Hey rodregis

I did notice earlier in the thread that this ability should be in v1.8 yet that is what I have installed and no such option appears. Even the option to change the order of post count (asc vs desc) is missing (it's in the screenshot on the mod page).

Here are screenshots from my forum...both my custom theme and default theme.

i may have only added that to the 2.0 rc1
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Patriot89

Is there a way to have it show the Users that are Online and viewing it instead of people who were active in that thread days ago?

snork13

Quote from: Patriot89 on April 20, 2009, 08:53:11 PM
Is there a way to have it show the Users that are Online and viewing it instead of people who were active in that thread days ago?

that is already a built in feature in smf, look at your theme settings

-snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Blinker

I solved my permission error problem - turned out to be another mod causing it. See this post - http://www.simplemachines.org/community/index.php?topic=297946.msg2030594#msg2030594

Gwydion Frost

Quote from: snork13 on April 07, 2009, 01:59:28 PM
Quote from: Blinker on April 07, 2009, 04:45:09 AM
Hey rodregis

I did notice earlier in the thread that this ability should be in v1.8 yet that is what I have installed and no such option appears. Even the option to change the order of post count (asc vs desc) is missing (it's in the screenshot on the mod page).

Here are screenshots from my forum...both my custom theme and default theme.

i may have only added that to the 2.0 rc1

Yeah, looking through the modifications, you did only add it to the 2.0 file. Any chance of getting those options for the 1.1.X version? My members are a little upset that their log in name is being displayed versus their display name...

snork13

Quote from: Gwydion Frost on May 03, 2009, 07:58:20 PM
Quote from: snork13 on April 07, 2009, 01:59:28 PM
Quote from: Blinker on April 07, 2009, 04:45:09 AM
Hey rodregis

I did notice earlier in the thread that this ability should be in v1.8 yet that is what I have installed and no such option appears. Even the option to change the order of post count (asc vs desc) is missing (it's in the screenshot on the mod page).

Here are screenshots from my forum...both my custom theme and default theme.

i may have only added that to the 2.0 rc1

Yeah, looking through the modifications, you did only add it to the 2.0 file. Any chance of getting those options for the 1.1.X version? My members are a little upset that their log in name is being displayed versus their display name...

you can change it manually, you just need to edit the query. If you wish to do this lmk and I can help.

-snork13

Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Gwydion Frost

Oh yes, I have been hearing non-stop complaints. Same with having the login names appearing in Flashchat.

snork13

Quote from: Gwydion Frost on May 17, 2009, 09:04:07 AM
Oh yes, I have been hearing non-stop complaints. Same with having the login names appearing in Flashchat.

did you need me to tell you what to change in the query, or have you gotten it done already.
-snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Gwydion Frost

#115
Yeah... looking to have the DISPLAY NAMES appear in 1.1.8 1.1.9, like the option is in 2.0, versus log in names.

Nameless?

snork !! this is what happends when i uninstall it !

Installing this package will perform the following actions:   Type Action Description
1. Execute Modification ./Sources/Display.php Test successful
  1. Replace ./Sources/Display.php Test successful

2. Execute Modification ./Sources/ManagePermissions.php Test successful
  1. Replace ./Sources/ManagePermissions.php Test successful

3. Execute Modification ./Sources/ManageSettings.php Test successful
  1. Replace ./Sources/ManageSettings.php Test successful

4. Execute Modification ./Themes/default/Display.template.php Test successful
  1. Replace ./Themes/default/Display.template.php Test successful

5. Execute Modification ./Themes/default/index.template.php Test failed
  1. Replace ./Themes/default/index.template.php Test failed

6. Execute Modification ./Themes/default/css/forum.css Test successful
  1. Replace ./Themes/default/css/forum.css Test successful

7. Execute Modification ./Themes/default/languages/Help.english.php Test successful
  1. Add Before ./Themes/default/languages/Help.english.php Test successful

8. Execute Modification ./Themes/default/languages/index.english.php Test successful
  1. Add Before ./Themes/default/languages/index.english.php Test successful

9. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
  1. Add Before ./Themes/default/languages/ManagePermissions.english.php Test successful

10. Execute Modification ./Themes/default/languages/ManageSettings.english.php Test successful
  1. Replace ./Themes/default/languages/ManageSettings.english.php Test successful

11. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful


I Hope you got an Good Explanation for this!!

snork13

Quote from: Nameless? on June 17, 2009, 07:01:23 AM
snork !! this is what happends when i uninstall it !

Installing this package will perform the following actions:   Type Action Description
1. Execute Modification ./Sources/Display.php Test successful
  1. Replace ./Sources/Display.php Test successful

2. Execute Modification ./Sources/ManagePermissions.php Test successful
  1. Replace ./Sources/ManagePermissions.php Test successful

3. Execute Modification ./Sources/ManageSettings.php Test successful
  1. Replace ./Sources/ManageSettings.php Test successful

4. Execute Modification ./Themes/default/Display.template.php Test successful
  1. Replace ./Themes/default/Display.template.php Test successful

5. Execute Modification ./Themes/default/index.template.php Test failed
  1. Replace ./Themes/default/index.template.php Test failed

6. Execute Modification ./Themes/default/css/forum.css Test successful
  1. Replace ./Themes/default/css/forum.css Test successful

7. Execute Modification ./Themes/default/languages/Help.english.php Test successful
  1. Add Before ./Themes/default/languages/Help.english.php Test successful

8. Execute Modification ./Themes/default/languages/index.english.php Test successful
  1. Add Before ./Themes/default/languages/index.english.php Test successful

9. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
  1. Add Before ./Themes/default/languages/ManagePermissions.english.php Test successful

10. Execute Modification ./Themes/default/languages/ManageSettings.english.php Test successful
  1. Replace ./Themes/default/languages/ManageSettings.english.php Test successful

11. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful


I Hope you got an Good Explanation for this!!

I really like the thumb down, very classy.

I have a great answer, you or another modification changed the code that the uninstall is looking for. You will need to look at that file and figure out what changed.

-snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Gwydion Frost

So, ahhh... what's the query I need to change to get it to display DISPLAY names, instead of LOG IN names...?

Really appreciate it. [this is for 1.1.X]

snork13

Please make a backup of the file before editing O:)

In Sources Dir edit the file Display.php

find:


//get members who posted in topic and how many times
$member_count=0;
$request = db_query("
            SELECT COUNT(*) AS 'POSTCOUNT', {$db_prefix}members.ID_MEMBER, {$db_prefix}members.memberName, {$db_prefix}membergroups.onlineColor




change

.memberName



to(i think it's realName in 1.1.x, but  in 2.0 it is real_name):


.realName





-snork13

Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Advertisement: