The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Adding a Icon/Crown?

+2
Captain Kuchiki
YoungYidDan
6 posters

Go down

Adding a Icon/Crown? Empty Adding a Icon/Crown?

Post by YoungYidDan May 27th 2011, 1:05 pm

Hey
For my forum, im thinking of doing a "Poster of the Month" where posters vote for who they think has been the best poster of the month.

I would add them to a different usergroup called POTM and have a different colour username for that month, but how would I add a crown (like this one https://2img.net/h/oi55.tinypic.com/sxos3p.jpg ) so it goes BEFORE their username, both on the homepage and on posts?

Im on version phpbb3 btw and im abit of a noob with this stuff Razz

thanks
dan
avatar
YoungYidDan
New Member

Posts : 8
Reputation : 0
Language : English

Back to top Go down

Adding a Icon/Crown? Empty Re: Adding a Icon/Crown?

Post by Captain Kuchiki May 27th 2011, 1:34 pm

Captain Kuchiki
Captain Kuchiki
Forumember

Male Posts : 193
Reputation : 34
Language : Serbian, English
Location : In the air

Back to top Go down

Adding a Icon/Crown? Empty Re: Adding a Icon/Crown?

Post by YoungYidDan May 27th 2011, 2:09 pm

Thanks, but I mean when you make groups like Moderators and stuff like that, is it possible to make one called "Poster of the Month" and add a icon before their username, to everyone in that group?
avatar
YoungYidDan
New Member

Posts : 8
Reputation : 0
Language : English

Back to top Go down

Adding a Icon/Crown? Empty Re: Adding a Icon/Crown?

Post by Stephen- May 27th 2011, 2:11 pm

do you mean on the widgets ?
Stephen-
Stephen-
Hyperactive

Male Posts : 2542
Reputation : 326
Language :

Back to top Go down

Adding a Icon/Crown? Empty Re: Adding a Icon/Crown?

Post by YoungYidDan May 27th 2011, 2:18 pm

no, just like next to the username. like if I add someone to a group, how can I make it so everyone in that group has a icon infront of their name?
avatar
YoungYidDan
New Member

Posts : 8
Reputation : 0
Language : English

Back to top Go down

Adding a Icon/Crown? Empty Re: Adding a Icon/Crown?

Post by Captain Kuchiki May 27th 2011, 2:48 pm

Captain Kuchiki
Captain Kuchiki
Forumember

Male Posts : 193
Reputation : 34
Language : Serbian, English
Location : In the air

Back to top Go down

Adding a Icon/Crown? Empty Re: Adding a Icon/Crown?

Post by ElMuggs May 27th 2011, 3:03 pm

I don't think it's possible to do for a entire group. Really the best way would be to set a custom rank like the first tutorial Kuchiki linked or in css on a per user basis like in the 2nd link.

It would be easier and faster too since you'd only have one member being poster of the month at a time. There's no real need for a group if there's only one member in it. That makes the css probably the best option, because all you'd have to do is update the u(number) to whatever usernumber to change it every month.

*edit. on second thoughts. you could probably style a group using the g(number) tag but I've never tried it.


Last edited by ElMuggs on May 27th 2011, 3:11 pm; edited 1 time in total (Reason for editing : second thoughts.)
ElMuggs
ElMuggs
Forumember

Posts : 91
Reputation : 17
Language : CSS / HTML / BBcode / Javascript / Graphics and Tech Support yeech..
Location : Deep in the belly of the code

http://wizardswb.forumotion.com

Back to top Go down

Adding a Icon/Crown? Empty Re: Adding a Icon/Crown?

Post by Captain Kuchiki May 27th 2011, 3:08 pm

It is possible....but i dont know how Very Happy....i think Gangstar15 knows how...try to contact him....
Captain Kuchiki
Captain Kuchiki
Forumember

Male Posts : 193
Reputation : 34
Language : Serbian, English
Location : In the air

Back to top Go down

Adding a Icon/Crown? Empty Re: Adding a Icon/Crown?

Post by YoungYidDan May 31st 2011, 3:11 pm

Tried that code, doesnt work for some reason Sad
avatar
YoungYidDan
New Member

Posts : 8
Reputation : 0
Language : English

Back to top Go down

Adding a Icon/Crown? Empty Re: Adding a Icon/Crown?

Post by Gangstar15 May 31st 2011, 4:30 pm

ok.. maybe i can make it for groups colors:
You may be the first one who tests this:
1. put this script in your overall_header or announcements:
Code:
<script>
    jQuery(document.body).ready(function () {
      jQuery("span").each(function (i) {
        if (this.style.color != "#C7244C") {
          jQuery(this).before('<img src="http://i22.servimg.com/u/f22/15/42/72/40/crown10.png" /> ');
        }
      });
    });</script>

2. If you want to add the crown before the admins groups & groups members change "C7244C" to your group COLOR!

3. Remember that this script will add a crown before every element that is wrapped with "span" tag and has this "C7244C" color Smile

4. Hope it works fine Smile
Gangstar15
Gangstar15
Forumember

Female Posts : 392
Reputation : 163

http://www.designdrops.net/

Back to top Go down

Adding a Icon/Crown? Empty Re: Adding a Icon/Crown?

Post by imToph June 22nd 2011, 8:12 pm

@gangstar15..

i have a problem with this..
i put the code and change my admin group color to c7244c,
its working, but the test image is scattered around the forum,
even other members has the crown..

Adding a Icon/Crown? Untitl11
imToph
imToph
New Member

Posts : 17
Reputation : 0
Language : Eng, Phil

Back to top Go down

Adding a Icon/Crown? Empty Re: Adding a Icon/Crown?

Post by Gangstar15 June 22nd 2011, 8:56 pm

Yah..Someone told me too Smile
there is a problem i need to fix Smile
Will post here if i fix it Smile
I didn't tried the code in a form :=)
Gangstar15
Gangstar15
Forumember

Female Posts : 392
Reputation : 163

http://www.designdrops.net/

Back to top Go down

Adding a Icon/Crown? Empty Re: Adding a Icon/Crown?

Post by imToph June 23rd 2011, 8:11 am

thanks Smile
imToph
imToph
New Member

Posts : 17
Reputation : 0
Language : Eng, Phil

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum