Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 12:01 am EST

Geeklog Forums

How use two templates?


Status: offline

alb3rt

Forum User
Regular Poster
Registered: 10/30/06
Posts: 71
Location:Mexico City
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?
D Web Studio - www.d-webstudio.net
 Quote

Status: offline

Laugh

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

Status: offline

alb3rt

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

me

Anonymous
Quote 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?



do you have any Geeklog tempate for sale on your site? if you do please let me know I will buy it.

thanks.
 Quote

me

Anonymous

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.
 Quote

Status: offline

alb3rt

Forum User
Regular Poster
Registered: 10/30/06
Posts: 71
Location:Mexico City
Send me a email tramos@d-webstudio.net.

Sorry for the offtopic guys. :shock:
D Web Studio - www.d-webstudio.net
 Quote

Status: offline

ivy

Forum User
Full Member
Registered: 11/25/04
Posts: 314
Location:Tokyo Japan
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


Geeklog Japan https://www.geeklog.jp
 Quote

Status: offline

Laugh

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

Status: offline

ivy

Forum User
Full Member
Registered: 11/25/04
Posts: 314
Location:Tokyo Japan
Tom,

I'm looking forward to the advanced theme system!
Geeklog Japan https://www.geeklog.jp
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
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?
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

All times are EST. The time is now 12:01 am.

  • 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