Unique Hit Counter

Started by aldo, January 22, 2008, 11:11:59 PM

Previous topic - Next topic

aldo

Link to Mod

This is sort of an addition to my other modification, It isn't a page view counter, its a Unique Hit counter. The main part of this was made by Karlbenson(Thanks Karl!) and I put it into a mod.

Have a custom theme? No problem, just like my other mod, simply put this where you want the Unique Hit counter to appear:

Unique_Hits();


Once again, Enjoy this simple mod!

Apllicmz




aldo

Thanks, you can thank Karlbenson, he pretty much coded it, I just turned it into a mod ;)

jossanaijr

Should I uninstall the other mod?  Or it just fix it?

ne.miguelito

I wanted to put the same number that in the image, and that it always went equal





what should make?

aldo

You want it to show total uniques on the stats page? Hmm I will look into implementing that. Thanks for the suggestion

ne.miguelito

No, I want the same number that it is on the stats page appear in the Unique Hit Counter...

aldo

You could go into your MySQL DB and edit uniquehits column, But this is a unique hit counter not s page view counter, I made one, You would want to use that then...

ne.miguelito

Yes I already made that in your other mod, but with the time it is different...

2pac

so... does this mod show unique hits for the entire forum or for individual pages? because it would be nice to have something like that for profiles to go along with the ultimate profile... just wondering

gemigene

I'd like to install it (hard code) but when I submit it to the SMF Package Parser, I get the following error:

parseArchive(): No package-info.xml in this mod! Is it corrupted?

Cheers,
Gene
"Religion is metaphysical statism. I will be ruled by no man on earth, nor by any god in heaven"

aldo

Quote from: gemigene on January 28, 2008, 04:47:12 PM
I'd like to install it (hard code) but when I submit it to the SMF Package Parser, I get the following error:

parseArchive(): No package-info.xml in this mod! Is it corrupted?

Cheers,
Gene

Strange... Try to download it again. I just downloaded it from SMF and checked it out. the package-info.xml file is there and so is everything else.

kota069

How can you reset to Zero? (Or can you?)

rberube

Quote from: aldo on January 29, 2008, 08:22:26 PM
Quote from: gemigene on January 28, 2008, 04:47:12 PM
I'd like to install it (hard code) but when I submit it to the SMF Package Parser, I get the following error:

parseArchive(): No package-info.xml in this mod! Is it corrupted?

Cheers,
Gene

Strange... Try to download it again. I just downloaded it from SMF and checked it out. the package-info.xml file is there and so is everything else.

I'm getting the exact same error also.

fredda88

#14
I get this error in my log but not from all users, any ideas whats wrong?


8: Undefined index: uniquecounter
File: /Sources/UniqueCounter.php
Line: 26

My uniquecounter.php (parts of it)
// Increase it by 1 in case we show this variable anywhere on this pageview
$modSettings['uniquecounter']++;
}
echo '<span style="text-align: center;">' . $txt['uniquecounter'] . $modSettings['uniquecounter'] .'</span>';
}
?>

fyndler

I sthis mod even supported these days ? was a whiel since someone posted in it haha

Anyhow i dont get this part


Quoteinsert.php
This file should not be able to execute standalone. You may have to run the following queries manually.

Query: [Select]

INSERT INTO {$db_prefix}settings (`variable`,`value`) VALUES('uniquecounter','0')


Fugitive_Bill

#16
Anyway of making this counter only visible to Mods/Admins?
As this mod is very old, is there another better one I should be aware of?

Yes I'm a kind of a Noob!- Well I've using SMF for at least a year, but rarely play around with doing mods, I just normally run in it vanilla, but thought I'd start playing around and learning.
-B!

Siirist

Hello,

Tried to install with Package Installer, but got failures (see attached pic)

Went to make changes manually yet the:
./Themes/default/index.template.php
      <table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
was not present (see attached file)

In fact, see all and you will discover that the  "find
is not present.

All help is appreciated and thank you in advance.

Be Well,
Cloud
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Apostman

Once again, Thanks in Advance.

I am perplexed, did I miss some telepathy instructions? ??? I am a newbie to PhP, in the begining post Aldo says.

Have a custom theme? No problem, just like my other mod, simply put this where you want the Unique Hit counter to appear:

Code: [Select]
Unique_Hits();


I put it on my refrigerator and nothin happened. :o

Seriously, I want it on the index.php displayed but no clue in which file or how to do it? ?  ?

TheMortician4

Quote from: aldo on January 22, 2008, 11:11:59 PM
Link to Mod

This is sort of an addition to my other modification, It isn't a page view counter, its a Unique Hit counter. The main part of this was made by Karlbenson(Thanks Karl!) and I put it into a mod.

Have a custom theme? No problem, just like my other mod, simply put this where you want the Unique Hit counter to appear:

Unique_Hits();


Once again, Enjoy this simple mod!

Where do I put that code?

Advertisement: