When you go to a user profile and go to generate affiliate codes for that specific user for specific nodes, it uses the logged in user id (global $user) rather than the id of the page that you are on. For example, me as admin wants to manually hand out the codes because the user on the other end doesn't have the technical capabilities to figure it out, however they will be passing the code on elsewhere. I want to generate these codes for them but instead it add's admin's username in rather than their username when starting on their profile.
Does that make sense?

uc_affiliate2.module line 346

      $path = join('/', array('user', $user->uid, 'affiliate', 'links', 'export', $ids));

needs to change to something like

      $path = join('/', array('user', arg(1), 'affiliate', 'links', 'export', $ids));

thanks
William Eaton
Drupal Developer
http://www.williameaton.co.uk

Comments

bojanz’s picture

Status: Active » Fixed

Fixed in CVS.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.