SQL ERROR [ mysqli ]

Download and support for PhpBB3 Top Stats Mod
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

SQL ERROR [ mysqli ]

Post by Stoker »

Update to 1.0.6
That will fix it.
Board rules! No PM support
User avatar
RMcGirr83
BBCoder III
BBCoder III
Posts: 104
Joined: 08 Mar 2010, 13:17
Favourite MOD: mChat
Contact:

SQL ERROR [ mysqli ]

Post by RMcGirr83 »

Stoker wrote:Great. Now I am able to troubleshoot the error.
And your fix works 100% - Thanks a lot Rich :)
You're welcome
But Dammit!!! Now I have to resubmit for the third time...
..and there will be a fourth time from looking at the code. ;)
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

SQL ERROR [ mysqli ]

Post by Stoker »

Why is that Rich?
Board rules! No PM support
Napster
Donator
Donator
Posts: 6
Joined: 02 Oct 2011, 13:38
BBCodes: 30
Favourite BBCode: Anipro
Favourite MOD: Arcade
Location: Somewhere Over The Rainbow

SQL ERROR [ mysqli ]

Post by Napster »

..and there will be a fourth time from looking at the code
yep.after install i just get a white page on index
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

SQL ERROR [ mysqli ]

Post by Stoker »

Napster wrote:
..and there will be a fourth time from looking at the code
yep.after install i just get a white page on index
Then check your edits.

And if you are interested in support for the mod, then open a topic and ask for it ;)
Board rules! No PM support
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

SQL ERROR [ mysqli ]

Post by martin123456 »

White page on 1.0.6 too back on 1.0.5 and all is good

Bummer wrong topic sorry
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

SQL ERROR [ mysqli ]

Post by Stoker »

Please redownload and try again ;)
Board rules! No PM support
User avatar
RMcGirr83
BBCoder III
BBCoder III
Posts: 104
Joined: 08 Mar 2010, 13:17
Favourite MOD: mChat
Contact:

SQL ERROR [ mysqli ]

Post by RMcGirr83 »

Stoker wrote:Why is that Rich?
For starters using quote for coloring purposes
WHERE ' . $db->sql_in_set('t.forum_id', $flist) . ' AND topic_moved_id = 0 AND topic_approved
ORDER BY topic_last_post_time DESC';
you are missing the table delineation (aka t) and topic_approved should have a value....eg

Code: Select all

		WHERE ' . $db->sql_in_set('t.forum_id', $flist) . ' AND t.topic_moved_id = 0 AND t.topic_approved = 1
		ORDER BY t.topic_last_post_time DESC';

Code: Select all

and forum_type = 1
should be

Code: Select all

AND forum_type = ' . FORUM_POST . '
for example

The tabbing is also off within this file

Code: Select all

if (!defined('INCLUDES_FUNCTIONS_TOP_STATS_PHP'))
{
	define('INCLUDES_FUNCTIONS_TOP_STATS_PHP', true);
	
	$flist = $auth->acl_getf('f_read', true);
	$flist = array_unique(array_keys($flist));
	
// Recent Active Topics
if (!empty($config['tsrat_enable']) && sizeof($flist))
{
which is more of a readability thing than anything else and indent is your friend!! :)
User avatar
Solidjeuh
BBCoder IV
BBCoder IV
Posts: 257
Joined: 16 Oct 2011, 02:15
BBCodes: 7
Favourite MOD: Top stats
Location: Aalst / Belgium
Contact:

SQL ERROR [ mysqli ]

Post by Solidjeuh »

Yes! everythingg works now with 1.0.6!
Thank you so much!
:D
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

SQL ERROR [ mysqli ]

Post by martin123456 »

confirmed it works :D
Locked