| 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,973 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: | |
|---|---|
| Roughdawg4-ZNR | Jan 27 2011, 03:30 PM Post #196 |
|
Member
![]() ![]() ![]()
|
First I want to thank you for your code, freaking sweet and it is running great. I just have one question, is there a way I can also get the awards to show up on someone's profile? When they post, it shows the awards on the left hand side but if you click their username to go to their profile, it does not show up |
![]() |
|
| Viral | Jan 27 2011, 04:09 PM Post #197 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Hmm, if you use the AiO, this will soon be a premium addition .
|
![]() |
|
| unlikely | Jan 27 2011, 09:20 PM Post #198 |
|
Squeeze Me for Epic Sauce!
![]() ![]() ![]()
|
Oh! I didnt realize! Thank you very much It worked
|
![]() |
|
| Roughdawg4-ZNR | Jan 28 2011, 09:57 AM Post #199 |
|
Member
![]() ![]() ![]()
|
Was that AIO response to me? |
![]() |
|
| Viral | Feb 12 2011, 09:20 PM Post #200 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Yes. |
![]() |
|
| SamJJE101 | Feb 25 2011, 07:57 AM Post #201 |
![]()
Member
![]() ![]() ![]()
|
Just wondering if there is any way to set it so that there is no thumbnail? I don't mean remove the image, but make it so that it doesn't stretch/skew? I just want the original image to be displayed. |
![]() |
|
| CaptDennyCrane | Mar 7 2011, 01:19 PM Post #202 |
![]()
Member
![]() ![]() ![]()
|
Was there ever any way to resolve being able to give awards via User name rather than User ID? it would make giving awards so much easier, as im more familiar with their names than I am with their ID's Edited by CaptDennyCrane, Mar 8 2011, 04:52 PM.
|
![]() |
|
| Pokey121 | Mar 8 2011, 08:57 AM Post #203 |
|
Member
![]() ![]() ![]()
|
can someone tell me where to put it because i am really confused on that part |
![]() |
|
| blueskadoo | Mar 8 2011, 04:05 PM Post #204 |
|
Member
![]() ![]() ![]()
|
thanks i really love this! i works really nicely! |
![]() |
|
| CaptDennyCrane | Mar 8 2011, 04:40 PM Post #205 |
![]()
Member
![]() ![]() ![]()
|
It goes in the BELOW THE BOARD location in the BOARD TEMPLATES section of your ADMIN CP |
![]() |
|
| Pokey121 | Mar 8 2011, 05:50 PM Post #206 |
|
Member
![]() ![]() ![]()
|
ok i did that but then how do i give awards i tried to do it but dont get it |
![]() |
|
| OraclePT | Mar 10 2011, 03:17 AM Post #207 |
|
Member
![]() ![]() ![]() ![]()
|
Have a go and post what you got here so we can see if you're right or not. |
![]() |
|
| Pokey121 | Mar 10 2011, 04:42 PM Post #208 |
|
Member
![]() ![]() ![]()
|
so i put it in admn cp ,Board template ,under the board then when i tried it out the awards did not show up i put everything ecept a pic do i need a pic? |
![]() |
|
| OraclePT | Mar 11 2011, 05:01 AM Post #209 |
|
Member
![]() ![]() ![]() ![]()
|
Please post the code that is in your Board Template here. |
![]() |
|
| Pokey121 | Mar 11 2011, 08:27 PM Post #210 |
|
Member
![]() ![]() ![]()
|
script type="text/javascript"> //<![CDATA[ var t_award = { name : "Awards", thumbnail : [20,20], closeFunction : "fade", users : [ [3871023,"test","award image","test","3\11\111"], [user id,"award name","award image","award description","award date"], [user id,"award name","award image","award description","award date"] ] } //]]> this is whaat it says |
![]() |
|
| 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)
.



It worked


4:29 AM Jul 11