The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Adding a Icon/Crown?

View previous topic View next topic Go down

Adding a Icon/Crown?

Post by YoungYidDan on Fri 27 May - 14:05

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 http://i55.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

YoungYidDan
New Member

Posts : 8
Reputation : 0
Language : English

Back to top Go down

Re: Adding a Icon/Crown?

Post by Captain Kuchiki on Fri 27 May - 14:34

avatar
Captain Kuchiki
Forumember

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

Back to top Go down

Re: Adding a Icon/Crown?

Post by YoungYidDan on Fri 27 May - 15:09

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?

YoungYidDan
New Member

Posts : 8
Reputation : 0
Language : English

Back to top Go down

Re: Adding a Icon/Crown?

Post by Darkel on Fri 27 May - 15:11

do you mean on the widgets ?
avatar
Darkel
Hyperactive

Male Posts : 2186
Reputation : 272
Language : English, Tagalog
Location : Philippines

Back to top Go down

Re: Adding a Icon/Crown?

Post by YoungYidDan on Fri 27 May - 15:18

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?

YoungYidDan
New Member

Posts : 8
Reputation : 0
Language : English

Back to top Go down

Re: Adding a Icon/Crown?

Post by Captain Kuchiki on Fri 27 May - 15:48

avatar
Captain Kuchiki
Forumember

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

Back to top Go down

Re: Adding a Icon/Crown?

Post by ElMuggs on Fri 27 May - 16:03

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 Fri 27 May - 16:11; edited 1 time in total (Reason for editing : second thoughts.)
avatar
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

Re: Adding a Icon/Crown?

Post by Captain Kuchiki on Fri 27 May - 16:08

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

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

Back to top Go down

Re: Adding a Icon/Crown?

Post by YoungYidDan on Tue 31 May - 16:11

Tried that code, doesnt work for some reason Sad

YoungYidDan
New Member

Posts : 8
Reputation : 0
Language : English

Back to top Go down

Re: Adding a Icon/Crown?

Post by Gangstar15 on Tue 31 May - 17:30

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
avatar
Gangstar15
Forumember

Female Posts : 392
Reputation : 163

http://www.designdrops.net/

Back to top Go down

Re: Adding a Icon/Crown?

Post by imToph on Wed 22 Jun - 21:12

@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..

avatar
imToph
New Member

Posts : 17
Reputation : 0
Language : Eng, Phil

Back to top Go down

Re: Adding a Icon/Crown?

Post by Gangstar15 on Wed 22 Jun - 21:56

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 :=)
avatar
Gangstar15
Forumember

Female Posts : 392
Reputation : 163

http://www.designdrops.net/

Back to top Go down

Re: Adding a Icon/Crown?

Post by imToph on Thu 23 Jun - 9:11

thanks Smile
avatar
imToph
New Member

Posts : 17
Reputation : 0
Language : Eng, Phil

Back to top Go down

View previous topic View next topic Back to top


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