Welcome to Geeklog, Anonymous Monday, April 22 2024 @ 03:11 pm EDT

Geeklog Forums

Display the number of stories in home

Status: offline


Forum User
Registered: 12/01/03
Posts: 43
Sorry for my bud english :-(

I want to insert in the home page the number total of stories. I have
tried on the forum but I have not found information.


Status: Banned


Forum User
Full Member
Registered: 03/22/04
Posts: 1512
that depends on where on your home page you would like it to display...

a simple SQL statement will get your number, then it's just a matter of outputting that number in a block or a staticpage centerblock or right into the functions returning the templates, etc.

the easiest way: you can place a bit of PHP into the header.thtml file that will output a number and have it displayed in the header portion of your homepage.

All times are EDT. The time is now 03:11 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content