• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Best way to make a landing-page

Started by ollipaust,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ollipaustTopic starter

hello

I have trouble finding a logic way to make a landing page, but would like to make such like soundcloud where you can register and login.

since home is the index, what would be the best way to make a landing page without calling it index or home?

also f/e if you click on the logo, you should return to the home, instead of the landing page
and it shouldnt be visible if you already logged in (cookie)

regards
  •  

Marius P.

Not 100% sure if this is what you need, but let me give you an idea:


root/index.php

if(!$page)   {
$com_route = ABSPATH."/com/com_home.php";
$canonical = site_url();
}



to



if(!$page)   {
if(is_user()) {
$com_route = ABSPATH."/com/com_home.php";
} else {
$com_route = ABSPATH."/com/com_landing.php";
}
$canonical = site_url();
}



Is this what you needed?


you can also do it in theme's home.php or com/com_home.php file.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)