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 ] Reputation Points; Edit code
Topic Started: Jul 16 2013, 05:36 AM (398 Views)
i2pm
Member
[ *  * ]
Here's the topic for the reputation points system code that I'am using:
http://if.invisionfree.com/topic/5132658/12/#new

So basically I want the reputation box to be below the default one like this:
Posted Image

Posted Image
Offline Profile Goto Top
 
Viral
Member Avatar
Viral
[ *  *  *  *  *  * ]
There are quite a few around, check the codes forum. I'm in the middle of coding one as well which should be out in a couple of weeks.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
//<![CDATA[
$(document).ready(function () {
$('a.repnumber').each(function () {
$(this).parent('dd').prev('dt').andSelf().insertAfter($(this).parents('dl.user_info')).wrapAll('<dl class="reputation"></dl>');
});

$('dl.reputation').append('<dd class="spacer"></dd>');
});
//]]>
</script>
Add that below the code.
Code:
 
<style type="text/css">
dl.reputation dt {
float: left;
margin: 0;
min-width: 4em;
}

dl.reputation dt, dl.reputation dd {
padding: 0.1em;
}

dl.reputation dd {
margin-bottom: 1px;
}

dl.reputation dd.spacer {
clear: both;
float: none;
height: 1px;
padding: 0;
}
</style>
Add that to the Javascripts wrapper.
Offline Profile Goto Top
 
i2pm
Member
[ *  * ]
Sorry i'am confused as to where I put things? Javacripts, below the board? Also what code do I still use from the reputation system? Do I still have to put that code in my CSS or what?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
The first code I posted put below the 'ZetaBoards Simple Reputation System' code.

The second code I posted add to the Javascripts wrapper.
Offline Profile Goto Top
 
i2pm
Member
[ *  * ]
Works!, Thx so much Cory :)
Offline Profile Goto Top
 
Eccentric Feline
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