| 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: |
| [ C ] Date and Points display above board | |
|---|---|
| Tweet Topic Started: Mar 12 2014, 07:52 AM (553 Views) | |
| jennarator | Mar 12 2014, 07:52 AM Post #1 |
|
Member
![]() ![]() ![]()
|
Board Address: www.w11.zetaboards.com/HP_and_Percy_Jackson Board Software:ZetaBoards Description: On my board we run for 10 weeks before the activities "reset" and "restart". There are also 4 teams that earn points. For those of you who have guessed, yes, the teams are the Harry Potter houses. Anyways, I need a code that will show the current week number, and each teams number of points. I would like it if you could tell me how to edit the code into my board, how to make the info colored based on the teams color and how to edit without messing it up. Thanks! ![]() If you need to know, these are the teams- Gryffindor Slytherin Ravenclaw Hufflepuff (In case you can't read the yellow I used, it says Hufflepuff) |
![]() |
|
| Ferby | Mar 12 2014, 11:26 AM Post #2 |
![]()
Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Probably one of the simplest requests I've seen in a while. This can be done very simply but you would have to keep updating it so we can minimise JavaScript usage. For the points you could use this...
Place it above the board (like you want). In the code you will notice four 0s under each house name, feel free to change those to what you desire. I can use JavaScript instead so when you give a house some points you just need to use `givePoints()` which is simpler but the points wouldn't appear to those who have their JavaScript disabled but that doesn't happen often. This is a preview of that code would look like on your board ![]() View full image here As for the date system, I recommend embracing ZB's Calendar to do that. I think it would have just the features you're looking for without needing a code to do it although I'm willing to provide a code if you'd rather it as it's only a suggestion
|
![]() |
|
| jennarator | Mar 12 2014, 11:37 AM Post #3 |
|
Member
![]() ![]() ![]()
|
Thanks that's awesome! Just what I needed! Its no problem updating it for me ![]() As for the date, how can I make the calendar display it on the front board next to the points? Is that what you meant when you said to use the ZB calendar? |
![]() |
|
| Ferby | Mar 12 2014, 12:23 PM Post #4 |
![]()
Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Oh I do apologise, I think I misread your request. I didn't know you wanted it on the front page xD Use this code instead...
Updated the code, it should work 100% now
Edited by Ferby, Mar 13 2014, 08:00 AM.
|
![]() |
|
| Tyler Dream | Mar 14 2014, 09:48 PM Post #5 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
I'm using this code for another board, is it possible to add three rows with four on each? I would like row one to have: District 1, District 2, District 3, and District 4 Row 2: District 5, District 6, District 7, District 8 Row 3: District 9, District 10, District 11, District 12 |
![]() |
|
| Ferby | Mar 14 2014, 10:31 PM Post #6 |
![]()
Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
That should work
|
![]() |
|
| Tyler Dream | Mar 14 2014, 11:37 PM Post #7 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Thanks so much! |
![]() |
|
| Liam | Mar 22 2014, 06:59 PM Post #8 |
![]()
~
![]()
|
Completed! Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Closed Requests · Next Topic » |
| Track Topic · E-mail Topic |
4:31 AM Jul 11
|


![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)







4:31 AM Jul 11