vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   ZH - Hits counters for your site (https://vborg.vbsupport.ru/showthread.php?t=109523)

Ziki 03-04-2006 10:00 PM

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)

Code:

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

Ziki 03-05-2006 04:40 PM

Reserved

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

Ziki 03-05-2006 06:08 PM

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

Quote:

Originally Posted by vietkieu_cz
Some screenshot please?

Agree. Will help to understand more!

Ziki 03-05-2006 08:26 PM

Quote:

Originally Posted by pabloknight
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>

Ziki 03-05-2006 08:32 PM

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

Quote:

Originally Posted by pabloknight


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

Quote:

Originally Posted by pabloknight
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? :)

Ziki 03-06-2006 01:59 PM

Well I first though I will only edit the index but I edit the template

Rich 03-06-2006 02:11 PM

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

Quote:

Originally Posted by ZIKI-SET
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 :)

Ziki 03-06-2006 02:52 PM

Quote:

Originally Posted by iguanairs
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

Quote:

Originally Posted by iguanairs
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 :)

Rich 03-06-2006 02:59 PM

Hello,

Quote:

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:

Quote:

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?

Ziki 03-07-2006 02:57 PM

@iguanairs

OK then

@RasMasta

Quote:

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

Ziki 03-07-2006 05:02 PM

OK thanx 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

Ziki 03-20-2006 05:48 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.

nicedreams 03-20-2006 06:04 PM

Quote:

Originally Posted by ZIKI-SET
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?

Ziki 03-23-2006 06:12 PM

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?

Ziki 06-19-2006 05:28 PM

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

Ziki 07-14-2006 10:13 AM

@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

Quote:

Originally Posted by nicedreams
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
[high]* Brandon Sheley clicked instal[/high]

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?


All times are GMT. The time now is 09:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01209 seconds
  • Memory Usage 1,817KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete