Jump to content

Revision 921: fixed issues with core and db, speed fixes


Nabeel

Recommended Posts

  • Administrators

yay thanks! and by the way one question - does the new layout.tpl effects the "old" way a design works ( with header and footer.tpl´s) in any way?

Nope. If it seems that layout.tpl it will use that, but as long as that file isn't there, it will use the old way

Link to comment
Share on other sites

  • Moderators

One thing that is happening also is just the additional pages that were created the links are duplicated.

Other pages are fine it just seems to be pages that were created from the admin section.

Apart from that everything else seems OK and to be working.

Link to comment
Share on other sites

  • Administrators

One thing that is happening also is just the additional pages that were created the links are duplicated.

Other pages are fine it just seems to be pages that were created from the admin section.

Apart from that everything else seems OK and to be working.

Example?

Link to comment
Share on other sites

  • Moderators

All its calling in the core navigation,

<li><?php

Template::Show('core_navigation.tpl');

?></li>

Its the same template in all the site. The only pages with duplicate entries are the additional pages i have created from the admin section the normal frontpage is fine for example.

Link to comment
Share on other sites

  • Administrators

All its calling in the core navigation,

<li><?php

Template::Show('core_navigation.tpl');

?></li>

Its the same template in all the site. The only pages with duplicate entries are the additional pages i have created from the admin section the normal frontpage is fine for example.

What's in the core_navigation.tpl? Can you pastebin it? Just so I can duplicate it

Link to comment
Share on other sites

  • Moderators

Nabeel i think i have found the problem, i have the core_navigation.tpl in the core templates and the skins folder for some reason.

Skins Folder

<li><a href="<?php echo SITE_URL ?>/index.php/Frontpage">Home</a></li>

<?php

if(!Auth::LoggedIn())

{

// Show these if they haven't logged in yet

?>

<li><a href="<?php echo SITE_URL ?>/index.php/registration">Register</a></li>

<?php

}

else

{

// Show these items only if they are logged in

?>

<li><a href="<?php echo SITE_URL ?>/index.php/profile">Pilot Center</a></li>
<li><a href="<?php echo url('/Exams') ?>">Exam Center</a></li>



<?php

}

?>

<li><a href="<?php echo SITE_URL ?>/index.php/pilots">Pilots</a></li>

<li><a href="<?php echo SITE_URL ?>/index.php/acars">Live Map</a></li>

<?php echo $MODULE_NAV_INC;?>

<?php

if(Auth::LoggedIn())

{

//if(Auth::UserInGroup('Administrators'))
if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))

{

	echo '<li><a href="'.SITE_URL.'/admin/">Admin Center</a></li>';

}

?>


<?php
$admin = ExamsData::check_admin(Auth::$userinfo->pilotid);
               if ($admin->admin_level >= '1')
               {echo '<li><a href="'.url('/Exams_admin').'">Exam Center Admin</a></li>';}
?>


<li><a href="<?php echo SITE_URL ?>/index.php/login/logout">Log Out</a></li>

<?php

}

?>

Core Template folder

<li><a href="<?php echo url('/'); ?>">home</a></li>
<?php
if(!Auth::LoggedIn())
{
// Show these if they haven't logged in yet
?>
<li><a href="<?php echo url('/login'); ?>">Login</a></li>
<li><a href="<?php echo url('/registration'); ?>">Register</a></li>
<?php
}
else
{
// Show these items only if they are logged in
?>
<li><a href="<?php echo url('/profile'); ?>">Pilot Center</a></li>

<?php
}
?>
<li><a href="<?php echo url('/pilots'); ?>">Pilots</a></li>
<li><a href="<?php echo url('/acars') ?>">Live Map</a></li>
<?php echo $MODULE_NAV_INC;?>
<?php
if(Auth::LoggedIn())
{
if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
{
	echo '<li><a href="'.fileurl('/admin').'">Admin Center</a></li>';
}
?>


<li><a href="<?php echo url('/logout'); ?>">Log Out</a></li>
<?php
}
?>

Link to comment
Share on other sites

  • Moderators

To be honest Nabeel im not sure what its doing, i have removed the one from the template core folder and its still the same, i have just created another page from the admin section and it has also duplicated the navigation tpl links, strange.

**stock one is duplicated as well**

Link to comment
Share on other sites

For some reason i´m not able to install the new update - just getting a blank white page. I deleted the old one, uploaded the new one and uploaded the local config but still nothing. It also gives me a error handle request on the app.config

:-) good luck - you´re gonna make it:-)

Link to comment
Share on other sites

  • Administrators

For some reason i´m not able to install the new update - just getting a blank white page. I deleted the old one, uploaded the new one and uploaded the local config but still nothing. It also gives me a error handle request on the app.config

:-) good luck - you´re gonna make it:-)

What's the error?

Link to comment
Share on other sites

×
×
  • Create New...