3.1.x Extensions Database 3.1 / 3.2Top Stats

<span class="qte-attr qte_31_32-qte">3.1.x &amp; 3.2.x</span>
User avatar

Jaantje
Users
Users
Posts: 356
Joined: 02 Nov 2014, 21:25
    Windows 8.1 Chrome

Re: Top Stats

Post by Jaantje »

For the Dutch users, the translation.
Top Stats - nl.zip
Grreeetttttzzzzz, Jaantje

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 8 Firefox

Re: Top Stats

Post by dmzx »

Jaantje wrote:For the Dutch users, the translation.
Top Stats - nl.zip
:thumbup: Thanks Jaantje

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 8.1 Firefox

Re: Top Stats

Post by Sniper_E »

Can not get align top to save my life. top_stats_body.html

Code: Select all

<!-- IF S_TSMVT_ENABLE or S_TSMRT_ENABLE -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
	<!-- IF S_TSMVT_ENABLE -->
		<td<!-- IF S_TSMRT_ENABLE --> style="padding-right:2px; width:50%;"<!-- ENDIF -->>
			<div class="forabg">
				<div class="inner">
					<ul class="topiclist">
						<li class="header">
							<dl>
								<dt>{TSMVT_NUMBER} {L_MOST_VIEWED}
								<span style="float: right;width: 120px;text-align: center;font-size:1.1em;">{L_VIEWS}</span></dt>
							</dl>
						</li>
					</ul>
					<ul class="topiclist forums">
					<!-- BEGIN most_viewed -->
						<li class="row">
							<dl>
								<dt><a style="font-size:1.1em; font-weight:bold;padding-left: 6px;" href="{most_viewed.U_FIRST_TOPIC}">{most_viewed.TOPIC_TITLE}</a><br /><span style="padding-left: 6px;">{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>
								<span style="float: right;width: 120px;text-align: center;font-size:1.1em;">{most_viewed.TOPIC_VIEWS}</span></dt>
							</dl>
						</li>
					<!-- END most_viewed -->
					</ul>
				</div>
			</div>
		</td>
	<!-- ENDIF -->
	<!-- IF S_TSMRT_ENABLE -->
		<td<!-- IF S_TSMVT_ENABLE --> style="padding-left:2px; width:50%;"<!-- ENDIF -->>
			<div class="forabg">
				<div class="inner">
					<ul class="topiclist">
						<li class="header">
							<dl>
								<dt>{TSMRT_NUMBER} {L_MOST_REPLIED}
								<span style="float: right;width: 120px;text-align: center;font-size:1.1em;">{L_REPLIES}</span></dt>
							</dl>
						</li>
					</ul>
					<ul class="topiclist forums">
					<!-- BEGIN most_replied -->
						<li class="row">
							<dl>
								<dt><a style="font-size:1.1em; padding-left: 6px; font-weight:bold;" href="{most_replied.U_FIRST_TOPIC}">{most_replied.TOPIC_TITLE}</a><br /><span style="padding-left: 6px;">{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>
								<span style="float: right;width: 120px;text-align: center;font-size:1.1em;">{most_replied.TOPIC_REPLIES}</span></dt>
							</dl>
						</li>
					<!-- END most_replied -->
					</ul>
				</div>
			</div>
		</td>
	<!-- ENDIF -->
	</tr>
</table>
<!-- ENDIF -->

<!-- IF S_TSMAU_ENABLE or S_TSMAF_ENABLE -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
	<!-- IF S_TSMAU_ENABLE -->
		<td<!-- IF S_TSMAF_ENABLE --> style="padding-right:2px; width:50%;"<!-- ENDIF -->>
			<div class="forabg">
				<div class="inner">
					<ul class="topiclist">
						<li class="header">
							<dl>
								<dt>{TSMAU_NUMBER} {L_MOST_ACTIVE_USERS}
								<span style="float: right;width: 120px;text-align: center;font-size:1.1em;">{L_POSTS}</span></dt>
							</dl>
						</li>
					</ul>
					<ul class="topiclist forums">
					<!-- BEGIN most_active_users -->
						<li class="row">
							<dl>
								<dt><a style="font-size:1.1em; padding-left: 6px; font-weight:bold;color: #{most_active_users.USER_COLOUR};" href="{most_active_users.USER_ID}" title="{L_JOINED_US} {most_active_users.USER_REG}">{most_active_users.USERNAME}</a>
								<span style="float: right;width: 120px;text-align: center;font-size:1.1em;"><a href="{most_active_users.USER_POST_SEARCH}">{most_active_users.USER_POSTS}</a> ({most_active_users.USER_POST_PERCENT}%)</span></dt>
							</dl>
						</li>
					<!-- END most_active_users -->
					</ul>
				</div>
			</div>
		</td>
	<!-- ENDIF -->
	<!-- IF S_TSMAF_ENABLE -->
		<td<!-- IF S_TSMAU_ENABLE --> style="padding-left: 2px;width: 50%;"<!-- ENDIF -->>
			<div class="forabg">
				<div class="inner">
					<ul class="topiclist">
						<li class="header">
							<dl>
								<dt>{TSMAF_NUMBER} {L_MOST_ACTIVE_FORUMS}
								<span style="float: right;width: 120px;text-align: center;font-size:1.1em;">{L_POSTS}</span></dt>
							</dl>
						</li>
					</ul>
					<ul class="topiclist forums">
					<!-- BEGIN most_active_forums -->
						<li class="row">
							<dl>
								<dt><a style="font-size:1.1em; padding-left: 6px; font-weight:bold;" href="{most_active_forums.FORUM_URL}">{most_active_forums.FORUM_NAME}</a>
								<span style="float: right;width: 120px;text-align: center;font-size:1.1em;">{most_active_forums.FORUM_POSTS} ({most_active_forums.FORUM_POSTS_PERCENT}%)</span></dt>
							</dl>
						</li>
					<!-- END most_active_forums -->
					</ul>
				</div>
			</div>
		</td>
	<!-- ENDIF -->
	</tr>
</table>
<!-- ENDIF -->

<!-- IF S_TSLVB_ENABLE or S_TSLRU_ENABLE -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
	<!-- IF S_TSLVB_ENABLE -->
		<td<!-- IF S_TSLVB_ENABLE --> style="padding-right:2px; width:50%;"<!-- ENDIF -->>
			<div class="forabg">
				<div class="inner">
					<ul class="topiclist">
						<li class="header">
							<dl>
								<dt>{TSLVB_NUMBER} {L_LAST_VISITED_BOTS}
								<span style="float: right;width: 140px;text-align: center;">{L_TIME}</span></dt>
							</dl>
						</li>
					</ul>
					<ul class="topiclist forums">
					<!-- BEGIN last_visited_bots -->
						<li class="row">
							<dl>
								<dt><span style="float:left; padding-left: 6px;  font-size:1.1em; font-weight:bold; color: #{last_visited_bots.USER_COLOUR};">{last_visited_bots.USERNAME}</span>
								<span style="float: right;width: 140px;text-align: center;font-size:1.1em;">{last_visited_bots.USER_LAST_VISIT}</span></dt>
							</dl>
						</li>
					<!-- END last_visited_bots -->
					</ul>
				</div>
			</div>
		</td>
	<!-- ENDIF -->
	<!-- IF S_TSLRU_ENABLE -->
		<td<!-- IF S_TSLRU_ENABLE --> style="padding-left:2px; width:50%;"<!-- ENDIF -->>
			<div class="forabg">
				<div class="inner">
					<ul class="topiclist">
						<li class="header">
							<dl>
								<dt>{TSLRU_NUMBER} {L_LAST_REGISTERED_USERS}
								<span style="float: right;width: 230px;text-align: center;">{L_TIME}</span></dt>
							</dl>
						</li>
					</ul>
					<ul class="topiclist forums">
					<!-- BEGIN last_registered_user -->
						<li class="row">
							<dl>
								<dt><span style="float:left; padding-left: 6px;  font-size:1.1em; font-weight:bold;"><a style="font-weight:bold; color:#{last_registered_user.USER_COLOUR};" href="{last_registered_user.USER_URL}">{last_registered_user.USERNAME}</a></span>
								<span style="float: right;width: 230px;text-align: center;font-size:1.1em;">{last_registered_user.USER_REGISTERED}</span></dt>
							</dl>
						</li>
					<!-- END last_registered_user -->
					</ul>
				</div>
			</div>
		</td>
	<!-- ENDIF -->
	</tr>
</table>
<!-- ENDIF -->
Hard coding style="whatever" will need to be changed to class="something" once we get it to line up at the top.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Top Stats

Post by martin »

33.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
Image

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 8.1 Firefox

Re: Top Stats

Post by Sniper_E »

The latest version looks nice freshly installed.
The responsive does not pick up the padding-right: 2px; or the padding-left: 2px;
You may have to use margin-right and margin-left for the mobile.?.
I haven't played with that issue yet.

User avatar

Reaper
Users
Users
Posts: 1
Joined: 15 Mar 2015, 23:29
    Windows 7 Firefox

Re: Top Stats

Post by Reaper »

Sniper_E wrote:Hard coding style="whatever" will need to be changed to class="something" once we get it to line up at the top.
Sometimes having it in a css file is easier then doing it inline I find. Specially when your trying something.

Trying using float: left; on it usually works for me both all elements on the same level need that line in css.


dazbobaby
    Windows 7 Firefox

Re: Top Stats

Post by dazbobaby »

Is there a way I can add page numbers to any/all the stats?
active topics index page.png
I love the extension, but I just think page numbers would finish it off perfectly.

Many thanks,
Daz.
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 8.1 Firefox

Re: Top Stats

Post by Sniper_E »

I added a needed class in the topstats.css for the small mobile views.

This is the bottom lines of the stylesheet...

Code: Select all

@media only screen and (max-width: 550px), only screen and (max-device-width: 550px) {
   span.stats_name {
      width: 100%;
      text-align: center;
   }
   span.stats_info {
      display: none;
   }
   span.stats_date {
      display: none;
   }
   span.stats_author {
      display: none;
   }
}
I added that last class listed. It does the trick. :exclaim:

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 8 Firefox

Re: Top Stats

Post by dmzx »

Got still this on the low resolution
1.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

vekefexej
Users
Users
Posts: 1
Joined: 06 May 2015, 22:03
    Windows 8.1 Chrome

Re: Top Stats

Post by vekefexej »

How i can add 4 tabs or 3 tabs for top stats? not only 2?

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 8 Firefox

Re: Top Stats

Post by dmzx »

vekefexej wrote:how i can add 4 tabs or 3 tabs for top stats? not only 2?
That is not possible for now.

User avatar

stockton88
Users
Users
Posts: 8
Joined: 08 May 2015, 17:51
    Mac OS X Chrome

Re: Top Stats

Post by stockton88 »

This is how to change the permission in the default viewforum.php
allow those who can see a forum to also see the topics, but not read them... change these lines in viewforum.php:

Code: Select all

Code: Select all

if ($auth->acl_get('f_read', $forum_id))
to

Code: Select all

Code: Select all

if ($auth->acl_gets('f_list', 'f_read', $forum_id))

and

Code: Select all

Code: Select all

if (!$auth->acl_get('f_read', $forum_id))
to

Code: Select all

Code: Select all

if (!$auth->acl_gets('f_list', 'f_read', $forum_id))
Advanced Permissions >

Can see forum > Yes
Can read forum > No


How can I make this change to the extension as well? people can see the topic but the content??

User avatar

stockton88
Users
Users
Posts: 8
Joined: 08 May 2015, 17:51
    Mac OS X Chrome

Re: Top Stats

Post by stockton88 »

Code: Select all

Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'Unable to find template "admin_notify_registered.txt" (looked into: ).' in /home/sharitin/public_html/ch.sharit.info/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:202 Stack trace: #0 /home/sharitin/public_html/ch.sharit.info/phpbb/template/twig/loader.php(106): Twig_Loader_Filesystem->findTemplate('@dmzx_notifyadm...') #1 /home/sharitin/public_html/ch.sharit.info/vendor/twig/twig/lib/Twig/Loader/Filesystem.php(138): phpbb\template\twig\loader->findTemplate('@dmzx_notifyadm...') #2 /home/sharitin/public_html/ch.sharit.info/vendor/twig/twig/lib/Twig/Environment.php(265): Twig_Loader_Filesystem->getCacheKey('@dmzx_notifyadm...') #3 /home/sharitin/public_html/ch.sharit.info/vendor/twig/twig/lib/Twig/Environment.php(312): Twig_Environment->getTemplateClass('@dmzx_notifyadm...', NULL) #4 /home/sharitin/public_html/ch.sharit.info/phpbb/template/twig/environment.php(166): Twig_Environment->loadTemplate('@dmzx_notifyadm...', NULL) #5 /home/sharitin/public_html/ch. in /home/sharitin/public_html/ch.sharit.info/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 202
I got this error. When I submitted the registration.

User avatar

stockton88
Users
Users
Posts: 8
Joined: 08 May 2015, 17:51
    Mac OS X Chrome

Re: Top Stats

Post by stockton88 »

I found out why it appears like this.

Because of the language.

If my theme language is British_En and the registration is fine.

As long as I change to different language. It comes to this error when I use this extension(the default is probably British En)

How can I still integrate with each other without translate this extension? Like pointing this extension to the different language I use?

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6466
Joined: 13 Jan 2014, 21:45
    Windows 8 Firefox

Re: Top Stats

Post by dmzx »

stockton88 wrote:I found out why it appears like this.

Because of the language.

If my theme language is British_En and the registration is fine.

As long as I change to different language. It comes to this error when I use this extension(the default is probably British En)

How can I still integrate with each other without translate this extension? Like pointing this extension to the different language I use?
Change the default EN folder to YOUR language folder.
So EN will be NL for example.

dmzx

Post Reply Previous topicNext topic