Jump to content

Help with dd


edmundk

Recommended Posts

Can anyone please tell me how to add drop downs to brilliance v1 template... I have the drop down code but don't know whereto put it in.. Can anyone get on skype and maybe walk me through? Will be thanked! I keep having problems... Please help... I really want this and don't know how to do this!!

Link to comment
Share on other sites

  • 1 month later...

You need to add the CSS and Javascript files and link them like this to the top of your Layout.tpl file

    <link type="text/css" href="<?php echo SITE_URL?>/lib/skins/test/menu.css" rel="stylesheet" />
   <script type="text/javascript" src="<?php echo SITE_URL?>/lib/skins/test/jquery.js"></script>
   <script type="text/javascript" src="<?php echo SITE_URL?>/lib/skins/test/menu.js"></script>

Then you need to locate the core_navigation.tpl file and add your menu css. Like the example below. (can be found in /core/templates)

<body class="menu">	<div id="menu">
  <ul class="menu">
<li><a href="<?php echo url('/'); ?>" class="parent"><span>Home</span></a>
</li>
<li><a href="#" class="parent"><span>Airline Operations</span></a>
           <div><ul>
               <li><a href="#" class="parent"><span>Sub Item 1</span></a>
                   <div><ul>
                       <li><a href="#"><span>Sub Item 1.1</span></a></li>
                       <li><a href="#"><span>Sub Item 1.2</span></a></li>
                   </ul></div>
               </li>
               <li><a href="#" class="parent"><span>Sub Item 2</span></a>
                   <div><ul>
                       <li><a href="#"><span>Sub Item 2.1</span></a></li>
                       <li><a href="#"><span>Sub Item 2.2</span></a></li>
                   </ul></div>
               </li>
               <li><a href="#"><span>Sub Item 3</span></a></li>
               <li><a href="#"><span>Sub Item 4</span></a></li>
               <li><a href="#"><span>Sub Item 5</span></a></li>
               <li><a href="#"><span>Sub Item 6</span></a></li>
               <li><a href="#"><span>Sub Item 7</span></a></li>
           </ul></div>
</li>
       <?php
if(!Auth::LoggedIn())
{
// Show these if they haven't logged in yet
?>
<li><a href="<?php echo url('/login'); ?>"<span>Login<span></a></li>
<li><a href="<?php echo url('/registration'); ?>"<span>Register<span></a></li>
<?php
}
else
{
// Show these items only if they are logged in
?>
<li><a href="<?php echo url('/profile'); ?>"<span>Pilot Center<span></a></li>

<?php
}
?>
<li><a href="<?php echo url('/pilots'); ?>"<span>Pilots<span></a></li>
<li><a href="<?php echo url('/acars') ?>"<span>Live Map<span></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').'"<span>Admin Center<span></a></li>';
}
?>


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

Then upload the layout.tpl and core_navigation.tpl to your skins directory.

Refresh and done ;)

If you need anymore help then let me know

  • Like 1
Link to comment
Share on other sites

You need to add the CSS and Javascript files and link them like this to the top of your Layout.tpl file

    <link type="text/css" href="<?php echo SITE_URL?>/lib/skins/test/menu.css" rel="stylesheet" />
   <script type="text/javascript" src="<?php echo SITE_URL?>/lib/skins/test/jquery.js"></script>
   <script type="text/javascript" src="<?php echo SITE_URL?>/lib/skins/test/menu.js"></script>

Then you need to locate the core_navigation.tpl file and add your menu css. Like the example below. (can be found in /core/templates)

<body class="menu">	<div id="menu">
  <ul class="menu">
<li><a href="<?php echo url('/'); ?>" class="parent"><span>Home</span></a>
</li>
<li><a href="#" class="parent"><span>Airline Operations</span></a>
           <div><ul>
               <li><a href="#" class="parent"><span>Sub Item 1</span></a>
                   <div><ul>
                       <li><a href="#"><span>Sub Item 1.1</span></a></li>
                       <li><a href="#"><span>Sub Item 1.2</span></a></li>
                   </ul></div>
               </li>
               <li><a href="#" class="parent"><span>Sub Item 2</span></a>
                   <div><ul>
                       <li><a href="#"><span>Sub Item 2.1</span></a></li>
                       <li><a href="#"><span>Sub Item 2.2</span></a></li>
                   </ul></div>
               </li>
               <li><a href="#"><span>Sub Item 3</span></a></li>
               <li><a href="#"><span>Sub Item 4</span></a></li>
               <li><a href="#"><span>Sub Item 5</span></a></li>
               <li><a href="#"><span>Sub Item 6</span></a></li>
               <li><a href="#"><span>Sub Item 7</span></a></li>
           </ul></div>
</li>
       <?php
if(!Auth::LoggedIn())
{
// Show these if they haven't logged in yet
?>
<li><a href="<?php echo url('/login'); ?>"<span>Login<span></a></li>
<li><a href="<?php echo url('/registration'); ?>"<span>Register<span></a></li>
<?php
}
else
{
// Show these items only if they are logged in
?>
<li><a href="<?php echo url('/profile'); ?>"<span>Pilot Center<span></a></li>

<?php
}
?>
<li><a href="<?php echo url('/pilots'); ?>"<span>Pilots<span></a></li>
<li><a href="<?php echo url('/acars') ?>"<span>Live Map<span></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').'"<span>Admin Center<span></a></li>';
}
?>


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

Then upload the layout.tpl and core_navigation.tpl to your skins directory.

Refresh and done ;)

If you need anymore help then let me know

Lol :) Thanks

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