[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!
Scam Warning
maguila
Registered User
Posts: 21
Joined: Fri Sep 23, 2011 9:34 pm

Re: [RC] Top Stats

Post by maguila »

4_seven wrote:open
includes/functions_top_stats.php
find

Code: Select all

// Recent Active Topics
if (isset($config['tsrat_enable']) && $config['tsrat_enable'] == 1)
{	
after add

Code: Select all

if (!isset($flist)){
$flist = array(0);}
Thanks 4_seven!

Now say:

Code: Select all

Error General
SQL ERROR [ mysql4 ]

[0]

SQL

No values specified for SQL IN comparison

BACKTRACE

FILE: includes/db/dbal.php
LINE: 389
CALL: dbal->sql_error()

FILE: includes/functions_top_stats.php
LINE: 37
CALL: dbal->sql_in_set()

FILE: index.php
LINE: 199
CALL: include('includes/functions_top_stats.php')
This line of FILE: includes/functions_top_stats.php LINE: 37

Code: Select all

	WHERE ' . $db->sql_in_set('t.forum_id', $flist) . ' AND topic_moved_id = 0 AND topic_approved
Any problem??

thanks in advanced!

regards
User avatar
Stoker 4.0
Registered User
Posts: 1541
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

Redownload the mod.
Its now version 1.0.6 and the bug is fixed. Thanks RMcGirr83

Just overwrite files and run the installer to update the mod.
~ The greatest achievement in life is to inspire ~
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 »

What was the reason? I think, some empty arrays, bcs. of [ Test out user’s permissions ] mode.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Stoker 4.0
Registered User
Posts: 1541
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

4_seven wrote:What was the reason? I think, some empty arrays, bcs. of [ Test out user’s permissions ] mode.
You can read the fix here: http://www.phpbb3bbcodes.com/viewtopic. ... t=10#p9573
~ The greatest achievement in life is to inspire ~
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 »

so it's near the same fix, thx..
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Stoker 4.0
Registered User
Posts: 1541
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

New ADDON available.
Display forum images instead of the star
Demo at my index page.
You need the newest version for this.


IE7 bug found and fixed
In the following post you can also find a fix that will make it work in IE6 :D
These fix will be included in 1.0.7 which will be released when 1.0.6 is validated.
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
all4phone
Registered User
Posts: 593
Joined: Fri Mar 18, 2011 11:56 am
Location: Poland
Name: Piotr

Re: [RC] Top Stats

Post by all4phone »

v 1.0.6, file info_acp_topstats.php:

Code: Select all

	'TS_MOSTVIEWED_ENABLE_EXPLAIN'			=> 'Enable or disable display of the Recent Active Topics part',
seems that it should be:

Code: Select all

	'TS_MOSTVIEWED_ENABLE_EXPLAIN'			=> 'Enable or disable display of the Most Viewed Topics part',
cstools.net
Registered User
Posts: 24
Joined: Thu Aug 14, 2008 5:36 am
Location: Viana do Castelo, Portugal

Re: [RC] Top Stats

Post by cstools.net »

I can not get your registration in the forum due to the confirmation question is making it difficult for those abroad.

My problem is with jquery does not work ... : S

My overall_header to </head>:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
<!-- INCLUDE config.html -->
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<link rel="stylesheet" type="text/css" href="{T_THEME_PATH}/style_wide.css" />
<link rel="alternate stylesheet" type="text/css" media="screen" title="fixed" href="{T_THEME_PATH}/style_fixed.css" />

<!-- IF S_ENABLE_FEEDS -->
	<!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_NEW}" href="{U_FEED}?mode=topics" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_TOPICS_ACTIVE --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_ACTIVE}" href="{U_FEED}?mode=topics_active" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF -->
	<!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}" /><!-- ENDIF -->
<!-- ENDIF -->

<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" />

<!--
	phpBB style name: Aero
	Based on style:   prosilver (this is the default phpBB3 style)
	Original author:  Tom Beddard ( http://www.subBlue.com/ )
	Modified by: John Olson ( http://www.phpbbhq.com/ )

	NOTE: This page was generated by phpBB, the free open-source bulletin board package.
	      The phpBB Group is not responsible for the content of this page and forum. For more information
	      about phpBB please visit http://www.phpbb.com
-->

<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- IF $A_COLOUR == 'blue' -->
<link href="{T_THEME_PATH}/blue.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->
<!-- IF $A_COLOUR == 'red' -->
<link href="{T_THEME_PATH}/red.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->
<!-- IF $A_COLOUR == 'green' -->
<link href="{T_THEME_PATH}/green.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->
<!-- IF $A_COLOUR == 'black' -->
<link href="{T_THEME_PATH}/black.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->
<!-- IF $A_COLOUR == 'pink' -->
<link href="{T_THEME_PATH}/pink.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->
<!-- IF $A_COLOUR == 'purple' -->
<link href="{T_THEME_PATH}/purple.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->
<!-- IF $A_COLOUR == 'teal' -->
<link href="{T_THEME_PATH}/teal.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->

<script type="text/javascript" src="{ROOT_PATH}mobiquo/tapatalkdetect.js"></script>

<script type="text/javascript">
// <![CDATA[
	var jump_page = '{LA_JUMP_PAGE}:';
	var on_page = '{ON_PAGE}';
	var per_page = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';
	var style_cookie = 'phpBBstyle';
	var style_cookie_settings = '{A_COOKIE_SETTINGS}';
	var onload_functions = new Array();
	var onunload_functions = new Array();

	<!-- IF S_USER_PM_POPUP and S_NEW_PM -->
		var url = '{UA_POPUP_PM}';
		window.open(url.replace(/&/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
	<!-- ENDIF -->

	/**
	* Find a member
	*/
	function find_username(url)
	{
		popup(url, 760, 570, '_usersearch');
		return false;
	}

	/**
	* New function for handling multiple calls to window.onload and window.unload by pentapenguin
	*/
	window.onload = function()
	{
		for (var i = 0; i < onload_functions.length; i++)
		{
			eval(onload_functions[i]);
		}
	}

	window.onunload = function()
	{
		for (var i = 0; i < onunload_functions.length; i++)
		{
			eval(onunload_functions[i]);
		}
	}
	
	/*
	    Style specific stuff
    */
	var laSearchMini = '{LA_SEARCH_MINI}';
    var imagesetLang = '{T_IMAGESET_LANG_PATH}';
// ]]>
</script>
<!--[if lte IE 8]><script type="text/javascript"> var oldIE = true; </script><![endif]-->
<script type="text/javascript" src="{ROOT_PATH}js/styleswitcher.js"></script>
<script type="text/javascript" src="{ROOT_PATH}js/forum_fn.js"></script>

<!-- IF (S_TSRAT_ENABLE and S_TS_JSSCROLL) or (S_TSRAT_ENABLE and S_TS_TICKER) -->
<script src="{ROOT_PATH}script/jquery-1.7.min.js" type="text/javascript"></script>
<!-- IF S_TS_JSSCROLL and not S_TS_TICKER -->
<script src="{ROOT_PATH}script/jquery.totemticker.min.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function() {
	$('#vertical-ticker').totemticker({
				row_height	:	'41px',
				max_items   :   3,
				speed       :   {JSSCROLL_SPEED},
				interval    :   {JSSCROLL_INTERVAL},
				<!-- IF TS_JSSCROLL_NAVIGATION -->
				next		:	'#ticker-next',
				previous	:	'#ticker-previous',
				stop		:	'#stop',
				start		:	'#start',
				<!-- ENDIF -->
				mousestop	:	true,
				direction	:	'<!-- IF TS_JSSCROLL_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->'
	});
});
// ]]>
</script>
<!-- ELSEIF S_TS_TICKER and not S_TS_JSSCROLL -->
<script src="{ROOT_PATH}script/jquery.newsticker.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function() {
	$("#news").newsTicker();
});
// ]]>
</script>
<!-- ENDIF -->
<!-- ENDIF -->

<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />

<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
	<link href="{T_THEME_PATH}/bidi.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->

<!-- INCLUDE ads/ads.js -->

<!-- IF STARGATE --><!-- INCLUDE portal_header.html --><!-- ENDIF -->

<link rel="shortcut icon" href="favicon.ico" >
<link rel="icon" type="image/gif" href="animated_favicon1.gif" >

<!-- MOD : MSSTI ABBC3 (v{S_ABBC3_VERSION}) - Start //-->
<!-- INCLUDE ./../../abbcode/abbcode_header.html -->
<!-- MOD : MSSTI ABBC3 (v{S_ABBC3_VERSION}) - End //-->

<!-- IF S_MCHAT_ENABLE and (S_MCHAT_ON_INDEX or U_MCHAT) -->
<script type="text/javascript" src="{ROOT_PATH}mchat/jquery_cookie_mini.js"></script>
<!-- ENDIF -->

<link href="{T_THEME_PATH}/prime_links/prime_links.css" rel="stylesheet" type="text/css" />

<!-- Start RokBox -->
<script type="text/javascript" src="rokbox/mootools-release-1.11.js"></script>
<script type="text/javascript" src="rokbox/rokbox.js"></script>
<link href="rokbox/themes/dark/rokbox-style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="rokbox/themes/dark/rokbox-config.js"></script>
<!-- End Rokbox -->

</head>
I am grateful for the help, I wanted to tell me that the lines affected, because the same problem occur in the following styles:

* Prosilver_se (3.0.9)
* Aero
* proFormell (3.0.9)

In eleganceblack did well

Thank You! ;)
User avatar
Stoker 4.0
Registered User
Posts: 1541
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

Asking here is fine ;)

I cant see anything wrong in your file.
Did you do all edits to all your styles? And uploaded the template files to all your styles template folders?

What is exactly the problem?
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
smallbreeds
Registered User
Posts: 193
Joined: Thu May 26, 2011 11:16 pm
Location: São José - SC - Brasil

Re: [RC] Top Stats

Post by smallbreeds »

My problem is with jquery does not work ... : S
Try to erase this line and see if it works.

Code: Select all

<script src="{ROOT_PATH}script/jquery-1.7.min.js" type="text/javascript"></script>
You can have another Mod carrying another version of jQuery.
Cid Lessa - Shih Tzu Forum

Sorry my bad english..
vytiokas
Registered User
Posts: 143
Joined: Sat Jul 09, 2011 10:54 am

Re: [RC] Top Stats

Post by vytiokas »

when newest version will work on subsilver2 ?
annyway sry for me bad english
User avatar
doktornotor
Registered User
Posts: 608
Joined: Fri Sep 09, 2011 7:41 am

Re: [RC] Top Stats

Post by doktornotor »

vytiokas wrote:when newest version will work on subsilver2 ?
What does not work :?: :?
Support requests via PM go straight to /dev/null!
cstools.net
Registered User
Posts: 24
Joined: Thu Aug 14, 2008 5:36 am
Location: Viana do Castelo, Portugal

Re: [RC] Top Stats

Post by cstools.net »

*** EDIT ***

It Resolved :mrgreen:

IN...
Find

Code: Select all

<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/forum_fn.js"></script>
Add After

Code: Select all

<!-- IF (S_TSRAT_ENABLE and S_TS_JSSCROLL) or (S_TSRAT_ENABLE and S_TS_TICKER) -->
<script type="text/javascript" src="{ROOT_PATH}script/jquery-1.7.min.js" ></script>
<!-- IF S_TS_JSSCROLL and not S_TS_TICKER -->
<script src="{ROOT_PATH}script/jquery.totemticker.min.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function() {
	$('#vertical-ticker').totemticker({
				row_height	:	'41px',
				max_items   :   3,
				speed       :   {JSSCROLL_SPEED},..........
for me:

Find

Code: Select all

</head>
Add Before

Code: Select all

<!-- IF (S_TSRAT_ENABLE and S_TS_JSSCROLL) or (S_TSRAT_ENABLE and S_TS_TICKER) -->
<script type="text/javascript" src="{ROOT_PATH}script/jquery-1.7.min.js" ></script>
<!-- IF S_TS_JSSCROLL and not S_TS_TICKER -->
<script src="{ROOT_PATH}script/jquery.totemticker.min.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function() {
	$('#vertical-ticker').totemticker({
				row_height	:	'41px',
				max_items   :   3,
				speed       :   {JSSCROLL_SPEED},..........
Work :)

This setup would be more correct, since no JQuery conflicts.

thanks to everyone who responded ;)

Sorry bad english, i'm portuguese
User avatar
Stoker 4.0
Registered User
Posts: 1541
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

vytiokas wrote:when newest version will work on subsilver2 ?
It works fine on subsilver2. Templates are included.
But the jquery scroll and fade only works on prosilver based styles.
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Stoker 4.0
Registered User
Posts: 1541
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

There have been some template changes in phpBB 3.0.10
Therefore I will have to update the mod when 3.0.10 is released.

I am thinking of adding more features such as last visited bots and last registered users.
~ The greatest achievement in life is to inspire ~
Regards Stoker

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