Re: Re: Re: Re: uc 5.x-1.0-alpha8 drupal 5.3

Posts: 332
Joined: 08/07/2007
Administrator

Let's see if we can try to knock this one out. On line 236 in uc_roles.module alpha-8 you should see the start of the 'view' $op in the function uc_roles_user. Two functions are checked for TRUE conditions:

<?php
if (user_access('view role expirations') || variable_get('uc_roles_default_show_expiration',FALSE)) {
...
}
?>

If the user viewing the user page doesn't have the 'view role expirations' permission or the option "Show expirations on user page" isn't set in admin/store/settings/products/edit/features the role expirations won't be displayed.

I suggest going in the code and dropping some drupal_set_message() calls to see what's firing and what isn't to pinpoint what's going on. As far as the user_profile.tpl.php having an effect, I'm not sure but this will be one definite way to test what's going on in there. Good luck!

--

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

role expirations not showing up on customer page By: sprugman (26 replies) Fri, 12/28/2007 - 15:40