Members: 10,140
Threads: 38,830
Posts: 159,367
Online: 33

Newest Member: Xoote


Old 12.01.2005, 18:59   #1
TVB
Mamber
 
Join Date: Oct 2004
Posts: 62
TVB is on a distinguished road
Default implementing a must visit page

I'm working on a solution that will redirect all visitors to a certain page upon entry to a site.

I'm not really sure what to call what I want to do so hopefully you'll know what I am talking about by the description.

I want to put a donate/campaign page up that will be the first page someone lands on regardless of how they enter the site. Once they click on enter, I would like them to be taken to the original url they were seeking.

For instance, if someone simply types example.org, they would land on example.org/donate and then click on continue to be taken to the home page.

If they type in example.org/forums they would land on example.org/donate and then click on continue to be taken to the forums.

This has been suggested in another non-mambo related forum:

If the pages are in php, you can use a cookie to see whether they've visited the donate page. If not, it takes them to the donations page and passes the requested page as a parameter to the donations page, so the donations page can provide a link back to what they were looking for.

Being a lazy type (aren't we all?) I'm wondering if there is already a mambo intergrated solution before I attempt to code something myself.

Any suggestions are appreciated.

Betsy
TVB is offline   Reply With Quote
Sponsored Links
Old 12.01.2005, 19:10   #2
scubaguy
Junior Mamber
 
scubaguy's Avatar
 
Join Date: Oct 2004
Location: Milwaukee, WI
Posts: 31
scubaguy is on a distinguished road
Send a message via ICQ to scubaguy Send a message via AIM to scubaguy Send a message via Yahoo to scubaguy
Thumbs up Re: implementing a must visit page

actually if you use the comprofiler component http://www.mambojoe.com with the new module comprofilerlogin451 you can set where the user goes after login and logout within the module settings. At the time I am writing this there seems to be a few bugs in beta4 that need to be worked out yet. I would suggest using beta3 for now.
scubaguy is offline   Reply With Quote
Old 12.01.2005, 19:37   #3
TVB
Mamber
 
Join Date: Oct 2004
Posts: 62
TVB is on a distinguished road
Default Re: implementing a must visit page

Would it work without log-ins? We are not a "member" site and don't use log-ins. This would be for anyone visiting the site as a general fundraising campaign.

Betsy
TVB is offline   Reply With Quote
Old 15.01.2005, 16:26   #4
Silvia77
Junior Mamber
 
Join Date: Apr 2004
Location: Roma, Italy, IT
Posts: 37
Silvia77 is on a distinguished road
Default Re: implementing a must visit page

... a "must visit page" for the first /absolute/ time OR a "must visit page" for every visit ?

For the first type, generally you can use a cookie and redirect the visitor to a page if the cookie is not present, but the client (browser) of the visitor must have cookies enabled.
You can hack this:
http://developers.evrsoft.com/articl...p-window.shtml
__________________
--Silvia77
Silvia77 is offline   Reply With Quote
Old 15.01.2005, 16:37   #5
TVB
Mamber
 
Join Date: Oct 2004
Posts: 62
TVB is on a distinguished road
Default Re: implementing a must visit page

Silvia, you are correct. A must visit if they haven't been to it previously. It will need to be done with cookies and I'm interested in checking out the link you posted but it appears to be wrong because it doesn't work. Thanks!

Betsy
TVB is offline   Reply With Quote
Old 15.01.2005, 16:42   #6
Silvia77
Junior Mamber
 
Join Date: Apr 2004
Location: Roma, Italy, IT
Posts: 37
Silvia77 is on a distinguished road
Default Re: implementing a must visit page

Try http://tinyurl.com/6whb7

but you can also search on Google these keywords or others:
cookie visit page first time
__________________
--Silvia77
Silvia77 is offline   Reply With Quote
Old 15.01.2005, 19:27   #7
germes
Guest
 
Posts: n/a
Default Re: implementing a must visit page

Hi,
insert in index.php :


if ( !$_COOKIE['firstvisit'] ) {
setcookie('firstvisit', 1, time() + 1314000 ); // 1314000 one year in sec
include('yourpage.php');
exit;
}

as first string.
Regars.
  Reply With Quote
Old 15.01.2005, 19:34   #8
TVB
Mamber
 
Join Date: Oct 2004
Posts: 62
TVB is on a distinguished road
Default Re: implementing a must visit page

Great! Thank-you for making it easy as I am perpetually lazy.

Is it possible to make it a page that comes up after say...5 clicks? I've gotten some negative feedback about making it the first page. I can overcome that with a well-constructed and well-written page, but am exploring the option of not having it the first page.

Betsy
TVB is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help identifying Home page mamborv Mambo 4.5 'How Do I' Questions 5 14.12.2004 15:30
removing cellpadding in contentpaneopen tables for front page pdontthink Mambo 4.5.1 'How Do I' Questions 0 11.11.2004 00:33
Wrapped Page on Front Page of Site divamissx Mambo 4.5 'How Do I' Questions 1 11.09.2004 04:48
Two components on the same page? emaster Component 'How Do I' Questions 1 10.09.2004 05:48
Getting categories in phpshop to show on main page weavers Component 'How Do I' Questions 0 04.06.2004 14:34


All times are GMT +2. The time now is 06:12.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.