Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 3
Awards System
Topic Started: Oct 10 2005, 05:51 PM (7,928 Views)
Nitrogenix
Member Avatar
Back after a while.
---------
Mod Name: Advanced Awards System
Description: Advanced System to display awards in profiles.
Preview/Screenshot In Use:

http://s13.invisionfree.com/UltimateHacks9....php?showuser=1
http://s13.invisionfree.com/UltimateHacks9....php?showuser=2

Login with:

Password:
test
Username: test

Admin Cp >> Board Wrappers >> Footer

Quote:
 
<script language="javascript">
// Advanced Awards System
// created by Ryan Fan/Nitrogenix
// http://www.ifsz.com , 2005
var x = document.getElementsByTagName('TABLE')
for(y=0;y<x.length;y++){
if(x[y].cellPadding == "6" && x[y].cellSpacing == "1" && x[y].width == "100%" && x[y].rows[0].cells[0].innerHTML == "Information" && x[y].rows[0].cells[0].className == "maintitle"){
iRowx = x[y].insertRow(5)
rowt = iRowx.insertCell(0)
rowt.innerHTML = "<b>Awards</b>"
rowt.className = "row3"
rowt.width = "30%"
rowt.vAlign = "top"
rowf = iRowx.insertCell(1)
rowf.innerHTML = "<i>No Information</i>"
}}
function awarduser(iD, Img, Iname){
if(location.href.match('showuser=' + iD + '$')){
rowf.innerHTML = rowf.innerHTML.replace(/No Information/i, "")
rowf.innerHTML += Iname + " - " + "<img src='" + Img + "'><br>"
rowf.className = "row1"
rowf.align = "left"
}}
awarduser("User Number/ID", "Image URL", "Award Name")
</script>


Edit the User Number/ID to the user id (showuser=x)
Edit the Image URL to the award icon image.
Edit the Award Name to the award name/title.

How to add more awards/add for different users

Just add a new line under the first:
Quote:
 
awarduser("User Number/ID", "Image URL", "Award Name")
awarduser("User2 Number/ID", "Image URL", "Award Name")


If you want to add another award, for the same user, just add another line and use the same user id ^_^

PM Offline Member Profile Quote Post Goto Top
 
doug05257
Member Avatar
The Burger King
-----
Great code! :)
PM Offline Member Profile Quote Post Goto Top
 
Video Game Master
Member
-
Finally! I was waiting forever for this code, Thanks Ryan Fan.
PM Offline Member Profile Quote Post Goto Top
 
John
Member Avatar
Determined
--------
Cool code. Nice work. :)
PM Offline Member Profile Quote Post Goto Top
 
maharj
Member Avatar
Member
---
Hey there great code, thanks for sharing, like it alot!
PM Offline Member Profile Quote Post Goto Top
 
Epsian
Member
------
I wish we could see it in the Mini Profiles next to posts...Is there one???:(
PM Offline Member Profile Quote Post Goto Top
 
Vettore
Member Avatar
DON VETTORE
---------
I love you. ;)
PM Offline Member Profile Quote Post Goto Top
 
haneet
Member Avatar
Member
----
Very nice, just what I expect from you :)
PM Offline Member Profile Quote Post Goto Top
 
jamie
Member Avatar
Member
-----
what am i lookin for
PM Offline Member Profile Quote Post Goto Top
 
Amberon
Member Avatar
Winter is Coming
---------
As I said before, immense! :)
PM Offline Member Profile Quote Post Goto Top
 
Recon.
Member
--
Awesome code man ! Awesome work ! I love it. I'll be using that on my forums for sure. And as asked before, would there be a way to get the same kind of thing on the mini profile to the left hand-side of the posts ?
PM Offline Member Profile Quote Post Goto Top
 
Nitrogenix
Member Avatar
Back after a while.
---------
It will be possible on a future version :)

Thanks :D
PM Offline Member Profile Quote Post Goto Top
 
Darkest Power
Member Avatar
Member
-
sorry this is a very stoopid question... im just making sure
User2 Number/ID? is that their name?
PM Offline Member Profile Quote Post Goto Top
 
taurus123
Member
-
Excellent code, great work.
PM Offline Member Profile Quote Post Goto Top
 
mpr
Member
-
for some reason its not working for me...
PM Offline Member Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply
  • Pages:
  • 1
  • 3