News:

Create A Forum Installed

Author Topic: [Code] Awards  (Read 1098 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] Awards
« on: February 12, 2012, 10:31:03 pm »
Adds awards to a user's profile.


Instructions:
1) Go to your Headers & Footers  http://FORUM.createaforum.com/index.php?action=admin;area=style;sa=headers;
2) This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/
3) Copy and paste this code in your Footers:
Code: [Select]
<script>var Awards=['ID','URL','NAME'];$(document).ready(function(){if(location.href.toLowerCase().match("action=profile;u="+Awards[0])){$("dl.noborder").after("<b>"+Awards[2]+":</b> <img src='"+Awards[1]+"'/></br>");$("dl.noborder").after("<b>Awards:</b><br><br>")}});</script>

4) Where you see "var Awards = ['ID', 'URL', 'NAME'];" edit the ID to the user's ID number found in the url when you go to the user's profile. Edit the IMAGE to the url of the image you want to add. Edit the NAME to the name of the award.
5) For more awards, simply add more of these lines:
Code: [Select]
var Awards = ['ID', 'URL', 'NAME'];
after the first one
6) Save
« Last Edit: August 12, 2012, 03:42:08 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


 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1339 Views
Last post March 14, 2012, 04:53:55 pm
by aIURbliS
1 Replies
725 Views
Last post May 30, 2012, 01:42:35 pm
by CreateAForum
4 Replies
791 Views
Last post June 09, 2012, 05:29:46 pm
by Michel
2 Replies
500 Views
Last post April 28, 2015, 02:36:54 pm
by adrian207
1 Replies
461 Views
Last post November 04, 2022, 04:13:48 pm
by CreateAForum