[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
User avatar
Stoker 4.0
Registered User
Posts: 1504
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

You can install it on any custom page or portal as easy as installing it on index.
Regards Stoker
MikeRiverra
Registered User
Posts: 2
Joined: Tue Feb 05, 2013 1:42 pm

Re: [RC] Top Stats

Post by MikeRiverra »

Hi Stoker,

nice mod. i'm using it since 3 months (mod version 1.0.10) and it worked as it should be.

i've changed the theme on my board (Artodia: Black), and now it's not scrolling any more. i've found on this topic some replies regarding the above theme but no solution for this.

what i've done so far: since overall_header.html points to scripts_header.html i've placed there the code as follows:

scripts_header.html

Code: Select all

<!-- IF S_JUMPBOX_ACTION and .jumpbox_forums -->
	<!-- DEFINE $JUMPBOX = 1 -->
<!-- ELSEIF .forumrow -->
	<!-- DEFINE $JUMPBOX = 2 -->
<!-- ENDIF -->
<script>

	var phpBB = {
		currentPage: '{$CURRENT_PAGE}',
		themePath: '{T_THEME_PATH}',
		lang: '{S_USER_LANG}'
	};

	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();

	/**
	* 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]);
		}
	};

</script>
<script src="{T_SUPER_TEMPLATE_PATH}/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.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 -->
i've tried removing one jquery but no success. i've even placed the code in overall_header.html above the </head> but still no scrolling.

(refreshed style and cleared cache after every code modification)

can you please help me solve this?

thank you.
User avatar
Stoker 4.0
Registered User
Posts: 1504
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

In your scripts_header.html find:

Code: Select all

<!-- IF (S_TSRAT_ENABLE and S_TS_JSSCROLL) or (S_TSRAT_ENABLE and S_TS_TICKER) -->
<script src="{ROOT_PATH}script/jquery.min.js" type="text/javascript"></script>
Replace with:

Code: Select all

<script src="{ROOT_PATH}script/jquery.min.js" type="text/javascript"></script>
<!-- IF (S_TSRAT_ENABLE and S_TS_JSSCROLL) or (S_TSRAT_ENABLE and S_TS_TICKER) -->
Open your scripts_footer.html and delete:

Code: Select all

<script src="{T_TEMPLATE_PATH}/jquery-1.7.1.min.js"></script>
Purge cache
Regards Stoker
MikeRiverra
Registered User
Posts: 2
Joined: Tue Feb 05, 2013 1:42 pm

Re: [RC] Top Stats

Post by MikeRiverra »

Thank you Stoker,

that done it. you made my day. thank you again :)
engines
Registered User
Posts: 21
Joined: Sat Mar 02, 2013 4:17 pm

Re: [RC] Top Stats

Post by engines »

Will it be made available for phpBB 3.0.11
User avatar
Stoker 4.0
Registered User
Posts: 1504
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

Sure, it is available for 3.0.11
Just download and install it ;)
Regards Stoker
Baranein
Registered User
Posts: 2
Joined: Tue Oct 15, 2013 1:43 am

Re: [RC] Top Stats

Post by Baranein »

Great mod! I love it. It is exactly what i was looking for!

It works almost perfectly, but the width of it is too wide :( It extends way off my screen.

How do i make the boxes only as wide as my forum and page?
User avatar
Stoker 4.0
Registered User
Posts: 1504
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

Baranein wrote:Great mod! I love it. It is exactly what i was looking for!

It works almost perfectly, but the width of it is too wide :( It extends way off my screen.

How do i make the boxes only as wide as my forum and page?
The mod works out of the box for prosilver.
You may have to tweak it for other styles.
Regards Stoker
Baranein
Registered User
Posts: 2
Joined: Tue Oct 15, 2013 1:43 am

Re: [RC] Top Stats

Post by Baranein »

Where do i need to tweak? Because i have found width inside a file and changed it but it does nothing :(

This is Top Stats out of the box, as well as a fresh install of PHPBB3 3.0.12

http://i.imgur.com/t9za2uB.png

As you can see it has a massive overhand even on a fresh Prosilver.
Last edited by marian0810 on Wed Oct 16, 2013 9:45 am, edited 1 time in total.
Reason: posts merged as per https://www.phpbb.com/rules/#bumping
User avatar
Stoker 4.0
Registered User
Posts: 1504
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

Thats weird Baranein, I have it here too: http://www.phpbb3bbcodes.com/testsite/
As you can see with no problems.
Regards Stoker
Nor7on
Registered User
Posts: 76
Joined: Tue Jul 22, 2014 10:20 am

Re: [RC] Top Stats

Post by Nor7on »

Hi.

Somebody how create a block module for only "most viewed" for center block in board3 ?

Thanks
User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan

Re: [RC] Top Stats

Post by muggins »

Your best bet is to go to board3.de and search for the instructions on how to make a module. It's there, easy to find, and not hard to implement.
Muggins
Nor7on
Registered User
Posts: 76
Joined: Tue Jul 22, 2014 10:20 am

Re: [RC] Top Stats

Post by Nor7on »

Yes, but in board3.de i dont have answer from 3 weeks ago.
User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan

Re: [RC] Top Stats

Post by muggins »

You didn't look, I expect. As I said, they have instructions there.
Muggins
User avatar
ir4mt
Registered User
Posts: 8
Joined: Tue Sep 09, 2014 7:30 pm

Re: [RC] Top Stats

Post by ir4mt »

Hi friends !

default of "10 Recent Active Topics" show 3 title topic .
how to change to show 5-6-7 ... title ?

like it:
http://upcity.ir/images2/29766057613940627810.jpg

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