Top Five

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21292
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: top_five

Post by RMcGirr83 »

The link is created from the phpbb_root_path which in your case is (and is set in the ACP when you first setup the forum)

http://www.forumspellen.nl/forum/
Appreciate the extensions/mods/support then buy me a beerImage
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
pieterbas12
Registered User
Posts: 46
Joined: Sun Mar 22, 2009 10:37 am

Re: top_five

Post by pieterbas12 »

I have in my admin panel http://www.forum.forumspellen.nl! See:
Naamloos.jpg
Naamloos.jpg (88.82 KiB) Viewed 205 times
But on my site its link to www.forumspellen.nl/forum/ :?
Boyobejamin
Registered User
Posts: 71
Joined: Sat Jun 27, 2009 11:18 pm

Re: top_five

Post by Boyobejamin »

Hallo, for some reason on my forums not all of the top 5 people are being shown. Right now only people with admins as their primary group are under Newest Posts, 3 outta 5 people are being shown under Top active users, and newest users is workin great lol.

Board = http://forums.benjaminwelch.com/
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21292
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: top_five

Post by RMcGirr83 »

Boyobejamin wrote:Hallo, for some reason on my forums not all of the top 5 people are being shown. Right now only people with admins as their primary group are under Newest Posts, 3 outta 5 people are being shown under Top active users, and newest users is workin great lol.

Board = http://forums.benjaminwelch.com/
Newest posts is based off of the post time. If five admins have made the newest post then that is what it will show. Active users uses the users post count. If a forum is set to not increase a users post count that could be the problem.

alhitary, try changing this in includes/top_five.php

Code: Select all

	if (sizeof($forum_array))
	{
		$sql_and = ' AND ' . $db->sql_in_set('p.forum_id', $forum_array, true);
	}

	// grab all posts that meet criteria and auths
	$sql_ary = array(
		'SELECT'	=> 'MAX(p.post_time) as post_time, u.user_id, u.username, u.user_colour, t.topic_title, t.forum_id, t.topic_last_post_id',
		'FROM'		=> array(TOPICS_TABLE => 't', POSTS_TABLE => 'p'),
		'LEFT_JOIN'	=> array(
			array(
				'FROM'	=> array(USERS_TABLE => 'u'),
				'ON'	=> 'p.poster_id = u.user_id',
   			),
		),
		'WHERE'		=> 'p.topic_id = t.topic_id
			   AND p.post_approved = 1
			   AND t.topic_moved_id = 0' . $sql_and,
		'GROUP_BY'	=> 't.topic_id',
		'ORDER_BY'	=> 'post_time DESC',
	);
to this

Code: Select all

	if (sizeof($forum_array))
	{
		$sql_and = ' AND ' . $db->sql_in_set('t.forum_id', $forum_array, true);
	}

	// grab all posts that meet criteria and auths
	$sql_ary = array(
		'SELECT'	=> 't.topic_time as post_time, t.topic_title, t.forum_id, t.topic_id, u.user_id, u.username, u.user_colour, ',
		'FROM'		=> array(TOPICS_TABLE => 't'),
		'LEFT_JOIN'	=> array(
			array(
				'FROM'	=> array(USERS_TABLE => 'u'),
				'ON'	=> 't.topic_poster = u.user_id',
   			),
		),
		'WHERE'		=> 't.topic_approved = 1
			   AND t.topic_moved_id = 0' . $sql_and,
		'ORDER_BY'	=> 'post_time DESC',
	);
Then change this

Code: Select all

$view_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id']);
to this

Code: Select all

	$view_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id'] . '&t=' . $row['topic_id']);
Appreciate the extensions/mods/support then buy me a beerImage
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Boyobejamin
Registered User
Posts: 71
Joined: Sat Jun 27, 2009 11:18 pm

Re: top_five

Post by Boyobejamin »

RMcGirr83 wrote:
Boyobejamin wrote:Hallo, for some reason on my forums not all of the top 5 people are being shown. Right now only people with admins as their primary group are under Newest Posts, 3 outta 5 people are being shown under Top active users, and newest users is workin great lol.

Board = http://forums.benjaminwelch.com/
Newest posts is based off of the post time. If five admins have made the newest post then that is what it will show. Active users uses the users post count. If a forum is set to not increase a users post count that could be the problem.

Ill rephrase,
The top five people are being shown correctly, right now there is only one case of it and if you go to my board at forums.benjaminwelch.com you will see that under the catagory Forum and forum The Forum you will see that BenW was the last person to post in the Become an admin section, however BenW is not shown below in the top 5 mod.
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21292
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: top_five

Post by RMcGirr83 »

Oh that, it that case may I suggest you read the topic

I know 25 pages is a lot...but isn't that why the posts are made in a topic anyway?
Appreciate the extensions/mods/support then buy me a beerImage
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Boyobejamin
Registered User
Posts: 71
Joined: Sat Jun 27, 2009 11:18 pm

Re: top_five

Post by Boyobejamin »

RMcGirr83 wrote:Oh that, it that case may I suggest you read the topic

I know 25 pages is a lot...but isn't that why the posts are made in a topic anyway?
No offensive but Im just too busy with school coming up and tuneing up the tech lab computers to be able to look through 25 pages :S and thanks =D
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21292
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: top_five

Post by RMcGirr83 »

Boyobejamin wrote:No offensive but Im just too busy with school coming up and tuneing up the tech lab computers to be able to look through 25 pages :S and thanks =D
..and I'm just sitting around all day with my thumb up my butt, right?

:roll:
Appreciate the extensions/mods/support then buy me a beerImage
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Boyobejamin
Registered User
Posts: 71
Joined: Sat Jun 27, 2009 11:18 pm

Re: top_five

Post by Boyobejamin »

RMcGirr83 wrote:
Boyobejamin wrote:No offensive but Im just too busy with school coming up and tuneing up the tech lab computers to be able to look through 25 pages :S and thanks =D
..and I'm just sitting around all day with my thumb up my butt, right?

:roll:
Im just asssuming you have some free time b4 9pm lol
JoshuaXiong
Registered User
Posts: 19
Joined: Sun Aug 02, 2009 4:12 am
Contact:

Re: top_five

Post by JoshuaXiong »

Anyone tested this one 3.0.5?
Http://ShadowStriker.Co.Cc/
Daily updated Http, Socks, and IRC Proxy
Boyobejamin
Registered User
Posts: 71
Joined: Sat Jun 27, 2009 11:18 pm

Re: top_five

Post by Boyobejamin »

me
User avatar
eman80
Registered User
Posts: 327
Joined: Tue Aug 19, 2008 1:49 pm

Re: top_five

Post by eman80 »

JoshuaXiong wrote:Anyone tested this one 3.0.5?
it works perfectly on 3.0.5
welcome to my forum:
http://www.elibrary4arab.com
drankur
Registered User
Posts: 271
Joined: Sat Dec 22, 2007 4:16 am

Re: top_five

Post by drankur »

Ya it is working pefectly with 3.05 :)
Calman
Registered User
Posts: 339
Joined: Sat Jul 12, 2008 1:01 am
Location: Okanagan Valley, Canada
Contact:

Re: top_five

Post by Calman »

Love the sound & screenie on this one ... may give it a whirl tomorrow.

All the best & thanks for the great work!!!

Cal :)
Visiting, Researching or Relocating to the Okanagan Valley in BC?
http://www.okanaganforum.com
JoshuaXiong
Registered User
Posts: 19
Joined: Sun Aug 02, 2009 4:12 am
Contact:

Re: top_five

Post by JoshuaXiong »

Thank you.
Http://ShadowStriker.Co.Cc/
Daily updated Http, Socks, and IRC Proxy
Locked

Return to “[3.0.x] MOD Database Releases”