[RC] Top Stats

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
User avatar
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

This should be fine for ca_black

Code: Select all

<!-- Start Recent Active Topics -->
	<div class="forabg">
	{$CA_BLOCK_START}
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt>{L_RECENT_ACTIVE}</dt>
					<dd class="topics">{L_REPLIES}</dd>
					<dd class="posts">{L_VIEWS}</dd>
					<dd class="lastpost"><span>{L_LAST_POST}</span></dd>
				</dl>
			</li>
		</ul>
		<ul class="topiclist forums">
			<!-- BEGIN recent_active -->
			<li class="row">
			<dl class="icon" style="background-image: url({ROOT_PATH}images/starimg.png); background-repeat: no-repeat;">
				<dt>
					<a href="{recent_active.U_FIRST_TOPIC}" class="forumtitle">{recent_active.TOPIC_TITLE}</a><br />
					{L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_FIRST_POSTER_COLOUR};" href="{recent_active.USERNAME_FIRST}">{recent_active.TOPIC_FIRST_POSTER_NAME}</a> {recent_active.TOPIC_TIME}
				</dt>
				<dd class="topics" style="width:8%">{recent_active.TOPIC_REPLIES}</dd>
				<dd class="posts" style="width:8%">{recent_active.TOPIC_VIEWS}</dd>
				<dd class="lastpost"><span>
					{L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_LAST_POSTER_COLOUR};" href="{recent_active.USERNAME_LAST}">{recent_active.TOPIC_LAST_POSTER_NAME}</a> <a href="{recent_active.U_LAST_TOPIC}">{LAST_POST_IMG}</a><br />{recent_active.TOPIC_LAST_POST_TIME}</span>
				</dd>
			</dl>
			</li>
			<!-- END recent_active -->
		</ul>
	{$CA_BLOCK_END}
	</div>
<!-- End Recent Active Topics -->
Regards Stoker
User avatar
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

doktornotor wrote:Nice and simple... A small note - in the subsilver2 stuff (yeah, I know it is not supported) on the first line of top_stats_body.html you need <br /> instead of <br> for valid XHTML. ;)
Not supported, but fixed thanks :D
Regards Stoker
User avatar
Blackwolf_Oz
Registered User
Posts: 264
Joined: Sat Jan 02, 2010 5:15 am
Location: Melbourne Australia
Name: Nick

Re: [RC] Top Stats

Post by Blackwolf_Oz »

Thanks...worked a treat,of course :D

Edit

Can I be so bold as to ask for the ca_black version of top_stats_body.html
.......just so the blue line matches :oops:

Please? :D I know you have more terrorific things to attend to. :D

Image
We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.

Ultimate Edition, Ultimate Edition Oz, Oz Unity
User avatar
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

This should do it:

Code: Select all

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>

<td valign="top" style="padding-right:2px; width:50%">
	<!-- Start Most Viewed -->
	<div class="forabg">
		{$CA_BLOCK_START}
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt style="width:98%;">{L_MOST_VIEWED}</dt>
				</dl>
			</li>
		</ul>
		<ul class="topiclist forums">
			<!-- BEGIN most_viewed -->
			<li class="row">
			<dl>
				<dt style="width:98%;">
					<span style="float:left; font-size:1.1em; font-weight:bold;"><a href="{most_viewed.U_FIRST_TOPIC}">{most_viewed.TOPIC_TITLE}</a></span><span style="float:right; font-size:1.1em;">{L_VIEWS}: {most_viewed.TOPIC_VIEWS}</span>
					<br class="clear" />
					<span>{L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{most_viewed.TOPIC_FIRST_POSTER_COLOUR};" href="{most_viewed.USERNAME_FIRST}">{most_viewed.TOPIC_FIRST_POSTER_NAME}</a> {L_POSTED_ON_DATE} {most_viewed.TOPIC_TIME}</span>
				</dt>
			</dl>
			</li>
			<!-- END most_viewed -->
		</ul>
		{$CA_BLOCK_END}
	</div>
	<!-- End Most Viewed -->
</td>

<td valign="top" style="padding-left:2px; width:50%">
	<!-- Start Most Replied -->
	<div class="forabg">
		{$CA_BLOCK_START}
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt style="width:98%;">{L_MOST_REPLIED}</dt>
				</dl>
			</li>
		</ul>
		<ul class="topiclist forums">
			<!-- BEGIN most_replied -->
			<li class="row">
			<dl>
				<dt style="width:98%;">
					<span style="float:left; font-size:1.1em; font-weight:bold;"><a href="{most_replied.U_FIRST_TOPIC}">{most_replied.TOPIC_TITLE}</a></span><span style="float:right; font-size:1.1em;">{L_REPLIES}: {most_replied.TOPIC_REPLIES}</span>
					<br class="clear" />
					<span>{L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{most_replied.TOPIC_FIRST_POSTER_COLOUR};" href="{most_replied.USERNAME_FIRST}">{most_replied.TOPIC_FIRST_POSTER_NAME}</a> {L_POSTED_ON_DATE} {most_replied.TOPIC_TIME}</span>
				</dt>
			</dl>
			</li>
			<!-- END most_replied -->
		</ul>
		{$CA_BLOCK_END}
	</div>
	<!-- End Most Replied -->
</td>
</tr>
</table>
Regards Stoker
User avatar
Blackwolf_Oz
Registered User
Posts: 264
Joined: Sat Jan 02, 2010 5:15 am
Location: Melbourne Australia
Name: Nick

Re: [RC] Top Stats

Post by Blackwolf_Oz »

Thanks a million stoker.......may I ask how you did it? the code changes needed?

I have the top 5 mod installed & would like to know what I need to edit, if you dont mind. :) so I can have the blue border too.

I do apologise if this is considered rude or hijacking :oops:
I will move it if asked. ;) to http://www.phpbb.com/customise/db/mod/top_five/support/

Code: Select all

<div class="forabg">
	<div class="inner"><span class="corners-top"><span></span></span>
		<table class="table1" cellspacing="1" id="top_five">
		<thead>
		<tr>
			<th style="width: 50%;">{L_NEWEST_TOPICS}</th>
			<th style="width: 20%;">{L_TOP_FIVE_ACTIVE}</th>
			<th style="width: 30%;">{L_TOP_FIVE_NEWEST}</th>
		</tr>
		</thead>
		<tbody>
			<tr class="bg2">
					<td valign="top"><!-- BEGIN top_five_topic --><!-- IF top_five_topic.NO_TOPIC_TITLE-->{top_five_topic.NO_TOPIC_TITLE}<!-- ELSE --><a href="{top_five_topic.U_TOPIC}">{top_five_topic.TOPIC_TITLE}</a><br />&nbsp;&nbsp;{top_five_topic.USERNAME_FULL}&nbsp;&nbsp;{top_five_topic.LAST_TOPIC_TIME}<br /><!-- ENDIF --><!-- END top_five_topic --></td>
					<td valign="top"><!-- BEGIN top_five_active -->{top_five_active.USERNAME_FULL}<br />&nbsp;&nbsp;{L_POSTS}: <a href="{top_five_active.S_SEARCH_ACTION}">{top_five_active.POSTS}</a><br /><!-- END top_five_active --></td>
					<td valign="top"><!-- BEGIN top_five_newest -->{top_five_newest.USERNAME_FULL}<br />&nbsp;&nbsp;{L_JOINED}: {top_five_newest.REG_DATE}<br /><!-- END top_five_newest --></td>
				</tr>
		</tbody>
		</table>

	<span class="corners-bottom"><span></span></span></div>
</div>
We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.

Ultimate Edition, Ultimate Edition Oz, Oz Unity
User avatar
RMcGirr83
Former Team Member
Posts: 22072
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [RC] Top Stats

Post by RMcGirr83 »

You should really make your request within the top five mods support/discussion.

http://www.phpbb.com/customise/db/mod/top_five/support/

instead of within Stokers topic for his own mod. That way others who may be using ca_black will find it also.

If I were to guess it would probably be due to the addition of this

Code: Select all

{$CA_BLOCK_START}
as well as this

Code: Select all

{$CA_BLOCK_END}
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

RMcGirr83 wrote:You should really make your request within the top five mods support/discussion.

http://www.phpbb.com/customise/db/mod/top_five/support/

instead of within Stokers topic for his own mod. That way others who may be using ca_black will find it also.

If I were to guess it would probably be due to the addition of this

Code: Select all

{$CA_BLOCK_START}
as well as this

Code: Select all

{$CA_BLOCK_END}
Your absolutely right Rich, but now I have made it. Your free to use it in the top five section:

Code: Select all

<div class="forabg">
   {$CA_BLOCK_START}
      <table class="table1" cellspacing="1" id="top_five">
      <thead>
      <tr>
         <th style="width: 50%;">{L_NEWEST_TOPICS}</th>
         <th style="width: 20%;">{L_TOP_FIVE_ACTIVE}</th>
         <th style="width: 30%;">{L_TOP_FIVE_NEWEST}</th>
      </tr>
      </thead>
      <tbody>
         <tr class="bg2">
               <td valign="top"><!-- BEGIN top_five_topic --><!-- IF top_five_topic.NO_TOPIC_TITLE-->{top_five_topic.NO_TOPIC_TITLE}<!-- ELSE --><a href="{top_five_topic.U_TOPIC}">{top_five_topic.TOPIC_TITLE}</a><br />&nbsp;&nbsp;{top_five_topic.USERNAME_FULL}&nbsp;&nbsp;{top_five_topic.LAST_TOPIC_TIME}<br /><!-- ENDIF --><!-- END top_five_topic --></td>
               <td valign="top"><!-- BEGIN top_five_active -->{top_five_active.USERNAME_FULL}<br />&nbsp;&nbsp;{L_POSTS}: <a href="{top_five_active.S_SEARCH_ACTION}">{top_five_active.POSTS}</a><br /><!-- END top_five_active --></td>
               <td valign="top"><!-- BEGIN top_five_newest -->{top_five_newest.USERNAME_FULL}<br />&nbsp;&nbsp;{L_JOINED}: {top_five_newest.REG_DATE}<br /><!-- END top_five_newest --></td>
            </tr>
      </tbody>
      </table>
   {$CA_BLOCK_END}
</div>
Regards Stoker
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [RC] Top Stats

Post by 4_seven »

Blackwolf1264 wrote:top_five
Top Stats != Top Five
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Blackwolf_Oz
Registered User
Posts: 264
Joined: Sat Jan 02, 2010 5:15 am
Location: Melbourne Australia
Name: Nick

Re: [RC] Top Stats

Post by Blackwolf_Oz »

Thank you both....very much appreciated. :D
Looks fantastic on my forum now......even if I say so myself :D

However.......

Code: Select all

style="width
.....I know its here....I think :? ....have adjusted & its changed the width.....but I cant get it to line up with the rest of the forum? Sorry to be annoying! This is in regards to this Top Stats Mod.

Code: Select all

    <!-- Start Recent Active Topics -->

       <div class="forabg">

       {$CA_BLOCK_START}

          <ul class="topiclist">

             <li class="header">

                <dl class="icon">

                   <dt>{L_RECENT_ACTIVE}</dt>

                   <dd class="topics">{L_REPLIES}</dd>

                   <dd class="posts">{L_VIEWS}</dd>

                   <dd class="lastpost"><span>{L_LAST_POST}</span></dd>

                </dl>

             </li>

          </ul>

          <ul class="topiclist forums">

             <!-- BEGIN recent_active -->

             <li class="row">

             <dl class="icon" style="background-image: url({ROOT_PATH}images/starimg.png); background-repeat: no-repeat;">

                <dt>

                   <a href="{recent_active.U_FIRST_TOPIC}" class="forumtitle">{recent_active.TOPIC_TITLE}</a><br />

                   {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_FIRST_POSTER_COLOUR};" href="{recent_active.USERNAME_FIRST}">{recent_active.TOPIC_FIRST_POSTER_NAME}</a> {recent_active.TOPIC_TIME}

                </dt>

                <dd class="topics" style="width:8%">{recent_active.TOPIC_REPLIES}</dd>

                <dd class="posts" style="width:8%">{recent_active.TOPIC_VIEWS}</dd>

                <dd class="lastpost"><span>

                   {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_LAST_POSTER_COLOUR};" href="{recent_active.USERNAME_LAST}">{recent_active.TOPIC_LAST_POSTER_NAME}</a> <a href="{recent_active.U_LAST_TOPIC}">{LAST_POST_IMG}</a><br />{recent_active.TOPIC_LAST_POST_TIME}</span>

                </dd>

             </dl>

             </li>

             <!-- END recent_active -->

          </ul>

       {$CA_BLOCK_END}

       </div>

    <!-- End Recent Active Topics -->
You will see replies, views,last post columns don't line up with the rest of the forum. Advice is appreciated......thanks.
We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.

Ultimate Edition, Ultimate Edition Oz, Oz Unity
User avatar
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

Thats because you ave deleted the forum icon and use forum images instead.
I have testet it on my testboard and it aligns fine with forums and topics.
Regards Stoker
User avatar
Blackwolf_Oz
Registered User
Posts: 264
Joined: Sat Jan 02, 2010 5:15 am
Location: Melbourne Australia
Name: Nick

Re: [RC] Top Stats

Post by Blackwolf_Oz »

Ahhhh is there any way I can align it or not worth worrying about? :)

Looks fine in ca_black_red....and pro_silver....starting to wonder if it index_body.html?
We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.

Ultimate Edition, Ultimate Edition Oz, Oz Unity
User avatar
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

Blackwolf1264 wrote:Ahhhh is there any way I can align it or not worth worrying about? :)

Looks fine in ca_red....and pro_silver....
Yes, you can delete the icons from this mod and use forum image instead
Regards Stoker
User avatar
Blackwolf_Oz
Registered User
Posts: 264
Joined: Sat Jan 02, 2010 5:15 am
Location: Melbourne Australia
Name: Nick

Re: [RC] Top Stats

Post by Blackwolf_Oz »

Stoker 4.0 wrote:
Blackwolf1264 wrote:Ahhhh is there any way I can align it or not worth worrying about? :)

Looks fine in ca_red....and pro_silver....
Yes, you can delete the icons from this mod and use forum image instead
Sorry to be dumb....do I just delete this

Code: Select all

<dl class="icon" style="background-image: url({ROOT_PATH}images/starimg.png); background-repeat: no-repeat;">
or do I need to point it in another direction? :?

I still cant understand why the columns line up in ca_black_red & pro_silver ( you can see via the style switcher...top right of forum) but not in ca_black....all styles are using the star images?
We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.

Ultimate Edition, Ultimate Edition Oz, Oz Unity
User avatar
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

Its because you have no forum icons in ca black. You have that in the other styles.
Use this instead:

Code: Select all

<!-- Start Recent Active Topics -->
   <div class="forabg">
   {$CA_BLOCK_START}
      <ul class="topiclist">
         <li class="header">
            <dl class="icon">
               <dt>{L_RECENT_ACTIVE}</dt>
               <dd class="topics">{L_REPLIES}</dd>
               <dd class="posts">{L_VIEWS}</dd>
               <dd class="lastpost"><span>{L_LAST_POST}</span></dd>
            </dl>
         </li>
      </ul>
      <ul class="topiclist forums">
         <!-- BEGIN recent_active -->
         <li class="row">
         <dl>
            <dt>
               <span class="forum-image"><img src="{ROOT_PATH}images/starimg.png" width="27" height="27" alt="" /></span><div class="forum-image-div">
			   <a href="{recent_active.U_FIRST_TOPIC}" class="forumtitle">{recent_active.TOPIC_TITLE}</a><br />
               {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_FIRST_POSTER_COLOUR};" href="{recent_active.USERNAME_FIRST}">{recent_active.TOPIC_FIRST_POSTER_NAME}</a> {recent_active.TOPIC_TIME}
            </dt>
            <dd class="topics" style="width:8%">{recent_active.TOPIC_REPLIES}</dd>
            <dd class="posts" style="width:8%">{recent_active.TOPIC_VIEWS}</dd>
            <dd class="lastpost"><span>
               {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_LAST_POSTER_COLOUR};" href="{recent_active.USERNAME_LAST}">{recent_active.TOPIC_LAST_POSTER_NAME}</a> <a href="{recent_active.U_LAST_TOPIC}">{LAST_POST_IMG}</a><br />{recent_active.TOPIC_LAST_POST_TIME}</span>
            </dd>
         </dl>
         </li>
         <!-- END recent_active -->
      </ul>
   {$CA_BLOCK_END}
   </div>
<!-- End Recent Active Topics -->
And let that be the last custom coding for today ;)
Regards Stoker
User avatar
Blackwolf_Oz
Registered User
Posts: 264
Joined: Sat Jan 02, 2010 5:15 am
Location: Melbourne Australia
Name: Nick

Re: [RC] Top Stats

Post by Blackwolf_Oz »

Thanks so very much for the custom styling ;)

Forum looks fantastic & I get to keep the stars. :D Appreciate the help :)
We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.

Ultimate Edition, Ultimate Edition Oz, Oz Unity

Return to “[3.0.x] MODs in Development”