Jump to content

  •  

- - - - -

Custom admincp error page

IPB4

  • Please log in to reply
No replies to this topic

#1 S!r.ReaDy

S!r.ReaDy

    Advanced Member

  • Member
  • PipPipPip
  • 35 posts
  • LocationSun

Posted 10 February 2019 - 02:34 AM

Hi, if you wish to recreate the page for you .website, follow these instructions.
Example page:
https://invisioncommunity.com/admin

go to admin folder, and open index.php, replace with following:

<!DOCTYPE html>
<html lang="en">
<head>
<title>Invision Community Client Services</title>
<link href='https://fonts.googleapis.com/css?family=Lato:400' rel='stylesheet' type='text/css'>
´╗┐
<style type='text/css'>body,div,h1,h2,p{margin:0;padding:0}img{border:0}h1,h2{font-size:100%;font-weight:normal}body {background: #eaeaea;font-family: helvetica, arial, tahoma, sans-serif;}header {height: 70px;background: #232323;}header img {margin-top: 14px;}.container {width: 980px;margin: 0 auto;}article {background:white;padding: 60px 15px;margin: 15px 0;border-radius: 6px;box-shadow: 0px 2px 0px rgba(0,0,0,0.1);}h1 {font-family: 'lato';font-size: 44px;text-align: center;margin-bottom: 15px;}p {font-family: 'lato';font-size: 24px;color: #7c7c7c; width: 700px;margin: 0 auto;text-align: center;}</style>
</head>
<body>
<header>
<div class='container'>
<img src='https://www.invisionpower.com/downclown/logo.png' alt='Invision Power Services' /></div>
</header><div class='container'>
 
<?php
define('READ_WRITE_SEPARATION', FALSE);
define('REPORT_EXCEPTIONS', TRUE);
require_once '../init.php';
\IPS\Session\Front::i();
// If member is logged in and is admin, will auto redirect to Dashboard, if member not admin, this error will apprear. Admin group =4 .
if(\IPS\Member::loggedIn()->member_group_id == 4) 
{
\IPS\Dispatcher\Admin::i()->run();
}
?>

<article><h1>Invision Community, Inc.</h1>
<p>You must be a staff member to access this site.</p>
</article>

</div>
</body>
</html>






Also tagged with one or more of these keywords: IPB4

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users