Support > General Support

HOWTO: Disable ads in pages actions Register, Login, Reminder, Activate

(1/1)

armada:
Hiya,

You may find that some users are confused by adverts on the Registration pages, as well as the Login, Reminder (forgot password/username page) and the Activation pages.

They may think that the ads are part of your site's contents and could potentally be duped by unscrupulous advrtisers.

To prevent that, go to:

Sources/LoadAds.php

(Make a copy of the file first in case you make a mistake), noting the singe quotes, square brackets and the correct spacing (no spaces between the ==).

Find:

--- Code: ---        //For security reasons, we don't want to display ads if the action is "admin" or "admod"
        if(isset($_REQUEST['action']) && ($_REQUEST['action'] == 'admod' || $_REQUEST['action'] == 'admin' ' ))
                return ;

--- End code ---

Replace with:

--- Code: ---        //For security reasons, we don't want to display ads if the action is "admin", "admod", "register", "login", "reminder", or "activate"
        if(isset($_REQUEST['action']) && ($_REQUEST['action'] == 'admod' || $_REQUEST['action'] == 'admin' || $_REQUEST['action'] == 'register' || $_REQUEST['action'] == 'login' || $_REQUEST['action'] == 'reminder' || $_REQUEST['action'] == 'activate' ))
                return ;
--- End code ---

All the best,
Armada

Navigation

[0] Message Index

Go to full version