1 (edited by Geoffrey 2007-09-29 14:11)

Topic: Star next to username

Title pretty much summarises the post.
I want a certain usergroup to have a small image of a star next to their name (obviously have the image)
Should display whereever their name appears.
example:

Geoffrey <image here>

any ideas?

Re: Star next to username

Moved to Modifications

3 (edited by avantgarde 2007-09-30 03:57)

Re: Star next to username

Edit viewtopic.php with a simple if statement, along the lines of:

if ($cur_post['g_id'] == '<group's id>)
$username = '<a href="profile.php?id='.$cur_post['poster_id'].'">'.pun_htmlspecialchars($cur_post['username']).'</a><img src="img's location" />';

else
$username = '<a href="profile.php?id='.$cur_post['poster_id'].'">'.pun_htmlspecialchars($cur_post['username']).'</a>';

Ofcourse you could go a bit more complex with it, but it's a quick fix.

[img]http://i192.photobucket.com/albums/z314/avantgarde--/helplol.png[/img]

Re: Star next to username

Where do I insert that code?
Thanks for your help big_smile

Re: Star next to username

Oh and is it possible to make it so that the star is on the who's online list, userlist, profile, viewtopic, PMs and just about everywhere where the username occurs? tongue

6

Re: Star next to username

Thats an overcomplicated way of doing it. Simpler just to assign a class to the <dt> or <a> holding the username based on group and then give it a background image via the stylesheet.

Re: Star next to username

how do I do that paul?

8

Re: Star next to username

Why not just change the usergroup title to an image link in the lang file? i.e: instead of 'Member' have an img tag in the lang file.

Re: Star next to username

Cause I don't want to...
Can anyone please help??

This is ALL I want (and no more or less)
Everywhere where a member that has <usergroup_id> status has a small image to the right of their name...
ANYONE?

Re: Star next to username

Can anyone please help then? smile

11

Re: Star next to username

lol same name...