DIR Return Create A Forum - Home
---------------------------------------------------------
Create A Forum - Support Forums
HTML https://support.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Create a Forum Codes and Support
*****************************************************
#Post#: 7052--------------------------------------------------
[Code] Crowns
DIR By: xboi209
Date: November 4, 2012, 11:00 am
---------------------------------------------------------
Description: Adds a crown next to any usernames of your choice,
requires that the username to be anchored(linked) in posts like
this, [nobbc]
[url=http://www.google.com/]xboi209[/url]
[/nobbc]. 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:
HTML http://support.createaforum.com/5/jquery-v1-8-update/
HTML http://support.createaforum.com/5/jquery-v1-8-update/
Footers:
--- Code ---
<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>
--- End Code ---
Editing instructions: Add more of these lines to the end of the
code,
xboi209_crowns("USERNAME","IMAGE_URL","IMAGE_WIDTH","IMAGE_NAME");
#Post#: 7361--------------------------------------------------
Re: [Code] Crowns
DIR By: terrel8125
Date: November 21, 2012, 3:19 pm
---------------------------------------------------------
so you cant make it with just usergroups?
#Post#: 7365--------------------------------------------------
Re: [Code] Crowns
DIR By: xboi209
Date: November 21, 2012, 9:55 pm
---------------------------------------------------------
I'll make an update for it later which will allow membergroups
to be selected.
#Post#: 7378--------------------------------------------------
Re: [Code] Crowns
DIR By: terrel8125
Date: November 22, 2012, 10:54 am
---------------------------------------------------------
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
#Post#: 7561--------------------------------------------------
Re: [Code] Crowns
DIR By: terrel8125
Date: December 5, 2012, 6:16 pm
---------------------------------------------------------
-Bump-
*****************************************************
Page 1 of 1