Warning: The author of this contribution does not provide support for it anymore.

Advertisement Management

Frequently Asked Questions

[1.0.10] Enable/Disable button does not work properly

In 1.0.10 the enable/disable button on the main ACP panel does not properly update all of the tables.

Either do not use the enable/disable buttons on the main page (edit the advertisement to enable/disable) or you can fix it with a code edit.

To fix it you can make a change in includes/acp/acp_ads.php

Find:

Code: Select all

                $sql = 'UPDATE ' . ADS_TABLE . '
                    SET ad_enabled = ' . (($action == 'enable') ? 1 : 0) . '
                    WHERE ad_id = ' . $ad_id;
                $db->sql_query($sql);


After, Add:

Code: Select all

                $sql = 'UPDATE ' . ADS_IN_POSITIONS_TABLE . '
                    SET ad_enabled = ' . (($action == 'enable') ? 1 : 0) . '
                    WHERE ad_id = ' . $ad_id;
                $db->sql_query($sql);