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 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 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 May 27th 2011, 1:34 pm


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 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?

YoungYidDan
New Member

Posts : 8
Reputation : 0
Language : English

Back to top Go down

Re: Adding a Icon/Crown?

Post by Darkel on May 27th 2011, 2:11 pm

do you mean on the widgets ?

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 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?

YoungYidDan
New Member

Posts : 8
Reputation : 0
Language : English

Back to top Go down

Re: Adding a Icon/Crown?

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


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 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
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 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
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 May 31st 2011, 3:11 pm

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

Female Posts : 392
Reputation : 163

http://www.designdrops.net/

Back to top Go down

Re: Adding a Icon/Crown?

Post by imToph on 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..


imToph
New Member

Posts : 17
Reputation : 0
Language : Eng, Phil

Back to top Go down

Re: Adding a Icon/Crown?

Post by Gangstar15 on 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
Forumember

Female Posts : 392
Reputation : 163

http://www.designdrops.net/

Back to top Go down

Re: Adding a Icon/Crown?

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

thanks Smile

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