Welcome to Geeklog Friday, November 16 2018 @ 11:59 pm EST

Geeklog Forums

Using two themes in geeklog


Status: offline

alb3rt

Forum User
Chatty
Registered: 30/10/06
Posts: 52
Location:Mexico City
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,
D Web Studio - www.d-webstudio.net

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1316
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
One of the Geeklog Core Developers.

All times are EST. The time is now 11:59 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content