• 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)

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 37363

The problem of video viewing PHPVibe 5.0

Started by Nayn


Replies: 25
Views: 68855

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 48421

when slecting to unpublish music mp3 - next page says unpublished video ?

Started by spirog


Replies: 2
Views: 3972

insite ads issue when selecting above/below video player location

Started by georgepanaitescu


Replies: 3
Views: 20743

Video that I've uploaded needs to have that value in admin to upload

Started by spirog


Replies: 4
Views: 3900

video,playlist,images, etc. (frontend) select all deselect all reselect all

Started by spirog


Replies: 3
Views: 4025