Jump to content

Multiple problems


Shepred

Recommended Posts

Good morning everyone! Hope you're all enjoying this lovely summer.

I have some problems with my skinning.

#1

For some reason, the pilots list, claims that everyone joined the 1st of January 1970 - any fix for this?

iJzwC.jpg

Code:

<td align=center><?php echo date(DATE_FORMAT, strtotime($userinfo->joindate)); ?></td>

I have "d M Y" set in the Admin Center.

#2

I'd like to replace the default navigation bar, with something custom, I managed to remove the buttons themself, but not the navigation bar in itself, to be replaced. Does anyone know how to achieve this?

u4c0i.jpg

Code:

<?php
if(!Auth::LoggedIn())
{
// Show these if they haven't logged in yet
?>

<?php
}
else
{
// Show these items only if they are logged in
?>


<?php
}
?>
<?php echo $MODULE_NAV_INC;?>
<?php
if(Auth::LoggedIn())
{
if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
{

}
?>
<?php
}
?>

Thanks for any help, in advance!

Link to comment
Share on other sites

#1 Check your database, it would seem your joindate is being entered as 0 (which in epoch time is 1/1/1970)

#2 To edit the navigation copy the core_navigation.tpl into your skin folder - don't edit the core template.

Hi Tom & Vangelis, thanks for your reply!

@Tom, this is how my database looks, when it comes to joindate:

Zz7Lg.jpg

Also, I did copy the core_navigation.tpl into my own skin folder. Could it be caused by not removing the CSS? :blink:

Thanks in advance! :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...