Posted on: 11/18/10 11:37pm
By: alb3rt
Anyone have an idea of how to separate the admin section of the rest of the page?, I think that I can use two themes for each site and other for admin, this is to edit the news better, because sometimes the size of editing space is greatly reduced and is uncomfortable.
Anyone have any suggestions?
Re: How use two templates?
Posted on: 11/19/10 10:26am
By: Laugh
I have run into this problem before as well (I like your sites theme BTW).
A simple solution would be to modify storyeditor_advanced.thtml or storyeditor.thtml and insert a width in the main table or something.
You could also add a feature request for this in our Bug Tracker.
Re: How use two templates?
Posted on: 11/19/10 03:53pm
By: alb3rt
Well, I remove the right block for "admin" actually.
In lib-common.php
Text Formatted Code
$displayRightBlocks = true;
$fullURL = COM_getCurrentURL();
if ($_CONF['right_blocks_in_footer'] == 1)
{
if( ($rightblock < 0) || !$rightblock )
{
if( isset( $_CONF['show_right_blocks'] ) AND (substr($fullURL, 0, strlen($_CONF['site_admin_url'])) !== $_CONF['site_admin_url']) )
{
$displayRightBlocks = $_CONF['show_right_blocks'];
}
else
. . .
But, I think that would be better if we could use two themes like wordpress
Re: How use two templates?
Posted on: 11/19/10 09:29pm
By: Anonymous (me)
Quote by: alb3rtAnyone have an idea of how to separate the admin section of the rest of the page?, I think that I can use two themes for each site and other for admin, this is to edit the news better, because sometimes the size of editing space is greatly reduced and is uncomfortable.
Anyone have any suggestions?
do you have any Geeklog tempate for sale on your site? if you do please let me know I will buy it.
thanks.
Re: How use two templates?
Posted on: 11/19/10 09:33pm
By: Anonymous (me)
do you have any Geeklog tempate for sale on your site? if you do please let me know I will buy it.
thanks.
[/p]
I mean commercial Geeklog templates for sale. I want to buy it.
thanks.
Re: How use two templates?
Posted on: 11/19/10 10:23pm
By: alb3rt
Send me a email tramos@d-webstudio.net.
Sorry for the offtopic guys. :shock:
Re: How use two templates?
Posted on: 11/20/10 10:40am
By: ivy
HACK: If admin URL, theme change to professional.
add 5 lines to lib-common.php
Text Formatted Code
if( strpos( $_SERVER['PHP_SELF'], '/admin/' ) !== false ){
$_CONF['theme'] = 'professional';
$_CONF['path_layout'] = $_CONF['path_themes'] . $_CONF['theme'] . '/';
$_CONF['layout_url'] = $_CONF['site_url'] . '/layout/' . $_CONF['theme'];
}
see more:
http://wiki.geeklog.jp/index.php/%E7%AE%A1%E7%90%86%E7%94%BB
%E9%9D%A2%E8%A1%A8%E7%A4%BA%E3%82%92%E3%83%86%
E3%83%BC%E3%83%9Eprofessional%E5%9B%BA%E5%AE%9A%E3
%81%AB%E3%81%99%E3%82%8B
Re: How use two templates?
Posted on: 11/20/10 10:56am
By: Laugh
Hey Ivy,
That is similar to what I was thinking about. Maybe I will add this in as an option when I tackle allowing a different theme for each topic.
Tom
Re: How use two templates?
Posted on: 11/20/10 03:44pm
By: ivy
Tom,
I'm looking forward to the advanced theme system!
Re: How use two templates?
Posted on: 11/23/10 02:56pm
By: beewee
Using another theme for the admin sections should only work with the admins only, not for every member. Geeklog is ment to be a portal so logged in members who are not admins should,, if they contributes a story or edit their account details, always see the default theme, not the professional theme or a special admin theme.
Perhaps it's possible to remove all blocks for the admin pages, and put a bar with the admin links on the top of the page?