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

Link to Mod

images:
for smf 2.0 rc1
http://img11.imageshack.us/img11/983/17137920.jpg
for 1.1.x
http://img15.imageshack.us/img15/5285/indexphpx.jpg

Full Top 10 Stats


made by www.smfmod.com
Version: 1.0 Date 2009-03-07
Compatibility: SMF 2.0 RC1 & 1.1.x



This is located in AdminCP -> Themes and Layout -> Number of recent posts to display on board index:
Default rate for that modification is 10.




Turkish:

Anasayfada yeni istatistik bölümü.


Admin panel -> Kullanılan Tema -> Forum ana sayfasında gösterilecek en son ileti:
buraya 10 yazmayı unutmayın.

Modifications.turkish.php de ekleyeceginiz kodlar
$txt['hhyfull1'] = 'Full - Top 10';
$txt['hhyfull2'] = 'Top 10 Mesaj';
$txt['hhyfull3'] = 'Top 10 Karma';
$txt['hhyfull4'] = 'Top 10 Konu';
$txt['hhyfull5'] = 'Top 10 Populer Konu';
$txt['hhyfull6'] = 'Yeni Uyeler';
$txt['hhyfull7'] = 'Uye';
$txt['hhyfull8'] = 'Mesaj';
$txt['hhyfull9'] = 'Karma';
$txt['hhyfull10'] = 'Konu';
$txt['hhyfull11'] = 'Hit';
$txt['hhyfull12'] = 'Yanıtlanan Kategori';
$txt['hhyfull13'] = 'Yanıtlanan Konu';
$txt['hhyfull14'] = 'Gönderen';
$txt['hhyfull15'] = 'Tarih';
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

LLandL

#1
Works just fine for me (1.1.8 custom theme)

One thing I spotted is a spelling mistake...

'Top 10 Populer Topic'

Should read 'Top 10 Popular Topic'

How can I change this spelling?

Also my 'Top 10 Topic' isn't showing the stats in the correct order. It seems random. Like this...

Member     Topic
Jonny    385
MarcMorris    60
Paul    237
Richard C    31
vigilanteforce    47
Stephen Grimes    98
Il Commissario    201
Gary B.    56
Mart85    28
Kevin Coed    36


Edit: Figured out how to fix the spelling in Modifications.english.php  8)

hhy89

Recount all forum totals and statistics.
;)
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

LLandL

Just did that and the stats for the 'Top 10 Topic' column are still not in order.

karbaciun

hi

very good but this mod is working just on the defult theme and that not work on the outline template.

please help me to display that on this theme.
tnx a lot

bullbreedluverz

nice mod, i use a top stats but will be switching to this 1as i prefer the layout

Quotehi

very good but this mod is working just on the defult theme and that not work on the outline template.

please help me to display that on this theme.
tnx a lot

you will need to do the manual edits to /Themes/Outline/BoardIndex.template.php




L'AltroWeb

#6
Hi!
I have installed this mod with smf 1.1.8 and seems to work fine but i've 3 questions:
1) how i can disable karma? (i don't use it
2) because Replied Category     Replied Topic     Sender     Date are empty?
3) can u fix validation error? (See here) - valid before install this mod.
-
thanks in advance, DarkWolf :)
-
Edit: Current Theme; Themes and Settings; Number of recent posts to display on board index (before to 0 now to 10) and now is ok and also w3c valid ;)
-
Riedit: Ok i've fix all ;)
PS: another small graphic error:
Change from: <tr class="windowbg">
<td width="20%" valign="top"><table width="100%"><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['hhyfull8'] . '</b></span></td></tr>';
to: <tr class="windowbg">
<td width="20%" 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['hhyfull8'] . '</b></span></td></tr>';
8)

oops

this is a great mod  8)  thanks for your efforts

would it be possible to use the top 10 stats for other mods such as SMF Media Gallery (top 10 posters) or SMF Shop (top 10 Total $$$) instead of karma? (I don't use karma...)

SMF 1.1.8

hhy89

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

L'AltroWeb

#9
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 :)

shanksta13

I made some changes in the Modifications.english.php file to fix the "Populer" etc., but they aren't showing up.  ny help?  I'm running SMF 2.0 RC 1.

hhy89

Forum Maintenance >>Routine >>Empty the file cache ;)
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

shanksta13

Thanks, is there any way to remove the images next to the names?  They make the box a little too active for my tastes.

hhy89

<img alt="" src="', $settings['default_theme_url'], '/images/hhyfull2.gif" />

delete its like img codes
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

www.SergioMora.net

Great mod works on some custom themes

How ever, the instructions to implement the actions should be

Configuration/Current Theme---->THEMES AND SETTINGS

Theme Options and Preferences

Number of recent posts to display on board index: 10

----------------------------------

Your current explinations says to
This is located in AdminCP -> Themes and Layout -> Number of recent posts to display on board index:
Default rate for that modification is 10.

Just thought I would let you know because I had a hard time finding it due to your explination lol
If and when I can help someone, I will. My information might not be accurate, so if anyone corrects me if I am wrong, I shall not be offended.

www.SergioMora.net

Quote from: LLandL on March 24, 2009, 05:46:58 AM
Works just fine for me (1.1.8 custom theme)

One thing I spotted is a spelling mistake...

'Top 10 Populer Topic'

Should read 'Top 10 Popular Topic'

How can I change this spelling?

Also my 'Top 10 Topic' isn't showing the stats in the correct order. It seems random. Like this...

Member     Topic
Jonny    385
MarcMorris    60
Paul    237
Richard C    31
vigilanteforce    47
Stephen Grimes    98
Il Commissario    201
Gary B.    56
Mart85    28
Kevin Coed    36


Edit: Figured out how to fix the spelling in Modifications.english.php  8)

Thanks for pointing this out and thanks for sharing the solution :)
If and when I can help someone, I will. My information might not be accurate, so if anyone corrects me if I am wrong, I shall not be offended.

bullbreedluverz

hi hhy89 - ive done some editing on this mod and built it into the info center itself and would like your permission to use this on some themes i plan to release

heres my edits to it http://www.bullbreedluverz.com/rc1test/index.php?action=forum

DilSe

Hello Friends

i install full  ('Full - Top 10') mod... and it's working properly

but i dont need top 10
i need only top 5 info... how i can do it
plz help me about this

thanks

hhy89

boardindex.php
LIMIT 10',
replace
LIMIT 5',
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

Quote from: hhy89 on April 17, 2009, 06:07:39 PM
boardindex.php
LIMIT 10',
replace
LIMIT 5',

Thanks For Help sir..

I have one more Q. if I don't need karma ...from ware I do change or disable..

plz.help

Advertisement: