Hello,

I am a new to drupaler so I am not sure if this is something simple, but I was wondering if there is a way to add text to the page where users can look at the summary of their and other user's userpoints so I could provide an explanation of what these are, what you get points for, etc. To be more explicit, I am talking about adding text between the title 'Userpoints' and the table with the username and total points. Thanks!

Comments

jredding’s picture

Within the userpoints module there is not a way but with some theming you can do. Check the theming guide under the handbooks section for more info.

zokazola’s picture

Thanks for the quick reply!

I am new to web development as well as Drupal, so I was wondering if you could possibly point me in the right direction. I do know how to edit my css etc, but I was wondering if I need to do this through the style.css or some other location. Thanks for your help!

jredding’s picture

#1) Read up on theming on the handbook page
http://drupal.org/handbooks

#2) Read up about theme overriding on the handbook pages
http://drupal.org/node/55126

#3) Look through the userpoints.module file for items that you can theme. You'll find.
/*
* Purpose: Allow my_userpoints to be themeable
*/
function theme_userpoints_my_userpoints($args, $header, $rows) {

So if you take the 3 above you'll find that you'll need to override this theme with something in your template.php page like

mytheme_userpoints_my_userpoints($args, $header, $rows) {
}

that's it.. Good luck and don't forget if the documentation in the handbooks isn't clear or good be better make note of it and, once you've figured how to accomplish this, come back and update the documentation.

Drupal is a system of volunteers made up of you and I (and a few thousand others ;) )

zokazola’s picture

Great! Thank you so much for your help!

jredding’s picture

Status: Active » Closed (fixed)

closing...