3.1.x Extensions Database 3.1 / 3.2 ⇒ Top Stats
-
- VIP
- Posts: 1157
- Joined: 14 Oct 2014, 19:01
Re: Top Stats
Can not get align top to save my life. top_stats_body.html
Hard coding style="whatever" will need to be changed to class="something" once we get it to line up at the top.
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 -->
-
- Admin
- Posts: 5105
- Joined: 06 Apr 2014, 16:12
Re: Top Stats
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

-
- VIP
- Posts: 1157
- Joined: 14 Oct 2014, 19:01
Re: Top Stats
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.
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.
-
- Users
- Posts: 1
- Joined: 15 Mar 2015, 23:29
Re: Top Stats
Sometimes having it in a css file is easier then doing it inline I find. Specially when your trying something.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.
Trying using float: left; on it usually works for me both all elements on the same level need that line in css.
Re: Top Stats
Is there a way I can add page numbers to any/all the stats?
Many thanks,
Daz.
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.
-
- VIP
- Posts: 1157
- Joined: 14 Oct 2014, 19:01
Re: Top Stats
I added a needed class in the topstats.css for the small mobile views.
This is the bottom lines of the stylesheet...I added that last class listed. It does the trick. 
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;
}
}

-
- Founder
- Posts: 6466
- Joined: 13 Jan 2014, 21:45
Re: Top Stats
Got still this on the low resolution
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
-
- Users
- Posts: 1
- Joined: 06 May 2015, 22:03
Re: Top Stats
How i can add 4 tabs or 3 tabs for top stats? not only 2?
-
- Founder
- Posts: 6466
- Joined: 13 Jan 2014, 21:45
Re: Top Stats
That is not possible for now.vekefexej wrote:how i can add 4 tabs or 3 tabs for top stats? not only 2?
-
- Users
- Posts: 8
- Joined: 08 May 2015, 17:51
Re: Top Stats
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
to
Code: Select all
and
Code: Select all
to
Code: Select all
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??
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))
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))
Code: Select all
Code: Select all
if (!$auth->acl_gets('f_list', 'f_read', $forum_id))
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??
-
- Users
- Posts: 8
- Joined: 08 May 2015, 17:51
Re: Top Stats
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
-
- Users
- Posts: 8
- Joined: 08 May 2015, 17:51
Re: Top Stats
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?
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?
-
- Founder
- Posts: 6466
- Joined: 13 Jan 2014, 21:45
Re: Top Stats
Change the default EN folder to YOUR language folder.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?
So EN will be NL for example.
dmzx