| 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,965 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: | |
|---|---|
| Pikachuuuu | Feb 18 2013, 12:46 AM Post #316 |
|
Member
![]() ![]() ![]()
|
I'm sorry if this has been asked before! Quite frankly, I don't want to go through 21 pages @__@ But I wanted to ask if there was any way to double up on this code? So basically, two or more of that code. I tried manipulating the code a bit but to no avail. Can anyone help? |
![]() |
|
| V1gilante | Feb 18 2013, 03:53 AM Post #317 |
|
Member
![]() ![]() ![]()
|
Hello I am having trouble with the code it will not display at all. Here is my code and what am I doing wrong thanks
|
![]() |
|
| Akhil-10 | Feb 27 2013, 02:07 AM Post #318 |
![]()
Imagination Is The Beginning Of Creation
![]() ![]() ![]() ![]()
|
that's really a better code for advancing awards..Nice! |
![]() |
|
| JAR | Mar 27 2013, 12:46 AM Post #319 |
|
Fortnite Noob
![]() ![]() ![]() ![]() ![]() ![]()
|
Try this:
The only problem was you need to remove any unneeded from the script. And after final User Id, be sure to remove the comma. Hope this helps. |
![]() |
|
| ringthebellamy | May 13 2013, 02:14 AM Post #320 |
![]()
Dum Spiro Spero
![]() ![]() ![]()
|
This is absolutely gorgeous. Works well. Thank you so much! |
![]() |
|
| VeryColdAir | May 26 2013, 02:06 PM Post #321 |
|
Member
![]() ![]() ![]()
|
I have images that are 9x20, 10x20, 10x21, and 11x20 that I want to use, but whenever I add one that's a different size than the thumbnail size it makes the badge look mess-up. Is it possible to allow the award thumbnails to be the default size of the image and not expand/shrink to keep the thumbnail size? (Sorry if there was already asked, but when I looked though the topic I didn't see the question [if it exists].) |
![]() |
|
| Viral | Jul 2 2013, 04:02 PM Post #322 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Hi everyone, thanks for your support with this script. I've been looking through your comments and it's quite obvious to me that the whole idea of having to add line after line of code for separate awards is both tedious and annoying. So, I've made a second version of this which will be released in my Dynamo code (see here). It will work much like it currently does, but there will be no need to access the ACP to hand out awards. This will all be done through the forum page and it will not add any unnecessary code to your board template page! Look out for more info on the release date soon .
|
![]() |
|
| polocolo | Jul 2 2013, 10:48 PM Post #323 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
Great that you're back! |
![]() |
|
| Twinkle And Kessie | Jul 3 2013, 05:29 AM Post #324 |
![]()
Also Known As Carol And Nella
![]() ![]() ![]() ![]()
|
This is a fabulous set of codes, works flawlessly. ![]() Thanks for sharing it with us.
|
![]() |
|
| somax- | Oct 22 2013, 02:19 PM Post #325 |
|
Member
![]() ![]() ![]()
|
Got 1 question. Im terrible at making codes. But when I see them I understand how to use them. Now. I was wondering if there was a way to make a webpage on my forum which has a list of all the available awards. Or all the awards presented up to this point. |
![]() |
|
| Vertigo22 | Nov 1 2013, 03:18 AM Post #326 |
|
Member
![]() ![]() ![]()
|
This works great! I have just one question. Is it possible to change the word "Received:" in the tool tip pop up to something else so that I can input something other than date received for "award date" |
![]() |
|
| Sheyney Fox | Nov 6 2013, 04:39 AM Post #327 |
|
Member
![]() ![]() ![]() ![]()
|
What a lovely code, thank you Viral.
|
![]() |
|
| Parasky | Feb 14 2014, 12:46 AM Post #328 |
![]()
Member
![]() ![]() ![]()
|
Sorry if I necro this thread, but I have been having some trouble getting this code to work. From what I can tell, it should be working. This is what I have under my Below the Board section:
The AwardTest.js file is linked to a file I uploaded using the upload manager, which contains the following code (warning, it's long): AwardTest.js I can't seem to find anything wrong with it. I've triple checked my code, but it doesn't show up on my members' mini-profiles. When I only had one award on there it showed up just fine, but now that I've added all these none of them will display. By all means this should be working. I don't appear to have overlooked any simple mistakes like a missing quotation or commas. Maybe a fresh set of eyes can find an error I missed? Or perhaps I've overlooked something else entirely? I'm at my wits end, I hope somebody here can help. EDIT: Disregard this post. I just realized I forgot to put commas after each entry. It's working now. Edited by Parasky, Feb 14 2014, 02:25 AM.
|
![]() |
|
| beastboybrown | Feb 16 2014, 09:58 AM Post #329 |
![]()
Member
![]() ![]() ![]() ![]()
|
Just to try this I did a small test to see if it worked and placed some unserious awards up.....
And it didnt work O.o Help.... please? |
![]() |
|
| Kankuro | Feb 25 2014, 01:19 AM Post #330 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Okay, I've added this code to my board and it looks weird when I hover (The Award Title doesn't have a background?) My guess was that it was the CSS but even on a different theme (Zeta Original) it showed the same. ![]() Also, is it possible to center the awards and the word "Awards:" so that all words are centered right below where it says "Awards:"? The error is the beginning of each award string. You can't put the user's name or Email. You have to put their ID. To find the user's ID you go to their profile and you will see a number in the URL, that is their ID. For example, here is the link to your profile on here: http://if.invisionfree.com/profile/2097297/ What you need to put in the beginning of each string is highlighted in blue here: http://if.invisionfree.com/profile/2097297/ So this is how the code should look:
You need to change where you see "2097292" to the ID of the user you want to give the award to. Edited by Kankuro, Feb 25 2014, 01:32 AM.
|
![]() |
|
| 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