| 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,966 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: | |
|---|---|
| Ferby | May 26 2012, 05:48 PM Post #301 |
![]()
Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
how tho? |
![]() |
|
| Cory | May 26 2012, 08:51 PM Post #302 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Hosting JavaScript Externally Documentation: http://docs.zetaboards.com/pages/tips/board_wrappers_full |
![]() |
|
| Ferby | May 27 2012, 10:40 AM Post #303 |
![]()
Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
EDIT: Fixed
Edited by Ferby, May 27 2012, 11:12 AM.
|
![]() |
|
| Viral | Aug 9 2012, 11:08 AM Post #304 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I'm going to be releasing an update to this code which will be integrated with ZetaBoards Dynamo. If you have any suggestions on any improvements to the code (like extra options, dynamic awards etc) then please share them here. |
![]() |
|
| Deleted User | Aug 19 2012, 10:31 AM Post #305 |
|
Deleted User
|
Excellent code! Just wondering if there's anyway to have the thumbnail images as a different image to the actual award? I use awards that are this size: ![]() But if you squeeze this into a little thumbnail, it doesn't look to good. So I'm thinking if there's way to add a bit into the code that allows you to have a seperate image for each award. |
|
|
| Viral | Aug 23 2012, 03:05 PM Post #306 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Not with this code, sorry. |
![]() |
|
| jsaner | Oct 13 2012, 02:45 PM Post #307 |
|
Member
![]() ![]() ![]()
|
Is the award image a URL? and when you say use backslashes, where do you put those? by the ones wrapping it? im not sure if you meant "not counting..." by "besides" Here is what i put, and it doesn't work, what am i doing wrong??? <script type="text/javascript"> //<![CDATA[ var t_award = { name : "Badges", thumbnail : [20,20], closeFunction : "fade", users : [ [3402106,"Presidential Badge/","http://imageshack.us/scaled/landing/404/presidentbadge.png/","former or current president/","October 14th/"], [user id,"award name","award image","award description","award date"], [user id,"award name","award image","award description","award date"], [user id,"award name","award image","award description","award date"] ] } //]]> </script> <script type="text/javascript" src="http://z3.ifrm.com/142/141/0/p239659/tooltipawards.js"></script> Edited by jsaner, Oct 13 2012, 02:50 PM.
|
![]() |
|
| wodrum | Oct 15 2012, 03:12 PM Post #308 |
|
Member
![]() ![]() ![]()
|
If they were viewable when you clicked on a user's profile, I would be eternally grateful
|
![]() |
|
| Aracind-ZNR | Oct 16 2012, 05:12 PM Post #309 |
|
Member
![]() ![]() ![]()
|
Hi All! Is this code not working anymore? I have placed it in my below the board:
But it does not appear - the board is: http://w11.zetaboards.com/DanseMacabre/index/ I appreciate your help and your pointers! |
![]() |
|
| sadiee | Oct 19 2012, 04:30 PM Post #310 |
![]()
Member
![]() ![]() ![]()
|
It's not working for me neither. |
![]() |
|
| jragonizer | Jan 10 2013, 05:14 PM Post #311 |
![]()
Member
![]() ![]() ![]() ![]()
|
not to bump but where and how would I change the .js file so that my multi peice header will work? www.w11.zetaboards.com/the_round_table There isn't a header in it. Could you tell me how I'd change the "td" to an image? |
![]() |
|
| polocolo | Jan 14 2013, 09:43 AM Post #312 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
Use notepad to change js file. After you have done with changes on notepad, store the file somewhere on the site and then get the url from it for coding. |
![]() |
|
| Viral | Jan 15 2013, 09:59 PM Post #313 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Fixed the code ^^ - you missed out a `"`. |
![]() |
|
| SupernovaMFGG | Feb 5 2013, 02:35 PM Post #314 |
|
Member
![]() ![]() ![]()
|
Hey I just moved my forums to Zetaboards. But I have problem with my code:
I check everything but it does not appear under my avatar in my forums. |
![]() |
|
| RihannaRTT | Feb 6 2013, 08:08 AM Post #315 |
|
Member
![]() ![]() ![]()
|
EDIT: nevermind, I posted this in the wrong thread
Edited by RihannaRTT, Feb 6 2013, 08:09 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