Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 10:30 am EDT

Geeklog Forums

Display the number of stories in home


Status: offline

roberto

Forum User
Chatty
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.
Suggestion?

Tnx
rob
 Quote

Status: Banned

machinari

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.
 Quote

All times are EDT. The time is now 10:30 am.

  • 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