News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Full Top 10 Stats

Started by hhy89, March 23, 2009, 07:21:02 AM

Previous topic - Next topic

hhy89

Quote from: Dark-Wolf on March 28, 2009, 01:49:29 PM
Thanks hhy89!
I've maked same edit first to see your post. ;)
PS: because i don't see color member?
-
PPS: i've removed (comment) also this:
   /*/ karma full top 10.


$members_result = db_query("
SELECT ID_MEMBER, realName, posts , karmaGood
FROM {$db_prefix}members
ORDER BY karmaGood DESC
LIMIT 10", __FILE__, __LINE__);
$context['karma'] = array();
$max_num_posts = 1;
while ($row_members = mysql_fetch_assoc($members_result))
{
$context['karma'][] = array(
'name' => $row_members['realName'],
'id' => $row_members['ID_MEMBER'],
'karma' => $row_members['karmaGood'],
'num_posts' => $row_members['posts'],
'href' => $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'],
'link' =>'<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'
);

if (!empty($modSettings['MemberColorStats']))
$MemberColor_ID_MEMBER[$row_members['ID_MEMBER']] = $row_members['ID_MEMBER'];

if ($max_num_posts < $row_members['posts'])
$max_num_posts = $row_members['posts'];
}
mysql_free_result($members_result);

foreach ($context['karma'] as $i => $poster)
$context['karma'][$i]['post_percent'] = round(($poster['num_posts'] * 100) / $max_num_posts);
//Yeah baby give me some colors =).
if (!empty($MemberColor_ID_MEMBER)) {
//Now Load the Missing global :)
global $user_profile;
loadMemberData($MemberColor_ID_MEMBER);
$cmemcolid = NULL;
if (!empty($modSettings['MemberColorStats'])) {
// karma
foreach($context['karma'] as $key => $value) {
$cmemcolid = $context['karma'][$key]['id'];
$profile = &$user_profile[$cmemcolid];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['karma'][$key]['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
        }
if (!empty($modSettings['latestMember']) && !empty($modSettings['MemberColorLatestMember'])) {
$profile = &$user_profile[$modSettings['latestMember']];
if(!empty($profile['member_group_color']) || !empty($profile['post_group_color']))
$context['latest_member']['link'] = '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '"><font color="'.(!empty($profile['member_group_color']) ? $profile['member_group_color'] : $profile['post_group_color']).'">' . $profile['realName'] . '</font></a>';
}
}*/

And finally limit all to 5 instead to 10 :)
Quote from: hhy89 on March 28, 2009, 01:35:17 PM
find
<tr class="titlebg">
<td width="20%"><span class="smalltext">' . $txt['hhyfull2'] . '</span></td>
<td width="18%"><span class="smalltext">' . $txt['hhyfull3'] . '</span></td>
<td width="18%"><span class="smalltext">' . $txt['hhyfull4'] . '</span></td>
<td width="30%"><span class="smalltext">' . $txt['hhyfull5'] . '</span></td>
<td width="14%"><span class="smalltext">' . $txt['hhyfull6'] . '</span></td></tr>

replace
<tr class="titlebg">
<td width="25%"><span class="smalltext">' . $txt['hhyfull2'] . '</span></td>
<td width="22%"><span class="smalltext">' . $txt['hhyfull4'] . '</span></td>
<td width="35%"><span class="smalltext">' . $txt['hhyfull5'] . '</span></td>
<td width="18%"><span class="smalltext">' . $txt['hhyfull6'] . '</span></td></tr>

find and delete
<td width="18%" valign="top"><table width="100%" class="windowbg"><tr>
<td width="75%" class="windowbg2"><span class="smalltext"><b>' . $txt['hhyfull7'] . '</b></span></td>
<td width="25%" class="windowbg2" align="right"><span class="smalltext"><b>' . $txt['hhyfull9'] . '</b></span></td></tr>';
foreach ($context['karma'] as $poster)
{echo '
<tr><td width="75%" class="windowbg2" valign="top"><img alt="" src="', $settings['default_theme_url'], '/images/hhyfull2.gif" /><span class="smalltext">',$poster['link'], '</span></td>
<td width="25%" class="windowbg2" align="right" valign="top"><span class="smalltext">',$poster['karma'], '</span></td></tr>';
}echo '</table></td>


find
<td width="20%" valign="top">
replace
<td width="25%" valign="top">
find
<td width="18%" valign="top">
replace
<td width="22%" valign="top">
find
<td width="30%" valign="top">
replace
<td width="35%" valign="top">
find
<td width="14%" valign="top">
replace
<td width="18%" valign="top">
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

DilSe


candidosa2

When Update dont forget portuguese and brazilian

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// Full Top 10 by smfmod.com Translate bY Candidosa2 Suporte smfpt.net
$txt['hhyfull1'] = 'Completo - Top 10';
$txt['hhyfull2'] = 'Top 10 Mensagem';
$txt['hhyfull3'] = 'Top 10 Karma';
$txt['hhyfull4'] = 'Top 10 T&oacute;pico';
$txt['hhyfull5'] = 'Top 10 T&oacute;pico popular';
$txt['hhyfull6'] = 'Novos Membro';
$txt['hhyfull7'] = 'Membro';
$txt['hhyfull8'] = 'Mensagem';
$txt['hhyfull9'] = 'Karma';
$txt['hhyfull10'] = 'T&oacute;pico';
$txt['hhyfull11'] = 'Hit';
$txt['hhyfull12'] = 'Categoria Respondidas';
$txt['hhyfull13'] = 'T&oacute;pico Respondidos';
$txt['hhyfull14'] = 'Enviado Por';
$txt['hhyfull15'] = 'Data';

]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// Full Top 10 by smfmod.com Translate bY Candidosa2 Suporte smfpt.net
$txt['hhyfull1'] = 'Completo - Top 10';
$txt['hhyfull2'] = 'Top 10 Mensagem';
$txt['hhyfull3'] = 'Top 10 Karma';
$txt['hhyfull4'] = 'Top 10 T&oacute;pico';
$txt['hhyfull5'] = 'Top 10 T&oacute;pico popular';
$txt['hhyfull6'] = 'Novos Membro';
$txt['hhyfull7'] = 'Membro';
$txt['hhyfull8'] = 'Mensagem';
$txt['hhyfull9'] = 'Karma';
$txt['hhyfull10'] = 'T&oacute;pico';
$txt['hhyfull11'] = 'Hit';
$txt['hhyfull12'] = 'Categoria Respondidas';
$txt['hhyfull13'] = 'T&oacute;pico Respondidos';
$txt['hhyfull14'] = 'Enviado Por';
$txt['hhyfull15'] = 'Data';

]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// Full Top 10 by smfmod.com Translate bY Candidosa2 Suporte smfpt.net
$txt['hhyfull1'] = 'Completo - Top 10';
$txt['hhyfull2'] = 'Top 10 Mensagem';
$txt['hhyfull3'] = 'Top 10 Karma';
$txt['hhyfull4'] = 'Top 10 T&oacute;pico';
$txt['hhyfull5'] = 'Top 10 T&oacute;pico popular';
$txt['hhyfull6'] = 'Novos Membro';
$txt['hhyfull7'] = 'Membro';
$txt['hhyfull8'] = 'Mensagem';
$txt['hhyfull9'] = 'Karma';
$txt['hhyfull10'] = 'Tópico';
$txt['hhyfull11'] = 'Hit';
$txt['hhyfull12'] = 'Categoria Respondidas';
$txt['hhyfull13'] = 'T&oacute;pico Respondidos';
$txt['hhyfull14'] = 'Enviado Por';
$txt['hhyfull15'] = 'Data';

]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// Full Top 10 by smfmod.com Translate bY Candidosa2 Suporte smfpt.net
$txt['hhyfull1'] = 'Completo - Top 10';
$txt['hhyfull2'] = 'Top 10 Mensagem';
$txt['hhyfull3'] = 'Top 10 Karma';
$txt['hhyfull4'] = 'Top 10 T&oacute;pico';
$txt['hhyfull5'] = 'Top 10 T&oacute;pico popular';
$txt['hhyfull6'] = 'Novos Membro';
$txt['hhyfull7'] = 'Membro';
$txt['hhyfull8'] = 'Mensagem';
$txt['hhyfull9'] = 'Karma';
$txt['hhyfull10'] = 'T&oacute;pico';
$txt['hhyfull11'] = 'Hit';
$txt['hhyfull12'] = 'Categoria Respondidas';
$txt['hhyfull13'] = 'T&oacute;pico Respondidos';
$txt['hhyfull14'] = 'Enviado Por';
$txt['hhyfull15'] = 'Data';

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

hhy89

Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

cashme555

bu ivan ın modu değil mi

azhriel

Hi,

what can i do to make this MOD works for extreme10 theme?

mydesign

Packing Mode and play a pity I do İvan'ın Bravo

eslao

hi faceless boy, you know who made this mod ?

hhy89

rallyproco for smf 1.1.x and me for smf 2.x ;D can u learn it
Seo4Smf 2.0 - Full Top10 Stats(full top10) - Aligned and Bilateral Child Boards(2li 3lü alt bölümler)
http://www.smfmod.com
http://destek.smfmod.com

myloo

#29
milletin emeğini çalıp kendi adını yazmaktan ne anlıyorsun? zaten çoğu kişi bu modun kime ait olduğunu bilio ama bu yaptığın ***** başka bişi deil bunu bil. hiç olmazsa adı geçseydi.

Edit: Inappropriate language.

eslao

Quote from: hhy89 on May 25, 2009, 07:52:07 PM
rallyproco for smf 1.1.x and me for smf 2.x ;D can u learn it
can you learn it ? derken, ingilizce hocan kimse selam söyle

[SiNaN]

Please do not post in Turkish in this board. Use Turkish board instead.




Lütfen bu bölümde Türkçe mesaj yazmayın. Bunun yerine Turkish bölümünü kullanın.
Former SMF Core Developer | My Mods | SimplePortal

Alixcan

Quote from: [SiNaN] on May 27, 2009, 10:53:57 AM
Please do not post in Turkish in this board. Use Turkish board instead.




Lütfen bu bölümde Türkçe mesaj yazmayın. Bunun yerine Turkish bölümünü kullanın.

Okay   
They Said This Is Ivan_'s Modification He Made It On Turkish Smf Support Web Site. All Images And Codes From His Modification  Hhy 89 Just Change Ivans_ Tags And Made It Package Its Not Correct If You Wanna Show His Modification I Can Share The Link Here.

mydesign

Quote from: Alixcan.Net on May 27, 2009, 03:08:34 PM
Quote from: [SiNaN] on May 27, 2009, 10:53:57 AM
Please do not post in Turkish in this board. Use Turkish board instead.




Lütfen bu bölümde Türkçe mesaj yazmayın. Bunun yerine Turkish bölümünü kullanın.

Okay   
They Said This Is Ivan_'s Modification He Made It On Turkish Smf Support Web Site. All Images And Codes From His Modification  Hhy 89 Just Change Ivans_ Tags And Made It Package Its Not Correct If You Wanna Show His Modification I Can Share The Link Here.

So Do I

dzinerfusion

Sorry I cannot find where to edit the top 10 stats to show to only 5, but when i check the board.index.template.php I cannot locate it!!!

MaXiForum.cz

Nice mod!

Czech translate ;)
Demo with BlackRainV2 on my site
www.maxiforum.cz

[SiNaN]

Mod has been removed from Mod Site due to a copyright infringement.
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: