Subject: Using two themes in geeklog

Posted on: 09/11/18 01:54am
By: alb3rt

A few days ago I was asking how to have two headers in geeklog to customize the "admin" section.

I could implement it by adding a few lines to public_html/siteconfig.php

PHP Formatted Code

$_admin_url = 'nikolabatina.com.mx/admin/';      //your url admin
$admin_url = $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"] ;
$pos = strpos($admin_url, $_admin_url);
if ($pos !== false) $_CONF['theme'] = 'dashboard';    //theme for admin -different from the default theme-
 


This work for me

https://www.nikolabatina.com.mx

https://www.nikolabatina.com.mx/admin/

Bye,

Re: Using two themes in geeklog

Posted on: 14/11/18 03:52pm
By: Laugh

Thanks for the hack.

FYI we are thinking of having a seperate Admin theme in future Geeklog versions.

https://github.com/Geeklog-Core/geeklog/issues/845

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=96911