Page 4 of 5

[DEV] Top Attachments

Posted: 18 Sep 2014, 01:15
by all4phone
Sorry, you're right, again :(

Fixed, new download (the same name - 0.2.0)

and thanks again Martin ;)

[DEV] Top Attachments

Posted: 19 Sep 2014, 09:11
by martin123456
Not tried the latest version yet but will today.

[DEV] Top Attachments

Posted: 19 Sep 2014, 12:39
by martin123456
[phpBB Debug] PHP Notice: in file [ROOT]/topa.php on line 32: Undefined index: topa_index_extensions5
[phpBB Debug] PHP Notice: in file [ROOT]/topa.php on line 33: Undefined index: topa_index_extensions6

General Error
SQL ERROR [ mysqli ]

[0]

SQL

No values specified for SQL IN comparison

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()

FILE: [ROOT]/includes/db/dbal.php
LINE: 432
CALL: dbal->sql_error()

FILE: [ROOT]/topa.php
LINE: 67
CALL: dbal->sql_in_set()

FILE: [ROOT]/index.php
LINE: 288
CALL: include('[ROOT]/topa.php')

Edit i managed to get into the acp so video time ;) http://www.blades-place.dyndns.info/acp.mkv

[DEV] Top Attachments

Posted: 19 Sep 2014, 16:55
by all4phone
Looks like config table two rows missing:
topa_index_extensions5 and topa_index_extensions6

Check and add if needed please.

Just in case, check functions edits also please, should be:

Code: Select all

// Mod: Top Attachments -------------------------------
        'S_TOPA_ENABLE'                    => (!empty($config['topa_enable'])) ? true : false,
        'S_TOPA_TOP'                       => (!empty($config['topa_top'])) ? $config['topa_top'] : false,
        'S_TOPA_CUT_TITLE'                => (!empty($config['topa_cut_title'])) ? $config['topa_cut_title'] : false,
        'S_TOPA_CUT_FILE'                => (!empty($config['topa_cut_file'])) ? $config['topa_cut_file'] : false,
        'S_TOPA_INDEX_ENABLE'            => (!empty($config['topa_index_enable'])) ? true : false,
        'S_TOPA_INDEX_FORUMS'            => (!empty($config['topa_index_forums'])) ? $config['topa_index_forums'] : false,
        'S_TOPA_INDEX_QUANT'            => (!empty($config['topa_index_quant'])) ? $config['topa_index_quant'] : false,
        'S_TOPA_INDEX_EXTENSIONS'        => (!empty($config['topa_index_extensions'])) ? $config['topa_index_extensions'] : false,
        'S_TOPA_INDEX_EXTENSIONS2'        => (!empty($config['topa_index_extensions2'])) ? $config['topa_index_extensions2'] : false,
        'S_TOPA_INDEX_EXTENSIONS3'        => (!empty($config['topa_index_extensions3'])) ? $config['topa_index_extensions3'] : false,
        'S_TOPA_INDEX_EXTENSIONS4'        => (!empty($config['topa_index_extensions4'])) ? $config['topa_index_extensions4'] : false,
        'S_TOPA_INDEX_EXTENSIONS5'        => (!empty($config['topa_index_extensions5'])) ? $config['topa_index_extensions5'] : false,
        'S_TOPA_INDEX_EXTENSIONS6'        => (!empty($config['topa_index_extensions6'])) ? $config['topa_index_extensions6'] : false,
        'S_TOPA_FORUM_ENABLE'            => (!empty($config['topa_forum_enable'])) ? true : false,
        'S_TOPA_FORUM_QUANT'            => (!empty($config['topa_forum_quant'])) ? $config['topa_forum_quant'] : false,
        'S_TOPA_FORUM_EXTENSIONS'        => (!empty($config['topa_forum_extensions'])) ? $config['topa_forum_extensions'] : false,
        'S_TOPA_FORUM_EXTENSIONS2'        => (!empty($config['topa_forum_extensions2'])) ? $config['topa_forum_extensions2'] : false,
        'S_TOPA_FORUM_EXTENSIONS3'        => (!empty($config['topa_forum_extensions3'])) ? $config['topa_forum_extensions3'] : false,
        'S_TOPA_FORUM_EXTENSIONS4'        => (!empty($config['topa_forum_extensions4'])) ? $config['topa_forum_extensions4'] : false,
        'S_TOPA_FORUM_EXTENSIONS5'        => (!empty($config['topa_forum_extensions5'])) ? $config['topa_forum_extensions5'] : false,
        'S_TOPA_FORUM_EXTENSIONS6'        => (!empty($config['topa_forum_extensions6'])) ? $config['topa_forum_extensions6'] : false,
        'S_TOPA_FORUM_FORUMS'            => (!empty($config['topa_forum_forums'])) ? $config['topa_forum_forums'] : false,
        'S_TOPA_FORUM_FORUMS2'            => (!empty($config['topa_forum_forums2'])) ? $config['topa_forum_forums2'] : false,
        'S_TOPA_FORUM_FORUMS3'            => (!empty($config['topa_forum_forums3'])) ? $config['topa_forum_forums3'] : false,
        'S_TOPA_FORUM_FORUMS4'            => (!empty($config['topa_forum_forums4'])) ? $config['topa_forum_forums4'] : false,
        'S_TOPA_FORUM_FORUMS5'            => (!empty($config['topa_forum_forums5'])) ? $config['topa_forum_forums5'] : false,
        'S_TOPA_FORUM_FORUMS6'            => (!empty($config['topa_forum_forums6'])) ? $config['topa_forum_forums6'] : false,
        'S_TOPA_FORUM_FORUMS7'            => (!empty($config['topa_forum_forums7'])) ? $config['topa_forum_forums7'] : false,
        'S_TOPA_FORUM_FORUMS8'            => (!empty($config['topa_forum_forums8'])) ? $config['topa_forum_forums8'] : false,
        'S_TOPA_FORUM_FORUMS9'            => (!empty($config['topa_forum_forums9'])) ? $config['topa_forum_forums9'] : false,
        'S_TOPA_FORUM_FORUMS10'            => (!empty($config['topa_forum_forums10'])) ? $config['topa_forum_forums10'] : false,
        'S_TOPA_FORUM_FORUMS11'            => (!empty($config['topa_forum_forums11'])) ? $config['topa_forum_forums11'] : false,
        'S_TOPA_FORUM_FORUMS12'            => (!empty($config['topa_forum_forums12'])) ? $config['topa_forum_forums12'] : false,
// Mod: Top Attachments -------------------------------    

[DEV] Top Attachments

Posted: 19 Sep 2014, 18:11
by martin123456
Now i'm getting this Cannot find module ./../includes/acp/acp_usit.php and the above edits are there.

[DEV] Top Attachments

Posted: 19 Sep 2014, 18:30
by all4phone
Cannot find module ./../includes/acp/acp_usit.php
This refers to another MOD.
What about config table, are you checked (topa_index_extensions6 and topa_index_extensions5 exists) ?

[DEV] Top Attachments

Posted: 21 Sep 2014, 14:28
by martin123456
Sorry for the delay i been away for the weekend il check the database

[DEV] Top Attachments

Posted: 21 Sep 2014, 22:42
by martin123456
Removing config variable: topa_index_enable

Success
Removing config variable: topa_index_extensions6

ERROR: Config variable topa_index_extensions6 does not exist.
Removing config variable: topa_index_extensions5

ERROR: Config variable topa_index_extensions5 does not exist.
Removing config variable: topa_index_extensions4

Success

My bad i had a database error all fixed and working a treat ;)

[DEV] Top Attachments

Posted: 22 Sep 2014, 09:12
by all4phone
Np, I'm glad you got it work ;).

[DEV] Top Attachments

Posted: 24 Sep 2014, 10:39
by all4phone
First post updated to v 0.2.1

new:
- added translations dutch (thanks to dmzx) and polish


new download