| This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy. Visit the NEW ZetaBoards Support forum! |
| Add more boxes to Board Statistics; *UPDATED* | |
|---|---|
| Topic Started: Nov 29 2007, 09:56 PM (3,846 Views) | |
| RyuraGS | Nov 29 2007, 09:56 PM Post #1 |
![]()
Member
![]() ![]() ![]() ![]() ![]()
|
Location: Admin CP > Themes > Board Template > Javascripts OR Below the Board (Prefer Javascripts) Demo: http://s1.zetaboards.com/GenerationStudio/index/ (Look at Board Statistics) Instructions: Define a new box with $().newZBBS({Options}); Check the example if you are confused. You must define a new set of options for each separate box, like in the example. Options: isOn - Set to true to turn on the box. Set to false to turn it off. This is useful if you must switch in boxes for whatever reason, or want to see if one box is causing a problem. Info - This is the data that goes inside the box. Values include any HTML. Use single quotes(') instead of double(") Title - This is the title of the box. Values include any HTML. Use single quotes(') instead of double(") Image - This image goes to the box to the left. Values are URLs. imageLink - This links the image to another site. Values are URLs. Leave blank if you want no link.
Edited by RyuraGS, Feb 10 2008, 06:37 PM.
|
![]() |
|
| Chris | Nov 29 2007, 10:01 PM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
What would be nice is if you used an array of objects instead of only one. That way certain ones can be turned off and others can be turned on ![]() Ex:
![]() Then use the for() to check each object. Edited by Chris, Nov 29 2007, 10:02 PM.
|
![]() |
|
| RyuraGS | Nov 29 2007, 10:03 PM Post #3 |
![]()
Member
![]() ![]() ![]() ![]() ![]()
|
I like clean code, but it's true that's incredibly more useful. I will make that as an alternate option this weekend. |
![]() |
|
| badtzmaru | Nov 29 2007, 10:04 PM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
Thank you so much for this code and the specific directions, Generationstudio!! I'm going to put my affiliates in here. ![]() Is it okay if we take out the /* comments */? |
![]() |
|
| RyuraGS | Nov 29 2007, 10:05 PM Post #5 |
![]()
Member
![]() ![]() ![]() ![]() ![]()
|
Yes, this code may be modified in any way you wish. |
![]() |
|
| badtzmaru | Nov 29 2007, 10:06 PM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
Thanks! I'll leave your name in there for credits, though.
|
![]() |
|
| Mysticwizard2005 | Nov 30 2007, 08:18 AM Post #7 |
|
Member
![]() ![]() ![]()
|
Nice code. Works great Thanks
|
![]() |
|
| James | Nov 30 2007, 09:42 AM Post #8 |
|
Imagine♥
![]() ![]() ![]() ![]()
|
Very nice, good job ;0 |
![]() |
|
| RyuraGS | Nov 30 2007, 05:02 PM Post #9 |
![]()
Member
![]() ![]() ![]() ![]() ![]()
|
I've now included what Chris requested Check "alternate method".Please test this and tell me any bugs, especially with IE! |
![]() |
|
| Coty Stargazer | Dec 1 2007, 11:41 PM Post #10 |
![]()
-*-
![]() ![]() ![]() ![]()
|
Works great, no bugs for me in Safari. Thanks for the great directions, also. 10/10! |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · User Created Codes · Next Topic » |





![]](http://209.85.62.24/static/1/pip_r.png)




I'm going to put my affiliates in here. 
10:41 AM Nov 7