GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Solve this design problem (https://gfy.com/showthread.php?t=825456)

Wolfy 04-30-2008 11:13 AM

Solve this design problem
 
I'm trying to make a custom menu that only gives you the options once you have walked through my tour page by page, step by step.

So if you've been to page 3, you can see the links to page 1 and 2 - but not 5 or 6.

As you go through the site, your options increase.
  1. Homepage.
  2. Homepage - Page 1
  3. Homepage - Page 1 - Page 2
  4. Homepage - Page 1 - Page 2 - Page 3
etc etc

How would you accomplish this?

wanted 04-30-2008 11:24 AM

Cookies + javascript.

Elli 04-30-2008 11:25 AM

If
Then
Do

:)

CurrentlySober 04-30-2008 11:25 AM

I
Like
Poo

:)

Wolfy 04-30-2008 08:30 PM

The if then do thing could be good...

How would I do that? I'm not a coder.

brandonstills 04-30-2008 08:51 PM

This can be done without code but I wouldn't recommend it. You would have to create pages that were exactly identical expect for those options. Are you trying to do some kind of progressive from? Usually that's not the way you handle it.

AsianDivaGirlsWebDude 04-30-2008 08:54 PM

Hire Dickman's Design - problem solved!!! :thumbsup

ADG

Wolfy 04-30-2008 09:05 PM

Quote:

Originally Posted by brandonstills (Post 14135386)
This can be done without code but I wouldn't recommend it. You would have to create pages that were exactly identical expect for those options. Are you trying to do some kind of progressive from? Usually that's not the way you handle it.


No, it's for a tour of sorts. People have to read part 2 before part 3 etc...

For a client. I hate the idea, but he wants it.

mrkris 04-30-2008 09:12 PM

Quote:

Originally Posted by Wolfy (Post 14135418)
No, it's for a tour of sorts. People have to read part 2 before part 3 etc...

For a client. I hate the idea, but he wants it.

Easiest way is to use Cookies/Sessions.

Wolfy 05-02-2008 09:57 AM

Quote:

Originally Posted by mrkris (Post 14135437)
Easiest way is to use Cookies/Sessions.

Got a link?

Nookster 05-02-2008 10:06 AM

Quote:

Originally Posted by Wolfy (Post 14141425)
Got a link?

Easiest is with PHP, but you could also use javascript to produce the cookies. Sessions are over-rated and actually have several flaws upon creation...not to mention you need to watch your coding habits while working with sessions. I prefer cookies because of those reasons.

Quote:

<?php
// for page 1
$ipp = $_SERVER['PHP_SELF'];
setcookie('my_page1', $ipp, (time()+12800), '/', '', 0);

// for page 2
setcookie('my_page2', $ipp, (time()+12800), '/', '', 0);

// etc

// to check page 1
if(isset($_COOKIE['my_page1'])){
echo 'User has viewed page 1.';
}

// to check page 2
if(isset($_COOKIE['my_page2'])){
echo 'User has viewed page 2.';
}

// etc.
?>
You really should just hire a programmer to do it though. It's actually quite simple.

payd2purv 05-02-2008 10:10 AM

Hey this isn't a design problem!

I feel useless :( Like Usual....

Nookster 05-02-2008 10:11 AM

Doh! Line three should read:

Quote:

$ipp = $_SERVER['REMOTE_ADDR'];

Wolfy 05-02-2008 10:29 PM

Quote:

Originally Posted by Nookster (Post 14141468)
It's actually quite simple.


In that case I have a COOL $25 via epass or paypal for the person that can make this happen! :D

ICQ 169-334-379 or email wolfy man at g mail dot com thankssssssssss!


All times are GMT -7. The time now is 04:54 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123