• Hi,

    So when a user is logged out and visits the Affiliates home page they see the content I put in “Affiliates Homepage Message” under the “Affiliate Registration” settings.

    But when a user is logged in and goes to the Affiliates home page, they just see an entirely different notice: “This is the affiliates section of this store. You are not currently an affiliate of this store.” etc.

    I think whether a user is logged in or not, or a WordPress user or not, whatever content is in the “Affiliates Homepage Message” should always be displayed unless they’re actually an affiliate, in which it would show the control panel.

    I tried copying the affiliate_not_registered.php to my theme and editing it there, but the changes aren’t reflected. Is there a way I can edit that file without having to worry about updates overwriting it?

    https://www.ads-software.com/plugins/affiliates-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author affmngr

    (@affmngr)

    Hi, Unfortunately that’s not how updates work. When you do a fresh update (via plugins menu) all the files will be overwritten. What you can do is keep a bakup of the file and manually overwrite it (via FTP) every time you update the plugin.

    Thread Starter invest0r7

    (@invest0r7)

    I have a few plugins that allow you to do that without issue, now sure why it isn’t possible with yours? Even with Paid Membership Pro, if you copy files from their /pages/ folder into your theme, you can edit them freely and the plugin calls them. So you don’t have to worry about them being overwritten during an update.

    Surely there’s a decent way for people to have control over what’s displayed when someone goes to the Affiliates home page and is already logged in? Can you put another area under the “Affiliate Registration” Settings that allow us to edit that content just like you let us edit the content that shows when someone isn’t logged in? I see nowhere where you can edit the home page’s content when someone is logged in. We’re forced to have it say:

    “This is the affiliates section of this store. You are not currently an affiliate of this store. If you wish to become one, please apply.”

    Which in our case makes no sense as we aren’t a store. I’d like to display the same content here that I put in Affiliate Registration -> Affiliates Homepage Message

    Changing the core files and always overwriting after an update is not an option, nor practical. Surely there’s a better way to change that content? Not trying to be difficult, just trying to help make the plugin better. Thanks

    Plugin Author affmngr

    (@affmngr)

    What I mean is that update is a WordPress feature. When you update a plugin via the plugins menu WordPress removes the entire plugin folder from the ‘/wp-content/plugins’ directory and put the latest version in it. This is why you should keep a backup of the plugin file that you customize.

    Thread Starter invest0r7

    (@invest0r7)

    Yes I know it removes the plugin on update, which is why many plugins allow you to keep a copy of the files in your theme which do not get overwritten on update.

    If you can’t make a way for your plugin to call files from a theme’s folder, can you add a section where we can edit the following message?

    “This is the affiliates section of this store. You are not currently an affiliate of this store. If you wish to become one, please apply.”

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘"affiliate_not_registered.php" does not display "Affiliates Homepage Message"’ is closed to new replies.