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
ZetaBoards Thanks System; Allows user to give thanks
Topic Started: Jul 21 2009, 01:39 PM (1,297 Views)
Lout
Member Avatar
Member
[ *  *  *  * ]
I've seen a lot of people asking for this feature, and seeing as I've been using it for a while I'd like to share.

Firstly, credit for this code goes to Generation Studio's Reputation Code, as this is just a reworking of it.

Preview
Username: tester
Password: testing

Now on to the code, this takes two short steps.
Step 1: Add CSS.
Go to Admin CP→[Themes]→Themes
Click Edit Theme Appearance for your first active skin. Scroll down to the bottom of this CSS and add this snippet:
Code:
 
div#historybox {
display: none;
min-height: 120px;
background-color: #FFF;
text-align: center;
width: 400px;
left: 50%;
margin-left: -200px;
border: 1px solid #5A70B3;
}

#historybox a {
position: relative;
left: 125px;
}

div#hisloading {
display:none;
vertical-align: center;
}


Next up is the Javascript, which goes in the "Above the Copyright" box of the board template.
Code:
 
<script type="text/javascript">
//<![CDATA[
/* ZetaBoards Reputation System by GenerationStudio
Do not edit this code except for these variables: */
RepOptions = {
on: true,
customDomainCode: "0",
name: "Thanks",
addImg: "<img src='http://209.85.62.24/382/14/0/f385974/zetathanks.png' alt='' />",
minusImg: "</>",
version: "1.0.0"
};
// Don't edit below this line, thanks!
if (window.location.href.split(main_url)[1].split("/")[0] == "topic" || window.location.href.split(main_url)[1].split("/")[0] == "profile") {
document.write('<script src="http://209.85.62.24/382/14/0/p188558/zetathanks.js"><\/script>')
}
//]]>
</script>


What you can change:-
on - Set to true to enable the Thanks System. Set to false to disable it.
customDomainCode - This is for if you are using a custom domain. Set it to something unique, it doesn't matter what. I suggest a string of random numbers, such as x542108. But don't use that one.
name - The name of your Thanks (Thanks, Popularity, etc)
addImg - The image/text shown for a +1 Thanks.
minusImg - Don't edit this.
version - Don't edit this.

For multiple themes

If you want to use this with multiple themes, and want different button images for each one you will have to edit the addImg and instead of placing the code in the board template just add it to the bottom of the theme layout. Don't forget to add the CSS to each theme you use it on ;)

Support for this will be limited I'm afraid as I didn't create the code, but any problems just post them here and I'll try my best.
Offline Profile Quote Post Goto Top
 
Mnikolic
Member
[ *  * ]
Thank you for this modification! This is something that's I've been waiting for for a long time! :D
Offline Profile Quote Post Goto Top
 
Yandols
Member Avatar
Prince of ZeonX
[ * ]
Finally a thanks system is here! I hope you continue the project of this code.
Offline Profile Quote Post Goto Top
 
**CHRIS**
Member Avatar
Member
[ * ]
Have been looking for thanks-button a long time now so thank u for coming with it,,,,,,,BUT i dont see the button when im login to ur preview lol,is it just me or??
Offline Profile Quote Post Goto Top
 
Lout
Member Avatar
Member
[ *  *  *  * ]
You must be logged in as either the tester account, OR just register an account. Then you will see the button while you are viewing a thread, it's located in the mini profile as shown in this image:- (click to enlarge)
Posted Image
Edited by Lout, Jul 24 2009, 03:20 PM.
Offline Profile Quote Post Goto Top
 
**CHRIS**
Member Avatar
Member
[ * ]
Ops sorry,my mistake.I had logged in,but i just looked at the bottom of each posts,,,,,as it use to be there in other forum im on.But now i can see it,and thank u for the button.Now im gonna fix that in my forum :)
Have put in the codes now,but no any thanks-button show in my forum:( Is it anything else i shall do then?
Edited by **CHRIS**, Jul 25 2009, 03:20 PM.
Offline Profile Quote Post Goto Top
 
KingemO93
Member Avatar
Member
[ * ]
this is awesome!
Offline Profile Quote Post Goto Top
 
m ryan
Member Avatar
Member
[ * ]
looks cool thanx man
Offline Profile Quote Post Goto Top
 
Lout
Member Avatar
Member
[ *  *  *  * ]
**CHRIS**
Jul 25 2009, 03:03 PM
Ops sorry,my mistake.I had logged in,but i just looked at the bottom of each posts,,,,,as it use to be there in other forum im on.But now i can see it,and thank u for the button.Now im gonna fix that in my forum :)
Have put in the codes now,but no any thanks-button show in my forum:( Is it anything else i shall do then?
If you can link me to your forum, and let m know the exact code you put in and where I'll try my best to help you :)
Offline Profile Quote Post Goto Top
 
RyuraGS
Member
[ *  *  * ]
Quote:
 
This code may NOT be modified under any condition! [Unless certified by GenerationStudio]
This code may NOT be distributed under any condition!
You may NOT take snippets from this code and use them in your own code!


Huh.
Offline Profile Quote Post Goto Top
 
Lout
Member Avatar
Member
[ *  *  *  * ]
RyuraGS
Aug 2 2009, 11:52 AM
Quote:
 
This code may NOT be modified under any condition! [Unless certified by GenerationStudio]
This code may NOT be distributed under any condition!
You may NOT take snippets from this code and use them in your own code!


Huh.
I did check with the staff here before posting it, and your quote here would suggest that it was ok?

Quote:
 
Anybody is free to go through and modify the code as they wish. I no longer support this code.
Offline Profile Quote Post Goto Top
 
RyuraGS
Member
[ *  *  * ]
LagerLout
Aug 2 2009, 11:59 AM
RyuraGS
Aug 2 2009, 11:52 AM
Quote:
 
This code may NOT be modified under any condition! [Unless certified by GenerationStudio]
This code may NOT be distributed under any condition!
You may NOT take snippets from this code and use them in your own code!


Huh.
I did check with the staff here before posting it, and your quote here would suggest that it was ok?

Quote:
 
Anybody is free to go through and modify the code as they wish. I no longer support this code.
That's fine then, I didn't remember making that post.

Sorry. Though I will say, I am doing some hosting transferring right now so this code will periodically go up and down a bit. I can give you the PHP files if you want to host them yourself.
Offline Profile Quote Post Goto Top
 
Lout
Member Avatar
Member
[ *  *  *  * ]
RyuraGS
Aug 2 2009, 12:05 PM
Sorry. Though I will say, I am doing some hosting transferring right now so this code will periodically go up and down a bit. I can give you the PHP files if you want to host them yourself.
That would be much appreciated, I'd be more than happy to keep this code running. I will, of course, make sure that the credit for the coding remains as yours, as I have done so already :D
Offline Profile Quote Post Goto Top
 
RyuraGS
Member
[ *  *  * ]
LagerLout
Aug 2 2009, 12:08 PM
RyuraGS
Aug 2 2009, 12:05 PM
Sorry. Though I will say, I am doing some hosting transferring right now so this code will periodically go up and down a bit. I can give you the PHP files if you want to host them yourself.
That would be much appreciated, I'd be more than happy to keep this code running. I will, of course, make sure that the credit for the coding remains as yours, as I have done so already :D
I will PM them later to you today as well as the database structure.
Offline Profile Quote Post Goto Top
 
Lout
Member Avatar
Member
[ *  *  *  * ]
Thanks Ry, I appreciate it :D
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