• Resolved manni65929

    (@manni65929)


    Hi,

    I’m considering using ThirstyAffiliates on a multi author platform and I would like each author to manage his/her own affiliate links. This seems to work OK when the author selects from the left hand mene, but when using the Add Affiliate Link button in the visual editor, the author can see all affiliate links, wether they are from him or not.

    Is there a possibility to limit the entries in the Add Affiliate Link- Button only to those affiliate links created by the user or is there an add-on I can use?

    Thanks in advance.

    Manni65929

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @manni65929,

    I’m afraid you need to modify the plugin files to achieve it. You can try to modify “wp-content/plugins/thirstyaffiliates/thirstyaffiliates.php” on line 1306 from:

    $querystr = "SELECT * FROM $wpdb->posts WHERE post_type = 'thirstylink' AND post_status = 'publish' ";

    to:

    $querystr = "SELECT * FROM $wpdb->posts WHERE post_type = 'thirstylink' AND post_status = 'publish' AND post_author = " . get_current_user_id();

    Please keep in mind that I haven’t tested it yet, so please test it thoroughly before using it. Also, please don’t forget to backup your site first, just in case.

    I hope this help ??

    Thanks,
    Okky

    Thread Starter manni65929

    (@manni65929)

    Dear Okky,

    thanks for your help, I’ve tried your suggestion and it works so far.
    ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Author based Affiliate links’ is closed to new replies.