[ZetaBoards] Award Codes Error

Migi

Phantom Thief Lv. N00B
Joined
May 25, 2010
Messages
11,865
Reaction score
352
FP$
4,482
Hello, everyone.

Well, yeah, this is a question for a ZetaBoards forum. I tried asking from their support board but since I haven't got a satisfying result... Let me try my luck here. XD

So here is the case.

Let's say forum A has a member named Air and Aire. The administrator adds codes to give awards to members. He gives a medal to Air using the codes, but then he sees that Aire has the medal as well although he shouldn't.

What can be done to solve this?

Here is the codes for the awards used. With this codes, another member named "Aire" also receive two medals even though he shouldn't.

Code:
<script type='text/javascript'>
//Awards and Awards Page by Quozzo
awardsheight = 35;
awardswidth = 20;
var awards = new Array(); a=0;
//awards[a++] = new Array("username","award","picture","date","reason");
awards[a++] = new Array("Air","Newbie Medal","http://z5.ifrm.com/30139/199/0/f5119303/th_medal12.gif","4/8/2012","For being amazing newbie!");
awards[a++] = new Array("Air","Milestone Medal","http://z5.ifrm.com/30139/199/0/f5119522/th_medal2.gif","5/8/2012","For our 100th post!");
</script>
<script type='text/javascript' src='http://z4.ifrm.com/30095/43/0/p1107870/Awards.and.awards.page.js'></script>

Thanks a lot for whoever helps! 😀
 
Personally I've always used this code. It's very similar, but instead of using usernames you use ID's.

http://resources.zetaboards.com/topic/5068409/1/

When you're viewing a members profile, the url will look something like this: /profile/3142634/. That numbers is the number ID you use in place of their username. Might be something to consider if you can't find a solution for that specific code 🙂
 
Kik said:
Personally I've always used this code. It's very similar, but instead of using usernames you use ID's.

http://resources.zetaboards.com/topic/5068409/1/

When you're viewing a members profile, the url will look something like this: /profile/3142634/. That numbers is the number ID you use in place of their username. Might be something to consider if you can't find a solution for that specific code 🙂

Thank you, Kik! I tried it out last night and it seems to work. However it often loads slow for me, at times it won't load. Not sure why but indeed it is safer to use user ID than user names.

edit: Found my mistake, I forget the comma. Thanks, Kik! Marking this as solved.
 
Back
Top Bottom