Page 1 of 1

Project using AdminLTE

Posted: 2017-07-09 04:15
by bruceholt
I thought I would share a project that I have been working on. It is an app for recording farm jobs and activities and is a work in progress.

To make it look a little more professional looking, I have used the AdminLTE admin panel template. If you would like to take a look, it can be found https://www.farmrex.com/demo/index.php

Regards, Bruce.

Re: Project using AdminLTE

Posted: 2017-07-10 12:30
by grimblefritz
Nicely done!

Re: Project using AdminLTE

Posted: 2017-07-11 06:35
by peebee
Looks and works great! I think you may have just inspired me :-)

Re: Project using AdminLTE

Posted: 2017-08-15 11:25
by SimonK
Hi,
How did you make use of the adminLTE panel - love the look of the site

Re: Project using AdminLTE

Posted: 2017-08-21 13:46
by howard
The calendar does not look like it is linked to the tasks. I have been looking to do something like this linking open and closed tasks to a calendar but Appgini does not seem to have this functionality at this time.

Re: Project using AdminLTE

Posted: 2017-08-22 08:25
by bruceholt
SimonK , without going into all of the detail because it took a lot of experimenting and I cannot remember all of what I did and everything I tried but basically you have to get the required sidebar code from the AdminLTE template and insert it after the </header> tag inside the header.php file as well as all of the required javascript and css files. After a successful login, I did a redirect to a custom page named main.php which displays the calendar.

This is my header.php file:

Code: Select all

<!DOCTYPE html>
<?php if(!defined('PREPEND_PATH')) define('PREPEND_PATH', ''); ?>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
	<head>
		<meta charset="<?php echo datalist_db_encoding; ?>">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="description" content="">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<title><?php echo ucwords('myfarm'); ?> | <?php echo (isset($x->TableTitle) ? $x->TableTitle : ''); ?></title>
		<link id="browser_favicon" rel="shortcut icon" href="<?php echo PREPEND_PATH; ?>resources/images/logo-32x32.png">

		<!-- Font Awesome -->
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
		<!-- Ionicons -->
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>resources/lightbox/css/lightbox.css" media="screen">
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>resources/select2/select2.css" media="screen">
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>resources/timepicker/bootstrap-timepicker.min.css" media="screen">
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>dynamic.css.php">
		<!-- fullCalendar 2.2.5-->
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>plugins/fullcalendar/fullcalendar.min.css">
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>plugins/fullcalendar/fullcalendar.print.css" media="print">
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>dist/css/AdminLTE.min.css" media="screen">
		<!-- AdminLTE Skins. Choose a skin from the css/skins
		folder instead of downloading all of them to reduce the load. -->
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>dist/css/skins/skin-blue.min.css">
		<!-- iCheck -->
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>plugins/iCheck/flat/blue.css">
		
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>resources/initializr/css/bootstrap.css">
		<!--[if gt IE 8]><!-->
			<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>resources/initializr/css/bootstrap-theme.css">
		<!--<![endif]-->
		<link rel="stylesheet" href="resources/initializr/css/print.css" type="text/css" media="print" charset="utf-8">
		
		<!--[if lt IE 9]>
			<script src="<?php echo PREPEND_PATH; ?>resources/initializr/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
		<![endif]-->
		<script src="<?php echo PREPEND_PATH; ?>resources/jquery/js/jquery-1.11.2.min.js"></script>
		<script>var $j = jQuery.noConflict();</script>
		<script src="<?php echo PREPEND_PATH; ?>resources/jquery/js/jquery.mark.min.js"></script>
		<script src="<?php echo PREPEND_PATH; ?>resources/initializr/js/vendor/bootstrap.min.js"></script>
		<script src="<?php echo PREPEND_PATH; ?>resources/lightbox/js/prototype.js"></script>
		
		<script src="<?php echo PREPEND_PATH; ?>resources/select2/select2.min.js"></script>
		<script src="<?php echo PREPEND_PATH; ?>resources/timepicker/bootstrap-timepicker.min.js"></script>
		<script src="<?php echo PREPEND_PATH; ?>common.js.php"></script>
		<?php if(isset($x->TableName) && is_file(dirname(__FILE__) . "/hooks/{$x->TableName}-tv.js")){ ?>
			<script src="<?php echo PREPEND_PATH; ?>hooks/<?php echo $x->TableName; ?>-tv.js"></script>
		<?php } ?>

	</head>
	<body class="hold-transition skin-blue sidebar-mini fixed">
		<div class="wrapper">

			<?php if(is_file(dirname(__FILE__) . '/hooks/header-extras.php')){ include(dirname(__FILE__).'/hooks/header-extras.php'); } ?>
			<!-- Add header template below here .. -->

  <header class="main-header">
    <!-- Logo -->
    <a href="index.php" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>M</b>F</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>My</b> Farm</span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>

      <div class="navbar-custom-menu">
        
		<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
			</div>
			<div class="collapse navbar-collapse">

				<?php if(getLoggedAdmin()){ ?>
					<ul class="nav navbar-nav">
						<a href="<?php echo PREPEND_PATH; ?>admin/pageHome.php" class="btn btn-danger navbar-btn hidden-xs"><i class="glyphicon glyphicon-cog"></i> <?php echo $Translation['admin area']; ?></a>
						<a href="<?php echo PREPEND_PATH; ?>admin/pageHome.php" class="btn btn-danger navbar-btn visible-xs btn-lg"><i class="glyphicon glyphicon-cog"></i> <?php echo $Translation['admin area']; ?></a>
					</ul>
					<ul class="nav navbar-nav">
						<a href="<?php echo PREPEND_PATH; ?>logs_view.php" class="btn btn-warning navbar-btn hidden-xs"><i class="glyphicon glyphicon-exclamation-sign"></i> <?php echo $Translation['error logs']; ?></a>
						<a href="<?php echo PREPEND_PATH; ?>logs_view.php" class="btn btn-warning navbar-btn visible-xs btn-lg"><i class="glyphicon glyphicon-exclamation-sign"></i> <?php echo $Translation['error logs']; ?></a>
					</ul>
				<?php } ?>

				<?php if(!$_GET['signIn'] && !$_GET['loginFailed']){ ?>
					<?php if(getLoggedMemberID() == $adminConfig['anonymousMember']){ ?>
						<p class="navbar-text navbar-right">&nbsp;</p>
						<a href="<?php echo PREPEND_PATH; ?>index.php?signIn=1" class="btn btn-success navbar-btn navbar-right"><?php echo $Translation['sign in']; ?></a>
						<p class="navbar-text navbar-right">
							<?php echo $Translation['not signed in']; ?>
						</p>
					<?php }else{ ?>
						<ul class="nav navbar-nav navbar-right hidden-xs" style="min-width: 330px;">
							<a class="btn navbar-btn btn-default" href="<?php echo PREPEND_PATH; ?>index.php?signOut=1"><i class="glyphicon glyphicon-log-out"></i> <?php echo $Translation['sign out']; ?></a>
							<p class="navbar-text">
								<?php echo $Translation['signed as']; ?> <strong><a href="<?php echo PREPEND_PATH; ?>membership_profile.php" class="text-success"><?php echo getLoggedMemberID(); ?></a></strong>
							</p>
						</ul>
						<ul class="nav navbar-nav visible-xs">
							<a class="btn navbar-btn btn-default btn-lg visible-xs" href="<?php echo PREPEND_PATH; ?>index.php?signOut=1"><i class="glyphicon glyphicon-log-out"></i> <?php echo $Translation['sign out']; ?></a>
							<p class="navbar-text text-center">
								<?php echo $Translation['signed as']; ?> <strong><a href="<?php echo PREPEND_PATH; ?>membership_profile.php" class="text-success"><?php echo getLoggedMemberID(); ?></a></strong>
							</p>
						</ul>
					<?php } ?>
				<?php } ?>
			</div>
		
      </div>
    </nav>
  </header>	

    <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar hidden-print">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
        
      </div>
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu">
        <li class="header">MAIN NAVIGATION</li>
        <li>
          <a href="main.php">
            <i class="fa fa-dashboard"></i> <span>Dashboard</span>
          </a>
        </li>
		<li class="treeview">
          <a href="#"><i class="fa fa-wrench"></i> <span> Equipment Maintenance</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="maintenance_view.php">Maintenance & Repairs</a></li>
            <li><a href="equipment_view.php">Equipment Inventory</a></li>
			<li><a href="equipment_type_view.php">Equipment Types</a></li>
			<li><a href="equipment_brand_view.php">Equipment Brands</a></li>
          </ul>
        </li>
		<li>
          <a href="tasks_view.php?SortField=3&SortDirection=asc&FilterAnd%5B1%5D=&FilterField%5B1%5D=9&FilterOperator%5B1%5D=is-empty&FilterValue%5B1%5D=">
            <i class="fa fa-tasks"></i> <span>Tasks</span>
          </a>
        </li>
		<li class="treeview">
          <a href="#"><i class="fa fa-paw"></i> <span> Livestock</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
		<ul class="treeview-menu">
            <li><a href="livestock_husbandry_view.php">Livestock Husbandry</a></li>
			<li><a href="livestock_procedures_view.php">Livestock Procedures</a></li>
			<li><a href="livestock_species_view.php">Livestock Species</a></li>
			<li><a href="livestock_breed_view.php">Livestock Breeds</a></li>
			<li><a href="groups_view.php">Livestock Groups</a></li>
			<li><a href="livestock_sex_view.php">Livestock Sex</a></li>			
          </ul>
		</li>
		<li class="treeview">
          <a href="#"><i class="fa fa-map-marker"></i> <span> Paddocks/Fields</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
		<ul class="treeview-menu">
            <li><a href="paddock_activity_view.php">Paddock Activities</a></li>
			<li><a href="paddocks_view.php">Paddocks/Fields</a></li>
			<li><a href="paddock_activities_view.php">Paddock Activity Types</a></li>
			<li><a href="paddock_use_view.php">Paddock Uses</a></li>		
          </ul>
		</li>  		
		<li class="treeview">
          <a href="#"><i class="fa fa-pagelines"></i> <span> Crops</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
		<ul class="treeview-menu">
            <li><a href="crops_view.php">Crop Types</a></li>
			<li><a href="crop_variety_view.php">Crop Varieties</a></li>		
          </ul>
		</li>  		
		<li class="treeview">
          <a href="#"><i class="fa fa-flask"></i> <span> Chemical Records</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
		<ul class="treeview-menu">
            <li><a href="chemical_locker_view.php">Chemical Locker</a></li>
			<li><a href="chemicals_view.php">Chemicals</a></li>		
          </ul>
		</li>  		
		<li>
          <a href="note_pad_view.php">
            <i class="fa fa-file-text-o"></i> <span>Note Pad</span>
          </a>
        </li>
        <li>
          <a href="shopping_list_view.php">
            <i class="fa fa-shopping-cart "></i> <span>Shopping Lists</span>
          </a>
        </li>
		<li>
          <a href="employees_view.php">
            <i class="fa fa-user"></i> <span>Employees</span>
          </a>
        </li>
        <li class="header">USER INFORMATION</li>
        <li>
          <a href="membership_profile.php">
            <i class="fa fa-user"></i> <span>My Profile</span>
          </a>
        </li>
		<li>
          <a href="index.php?signOut=1">
            <i class="fa fa-sign-out"></i> <span>Sign Out</span>
          </a>
        </li>
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
<section class="content">
I also had to modify the footer.php to get it all to work and resolve a conflict between 2 different js files. This is how I modified the footer.php

Code: Select all

			<!-- Add footer template above here -->
			<div class="clearfix"></div>
			<?php if(!$_REQUEST['Embedded']){ ?>
				<div style="height: 70px;" class="hidden-print"></div>
			<?php } ?>

		</div> <!-- /div class="container" -->
		<?php if(is_file(dirname(__FILE__) . '/hooks/footer-extras.php')){ include(dirname(__FILE__).'/hooks/footer-extras.php'); } ?>
		<script src="<?php echo PREPEND_PATH; ?>resources/lightbox/js/lightbox.min.js"></script>
		
		
		<!-- jQuery 2.2.3 -->
		<script src="<?php echo PREPEND_PATH; ?>plugins/jQuery/jquery-2.2.3.min.js"></script>
		<!-- jQuery UI 1.11.4 -->
		<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
		<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
		<script>
		$.widget.bridge('uibutton', $.ui.button);
		</script>
		<!-- Bootstrap 3.3.6 -->
		<script src="<?php echo PREPEND_PATH; ?>bootstrap/js/bootstrap.min.js"></script>

		<!-- AdminLTE App -->
		<script src="<?php echo PREPEND_PATH; ?>dist/js/app.min.js"></script>		
		
	</body>
</html>
Hope this is of some help.
Regards, Bruce.

Re: Project using AdminLTE

Posted: 2017-09-13 09:26
by lawrencekeru
BruceHolt,

This is awesome.

I copied i sidebar code on the header.php. But i have an issue, The sidebar also appears in the login page. How can i fix that?

Re: Project using AdminLTE

Posted: 2017-09-14 09:30
by bruceholt
lawrencekeru, Modify the first couple of lines of login.php from:

Code: Select all

<?php if(!isset($Translation)){ @header('Location: index.php?signIn=1'); exit; } ?>
<?php include_once("$currDir/header.php"); ?>


to:

Code: Select all

<?php if(!isset($Translation)){ @header('Location: index.php?signIn=1'); exit; } ?>
<?php include_once("$currDir/header-start.php"); ?>
This is my header-start.php file:

Code: Select all

<!DOCTYPE html>
<?php if(!defined('PREPEND_PATH')) define('PREPEND_PATH', ''); ?>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="description" content="">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		<title><?php echo ucwords('MyWebsite'); ?> | <?php echo (isset($x->TableTitle) ? $x->TableTitle : ''); ?></title>
		<link id="browser_favicon" rel="shortcut icon" href="<?php echo PREPEND_PATH; ?>resources/images/logo-32x32.png">

		
		<!-- Font Awesome -->
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
		<!-- Ionicons -->
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>resources/lightbox/css/lightbox.css" media="screen">
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>resources/select2/select2.css" media="screen">
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>resources/timepicker/bootstrap-timepicker.min.css" media="screen">
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>dynamic.css.php">
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>dist/css/AdminLTE.min.css" media="screen">
		<!-- AdminLTE Skins. Choose a skin from the css/skins
		folder instead of downloading all of them to reduce the load. -->
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>dist/css/skins/skin-blue-light.min.css">
		<!-- iCheck -->
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>plugins/iCheck/flat/blue.css">
		
		<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>resources/initializr/css/bootstrap.css">
		<!--[if gt IE 8]><!-->
			<link rel="stylesheet" href="<?php echo PREPEND_PATH; ?>resources/initializr/css/bootstrap-theme.css">
		<!--<![endif]-->
		<link rel="stylesheet" href="resources/initializr/css/print.css" type="text/css" media="print" charset="utf-8">
		
		<!--[if lt IE 9]>
			<script src="<?php echo PREPEND_PATH; ?>resources/initializr/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
		<![endif]-->
		<script src="<?php echo PREPEND_PATH; ?>resources/jquery/js/jquery-1.11.2.min.js"></script>
		<script>var $j = jQuery.noConflict();</script>
		<script src="<?php echo PREPEND_PATH; ?>resources/jquery/js/jquery.mark.min.js"></script>
		<script src="<?php echo PREPEND_PATH; ?>resources/initializr/js/vendor/bootstrap.min.js"></script>
		<script src="<?php echo PREPEND_PATH; ?>resources/lightbox/js/prototype.js"></script>
		
		<script src="<?php echo PREPEND_PATH; ?>resources/select2/select2.min.js"></script>
		<script src="<?php echo PREPEND_PATH; ?>resources/timepicker/bootstrap-timepicker.min.js"></script>
		<script src="<?php echo PREPEND_PATH; ?>common.js.php"></script>
		<?php if(isset($x->TableName) && is_file(dirname(__FILE__) . "/hooks/{$x->TableName}-tv.js")){ ?>
			<script src="<?php echo PREPEND_PATH; ?>hooks/<?php echo $x->TableName; ?>-tv.js"></script>
		<?php } ?>

	</head>
	<body class="hold-transition skin-blue-light sidebar-mini">
		<div class="wrapper">

			<?php if(is_file(dirname(__FILE__) . '/hooks/header-extras.php')){ include(dirname(__FILE__).'/hooks/header-extras.php'); } ?>
			<!-- Add header template below here .. -->

  <header class="main-header">
    <!-- Logo -->
    <a href="https://www.mydomain.com/index.html" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>M</b>W</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>My</b>Website</span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      
      <div class="navbar-custom-menu">
        
					<div class="collapse navbar-collapse">

				<?php if(getLoggedAdmin()){ ?>
					<ul class="nav navbar-nav">
						<a href="<?php echo PREPEND_PATH; ?>admin/pageHome.php" class="btn btn-danger navbar-btn hidden-xs"><i class="glyphicon glyphicon-cog"></i> <?php echo $Translation['admin area']; ?></a>
						<a href="<?php echo PREPEND_PATH; ?>admin/pageHome.php" class="btn btn-danger navbar-btn visible-xs btn-lg"><i class="glyphicon glyphicon-cog"></i> <?php echo $Translation['admin area']; ?></a>
					</ul>
				<?php } ?>

				<?php if(!$_GET['signIn'] && !$_GET['loginFailed']){ ?>
					<?php if(getLoggedMemberID() == $adminConfig['anonymousMember']){ ?>
						<p class="navbar-text navbar-right">&nbsp;</p>
						<a href="<?php echo PREPEND_PATH; ?>index.php?signIn=1" class="btn btn-success navbar-btn navbar-right"><?php echo $Translation['sign in']; ?></a>
						<p class="navbar-text navbar-right">
							<?php echo $Translation['not signed in']; ?>
						</p>
					<?php }else{ ?>
						<ul class="nav navbar-nav navbar-right hidden-xs" style="min-width: 330px;">
							<a class="btn navbar-btn btn-default" href="<?php echo PREPEND_PATH; ?>index.php?signOut=1"><i class="glyphicon glyphicon-log-out"></i> <?php echo $Translation['sign out']; ?></a>
							<p class="navbar-text">
								<?php echo $Translation['signed as']; ?> <strong><a href="<?php echo PREPEND_PATH; ?>membership_profile.php" class="text-success text-uppercase"><?php echo getLoggedMemberID(); ?></a></strong>
							</p>
						</ul>
						<ul class="nav navbar-nav visible-xs">
							<a class="btn navbar-btn btn-default btn-lg visible-xs" href="<?php echo PREPEND_PATH; ?>index.php?signOut=1"><i class="glyphicon glyphicon-log-out"></i> <?php echo $Translation['sign out']; ?></a>
							<p class="navbar-text text-center">
								<?php echo $Translation['signed as']; ?> <strong><a href="<?php echo PREPEND_PATH; ?>membership_profile.php" class="text-success"><?php echo getLoggedMemberID(); ?></a></strong>
							</p>
						</ul>
					<?php } ?>
				<?php } ?>
			</div>
		
      </div>
    </nav>
  </header>	



  <!-- Content Wrapper. Contains page content -->
  <div>
<section class="content">
Modify global.php in the hooks folder from:

Code: Select all

function login_ok($memberInfo, &$args){

	return '';
	}
to:

Code: Select all

function login_ok($memberInfo, &$args){

		if($memberInfo['username'] || $mi['username'])
   return 'main.php';
        else
		return '';
	}
This will redirect to a custom page called main.php after a successful login.
Make yourself a custom page called main.php

I should probably mention that I am using Appgini Version 5.62

Re: Project using AdminLTE

Posted: 2017-09-18 16:28
by lawrencekeru
Thank you so much bruceholt

Re: Project using AdminLTE

Posted: 2018-01-21 00:37
by bruceholt

Re: Project using AdminLTE

Posted: 2018-01-23 15:21
by 4thstar
very nice, thats what i want to look at doing and i will take a look at how you suggested doing it.
Thankyou..
I took a look at the demo, just thought i would mention something i noticed, when looking at a record you can click to see the child records which open in a model window.. this view has the sidebar menu which causes errors if you click on items. Really good though..

Whats really odd is i do a lot of work for a uk business www.dpagri.co.uk and we were talking about creating a portal for clients..

Talk soon
Carl

Re: Project using AdminLTE

Posted: 2018-01-24 06:45
by bruceholt
Thanks for the feedback, Carl. I'll have to see what I can do to hide the menu in the modal. If anyone has any ideas, it would be appreciated.
Regards, Bruce

Re: Project using AdminLTE

Posted: 2018-01-24 15:25
by 4thstar
Hi Guys.
Yeah just spent hours today trying to do this in the back end admin area lol, and failed..My experience isnt quite up to scratch, but i will keep at it :)

Hey, maybe this should be a new feature and a choice when compiling the files out of appgini?

Or possibly the author admin could take a look and let us know his thoughts and steps needed to user adminLTE for both user and admin sections withing appgini, i know this would be great for me..

Cheers
Carl

Re: Project using AdminLTE

Posted: 2019-01-14 16:31
by lawrencekeru
Hi Guys,

Did anyone manage to remove the sidebar menu on the modals?

Re: Project using AdminLTE

Posted: 2020-12-03 12:57
by jmcgov
Nice demo Bruce. A tangent question, please. How did you preclude spaces in sign-up/username? TIA

Re: Project using AdminLTE

Posted: 2020-12-03 21:22
by jmcgov
bruceholt wrote:
2018-01-21 00:37
Demo can now be found at https://www.farmrex.kurraglenindustries.com.au/
Nice demo Bruce. A tangent question, please. How did you preclude spaces in sign-up/username? TIA

Re: Project using AdminLTE

Posted: 2020-12-03 21:47
by pbottcher
add

Code: Select all

			$j('#username').keyup(function () {
			$j(this).val($j(this).val().replace(/\s/g, ''));
			});
to the memebership_signup.php

Re: Project using AdminLTE

Posted: 2020-12-04 12:07
by jmcgov
pböttcher wrote:
2020-12-03 21:47
add

Code: Select all

			$j('#username').keyup(function () {
			$j(this).val($j(this).val().replace(/\s/g, ''));
			});
to the memebership_signup.php
Thanks, works nice. I put your code snip in the hooks/footer-extras.php file, just to ensure it persists beyond a regeneration