Expand user points integration to allow for branding
webnation - April 23, 2008 - 08:39
| Project: | Advanced Forum |
| Version: | 6.x-1.x-dev |
| Component: | Contrib integration |
| Category: | task |
| Priority: | normal |
| Assigned: | Michelle |
| Status: | closed |
Jump to:
Description
Hi and thanks for a really impressive module,
I have used the 'points branding' feature in User Points to to change the name of the user points. They show up everywhere on the site with the new name but in Advanced Forum they are still called 'Points'.
Any idea how I can change this?
Thanks for your help,

#1
You can either use locale to change the string because it's in t() or edit advanced_profile_userinfo.tpl.php.
I changed this to a feature request because I might be able to have it pick up on the name rather than hardcoding "points" but I don't have time to look right now.
Michelle
#2
Hi Michelle,
Thanks for your prompt response.
Unfortunately my knowledge of php is extremely limited. Can you give me an idea of what to change in advanced_profile_userinfo.tpl.php.
Thanks again,
Mike
#3
Untested, but should work...
Change:
<?phpprint $points;
?>
to:
<?phpprint "YOUR LABEL HERE: " . $points_raw;
?>
Michelle
#4
That's great, Michelle - works perfectly.
Thanks a lot.
Mike
#5
Moving to "to do" list.
Michelle
#6
Branding and categories added.
Michelle
--project followup subject--
Automatically closed -- issue fixed for two weeks with no activity.
#7
Automatically closed -- issue fixed for two weeks with no activity.