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:
Locked Topic
[ C ] Award System
Topic Started: Aug 10 2012, 05:33 AM (697 Views)
GhostMasterz
Member Avatar
Member
[ *  *  * ]
Board Address: http://w11.zetaboards.com/Zthemes
Board Software: (ZetaBoards )
Description:

Code:
 

<script type="text/javascript">
//Awards Modification in postdetails
//By slayer766

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

Add("Zeeshan","http://z5.ifrm.com/30071/51/0/p1079204/1344415685_trophy__minus.png","GFX");
Add("Zeeshan","http://z5.ifrm.com/30071/51/0/p1079204/1344415685_trophy__minus.png","GFX");
Add("Zeeshan","http://z5.ifrm.com/30071/51/0/p1079204/1344415685_trophy__minus.png","GFX");
</script>

<div class="category" style="margin:10px auto;">
<table class="cat_head"><tr><td>
<h2>Index Advertising</h2>
</td></tr></table>
<table cellpadding="0" cellspacing="0">
<tr>
<td style="width:50%;text-align:center;">
<div class="adverts"></div>
</td>
<td style="width:50%;text-align:center;">
<div class="adverts"></div>
</td>
</tr>
</table>
</div>


Now the image of the trophy appears in the mini profile like Award: GFX IMAGE of TROPHY.
This is the case when one person has only one award, when i want to give the same person more than one award it shows up like Award: [Award Name] [IMAGE of TROPHY], Award: [Award Name] [IMAGE of TROPHY], Award: [Award Name] [IMAGE of TROPHY], Award: [Award Name] [IMAGE of TROPHY],.

How i want it to look like is. Award : Throphy , Throphy, Trophy. WHen the cursor is placed on the trophy i.e. image then it should show the description of the trophy. How you are understanding.

http://w11.zetaboards.com/Zthemes/topic/7764872/1/#new here you can see how it is looking.
And this is how i want it to look like http://z5.ifrm.com/30071/51/0/p1079205/dd.png
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
This is the version you're looking for: http://resources.zetaboards.com/topic/5068409/1/
Offline Profile Goto Top
 
GhostMasterz
Member Avatar
Member
[ *  *  * ]
I have added the code but it doesnt appear in my mini profile.

Code:
 

<script type="text/javascript">
//<![CDATA[
var t_award = {
name : "Awards",
thumbnail : [20,20],
closeFunction : "fade",
users : [
[3212822,"POST DEVELOPMENT","http://z5.ifrm.com/30071/51/0/p1079204/1344415685_trophy__minus.png","EARNED BY POSTING","8/10/12"],
[user id,"award name","award image","award description","award date"],
[user id,"award name","award image","award description","award date"],
[user id,"award name","award image","award description","award date"]
]
}
//]]>
</script>
<script type="text/javascript" src="http://z3.ifrm.com/142/141/0/p239659/tooltipawards.js"></script>
Edited by GhostMasterz, Aug 10 2012, 01:35 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Remove the lines that aren't in use:
Code:
 
<script type="text/javascript">
//<![CDATA[
var t_award = {
name: "Awards",
thumbnail: [20, 20],
closeFunction: "fade",
users: [
[3212822, "POST DEVELOPMENT", "http://z5.ifrm.com/30071/51/0/p1079204/1344415685_trophy__minus.png", "EARNED BY POSTING", "8/10/12"]
]
}
//]]>
</script>
<script type="text/javascript" src="http://z3.ifrm.com/142/141/0/p239659/tooltipawards.js"></script>
Offline Profile Goto Top
 
GhostMasterz
Member Avatar
Member
[ *  *  * ]
Yeah now it works fine! Thank you very much.
Edited by GhostMasterz, Aug 10 2012, 01:55 PM.
Offline Profile Goto Top
 
Ardy
Member Avatar
.
[ *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic