View Full Version : ZH - Hits counters for your site
This modification was brought to you by
KXDesign
http://www.kxdesign.com/
~Hack name
Hit Counters For Your Site
~Hack description
Adds a counter which counts EVERY visit in that page.
~Hack options
None
~Hack info
File uploads: 3
Template edits: 1
File edits: 0
Plugins: 0
SQL Queries: 0
Phrases: 0
Settings: 0
Install time: 2 Minutes
Install level: Medium
~Hack installation
Step 1: Upload the whole 'counter' folder to forum root.
Chmod counter.txt to 666 at least!
Step 2: Add this code anywhere you like.(Any template)
<!-- Start ZH hack -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="center">
<td>
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<img src="counter/counter.php$session[sessionurl_q]" rel="nofollow" div class="smallfont" align="center"> people have visited this site</a>
</tr>
</table>
</td>
<!-- End ZH hack -->
~Hack screenshots
Uploaded
~Hack copyright
This may not be distributed,released or claimed as your work without author's permission.
pabloknight
03-05-2006, 05:51 PM
Newbie question: how do you change chmod? I see this in other instructions too, but don't know how/where to do it...
Thanks!
BTW, I did install it. I can see the words, but not the "counter".
CHMODING is changing permissions for the file.How did you upload it?VIa FTP?
Please send the link to the site.
pabloknight
03-05-2006, 06:53 PM
Yes, I uploaded via FTP.
What link do you want? The FTP link?
vietkieu_cz
03-05-2006, 07:28 PM
Some screenshot please?
WaaDaa
03-05-2006, 07:49 PM
Some screenshot please?
Agree. Will help to understand more!
Yes, I uploaded via FTP.
What link do you want? The FTP link?
No the link to your site cause i wanna see what's wrong
Screenies added
pabloknight
03-05-2006, 08:30 PM
<a href="http://www.burntorangefanzone.com/forums" target="_blank">www.burntorangefanzone.com/forums</a>
Please PM me the admincp login and FTP login and I fix it for ya.
Cap'n Steve
03-05-2006, 10:01 PM
You chmod with whatever FTP program you're using. Try right-clicking on the file.
Allan
03-05-2006, 10:02 PM
Nice idea, click install ;)
Gunshot
03-05-2006, 10:37 PM
www.burntorangefanzone.com/forums
i had the same problem
when you check the properties of your broken link you get:
http:/www.burntorangefanzone.com/forums/counter/counter.php
you have to put the folder called "counter" into the root with the "counter.txt" inside it
then chmode the text file to 666
pabloknight
03-05-2006, 10:47 PM
I don't have a counter folder under forums. Do I need to make one, then put the .txt and the .php file into that counter folder?
Gunshot
03-05-2006, 11:38 PM
I don't have a counter folder under forums. Do I need to make one, then put the .txt and the .php file into that counter folder?
that'll fix it
pabloknight
03-06-2006, 12:07 AM
Ok, I found out how to change the chmod.
Thanks everyone for your assistance! I have it working now. Thanks!
Azhrialilu
03-06-2006, 08:45 AM
This isn't actually a code modification tho is it, it's an extension as it's uploading a file and changing a template... or did I miss an actual code mod somewhere? :)
Well I first though I will only edit the index but I edit the template
Hello,
What does this count? Does this count unique vistors the view the site or does it count user that have logged in to the site? Does it also count spiders?
I ask because I currently am using a modifications from this site that lists all of the users that have logged in and it lists their name as well as how many users.
If this is counting "hits" on the page, I may be able to use it for my own purposes.
Azhrialilu
03-06-2006, 02:30 PM
Oh I though I added the folder?Didn't I?
I meant that it's not actually changing any of the vb-default files - but uploading a new file and editing a template :)
Hello,
What does this count? Does this count unique vistors the view the site or does it count user that have logged in to the site? Does it also count spiders?
I ask because I currently am using a modifications from this site that lists all of the users that have logged in and it lists their name as well as how many users.
If this is counting "hits" on the page, I may be able to use it for my own purposes.
It counts all visitors(guests,members,spiders,bots)that visited the page
If this is counting "hits" on the page, I may be able to use it for my own purposes.
You cannot distribute it without my permission
Azhrialilu
03-06-2006, 02:55 PM
I think this is nice, now I'm clear there's no actual file edits *grin* I'll install it. ... you might want to get it moved to another forum - there are a lot of people who won't do file edits anymore and they'll miss out on this :)
Hello,
You cannot distribute it without my permission
I never intended on distributing it. lol (Nor did I ever mention distributing it.)
What I said was:
If this is counting "hits" on the page, I may be able to use it for my own purposes.
(Meaning a use other than displaying it on the page for all the users to see. But rather for me to add it to one of my sites statistics pages.)
GamerJunk.net
03-06-2006, 04:19 PM
Does this count all page views? Or does it identify unique visits?
@iguanairs
OK then
@RasMasta
It counts all visitors(guests,members,spiders,bots)that visited the page
Can I make it clearer? ;)
Chris M
03-07-2006, 04:44 PM
Moved to Extensions :)
Chris
nicedreams
03-19-2006, 10:28 PM
The html for the table is coded wrong. Missing some td and table tags. And it is being placed in an incorrect spot in the template.
Jim
What exact part is wrong.I don't see any prob.And cause it is nothing great is is placed pretty good ;).You can place it anywhere you want if you can.
nicedreams
03-20-2006, 06:04 PM
What exact part is wrong.I don't see any prob.And cause it is nothing great is is placed pretty good ;).You can place it anywhere you want if you can.
There is no <td> and </td> around your <img src> statement. No end tag in the image.
Not sure why there is a </a> tag.
No closing </tr> and </table> tag at the end.
And it should be inserted after the </table> tag in the template, not after a </td> tag putting it in zombie zones.
Jim
GamerJunk.net
03-22-2006, 04:46 PM
If I refresh it counts me again....any way to make it unique visits?
Dunno I am not such an advanced.It is actualy made to count ALL visits on the particular page
pedroenf
06-18-2006, 02:19 PM
I there. I have a problem with this mod. I can't see no image, instead i see the image attached. Can anyone tell me what the problem is?
Did you upload the folder correctly
lsgworldl
06-22-2006, 04:09 PM
I dont have an image
http://quickcheatcodes.com/forum/index.php
Tyegurl
06-25-2006, 03:52 PM
yes uniques visits would be great!!
that way it only counts you once for visiting the site and not each time you do....or each time you refresh the page....
installed...
@lsgworldl
IT creates an image from the php file placed in webroot/forumroot/counter
@Tyegurl
I almost finished another counter type with more features but I am to busy to finish it
Brandon Sheley
07-14-2006, 10:46 AM
There is no <td> and </td> around your <img src> statement. No end tag in the image.
Not sure why there is a </a> tag.
No closing </tr> and </table> tag at the end.
And it should be inserted after the </table> tag in the template, not after a </td> tag putting it in zombie zones.
Jim
i agree, this is all messed up.. but i've fixed and removed some stuff..
thank you
* Brandon Sheley clicked instal
Snake
07-14-2006, 11:01 AM
Thanks, just installed it! :)
ComputerVitals
07-18-2006, 03:55 AM
Installed but I see no number counter.. If I look at the counter.txt I see the number climbing in the file, but no number display on the forum.
I get the text "people have visited this site"
Anyideas?
Please follow the instructions step by step.
Brandon Sheley
08-02-2006, 06:14 PM
is there a way to make the box the # is in, a bit smaller ?
Yeah guess so but I have holidays now so I am too lazy to look into it :p
Brandon Sheley
08-03-2006, 09:40 PM
np, I'll check back later, enjoy yourself :)
Brandon Sheley
08-08-2006, 02:09 PM
5 days later, are you still on vacation ? :)
oh, i don't want to change my 666 post :( oh well.. it's gota happen one day..lol
92GreenGT
08-09-2006, 02:40 AM
How do you get the text to show up right? Mine is showing up like this:
People
Have
Visited
This Site
Exactly like that^^ How do I get to where it shows like "People have visited this site" straight out like that? Ive got the text/counter displaying in the same location as the screenshot used in the original post. Thanks
Brandon Sheley
08-11-2006, 04:11 AM
How do you get the text to show up right? Mine is showing up like this:
People
Have
Visited
This Site
Exactly like that^^ How do I get to where it shows like "People have visited this site" straight out like that? Ive got the text/counter displaying in the same location as the screenshot used in the original post. Thanks
This is what I used @ vBulletinSetup.com (http://forum.vbulletinsetup.com/)
place this at the top of your footer
<!-- Start ZH hack -->
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<td>
<tr>
<font size="1">vBulletin Setup has had <img src="http://forum.vbulletinsetup.com/counter/counter.php$session[sessionurl_q]" rel="nofollow" div class="smallfont" align="center"> views</font>
</tr>
</td>
</table>
<!-- End ZH hack -->
I'd still like to make the box a little smaller :)
Sorry I am not going to update this hack :)
92GreenGT
08-27-2006, 02:03 AM
Thanks Loco. M :) Worked great.
Shazz
08-27-2006, 02:23 AM
Sorry I am not going to update this hack :)
This means it won't work with 3.6?
And is Loco's code for the 3.6?
This will work on ANY vb version definately
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.