vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   No query if on refresh? (https://vborg.vbsupport.ru/showthread.php?t=66886)

Koutaru 07-05-2004 10:45 PM

No query if on refresh?
 
What I'm basically trying to do is add $$ to the user's account for every page he/she surfs. HOWEVER. The query will NOT add if the person keeps refreshing or hits back or forward

:ermm: is this possible with PHP and queries? :(

Zachery 07-05-2004 11:10 PM

Quote:

Originally Posted by Koutaru
What I'm basically trying to do is add $$ to the user's account for every page he/she surfs. HOWEVER. The query will NOT add if the person keeps refreshing or hits back or forward

:ermm: is this possible with PHP and queries? :(

This could add to an insane ammount of querys on your site.

You may wish to give them money instead for, referals, or even thread views.

Koutaru 07-05-2004 11:24 PM

Quote:

Originally Posted by Zachery
This could add to an insane ammount of querys on your site.

You may wish to give them money instead for, referals, or even thread views.

Yes I know :( sadly

Well, it would only add one query, an update query to each page which I think would be semi-worth it.. kinda

:/ I'm still considering, but where would I start?

Zachery 07-05-2004 11:42 PM

Quote:

Originally Posted by Koutaru
Yes I know :( sadly

Well, it would only add one query, an update query to each page which I think would be semi-worth it.. kinda

:/ I'm still considering, but where would I start?

You would be updating the users table, almost every pageview, which will lock the whole table.

if your forum gets busy, this could litterly bring a server to its knees

Koutaru 07-06-2004 12:12 AM

Quote:

Originally Posted by Zachery
You would be updating the users table, almost every pageview, which will lock the whole table.

if your forum gets busy, this could litterly bring a server to its knees

Yes, but :p I'm trying to copy off of GaiaOnline.. I wonder how they managed it. Strange

If it's not smart, I definately wont try it
Thanks Zach :)

Zachery 07-06-2004 12:18 AM

Quote:

Originally Posted by Koutaru
Yes, but :p I'm trying to copy off of GaiaOnline.. I wonder how they managed it. Strange

If it's not smart, I definately wont try it
Thanks Zach :)

Are you sure Gaia actualy does it every pageview?

They do have 40~ some odd servers to run their site

Koutaru 07-06-2004 12:39 AM

Quote:

Originally Posted by Zachery
Are you sure Gaia actualy does it every pageview?

They do have 40~ some odd servers to run their site

I guess I'll hold off on it for now ;) Even though that would be a neat feature..
:D I can wait


All times are GMT. The time now is 01:13 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.01104 seconds
  • Memory Usage 1,723KB
  • 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
  • (6)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