Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • Viewers, topics, and replies columns
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
  • 3
Viewers, topics, and replies columns
Tweet Topic Started: Oct 22 2009, 04:13 PM (2,477 Views)
Gorgor Oct 22 2009, 04:13 PM Post #1
Hello

Posts:
1,187
Group:
Former Staff
Member
#2,728
Joined:
Apr 2, 2009
Coding language
PHP
Code name: Viewers, topics, and replies columns
Code description: Gives the viewers, topics, and replies boxes their own columns directly to the left of the last post info box. If you want, it will replace the text inside of those boxes so that there's only numbers, and it will also add labels to the top of each category if you want.
Preview: http://z3.ifrm.com/282/7/0/p233166/preview.png

Add below the board/above the copyright
Code
 
<script type='text/javascript'>
// Viewers, topics, and replies columns
// by Gorgor of ZBC
replace = 1;
labels = 1;
</script><script src='http://z3.ifrm.com/28019/13/0/p309526/tvp.js' type='text/javascript'></script>
replace Set this to 1 if you want it to only show the numbers in the boxes and not the words
labels Set this to 1 if you want it to add labels to the top of each category
In the preview, replace and labels are both set to 1.
Edited by Gorgor, Apr 11 2010, 07:59 PM.
Offline Profile Goto Top
 
Lout Oct 22 2009, 04:30 PM Post #2
Member Avatar


Posts:
402
Group:
Dedicated
Member
#2,400
Joined:
Feb 19, 2009
Hey I quite like this, I'll have a good play around with this tomorrow and see exactly what it can do but as it stands from the preview it looks like the best code you've come up with so far :D

Keep up the good work Gorgy :D
Posted Image
Offline Profile Goto Top
 
Dorith Oct 22 2009, 06:15 PM Post #3
Member Avatar
Has just entered the Matrix

Posts:
2,069
Group:
Former Staff
Member
#1,854
Joined:
Dec 23, 2008
Wow... why didn't someone think of this before? Genius!
Posted Image
Posted Image
(Made emoticon using Codes Rock's Smiley Generator)
Offline Profile Goto Top
 
RedBldSandman Oct 22 2009, 06:27 PM Post #4
Member Avatar
ZIPPY!

Posts:
482
Group:
Coding Staff
Member
#2,122
Joined:
Jan 25, 2009
Dorith
Oct 22 2009, 06:15 PM
Wow... why didn't someone think of this before? Genius!
Exactly my thoughts! xD
Posted Image
"To iterate is human, to recurse divine."

Offline Profile Goto Top
 
Dorith Oct 22 2009, 06:32 PM Post #5
Member Avatar
Has just entered the Matrix

Posts:
2,069
Group:
Former Staff
Member
#1,854
Joined:
Dec 23, 2008
Just wondering, why don't you add <script type='text/javascript'> to your script? I believe it allows for the computer to read the code faster than without the script. It also allows to make sure it doesn't mess up the script.


Also some older versions of IE might not even be able to read with without the type attribute I believe.
Posted Image
Posted Image
(Made emoticon using Codes Rock's Smiley Generator)
Offline Profile Goto Top
 
Gorgor Oct 22 2009, 06:49 PM Post #6
Hello

Posts:
1,187
Group:
Former Staff
Member
#2,728
Joined:
Apr 2, 2009
Coding language
PHP
Oo, added in. Never knew that Dorith, thanks :)
Offline Profile Goto Top
 
Kitsueki Oct 22 2009, 06:51 PM Post #7
Member Avatar
♠ Aizu

Posts:
742
Group:
Dedicated
Member
#3,453
Joined:
Aug 31, 2009
Good job man, I like this =]
Kingdom of Etruria
Spoiler: click to toggle
Kingdom of Etruria


Starring in the Medieval times, this Kingdom is an isolated territory not bothered by any other Kingdoms.
The military has recently caught on to something big, and its their job to stop it.
Will you walk your own path, or aid the Etrurian Military in exterminating the evil that is about to come forth?
It's Ready!

Kingdom of Etruria is a Roleplaying forum I created, also with the help of a few friends.
You can pick from many classes, fight any way you want, and gain rank in the military, or even start your own Faction.
It all starts with a Character Registration, if you're interested in taking part of this RP, PM me and I'll be sure to give you the link when I open it.
There are many things to do at Kingdom of Etruria, so be sure to find out for yourself
Thanks for reading!

Offline Profile Goto Top
 
Dorith Oct 22 2009, 06:52 PM Post #8
Member Avatar
Has just entered the Matrix

Posts:
2,069
Group:
Former Staff
Member
#1,854
Joined:
Dec 23, 2008
Yeah, it's also a general good habit, because you don't know the future of scripts, and if more are implemented on the browser, a plain <script> tag won't do anymore.
Posted Image
Posted Image
(Made emoticon using Codes Rock's Smiley Generator)
Offline Profile Goto Top
 
PIWYRCOM Oct 22 2009, 09:59 PM Post #9
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
Excellent !
Works great, you can also add it to a themes layout if you do not want it on all themes.
» TEST FORUM »
FIND IT HERE !
Spoiler: click to toggle

→ Infinite Results (themes)
→ ZBThemeZone (themes)

→ Big Boards (codes/themes)
→ ZBCodes (codes/themes)
→ The Coding Zone (codes/themes)

→ Code Index ('Official')
→ ZetaDoc's ('Official - How To Info')

Posted Image

Offline Profile Goto Top
 
Choco Oct 24 2009, 12:10 PM Post #10
Member Avatar
¡ʎɹoʇɔɐɟ ʎʇıʌɐɹƃ ɐ uı pǝddɐɹʇ ɯ,ı 'dןǝɥ

Posts:
589
Group:
Admins
Member
#3,272
Joined:
Jun 30, 2009
Coding language
Everything
I didn't see this earlier, but that's exceptionally cool. Nice job. :D
Posted ImageIt's a magical world, Hobbes, ol'd buddy... ...let's go exploring!
In progress: Something Special ;)
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Free Forums with no limits on posts or members.
Learn More · Sign-up for Free
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2
  • 3

Track Topic · E-mail Topic Time: 7:41 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy