vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [Un-tested alpha release] Simple view counter (https://vborg.vbsupport.ru/showthread.php?t=88348)

Brad 11-29-2003 10:43 AM

[Un-tested alpha release] Simple view counter
 
1 Attachment(s)
Author: Brad.loo

Modification info:

When installed this will add a view counter to your boards index.php page. It is very simple, on page load it pulls the current count from a text file, displays it, and updates the counter. It is restricted to index.php at this time just incase it causes problems with the board, this will be removed after testing because it only updates on index.php right now.

This is not for live boards! please only use it on your test boards until the alpha notice is removed. This is un-tested, probbly will not work correctly at this point, if it breaks your board well. Live with it.

All instructions and needed text file are in zip.

If you _want_ to use this on all pages remove:

PHP Code:

if (THIS_SCRIPT == 'index')


and the last:

PHP Code:



that appers right above '// end modification'. This will allow it to update when any vB page is loaded, make sure you move $vcounter to a global template is you want the counter to display on all pages (dose not effect update).

idwf 11-29-2003 11:57 AM

urm...can you post a pic on what it will do? i dont fully understand! (dw, its probs only me, im a right retard!)

Brad 11-29-2003 12:01 PM

Quote:

Originally Posted by Magik
urm...can you post a pic on what it will do? i dont fully understand! (dw, its probs only me, im a right retard!)

I dont have a screenshot, as I said it is un-tested.

Basicly it adds a vaiable called $vcounter that you can use in the forumhome template. $vcounter will display the number of people that have visited your forum scence the modification was installed. Like I said it is a simple view counter.

idwf 11-29-2003 07:32 PM

:) cool. thanks


All times are GMT. The time now is 08:17 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.01023 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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