News:

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

Main Menu

New Board Stats Style

Started by vbgamer45, June 15, 2009, 08:37:43 AM

Previous topic - Next topic

sAce

Quote from: haerde on August 06, 2009, 03:37:33 PM
How to install it on 2.0 RC1.2 ?
Quote from: Dr MoYaJa on September 08, 2009, 12:48:19 AM
Any update for smf 2.0 RC1.2 ?

updated the package info, it should work on rc1.2 and rc2 as well, but not on curve :P

the giox

in CURVE I have solved in that way:

On boardindex.template FIND:

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<p class="moderators">', count($board['moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';

ADD After:
// Show some basic information about the number of posts, etc.
echo '
</td>
<td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg2 smalltext lastpost">';
/* The board's and children's 'last_post's have: time, timestamp (a number that represents the time.), id (of the post), topic (topic id.), link, href, subject, start (where they should go for the first unread post.), and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<strong>', $txt['last_post'], '</strong> : ', $board['last_post']['link'] , '<br />
', $txt['by'], ' ', $board['last_post']['member']['link'], ' ', $txt['on'], ' ', $board['last_post']['time'], '<br />';
echo '
<div style="padding-top: 3px;"><table class="tborder" width="100%"><tr valign="bottom"><td class="windowbg" align="center">', $board['posts'], ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], '</td>'; if (!empty($board['last_post']['id'])) echo '<td class="windowbg" align="center">', $board['is_redirect'] ? '' : $board['topics'] . ' ' . $txt['board_topics'], ' </td>'; echo ' </tr> </table></div>'; echo' </td> </tr>'; 


On messageIndex.template
REPLACE:
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="stats windowbg">
<p>', $board['posts'], ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
', $board['is_redirect'] ? '' : $board['topics'] . ' ' . $txt['board_topics'], '
</p>
</td>
<td class="lastpost">';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<p><strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'],'
</p>';
echo '
</td>
</tr>';


WITH:
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg2 smalltext lastpost">';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<strong>', $txt['last_post'], '</strong>  : ', $board['last_post']['link'] , '<br />
', $txt['by'], ' ', $board['last_post']['member']['link'], ' ', $txt['on'], ' ', $board['last_post']['time'], '<br />';
echo '
<div style="padding-top: 3px;"><table class="tborder" width="100%"><tr valign="bottom"><td class="windowbg" align="center">', $board['posts'], ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], '</td>';
if (!empty($board['last_post']['id']))
echo '<td class="windowbg" align="center">', $board['is_redirect'] ? '' : $board['topics'] . ' ' . $txt['board_topics'], '
</td>';
echo '
</tr>
</table></div>';
echo'
</td>
</tr>';

-=[Vyorel]=-

Quote from: the giox on December 13, 2009, 12:43:01 PM
in CURVE I have solved in that way:

On boardindex.template FIND:

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<p class="moderators">', count($board['moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';

ADD After:
// Show some basic information about the number of posts, etc.
echo '
</td>
<td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg2 smalltext lastpost">';
/* The board's and children's 'last_post's have: time, timestamp (a number that represents the time.), id (of the post), topic (topic id.), link, href, subject, start (where they should go for the first unread post.), and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<strong>', $txt['last_post'], '</strong> : ', $board['last_post']['link'] , '<br />
', $txt['by'], ' ', $board['last_post']['member']['link'], ' ', $txt['on'], ' ', $board['last_post']['time'], '<br />';
echo '
<div style="padding-top: 3px;"><table class="tborder" width="100%"><tr valign="bottom"><td class="windowbg" align="center">', $board['posts'], ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], '</td>'; if (!empty($board['last_post']['id'])) echo '<td class="windowbg" align="center">', $board['is_redirect'] ? '' : $board['topics'] . ' ' . $txt['board_topics'], ' </td>'; echo ' </tr> </table></div>'; echo' </td> </tr>'; 


On messageIndex.template
REPLACE:
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="stats windowbg">
<p>', $board['posts'], ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
', $board['is_redirect'] ? '' : $board['topics'] . ' ' . $txt['board_topics'], '
</p>
</td>
<td class="lastpost">';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<p><strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'],'
</p>';
echo '
</td>
</tr>';


WITH:
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg2 smalltext lastpost">';

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<strong>', $txt['last_post'], '</strong>  : ', $board['last_post']['link'] , '<br />
', $txt['by'], ' ', $board['last_post']['member']['link'], ' ', $txt['on'], ' ', $board['last_post']['time'], '<br />';
echo '
<div style="padding-top: 3px;"><table class="tborder" width="100%"><tr valign="bottom"><td class="windowbg" align="center">', $board['posts'], ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], '</td>';
if (!empty($board['last_post']['id']))
echo '<td class="windowbg" align="center">', $board['is_redirect'] ? '' : $board['topics'] . ' ' . $txt['board_topics'], '
</td>';
echo '
</tr>
</table></div>';
echo'
</td>
</tr>';

Ohoo. Thanks man!  ;D
My mods for SMF - [6].

-=[Vyorel]=-

My mods for SMF - [6].

SAFAD

Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.


SAFAD

Best Regards
Sadaoui "SAFAD" Abderrahim - Lead Developer @ Electron Inc.

-=[Vyorel]=-

My mods for SMF - [6].

-=[Vyorel]=-

My mods for SMF - [6].

sAce

Quote from: -=[Vyorel]=- on August 17, 2010, 04:32:41 PM
Any update for smf 2.0 RC3 ?

I did update this,

i guess i forgot to upload it, lol..
give me a day, i ll update it, if i dont please Buzz me with a PM :P

sAce


-=[Vyorel]=-

My mods for SMF - [6].

FireDitto

I would love to see this updated for RC4. =D
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

BaghdadGhost

Quote from: FireDitto on November 06, 2010, 07:44:10 PM
I would love to see this updated for RC4. =D

I have 2.0.2 during installation emulated to RC3 and installed successfully. you can try it yourself and I am sure it will work.


BaghdadGhost

I was wondering if author can make same layout for topics view/reply count?

thanks

Deaks

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Melissa524

#36
I just wanted to make sure that this mod isn't suppose to change the layout for the childboards too? 

Edit:  NVM... I figured it out.  You have to make those same changes with the MessageIndex.template.php file to get it to work on the childboards.
In case, I forget to say.  I am using 2.0.2

Advertisement: