Hi,
I am facing a problem when any user is logged out and he accessed any inner page , header and footer is not showing only component's view part is showing without any css style. Can anyone help me to redirect from any inner page to site home page if user is not logged in?
I tried if(!ossn_isLoggedin()) { redirect();} but after that I am unable to access site with error "domainname redirected you too many times".
http://www.mydomain.com/know-the-teams
Here is the code of ossncom.php file
define('TEAM', ossnroute()->com . 'Teams/');
requireonce(TEAM . 'classes/Teams.php');
function knowyourteaminit() {
ossnregisterpage('know-the-teams', 'knowtheteams');
}
function knowtheteams() {
$title = 'Know the Teams';
$contents['content'] = ossnpluginview('teams/teamlist');
$content = ossnsetpagelayout('home', $contents);
echo ossnviewpage($title, $content);
}
ossnregistercallback('ossn', 'init', 'knowyourteaminit');
Please,
provide at least 1 sample url (without domain part) where this happpens, and read:
https://www.opensource-socialnetwork.org/wiki/view/1101/how-to-report-a-bug
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)