| 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,968 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: | |
|---|---|
| Cory | Nov 17 2011, 08:49 PM Post #271 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
In case you miss my post, I replied to your topic, Hussar.
|
![]() |
|
| Halcorp | Dec 4 2011, 03:12 PM Post #272 |
|
Member
![]() ![]() ![]()
|
Cory, I have a board that awards various medals for milestones, for instance board posts, we have 6 levels we want to award a medal for but we would like for the code to be written so that it does it automatic once a member reaches a number of posts. As an example, when a member reaches 1000, he gets a medal, when he reaches 2500 he gets another level award, and when he gets 5000 he gets another medal automatically. Can this be done with your code, at the moment I have to put it in manually each level. |
![]() |
|
| Cory | Dec 4 2011, 08:48 PM Post #273 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Try that. All you have to do is change 'IMAGE_URL' and you can repeat one of the three snippets for another post count level. |
![]() |
|
| Halcorp | Dec 13 2011, 01:07 AM Post #274 |
|
Member
![]() ![]() ![]()
|
It appears to be working, however in the mini profile it shows awards: none, so the count feature is not working. |
![]() |
|
| Cory | Dec 13 2011, 07:24 PM Post #275 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Sorry about that, it appears you need the comma in the post count numbers. |
![]() |
|
| BanTheCow | Jan 7 2012, 02:17 AM Post #276 |
|
Member
![]() ![]() ![]()
|
I just updated the file for the awards on my forum and now it's not working. I've tried looking for any errors in my additions which would have stuffed it up, but I can't find anything. Not too sure what to do. Here is the file: http://z1.ifrm.com/2511/52/0/f5016643/pgfawards.js |
![]() |
|
| RyuraGS-ZNR | Jan 7 2012, 03:55 AM Post #277 |
|
Generation Studio
![]() ![]() ![]() ![]()
|
You've got an extra " in one of your entries:
Should be
|
![]() |
|
| BanTheCow | Jan 7 2012, 05:02 AM Post #278 |
|
Member
![]() ![]() ![]()
|
Ohhhh, thanks for your help!
|
![]() |
|
| chilbot | Jan 12 2012, 04:07 AM Post #279 |
|
Member
![]() ![]() ![]()
|
Spoiler: click to toggle Spoiler: click to toggle Here's the code I have put in Notepad and saved it as a .js but it's not working. Spoiler: click to toggle Any suggestions? Got it to work thanks great code ![]() Also is there a way to classify users ID's so that it doesn't get mixed up so like if I wanted to do just myself then do another space in the code where I can just have another users id so I can keep them separated and organized? Edited by chilbot, Jan 12 2012, 06:18 AM.
|
![]() |
|
| Nimtai-ZNR | Jan 16 2012, 06:22 PM Post #280 |
|
Member
![]() ![]() ![]()
|
Is there anyway to add a line break between "Awards:" and the beginning of the actual icons? On my boards, they're showing up on the same line, I would rather they start on the following line. So it would look like this - Awards: [awards here] [and here] [and here] [etc] Thanks! |
![]() |
|
| Ithens | Jan 18 2012, 03:17 AM Post #281 |
|
Member
![]() ![]() ![]()
|
I can't get it to work,I mean the original one by Viral, nothing shows up!
Is it my fault?Please help. My site if you need to see:
|
![]() |
|
| blackluster.rose | Jan 19 2012, 05:02 PM Post #282 |
![]()
Member
![]() ![]() ![]() ![]()
|
This. I was thinking the same thing. <3 That or is there a way to create a whole new category for this? Instead of having it all in one block, is there a way I could make a new one and have the awards fit into that block only? That would even be better for I want. :3 |
![]() |
|
| RyuraGS-ZNR | Jan 22 2012, 12:58 PM Post #283 |
|
Generation Studio
![]() ![]() ![]() ![]()
|
You need to take away the part that says
Those are just placeholders intended for you to edit or remove. Creating a new category is a total pain, but to move the awards down:
If you already have it installed, you just need to add the last line (<script>$('dt:contains("Awards")').css("float","none").next().css("margin","0");</script>). Edited by RyuraGS-ZNR, Jan 22 2012, 01:05 PM.
|
![]() |
|
| Ithens | Jan 23 2012, 09:29 AM Post #284 |
|
Member
![]() ![]() ![]()
|
It still not working... <3 Thank u! Edited by Ithens, Jan 23 2012, 09:30 AM.
|
![]() |
|
| RyuraGS-ZNR | Jan 23 2012, 11:57 AM Post #285 |
|
Generation Studio
![]() ![]() ![]() ![]()
|
Oh, then remove the comma at the end of the one award you do have. |
![]() |
|
| 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:29 AM Jul 11
|




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




4:29 AM Jul 11