Welcome Guest [Log In] [Register]
Welcome to ZetaBoards & zIFBoards. 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:
Multiquote (on) Multiquote (off)
Add Reply
Awards System
Topic Started: Oct 10 2005, 04:51 PM (8,457 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 ^_^

Offline Profile Quote Post Goto Top
 
doug05257
Member Avatar
The Burger King
[ *  *  *  *  * ]
Great code! :)
Offline Profile Quote Post Goto Top
 
Video Game Master
Community Activist
Finally! I was waiting forever for this code, Thanks Ryan Fan.
Offline Profile Quote Post Goto Top
 
John
Member Avatar
Determined
Cool code. Nice work. :)
Offline Profile Quote Post Goto Top
 
maharj
Member Avatar
Community Participant
Hey there great code, thanks for sharing, like it alot!
Offline Profile Quote Post Goto Top
 
Epsian
Member
[ *  *  *  *  *  * ]
I wish we could see it in the Mini Profiles next to posts...Is there one???:(
Offline Profile Quote Post Goto Top
 
Vettore
Member Avatar
DON VETTORE
[ *  *  *  *  *  *  *  *  * ]
I love you. ;)
Offline Profile Quote Post Goto Top
 
haneet
Member Avatar
Member
[ *  *  *  * ]
Very nice, just what I expect from you :)
Offline Profile Quote Post Goto Top
 
jamie
Member Avatar
Member
[ *  *  *  *  * ]
what am i lookin for
Offline Profile Quote Post Goto Top
 
Amberon
Member Avatar
Winter is Coming
[ *  *  *  *  *  *  *  *  * ]
As I said before, immense! :)
Offline Profile Quote Post Goto Top
 
Recon.
Face in the Crowd
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 ?
Offline Profile Quote Post Goto Top
 
Nitrogenix
Member Avatar
Back after a while.
[ *  *  *  *  *  *  *  *  * ]
It will be possible on a future version :)

Thanks :D
Offline Profile Quote Post Goto Top
 
Darkest Power
Member Avatar
Community Activist
sorry this is a very stoopid question... im just making sure
User2 Number/ID? is that their name?
Offline Profile Quote Post Goto Top
 
taurus123
Community Activist
Excellent code, great work.
Offline Profile Quote Post Goto Top
 
mpr
Gallery Gazer
for some reason its not working for me...
Offline 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