News:

Create A Forum Installed

Author Topic: [Code] Crowns  (Read 936 times)

0 Members and 1 Guest are viewing this topic.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
[Code] Crowns
« 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/

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");
« Last Edit: November 04, 2012, 05:05:09 pm by xboi209 »
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Share on Facebook Share on Twitter

Agree Agree x 1 View List

Offline terrel8125

  • Jr. Member
  • **
  • Posts: 90
  • Karma: 3
    • View Profile

Badges: (View All)
Level 4 One year Anniversary Karma
Re: [Code] Crowns
« Reply #1 on: November 21, 2012, 09:19:08 pm »
so you cant make it with just usergroups?

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
Re: [Code] Crowns
« Reply #2 on: November 22, 2012, 03:55:00 am »
I'll make an update for it later which will allow membergroups to be selected.
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline terrel8125

  • Jr. Member
  • **
  • Posts: 90
  • Karma: 3
    • View Profile

Badges: (View All)
Level 4 One year Anniversary Karma
Re: [Code] Crowns
« Reply #3 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

Offline terrel8125

  • Jr. Member
  • **
  • Posts: 90
  • Karma: 3
    • View Profile

Badges: (View All)
Level 4 One year Anniversary Karma
Re: [Code] Crowns
« Reply #4 on: December 06, 2012, 12:16:07 am »
-Bump-

 

Related Topics

  Subject / Started by Replies Last post
12 Replies
4478 Views
Last post December 02, 2014, 06:57:57 pm
by CyanProductions
1 Replies
1339 Views
Last post March 14, 2012, 04:53:55 pm
by aIURbliS
6 Replies
971 Views
Last post March 20, 2012, 04:04:43 pm
by aIURbliS
4 Replies
548 Views
Last post August 17, 2012, 06:11:28 pm
by ryanh2633
1 Replies
569 Views
Last post November 04, 2012, 05:04:40 pm
by aIURbliS