• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] how to make this?

Started by ollipaust,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ollipaustTopic starter

hi i would like to know if this is possible and if yes how can i make it?
please keep in mind I am not a programmer, I just can design and do html&css

so my idea:

when a guest comes to my site "domain.com" he will see a "Welcome-Page".
On the Welcome-page there is no videos.

You can login and register there and when you login or register you get back to the main page

also if the cookie is set, the "welcome-page" should be invisible and the next time he opens
the site in the browser, he gets directly to the mainpage (of course when he is still logged in)

in attachment there's a graphic so you may understand better

  •  

PHPVibe A.

Ollie, what you need is a simple

<?php if(!is_user()) {
//load the landing page
exit();
}

?>

ollipaustTopic starter

Quote from: Alexander on
Ollie, what you need is a simple

<?php if(!is_user()) {
//load the landing page
exit();
}

?>

but isnt this for users? I'd need this for guests and already logged-in user just come directly to the mainpage or is this just a logic issue from my side? :o
  •  

PHPVibe A.

<?php if(!is_user()) {

translates to IF NOT IS USER, meaning is guest/not logged. The ! sign makes it a negation in php.

niaskywalk

Quote from: Alexander on
Ollie, what you need is a simple

<?php if(!is_user()) {
//load the landing page
exit();
}

?>


Just a quick question about this: Where is the welcome page set when using this? Would I put it in place of the comment, or exit() function look somewhere specific?
~ Nia

Apolonia Skywalk
Indigo Grove Web Production
  •  

PHPVibe A.

Quote from: niaskywalk on

Just a quick question about this: Where is the welcome page set when using this? Would I put it in place of the comment, or exit() function look somewhere specific?

There is no set in this, just a code example on how to use the is user.
The include/what you use should go where the comment line is...before the exit();

Similar topics (7)