Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-30-2008, 11:13 AM   #1
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
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?
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2008, 11:24 AM   #2
wanted
Certified Asshole
 
wanted's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: In front of my laptop.
Posts: 896
Cookies + javascript.
__________________
Living the dream.
wanted is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2008, 11:25 AM   #3
Elli
Reach for those stars!
 
Industry Role:
Join Date: Apr 2003
Location: Vancouver, BC
Posts: 17,991
If
Then
Do

__________________
email: [email protected]
Elli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2008, 11:25 AM   #4
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,644
I
Like
Poo

__________________


👁️ 👍️ 💩

Last edited by CurrentlySober; 04-30-2008 at 11:26 AM.. Reason: Because I want to have sexual relations with a female elephant...
CurrentlySober is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2008, 08:30 PM   #5
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
The if then do thing could be good...

How would I do that? I'm not a coder.
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2008, 08:51 PM   #6
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
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.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2008, 08:54 PM   #7
AsianDivaGirlsWebDude
Purveyor, Fine Asian Porn
 
AsianDivaGirlsWebDude's Avatar
 
Industry Role:
Join Date: Jul 2004
Location: San Francisco Bay Area
Posts: 38,323
Hire Dickman's Design - problem solved!!!

ADG
AsianDivaGirlsWebDude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2008, 09:05 PM   #8
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
Quote:
Originally Posted by brandonstills View Post
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.
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-30-2008, 09:12 PM   #9
mrkris
Confirmed User
 
Join Date: May 2005
Posts: 2,737
Quote:
Originally Posted by Wolfy View Post
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.
__________________

PHP-MySQL-Rails | ICQ: 342500546
mrkris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2008, 09:57 AM   #10
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
Quote:
Originally Posted by mrkris View Post
Easiest way is to use Cookies/Sessions.
Got a link?
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2008, 10:06 AM   #11
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Quote:
Originally Posted by Wolfy View Post
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.

Last edited by Nookster; 05-02-2008 at 10:07 AM..
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2008, 10:10 AM   #12
payd2purv
Too lazy to set a custom title
 
payd2purv's Avatar
 
Join Date: Jan 2008
Location: Toronto
Posts: 2,727
Hey this isn't a design problem!

I feel useless Like Usual....
__________________
payd2purv is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2008, 10:11 AM   #13
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Doh! Line three should read:

Quote:
$ipp = $_SERVER['REMOTE_ADDR'];
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2008, 10:29 PM   #14
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
Quote:
Originally Posted by Nookster View Post
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!
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.