Can we show the user's points next to their Username like on Reddit?
Hi everyone - I was wondering if there is a simple way to show a user's points next to their username on all pages? Just like on Reddit.
I have found myself looking at my points every time I refresh a page to see if I got an upvote so I was thinking this could be a pretty good incentive to have on our vanilla forums
Just to clarify, by points I mean the dt.Points
which you see when on your userpage.
I have some JQuery going on in my website, so that could be an option. I'm aware how to move divs around with InsertAfter, but I don't know how to call dt.Points
to load on all pages. Is it maybe as easy as inserting a {points}
or similar code into the theme's html file?
Thanks for any replies! I think this feature would be very useful to many people, and maybe even worth adding into the core if many people agree with me
Comments
Cool guys, I found a solution. Simply use use the feature
{module name="UserInfoModule"}
in your theme's .tpl to bring the whole info box to your page, and move stuff around from there. Easy fixGreat that you found a solution to work with. But if you want to spice up your own theme with some info here and there, you might be interested how this could be done also quite easy.
From what you have written above I would say you already have a custom theme, let's call it "groovy" (I like that word). So you have a folder called
/themes/groovy
. Take the code below and save it as/themes/groovy/class.groovythemehooks.php
Whenever you want to insert information bits, you "only" need to know where you are able to insert what information.
Drop a note if that's of interest and you need more information or simply search this forum for "fireEvent"