Welcome to Geeklog Saturday, September 21 2019 @ 09:36 pm EDT

Geeklog Forums

Purepro Theme for Geeklog 1.8.0


Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
PurePro Base is a theme for geeklog 1.8.0.

You can customize it with the online interface: the PureProTheme Maker. This interface allows you to create, download and share your themes.

Download PurePro Base 1.8.0

View and download all available themes

::Ben


I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1378
Thanks Ben I have been waiting for this.

I have a quick question for you.

I have setup the layout to have the right blocks at the bottom (layout 16) but when it displays on my site each block is listed vertically and not horizontally. Is their a quick fix for this?

Also if you are taking feature requests I have one. When you create a new theme it would be great if you could base your first theme from an existing theme already listed in Purepro.

Thanks

Tom
One of the Geeklog Core Developers.

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
Hi,

When blocks are at bottom blocks are always display verticallly. To display blocks horizontally we need to now how many blocks will be "inline" to set the width of each by % or in px.

So for exemple a quick solution could be for 3 blocks :

Add a my_custom_css.css file with the code below to your data/purepro/1 folder.

PHP Formatted Code

/*  My Custom Styling for PurePro *****************************************************/

.block-box-right {
  float:left;
  width:33%;
}


Clear your cache, reload the page and tada... Smile

base your first theme from an existing theme
is a feature for a next version.

Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1378
Thanks Ben,

The only additional thing I added was

PHP Formatted Code
.block-columnpad-right {
    overflow:auto;
}

so that the grey outer box would expand with the blocks.

Tom
One of the Geeklog Core Developers.

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
A new purepro beta release is available (only for testing)

[fix] Login box issue
[fix] js loading with new script class

Download Purepro base 1.8.0b1.1

Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
A purepro beta 2 release is now available (only for testing)

[fix] Token issue

Download Purepro 1.8.0 beta 2

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1378
Thanks your fix works for me :chestslam:

I accidently posted this in the other topic. It should have gone here:


I have also been trying to fix the tooltips gettting cut off by their containers (div).

PHP Formatted Code
/* ******************************************************************** */
/* Fix tooltip clipped problem */
div,
#gl_content,
#gl_navigation,
#gl_container {
   overflow:visible !important;
}


This works for the most part except for my right blocks (I have the layout set for right to be bottom blocks). It messes up the grey border box because this needs to be set:

PHP Formatted Code

.block-columnpad-right {
    overflow:auto;
}
 


Do you know of a way to have the grey box surround the right blocks without using overflow since if I do any tooltips in the box will get clipped?

Tom
One of the Geeklog Core Developers.

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
To allow nice tooltip display on the story edition page, I needed to add to my test theme data/purepro/1/my_custom_css.css file

#gl_content {
overflow:visible !important;
}


Could this solve your issue too?

Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1378
To fix my problem I added the following css to custom

PHP Formatted Code
/* ******************************************************************** */
/* Fix tooltip clipped problem */
div {
    overflow:visible !important;
}


along with updating the rightblocks.thtml and adding a

PHP Formatted Code
<br clear="both">


at the bottom of the file so that the grey border box would grow and cover the entire right blocks.


I have a request as well. Currently I have the name of the site as text in the header. It comes out like this:

PHP Formatted Code
<h1><a href="http://www.mysite.com" title="My Site Name" style="text-decoration:none;">My Site Name</a></h1>


I like the look of the text but I do not really want the name of the site to be in an h1 tag. I would rather use it elsewhere on the site (like in a staticpage) but common SEO practices state you should only have only up to one h1 tag per page. Can you change this in your next release so the text site name does not use the h1 tag?

If not, where is this line set in the templates? I don't seem to see it in any of the header0-5.thtml files.

Thanks
One of the Geeklog Core Developers.

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
Tom,

You will find the h1 tag in the public-html/layout/purepro/logo-text.thml

I will remove this tag in stable 1.8.0 theme version but users will need to rebuild their themes or add to the my_custom_css.css file
PHP Formatted Code

.header-logo-text {
  padding:0;
  margin:0;
  font:bold 40px Georgia,"Times New Roman",Times,serif;
  letter-spacing:-0.5px;
  line-height:1em;
  color:#FFF;
 text-shadow: #333 2px 2px 5px;
}


Thanks,

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1378
Thanks Ben.


One of the Geeklog Core Developers.

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1378
I just notice this in the htmlheader.html file. The shortcut icon tag for the favicon.ico includes an extra purepro directory which is already supplied by {layout_url}. The line should be:

PHP Formatted Code
<link rel="SHORTCUT ICON" href="{layout_url}/images/favicon.ico"{xhtml}>


Tom
One of the Geeklog Core Developers.

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
Yes I don't know why it was change in the beta version. Anyway in the next stable release the favicon should be store in the images folder ($_CONF['path_images']) to allow favicon customisation with Multi plugin.

In htmlheader.thtml:
PHP Formatted Code
<link rel="SHORTCUT ICON" href="{images_url}favicon.ico"{xhtml}>


In purepro_siteHeader function :

PHP Formatted Code
       
//favicon
$images_url = $_CONF['site_url'] . '/' . substr($_CONF['path_images'], -( strlen($_CONF['path_images']) - strlen($_CONF['path_html'])) ) ;


Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1378
Hey Ben,

A few things:

I notice that the Purepro theme maker doesn't save it's changes anymore. Not sure what happened as it was working the other day. (I tried in IE and FF)

Also how does the custom staticpage footer work? I assume I have to create a staticpage with a specfic id?

Last, in the custom tab I have "Display RSS link in footer" along with Terms and Privacy Policy checked but they do not display in the footer. Do I have to do anything else to activate them? (My Footer type is traditional for this theme)

Thanks

Tom
One of the Geeklog Core Developers.

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
Tom,
Purepro theme maker doesn't save it's changes anymore
The online theme maker save my values. I was able to change background color and menu on my "Invisble" theme.

how does the custom staticpage footer work?
See the wiki doc

"Display RSS link in footer" along with Terms and Privacy Policy checked but they do not display in the footer.
:doh: I forgot this feature. It will work again in the coming release.

Thanks for the feedback.

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1378
Hey Ben,

I was working on my staticpage for my footer and I notice a few things in functions.php. You should probably use a few of the plugin api to access the staticpage plugin. Instead of:

PHP Formatted Code

    //Check if a staticpage with id: purepro_footer exists
        $footerpage = DB_query("SELECT sp_id FROM {$_TABLES['staticpage']} WHERE (sp_id='purepro_footer')");
        if (DB_numRows($footerpage) == 1) {
        $footer->set_var( 'purepro_footer', PLG_replaceTags('[staticpage_content:purepro_footer]'));
    } else {
        $footer->set_var( 'purepro_footer', '');
    }
 


I would do something like this so that the draft and template variable would be taken into consideration for the staticpage plus this will make the code future proof if any staticpage table changes happen.

PHP Formatted Code
    $id = 'purepro_footer';
    if (PLG_getItemInfo('staticpages', $id, 'id') == $id) {
        $retval = '';
        $mode = '';
        $args = array(
                    'sp_id' => $id,
                    'mode'  => $mode,
                    'gl_svc' => ''
                     );
        $svc_msg = array();                    
        if (PLG_invokeService('staticpages', 'get', $args, $retval, $svc_msg) == PLG_RET_OK) {
            $footer->set_var( 'purepro_footer', $retval['sp_content']);
        } else {
            $footer->set_var( 'purepro_footer', '');
        }
    } else {
        $footer->set_var( 'purepro_footer', '');
    }  

One of the Geeklog Core Developers.

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1378
Ignore the code fix in my last post. A better way to accomplish this would be:

PHP Formatted Code

    $id = 'purepro_footer';
    if (PLG_getItemInfo('staticpages', $id, 'id') == $id) {
        $footer->set_var( 'purepro_footer', PLG_getItemInfo('staticpages', $id, 'excerpt'));
    } else {
        $footer->set_var( 'purepro_footer', '');
    }  
 


You should also apply this to the purepro header staticpage code as well.
One of the Geeklog Core Developers.

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
I wil use this one. Thanks,

Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1378
Hey Ben,

When do you think you will release the next version of the Purepro theme? I think the last one I have is Purepro 1.8.0 beta 2.

Thanks

Tom
One of the Geeklog Core Developers.

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
Hi,

I'm working on it. Maybe a new release could be made next weekend...

Ben
I'm available to customise your themes or plugins for your Geeklog CMS

All times are EDT. The time is now 09:36 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