| 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: |
| Advanced Award System v1.0; with tooltips | |
|---|---|
| Tweet Topic Started: Nov 7 2009, 01:20 PM (46,981 Views) | |
| Viral | Nov 7 2009, 01:20 PM Post #1 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
What it Does: Adds awards to user's mini profiles (only in posts at the moment). When hovering over these awards, it will show a description of it and the date received in a tooltip. I have tested this to work in the following browsers:
It works 100% in all of those browsers. Hopefully it works just as well in others, but I don't have them ready to test. Preview: http://s1.zetaboards.com/zbAIO2/topic/2231766/1/ The Code: Add the following Below The Board
That's the base of the script, but it needs to be edited when adding awards and such. name : "Awards", - You can change "Awards" to whatever you want to call it, be it achievements, or whatever. Just make sure you wrap it with speech marks " and have a comma after the last speech mark. thumbnail : [20,20], - These are the dimensions of the thumbnail versions of the award images. Change the first 20 to the width, and the second 20 the height. closeFunction : "remove", - This is the animation used when you move your mouse out of the image (when hiding the information box). You can set this to either: "remove" (no animation) or "fade" (fades out) or "slide" (slides upwards). Once again, it must be wrapped with speech marks, and there must be a comma after the last speech mark. Each award is set out like: [user id,"award name","award image","award description","award date"], You can add as many as you want after each other, which will automatically award someone. If you remove the award from the script, it will be removed from all of their posts as well. Note how each part is wrapped with speech marks besides the user id. User ID is the number you see in the URL when viewing their profile. For example, my account here has a user id of 230248. After each award, their should be a comma (after the closing square bracket ]). However, you do not put a comma at the end of the last award. Think of it as a list, use commas after each one, but not the last. When filling out the information, put a backslash in front of all apostrophes and speech marks (besides the ones wrapping it). So, ' changes to \' and " changes to \". Last but not least, you cannot use line breaks (hitting the enter/ return key). If you need a line break, use \n instead, and that will be replaced by a real line break on the forum. I realise that's a lot to take in, so if anything goes wrong, just post here .
Edited by slayer766, Nov 22 2009, 12:01 PM.
|
![]() |
|
| Replies: | |
|---|---|
| Rosencrantz | Mar 6 2010, 10:25 AM Post #76 |
|
Member
![]() ![]() ![]()
|
I'm not having much luck. I'm new to the coding aspect, so apologies x_x Under Edit Board Template -> Below The Board I have the following:
And this is the link to the code I have uploaded to the board itself: Test I'm sure I've made a dumb mistake somewhere >.> Or in multiple places. |
![]() |
|
| Viral | Mar 6 2010, 10:41 AM Post #77 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You need to completely remove the code, and just have that last line:
Also, in that script (the hosted file) you need to remove the last </script>. So the file should look like:
|
![]() |
|
| Rosencrantz | Mar 6 2010, 10:53 AM Post #78 |
|
Member
![]() ![]() ![]()
|
For some reason it's still doesn't seem to be showing up. This is what I have currently: (Under Body Template -> Below The Board)
(Uploaded .js file)
I double checked my member ID number to make sure it was accurate and re-linked to a new image in case the one I had was busted. |
![]() |
|
| Datt | Mar 6 2010, 06:33 PM Post #79 |
|
Member
![]() ![]() ![]()
|
Hi. I'm new to coding and these mods and stuff, but would it be possible to make this work with this so I don't have to edit the code? I would like to know before I even attempt to get it to work. |
![]() |
|
| Viral | Mar 6 2010, 09:10 PM Post #80 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Sorry, add this after:
Datt: I don't plan on integrating the code with that system. |
![]() |
|
| Rosencrantz | Mar 6 2010, 09:32 PM Post #81 |
|
Member
![]() ![]() ![]()
|
I'm really sorry for this taking so much of your time For the life of me, I can't figure out what's going wrong. I added another script to the board (it's a dice rolling script) but tried removing it to see if it was interfering, but still nothing.Below The Board:
In the notepad file:
I've C+Ped from your post exactly to make sure I didn't put a space or a punctuation mark somewhere by accident. Could there be anything wrong with the way I copied the code? Once again, really sorry and I do appreciate your help very much! |
![]() |
|
| Viral | Mar 6 2010, 09:40 PM Post #82 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Yeah, the extra code I told you to add needs to be added in your board templates, not in the hosted file .
|
![]() |
|
| Rosencrantz | Mar 6 2010, 09:47 PM Post #83 |
|
Member
![]() ![]() ![]()
|
And this ordeal has come to an end! I cannot thank you enough for your help. I know my members are going to love this code. I hope this is the last time I ever have to bug you about it. Sorry for being such a newb, but you were a great help.
|
![]() |
|
| Datt | Mar 7 2010, 12:36 AM Post #84 |
|
Member
![]() ![]() ![]()
|
Ok, thanks anyways. |
![]() |
|
| remnightfall-ZNR | Mar 11 2010, 09:37 PM Post #85 |
|
Member
![]() ![]() ![]()
|
This is my code: [coe]<script type="text/javascript"> //<![CDATA[ var t_award = { name : "Awards", thumbnail : [20,20], closeFunction : "fade", users : [ [998344,"Staffer","http://img242.imageshack.us/img242/4315/staffer.png","Awarded to those with a staff position","1/13/10"] [998344,"Helperr","http://i292.photobucket.com/albums/mm29/sonikku123/HELPER.png","Helped a BH member with a problem.","1/13/10"] ] } //]]> </script> <script type="text/javascript" src="http://z3.ifrm.com/142/141/0/p239659/tooltipawards.js"></script>[/code] Its not workin
|
![]() |
|
| SlyCooperFan | Mar 12 2010, 03:04 AM Post #86 |
|
Member
![]() ![]() ![]()
|
The ID's (in your case, 998344) need to be in quotations, like this: "998344" |
![]() |
|
| Viral | Mar 12 2010, 04:37 PM Post #87 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
It doesn't matter for numbers. Can you give me a link to your board? |
![]() |
|
| nleon_20 | Mar 14 2010, 07:29 AM Post #88 |
|
Member
![]() ![]() ![]()
|
Love this Code, it is working quite well for me, except for one thing: The "Award" text isn't lined up with the rest of profile information (like posts, group, etc.). It looks like it is aligned center or right. It is a fairly minor issue, but any clues on what is causing this and what i could do to fix it? |
![]() |
|
| Viral | Mar 14 2010, 09:10 AM Post #89 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You'd have to edit it in the CSS and well I'm not the one to ask for help with that. |
![]() |
|
| SlyCooperFan | Mar 14 2010, 01:53 PM Post #90 |
|
Member
![]() ![]() ![]()
|
Hmm...this was working fine for me until today. I have this in Below the Board.
And my Achievements.js file contains this: Forget the award names/descriptions LOL. Long story. But none of the awards are showing up on any user. Help? |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · ZetaBoards Codes & Modifications · Next Topic » |
| Track Topic · E-mail Topic |
4:30 AM Jul 11
|




![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)
.



For the life of me, I can't figure out what's going wrong. I added another script to the board (it's a dice rolling script) but tried removing it to see if it was interfering, but still nothing.
.
4:30 AM Jul 11