vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Counter Code... (https://vborg.vbsupport.ru/showthread.php?t=211443)

MarkFoster 04-17-2009 01:51 AM

Counter Code...
 
Is there a counter code that counts every view of a page that anybody has?

Brandon Sheley 04-17-2009 01:55 AM

I don't understand what you're asking

you can get tons of site counters, statcounter is one

MarkFoster 04-17-2009 02:16 AM

Quote:

Originally Posted by Loco.M (Post 1792975)
I don't understand what you're asking

you can get tons of site counters, statcounter is one

What exactly I mean is a little code that I place on a page that everybody can see, every time somebody visits the page the counter gets increased by one on the page.

Like the one you see on this page under the text: http://www.rarewitchproject.com/?id=1772

Lynne 04-17-2009 03:54 AM

Did you look at the thread table in the database? There is the field called views. Did you try using it in your template?

Brandon Sheley 04-17-2009 04:07 AM

That site doesn't load for me, but like Lynne said, it sounds like your asking for thread views ;)

MarkFoster 04-17-2009 04:20 AM

Quote:

Originally Posted by Lynne (Post 1793029)
Did you look at the thread table in the database? There is the field called views. Did you try using it in your template?

No I didn't however my DB is PHPmyadmin and when I view the views in the table thread it just has been view codes.

Since I suck at this would you be able to guide me to where I want to go?

Lynne 04-17-2009 04:20 PM

Quote:

Originally Posted by MarkFoster (Post 1793042)
No I didn't however my DB is PHPmyadmin and when I view the views in the table thread it just has been view codes.

I have absolutely no idea what you are saying here. When I view the thread table on my site and look at the Views column, I see numbers.

Quote:

Originally Posted by MarkFoster (Post 1793042)
Since I suck at this would you be able to guide me to where I want to go?

Try using $thread['views']


All times are GMT. The time now is 01:13 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.00938 seconds
  • Memory Usage 1,724KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete