Not signed in ( Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    Hey, I'm trying to make a flatpress theme to integrate it as a blog into my site; GJXHosting.com. I only plan to use it to run the blog, not as a CMS for the other static pages on my site.

    I've tried to modify the default theme to what I need, but it's not going well with trying to sort out the default styling and my site styles.

    So, I'm wondering if there's a (relatively) simple way to drop in the blog part, without any of the widgets, nav, and other extras?

    The basic document outline for my site looks like this:

    <body>
    <#wrap>

    <#head>
    </#head>

    <#content>
    <#content-inner>

    Content Goes here

    </#content-inner>
    </#content>

    <#right>
    <#right-inner>

    Nav Div's are here.
    </#right-inner>

    </#right>

    <#footer>
    </#footer>

    </#wrap>
    </body>


    Any help would be great. :)

    Dominus Vobiscum:
    jackson4Christ
    •  
      CommentAuthorChrisBlank
    • CommentTimeJul 29th 2010
     permalink
    I think this is the minimum you should have.
    This goes to the index.tpl
    {entry_block}
    {entry}
    <h2>{$subject|tag:the_title}</h2>
    {include file=shared:entryadminctrls.tpl}
    {$content|tag:the_content}
    {/entry}
    {nextpage}{prevpage}
    {/entry_block}


    HTH Chris
  2.  permalink
    Thanks, I now have only an index.tpl and default.tpl templates. with said minimal code. I'm now getting this error though:

    Fatal error: Smarty error: [in index.tpl line 31]: syntax error:
    unrecognized tag 'var' (Smarty_Compiler.class.php, line 590)
    in /home/gjxhost/public_html/blog/fp-includes/smarty/Smarty.class.php
    on line 1095
    •  
      CommentAuthorChrisBlank
    • CommentTimeAug 1st 2010
     permalink
    I've made a small test theme: Download

    Please try it. It has only the code i posted and some standart files e.g. theme.conf.php.

    HTH Chris
  3.  permalink
    It worked. You can see it here: http://gjxhosting.com/blog/

    (I had to edit the settings.conf.php to go back to leggero so that I could access the admin and change the theme. I tried changing the theme directly from setting.conf.php but it didn't take, I'm guessing it wasn't registered somewhere.)

    However the admin doesn't work, I assume from lack of the necessary templates?

    UPDATE: I added my site's structure code, and got the same error I had before, I found out it was a problem with having JS in the template and I fixed it. I'm realizing that I'm looking for more than I thought in a blog, and some of the irreducible complexity needed for what I'm looking for, so how would you recomend I proceed in creating a whole theme?

    Thanks,
    Dominus Vobiscum Amicus
    jackson4Christ

    BTW, is it just me, or is the forum looking like it lost a style sheet?
    •  
      CommentAuthorChrisBlank
    • CommentTimeAug 3rd 2010
     permalink
    Posted By: jackson4Christ
    However the admin doesn't work, I assume from lack of the necessary templates?

    You have to copy the admin.tpl and the admin.css from an other theme. For better traceability you should use the files from the standart theme.

    UPDATE: I added my site's structure code, and got the same error I had before, I found out it was a problem with having JS in the template and I fixed it. I'm realizing that I'm looking for more than I thought in a blog, and some of the irreducible complexity needed for what I'm looking for, so how would you recomend I proceed in creating a whole theme?

    I hope I understand your question correctly. When I make a new theme I build simple HTML file as draft.I clear the standart theme from all unneeded code until there are only the placeholders. Then I copy my code from the draft file into the right files of my cleared theme.

    BTW, is it just me, or is the forum looking like it lost a style sheet?

    For me it looks like a simple column deisgn. Simple but high usability.

    HTH
    Chris
  4.  permalink
    OK, Thanks!

    The Forum is looking normal again for me.

    Thanks Again,
    Dominus Vobiscum
    jackson4Christ