To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Huge improvements to JBlogs

As I have not worked on JBlogs for about 4 or 5 months (getting lazy or just working on other projects), I decided it was time to get back into the swing of it again.

Today I am happy to say that JBlogs requires much less to setup and is better designed. As a result, I have got rid of the custom footer and custom headers. What you do now instead is define a PHP file which contains your own header such as this one below:

PHP
<?php
    $no_title = true;
    $expires = true;
    $math = true;
    $title = $title;
    $desc = $description;
    $head = $stylesheets;
    include $_SERVER['DOCUMENT_ROOT'].'/assets/php/head.php';
?>

This example is using my DragonScript to power the blog: it points the JBlogs variables ($title, $description and $stylesheets) to my own DragonScript. For the sake of going in to too much detail here (more will be on DevNet), this is how it could be used in a standard HTML page:

PHP
<html>
    <head>
        <title>
            <?php echo $title;?>
        </title>
        <?php echo $stylesheets;?>
        <meta name="description" content="<?php echo $description;?>">
    </head>
</html>

The foot can also be defined on it's own now as well. So the foot just points to the footer defined on the website. This allows JBlogs to integrate with your website from a very quick to create script.

I will put the latest version up as soon as I have tested it works absolutely as expected! 

Posted by jamiebalfour04 in BalfBlog
jblogs
updates
new
improvements
huge
Comments

There are no comments on this page.

New comment
Reply
Powered by DASH 2.0 (beta)
Code previewClose