| 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,971 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: | |
|---|---|
| Quozzo | Jun 23 2011, 12:18 PM Post #226 |
|
By the blood of Sanguinius!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
the last awards has a comma at the end, it shouldn't oh, the code gets the awards in a loop from top to bottom, if the last three wont work, its because it came across a problem that could not be executed and broke the code. so theres probably nothing wrong with the latter two, but its the third one. Edited by Quozzo, Jun 23 2011, 12:22 PM.
|
![]() |
|
| Ephatha | Jul 15 2011, 08:23 PM Post #227 |
|
Member
![]() ![]() ![]()
|
I'm having a problem with this code. =x I've tried everything and would sososo appreciate some help. It works fine like this, when I have just one user awarded:
As soon as I add one (or an number) of extra awards, all awards (even that one user that it worked on before) disappear.
I have it at the top of "Below the Board" and tried putting it at the bottom. Didn't seem to make any difference. Does anyone know why they don't work when I add more than one? |
![]() |
|
| Cory | Jul 15 2011, 09:57 PM Post #228 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Try that instead. |
![]() |
|
| Vicks.Louise | Jul 17 2011, 05:33 AM Post #229 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
I tried to use this but nothing came up on my profile Can it be done without an award image? just text? |
![]() |
|
| Cory | Jul 17 2011, 12:14 PM Post #230 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
If you want to use text only, I suggest using the Admin Only Edit profile field. |
![]() |
|
| Vicks.Louise | Jul 17 2011, 12:19 PM Post #231 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
I don't mind using graphics just wonders if it could be done. I couldn't get the system to work though dunno what I did wrong |
![]() |
|
| Cory | Jul 17 2011, 12:27 PM Post #232 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Please post the code you tried to use. |
![]() |
|
| Vicks.Louise | Jul 17 2011, 02:43 PM Post #233 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
This was exact coding i used, do i have to put a pic in for it to show?
|
![]() |
|
| Cory | Jul 17 2011, 02:48 PM Post #234 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Try that instead. |
![]() |
|
| Ephatha | Jul 22 2011, 06:24 AM Post #235 |
|
Member
![]() ![]() ![]()
|
Thank you SO much, Cory. The code you gave me worked. I am soooo happy. That gave me some trouble. I'm a cellshading artist and can do graphics too. Shoot me a message if you want anything in that department. ^^ -heads off- |
![]() |
|
| Vicks.Louise | Jul 22 2011, 02:49 PM Post #236 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
Ok so the code is working fine for me but now how do i add images as ive had some time to make some |
![]() |
|
| Cory | Jul 22 2011, 02:52 PM Post #237 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
In this code, add the image URL in between the two quotation marks (""). |
![]() |
|
| Vicks.Louise | Jul 22 2011, 04:34 PM Post #238 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
Tried that and the whole system just dissapeared :S
^^^Exact coding used all i changed was adding the <img> code in between the " " I am useless with coding
|
![]() |
|
| Cory | Jul 22 2011, 04:40 PM Post #239 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Remove that and just use this:
|
![]() |
|
| Vicks.Louise | Jul 22 2011, 04:47 PM Post #240 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
That worked thanks ![]() Without getting too complicated is there a way to make awards show in profiles? If not it doesn't matter just wondered
|
![]() |
|
| 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