| 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,978 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: | |
|---|---|
| Lout-ZNR | May 15 2010, 06:40 AM Post #121 |
|
He came, he saw...
![]() ![]() ![]() ![]() ![]()
|
Save the file again but remove the <script type="text/javascript"> from the very top and the </script> from the very bottom. Then add the code to the below the board section like you did before making sure you also have this underneath it -
|
![]() |
|
| MathanMV | May 15 2010, 09:16 AM Post #122 |
|
Member
![]() ![]() ![]() ![]()
|
thanks mate, it all works now
|
![]() |
|
| Deleted User | May 16 2010, 07:47 AM Post #123 |
|
Deleted User
|
This code simply doesn't' work on either my main forum or my test forum http://stretfordenders.net/index/ I'm looking for assistance to get it working
|
|
|
| Lout-ZNR | May 16 2010, 04:07 PM Post #124 |
|
He came, he saw...
![]() ![]() ![]() ![]() ![]()
|
Try posting the exact code you have installed, even if it's on your test forum (with a link) because I took a look at your main forum earlier and it wasn't on there.
Edited by Lout-ZNR, May 16 2010, 04:07 PM.
|
![]() |
|
| Deleted User | May 16 2010, 05:51 PM Post #125 |
|
Deleted User
|
Image is just a test one I got from a code someone else had posted on this thread. Link to the forum - http://s1.zetaboards.com/StretfordEnders_Test/index/ |
|
|
| Lout-ZNR | May 16 2010, 06:16 PM Post #126 |
|
He came, he saw...
![]() ![]() ![]() ![]() ![]()
|
put that in, the dummy lines of this -
were messing it up. The code I've just shown gives this (I changed the user ID to the one on my test board) -
|
![]() |
|
| Deleted User | May 17 2010, 03:15 AM Post #127 |
|
Deleted User
|
Fantastic stuff. Very helpful mate. Appreciate it
|
|
|
| Da King | May 19 2010, 07:45 PM Post #128 |
|
Mr. Man
![]() ![]() ![]() ![]()
|
Thanks for this. I just installed it and it works. I'm about to add new awards. |
![]() |
|
| gigabyte387 | May 21 2010, 06:52 PM Post #129 |
|
Member
![]() ![]() ![]()
|
where can i find user ID?? btw thanks.. great code.. hehe |
![]() |
|
| Da King | May 21 2010, 07:19 PM Post #130 |
|
Mr. Man
![]() ![]() ![]() ![]()
|
The user ID is the number at the end of the link of a user's profile. |
![]() |
|
| gigabyte387 | May 21 2010, 07:44 PM Post #131 |
|
Member
![]() ![]() ![]()
|
wow thx a lot its working on me!! |
![]() |
|
| Akern | May 30 2010, 06:17 AM Post #132 |
|
Member
![]() ![]() ![]()
|
Thanks so much! Your code is awesome |
![]() |
|
| gamer3 | Jun 4 2010, 01:03 PM Post #133 |
![]()
Member
![]() ![]() ![]() ![]()
|
two awards are showing up for some reason? |
![]() |
|
| Viral | Jun 5 2010, 06:01 AM Post #134 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You have the script in twice then. |
![]() |
|
| Yams | Jun 8 2010, 02:25 AM Post #135 |
|
Member
![]() ![]() ![]()
|
thanx heaps... great code
|
![]() |
|
| 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