Create A Forum - Support Forums

Support => Create a Forum Codes and Support => Topic started by: aIURbliS on November 04, 2012, 05:00:21 pm

Title: [Code] Crowns
Post by: aIURbliS on November 04, 2012, 05:00:21 pm
Description: Adds a crown next to any usernames of your choice, requires that the username to be anchored(linked) in posts like this,  [url=http://www.google.com/]xboi209[/url] . The max height of the image is set to 10 but you can modify that number if you look through the code hard enough, except that I won't be supporting any numbers above 10. You can set the width of the image but since the max height is set to 10, so you need the width to be proportional so set the number to something like 15.


This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/ (http://support.createaforum.com/5/jquery-v1-8-update/)

Footers:
Code: [Select]

<script>function xboi209_crowns(username,img_url,img_width,img_name){$("a:contains('"+username+"'):not('h1.forumtitle > a')").prepend("<img src='"+img_url+"' width='"+img_width+"' height='10' alt='"+img_name+"' /> ")}
xboi209_crowns("USERNAME","IMAGE_URL","IMAGE_WIDTH","IMAGE_NAME");
</script>

Editing instructions: Add more of these lines to the end of the code, xboi209_crowns("USERNAME","IMAGE_URL","IMAGE_WIDTH","IMAGE_NAME");
Title: Re: [Code] Crowns
Post by: terrel8125 on November 21, 2012, 09:19:08 pm
so you cant make it with just usergroups?
Title: Re: [Code] Crowns
Post by: aIURbliS on November 22, 2012, 03:55:00 am
I'll make an update for it later which will allow membergroups to be selected.
Title: Re: [Code] Crowns
Post by: terrel8125 on November 22, 2012, 04:54:23 pm
thank you cause it would become a hassle to put every single member, img for that member and yada yada especially when i get bigger and it would be un-needed code
Title: Re: [Code] Crowns
Post by: terrel8125 on December 06, 2012, 12:16:07 am
-Bump-