Jump to content

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


Recommended Posts

  • Administrators
Posted

fixed issues with core and db, speed fixes

  • Fixed issue with database not working when updating from 845
  • Trimmed and optimized code in CodonRewrite/MainController, works a bit faster now
  • Finally removed code from pre-2.0
  • Restored $_GET['module']

View more details, download from here

  • Administrators
Posted

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

  • Administrators
Posted

Nabeel, the link "View more details" is broken.

Regards

Yup, migrating to the new bug tracking system

  • Moderators
Posted

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.

  • Administrators
Posted

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?

  • Moderators
Posted

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.

  • Administrators
Posted

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

  • Moderators
Posted

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
}
?>

  • Administrators
Posted

So you mean it's calling both? That's not right.. well if it's in the skin's folder, it should only be calling that one. Does it display properly on the stock one?

  • Moderators
Posted

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**

Posted

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

Posted

The schedule search form is not functioning correctly. for me...its displaying all of the search tags instead of hiding them...I tried on your default skin, same thing so its not my skin...

  • Administrators
Posted

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?

×
×
  • Create New...