Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hit Counter Details »»
Hit Counter
Version: , by BigJohnson BigJohnson is offline
Developer Last Online: Jun 2004 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-27-2002 Last Update: Never Installs: 0
 
No support by the author.

I need a hit counter for my site it is for a simple html part of the message board. This is not a php page. I would love to have a counter look like this for my site



It will show you how many hits total and how many hits just for that day

Can anyone help me finish this thought?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-27-2002, 08:22 PM
cpradio cpradio is offline
 
Join Date: Jan 2002
Location: Findlay, OH
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been thinking towards the same idea, except i plan to make it hits per forum, hits per day, and total hits per month. My idea is to have a single table with the following fields: forumid, date, ip

Then I plan to check to see if the user's ip address and the forum id matches anything in the database, if it does then not to insert their record again.
Reply With Quote
  #3  
Old 10-27-2002, 09:09 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ya but i have an html page. I was just looking for a script to show the hits for the day and hits total in that type of style. If anyone can help me out that would be amazingly awesome.

cpradio do u think u can help me?
Reply With Quote
  #4  
Old 10-27-2002, 10:41 PM
cpradio cpradio is offline
 
Join Date: Jan 2002
Location: Findlay, OH
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well i have my idea complete and implemented tell me if it is what you are looking for:
http://www.wdforums.com/forums/index.php?styleid=7
Reply With Quote
  #5  
Old 10-27-2002, 11:23 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like the hits for the day and hits totall for my html page. A non integrated page. That would be awesome.
Reply With Quote
  #6  
Old 10-28-2002, 12:21 AM
cpradio cpradio is offline
 
Join Date: Jan 2002
Location: Findlay, OH
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the file I used for the Unique Forum Counter, all that you would need to do is:

1) Make a table called forumcounter using the following SQL/MySQL query:
Code:
CREATE TABLE forumcounter (
  id int(11) NOT NULL auto_increment,
  month char(2) NOT NULL default '',
  day char(2) NOT NULL default '',
  year varchar(4) NOT NULL default '',
  remoteip varchar(250) NOT NULL default '',
  PRIMARY KEY  (id)
)
2) Upload forumcounter.php to your forums directory

3) Then edit your phpinclude template and add this code after the last comment:
Code:
include ("forumcounter.php");
4) Open the forumcounter.php file find the Display Variable code and copy it so your HTML file can use it.

-Matt
Attached Files
File Type: (21.4 KB, 13 views)
Reply With Quote
  #7  
Old 10-28-2002, 08:56 AM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice. this is a great feature thanks..

I am having trouble with the html feature though. I cannot get that one to work. I need one to show the number total and the hits for today. Do you think u can do that?

Non MySQl one for the HTML.
Reply With Quote
  #8  
Old 10-28-2002, 09:01 AM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am also getting an error on the forum version i get this.

Warning: Supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/new-dimensionz.com/httpdocs/messageboard/forumcounter.php on line 21

Warning: Supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/new-dimensionz.com/httpdocs/messageboard/forumcounter.php on line 26

Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/new-dimensionz.com/httpdocs/messageboard/forumcounter.php:21) in /usr/local/psa/home/vhosts/new-dimensionz.com/httpdocs/messageboard/admin/functions.php on line 1838

Also what do i put in the template to see the hits and stuff.
Reply With Quote
  #9  
Old 10-28-2002, 10:57 AM
cpradio cpradio is offline
 
Join Date: Jan 2002
Location: Findlay, OH
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay I have attached a zip file in which forumcounter.php, displaycounter.php should be uploaded to the main forum folder

Read the txt file for how to install

To display the stats on a non-HTML page using this code:
Code:
<script type="text/javascript" href="displaycounter.php"></script>
Attached Files
File Type: (21.4 KB, 14 views)
Reply With Quote
  #10  
Old 10-28-2002, 07:46 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No this other html page has nothing to do with the message board. I just need a java script that tells total number hits for that day and for the total hits forever.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:21 PM.


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.05062 seconds
  • Memory Usage 2,308KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete