Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 02:25 am EST

Geeklog Forums

Just need to add the site stats in footer - any clues


ebizbuys

Anonymous
Hi,

I just want to add the site stats totalhits into the footer of each page for a client. I cant seem to get it. In the stats.php the system just does a database query:
$totalhits = DB_getItem($_TABLES['vars'],'value',"name = 'totalhits'");

And it is loaded into the template sitestatistics.thtml.

This all seems pretty straight forward but I can not echo this variable and get any value to display in the footer???

In my footer.thtml I do the above db query and then echo the result but nothing...

Actually just checked something else, I cant do any php in the footer ... am I correct or am I missing something basic.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Yes, you can't use PHP in the footer.

Modify function COM_siteFooter in lib-common.php instead and provide the counter as a new template variable.

bye, Dirk
 Quote

All times are EST. The time is now 02:25 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