• Welcome to WooUSEFUL by PHPVIBE . 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

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.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

Similar topics (7)