Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Wednesday, May 22 2013 @ 04:34 AM EDT


 Forum Index > Extensions > Cool Hacks New Topic Post Reply
 counter totalhits displayed in footer
   
ironfeather
 02/16/04 02:47PM (Read 1115 times)  
++---
Junior
brainy

Status: offline


Registered: 01/27/03
Posts: 16
To add a "counter" (total hits) to the bottom of your geeklog do this:

edit lib-common.php

find where the footer is being set up, function COM_siteFooter

then add this :

PHP Formatted Code
$totalhits = DB_getItem($_TABLES['vars'],'value',"name = 'totalhits'");$footer->set_var('lang_totalhitstosystem',$LANG10[2]);$footer->set_var('total_hits', $totalhits);
 


now edit your footer file in your theme directory and add:



{total_hits}


and this should display the hits, now ya have a counter

Note: having trouble using the
PHP Formatted Code

 
stuff, hopefully this displays properly

this is ironfeather's mod from:

webmaster discussion


------ my geeklog discussion is at: http://ironfeather.com/cgi-bin/bbs/ikonboard.cgi?act=SF;f=20
 
Profile Email Website
 Quote
Content generated in: 0.43 seconds
New Topic Post Reply

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