Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

User levels

Quote Reply
User levels
Is there an easy way to switch from using text "levels", the user category based on number of posts, to a graphic?

I'd like to use stars, I know it's not original but wanted to give it a shot.
Quote Reply
Re: [heavybombers] User levels In reply to
You could use the existing titles and do something like the following on your templates:
Code:
<%if user_title eq 'Novice'%>
<img src="onestar.gif">
<%elseif user_title eq 'User'%>
<img src="twostars.gif">
...
<%endif%>
Quick and dirty! But it should work.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] User levels In reply to
Thanks Ivan, I'll tinker with it.

-Scott
Quote Reply
Re: [heavybombers] User levels In reply to
Second option: you could probably also just introduce userlevels as follows:

1 => onestar.gif
5 => twostars.gif
50 => threestars.gif
1000 => fourstars.gif
1000000000 => manystars.gif

and then user something like <img src="<%user_level%>">.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [heavybombers] User levels In reply to
Or just make an image that is called the same as the title, and then put:

<img src="/images/titles/<%user_title%>.gif">

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] User levels In reply to
Gee, so many choices, thanks everybody Smile

Is "include_post_display" the only template that would have to be so modified?

...off to make tiny little graphics.
Quote Reply
Re: [heavybombers] User levels In reply to
Replying to my own post. If you do decide to go with graphical user levels, don't forget to create an "administrator.gif" graphic. Also, if you've manually added user titles to specific user profiles, you'll need likewise named graphics.

I gave it a whirl on my web site and I think I'm going to switch back to text based user levels. The effect wasn't bad, but I made the mistake of making "fancy" graphic for the admin...and the users didn't like their little stars in comparison Cool

Thanks for all your suggestions on graphical user levels. What I'm going to do now is see about getting the Avatars up and running. If I recall a recent thread, all that was lacking was a user upload feature?

-Scott

Last edited by:

heavybombers: Jan 21, 2002, 12:15 PM
Quote Reply
Re: [heavybombers] User levels In reply to
Replying again to my own post.

If somebody out there does decide to go with graphical user levels. You will want to consider naming the graphics used to something you'd want to see in the User Profile - as the user level (and thus the graphic file name) will be repeated there.