[RC] Top Attachments

Modifications maintained and supported by all4phone
Forum rules
This forum is moderated by all4phone!
User avatar
all4phone
BBCoder IV
BBCoder IV
Posts: 150
Joined: 11 Feb 2011, 13:50
BBCodes: 28
Favourite BBCode: Random text signature
Favourite MOD: BBCode Strikethrough MOD
Location: Poland
Contact:

[DEV] Top Attachments

Post by all4phone »

Sorry, you're right, again :(

Fixed, new download (the same name - 0.2.0)

and thanks again Martin ;)
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:

[DEV] Top Attachments

Post by martin123456 »

Not tried the latest version yet but will today.
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:

[DEV] Top Attachments

Post 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
User avatar
all4phone
BBCoder IV
BBCoder IV
Posts: 150
Joined: 11 Feb 2011, 13:50
BBCodes: 28
Favourite BBCode: Random text signature
Favourite MOD: BBCode Strikethrough MOD
Location: Poland
Contact:

[DEV] Top Attachments

Post 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 -------------------------------    
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:

[DEV] Top Attachments

Post by martin123456 »

Now i'm getting this Cannot find module ./../includes/acp/acp_usit.php and the above edits are there.
User avatar
all4phone
BBCoder IV
BBCoder IV
Posts: 150
Joined: 11 Feb 2011, 13:50
BBCodes: 28
Favourite BBCode: Random text signature
Favourite MOD: BBCode Strikethrough MOD
Location: Poland
Contact:

[DEV] Top Attachments

Post 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) ?
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:

[DEV] Top Attachments

Post by martin123456 »

Sorry for the delay i been away for the weekend il check the database
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:

[DEV] Top Attachments

Post 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 ;)
User avatar
all4phone
BBCoder IV
BBCoder IV
Posts: 150
Joined: 11 Feb 2011, 13:50
BBCodes: 28
Favourite BBCode: Random text signature
Favourite MOD: BBCode Strikethrough MOD
Location: Poland
Contact:

[DEV] Top Attachments

Post by all4phone »

Np, I'm glad you got it work ;).
User avatar
all4phone
BBCoder IV
BBCoder IV
Posts: 150
Joined: 11 Feb 2011, 13:50
BBCodes: 28
Favourite BBCode: Random text signature
Favourite MOD: BBCode Strikethrough MOD
Location: Poland
Contact:

[DEV] Top Attachments

Post by all4phone »

First post updated to v 0.2.1

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


new download
Locked