vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   skip this page in the future ..... (https://vborg.vbsupport.ru/showthread.php?t=50035)

corsacrazy 03-12-2003 04:10 PM

skip this page in the future .....
 
maybe in the wrong area, but i wont to do this myabe usin php

ive made a splash page, and i wanna have a small checkbox next to the enter button saying "do u wish to skip thispage next time" then if they do re acess that page it will jump into the page they wood of went to if they click the enter button ! u get me? cheers in advance

filburt1 03-12-2003 04:32 PM

Use cookies, and when the page loads check and see if the cookie is set. If it is, then use header() to redirect to the second URL.

corsacrazy 03-12-2003 04:43 PM

so what exactly wood i need to include in my source ?

filburt1 03-12-2003 04:53 PM

Well I'm not going to write the whole thing for you but look at http://www.php.net/cookie for how cookies work in PHP.

mr e 03-12-2003 09:30 PM

to set a cookie
PHP Code:

setcookie("skippage""1"time()+3600); 

to check for a cookie
PHP Code:

if(isset($_COOKIE["skippage"])) {
  
header("Location: index.php");



corsacrazy 03-13-2003 05:54 AM

ok cheers people !


All times are GMT. The time now is 05:38 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.01004 seconds
  • Memory Usage 1,716KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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