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
Awards Mod
Topic Started: Sep 28 2008, 12:15 PM (5,619 Views)
.Scott
Member Avatar
aka slayer766
[ *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
//Awards Modification in postdetails
//By slayer766 of thecodingzone.com

function Add(name,img,aname){
$(function(){
$(".c_username").contains(name).parent().next().find(".user_info").append("<dt>"+aname+":</dt><dd><img src='"+img+"'></dd>");
$(".spacer").appendTo(".user_info");
});}

Add("USER_NAME","IMAGE_URL","AWARD_NAME");
</script>


Change USER_NAME, IMAGE_URL, and AWARD_NAME to what you want it to be and to show up for. Add more by adding more of these lines after each other:

Add("USER_NAME","IMAGE_URL","AWARD_NAME");


Board Template - Below the board.
Offline Profile Quote Post Goto Top
 
AnimeBox
Member
[ * ]
It's not working for me. Where will the award show up? Under the profile field?

Code:
 
<script type="text/javascript">
//Awards Modification in postdetails
//By slayer766 of thecodingzone.com

function Add(name,img,aname){
$(function(){
$(".c_username").contains(name).parent().next().find(".user_info").append("<dt>"+aname+":</dt><dd><img src='"+img+"'></dd>");
$(".spacer").appendTo(".user_info");
});}

Add("wAnBoA","http://img.photobucket.com/albums/v643/wanboa/AnimeBox/contestwinner2.png","Award");
</script>
Offline Profile Quote Post Goto Top
 
Temptations
Member Avatar
Member
[ *  *  *  * ]
Preview please :P
Offline Profile Quote Post Goto Top
 
Darren Gilmour
I seriously am dumb.
[ *  *  * ]
Yehh a preview would be good....
Offline Profile Quote Post Goto Top
 
EdgeMirror
Member
[ *  *  * ]
Where does the awards show up? I can't seem to find it anywhere.

How does the code work? Can you please tell us where the awards show?

EDIT: I seem to have found a preview for it here, if this is what the code does.
http://s1.zetaboards.com/Slayer_Coding/topic/664527/1/

EDIT 2: I see that it overrides the reputation system if you have it installed on your boards. So if you have that aswell then neither codes work.

I can't try it on my boards because I'm not removing the reputation system. If someone who doesn't have the rep system and the code doesn't work please say.
Edited by EdgeMirror, Nov 4 2008, 06:36 PM.
Offline Profile Quote Post Goto Top
 
Word
Member
[ *  * ]
Doesn't work for me and I don't have a rep system.

Shame, it looks cool.
Offline Profile Quote Post Goto Top
 
Word
Member
[ *  * ]
Here, this works.

Quote:
 
<script type="text/javascript">
//Awards Modification in postdetails
//By slayer766 of thecodingzone.com

function Add(name,img,aname){
$(".c_username:contains('"+name+"')").parent().next().find(".user_info").append("Award: "+aname+" <img src='"+img+"'>");
}

Add("NAME","IMAGE URL","AWARD TEXT");
</script>



Although it doesn't work with fancy usernames for some reason.. i.e : ιlџvиaяџ
Edited by Word, Nov 5 2008, 12:10 PM.
Offline Profile Quote Post Goto Top
 
EdgeMirror
Member
[ *  *  * ]
Bril. Thanks for this.

EDIT: Found out how to do the problem I asked of here.

Although being able to add them somewhere in pofiles would be a great option too! :)
Edited by EdgeMirror, Nov 10 2008, 03:34 PM.
Offline Profile Quote Post Goto Top
 
PinkMascara
Member Avatar
Member
[ * ]
Is there anyway to get it to just show an image and for what the award is to show up when you roll over it? Otherwise it works great :)
Offline Profile Quote Post Goto Top
 
SonicHyuga
Member Avatar
Member
[ * ]
Dude, thanks alot! I am going to have so much fun with this! :D
Offline Profile Quote Post Goto Top
 
J-Syxx
Member
[ *  * ]
Can this please be changed so it only shows up in the user's profile?
Offline Profile Quote Post Goto Top
 
soulsafe2
Member
[ * ]
Sooooo, what is the url code i paste? an image shack code or something? does it show up small or the original size?
Offline Profile Quote Post Goto Top
 
racingspirit
Member
[ * ]
its running,
but how about we want to put more then one award for one user....

Offline Profile Quote Post Goto Top
 
SlyCooperFan1
Member Avatar
Sly was here.
[ * ]
@racingspirit:
slayer766
 
Change USER_NAME, IMAGE_URL, and AWARD_NAME to what you want it to be and to show up for. Add more by adding more of these lines after each other:

Add("USER_NAME","IMAGE_URL","AWARD_NAME");


@soulsafe2: You need to post the link to the image. And it's going to show up full-sized.
Offline Profile Quote Post Goto Top
 
DavesWorld56
Member
[ * ]
Still not working for me, and I tried both MOD codings given above. Neither one shows up on my board HERE.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Code & Modification Database · Next Topic »
Add Reply