kure

the simple blogging engine

You are not logged in.

#1 2008-10-24 21:47:57

Fluffball
Member

Kure-0.7, first impressions

I have been porting my first template to kure-0.7 and while the new template system looks a bit confusing at first glance things seem to work really nice.

However, I do have a few suggestions for a future version:

1. As there is no point in styling the admin template and to avoid confusion I would like to suggest keeping admin_header.html, admin_footer.html and a dedicated stylesheet for the admin template separated from the main template(s).

2. It would be nice if we could store template specific plugins in the template folder

3. To avoid validation problems with xhtml strict templates, in index.php change <br> tags into <br /> tags.

Overall, I think you did a wonderful job on the template system.

:)

Offline

 

#2 2008-10-25 07:21:48

skoh-fley
Member

Re: Kure-0.7, first impressions

Those are definitely some good suggestions. I was actually a bit hesitant in implementing the ability to template the admin interface at all for the same reason you mentioned, but I hadn't thought of separating it from the main site; that sounds like a good change to add to the 0.7.1 to-do.

The idea of template-specific plugins had crossed my mind, mainly concerning the ability of certain templates to want to add some sidebar-gadget thing, or an extra something somewhere on the page that gives templates more freedom (like a rotating banner, for example).

But I'm not sure that I want to close them off so much -- since all the hooks are the same no matter what template they're under, supposedly a plugin that works in the template it was "created for" will work anywhere else, too. And putting it into the template's folder would mean, for users who don't know any better, that when the template is gone, so is the plugin.

I don't want to create that sense of dependency between plugins and templates -- I believe they should remain separate, both in functionality and in concept.

All that aside, however, there is probably something that can be done to interface the two as "optional dependencies", so to speak. And template authors who do want to include a plugin in their template are still welcome to do so (although I'd still encourage them to release the plugins by themselves :D).

And I'll be sure to include suggestion 3 in the next release as well ;P Thanks for mentioning all that!

Offline

 

#3 2008-10-26 04:28:07

titaniumtux
Member

Re: Kure-0.7, first impressions

I am indeed impressed by the latest Kure, however I did encounter one big issue...

In the plugins admin panel, everything disappeared since I upgraded. I do not know if this is a Kure-related issue or a plugin-related issue (or something else), but 'twould be nice to be able to configure the plugins I use in the plugins admin panel.

Let me know if it's just me, or if you all are also experiencing this with plugins written for Kure 0.6.3.


Primary machines: Everex StepNote SA2053T 2GB RAM Ubuntu/Firefox&Midori
Asus Eee PC t91 2GB RAM Ubuntu/Chromium
Server: Dell Inspiron 1300 1.25GB RAM Ubuntu/Epiphany/XAMPP (http://dubroy.servehttp.com); blog at http://dubroy.servehttp.com/blog

Offline

 

#4 2008-10-26 10:09:03

Fluffball
Member

Re: Kure-0.7, first impressions

Nope, you're not the only one who encountered this issue.

I've fixed it by creating two more template files but the template folder is getting a bit messy this way :)

While looking after this I found another small issue: the tables created in admin_header.html are not closed in admin_footer.html.

I suggest changing the markup in admin_footer.html like this:

Code:

      </td></tr>
    </table>
  </body>
</html>

:)

Offline

 

#5 2008-10-26 12:07:39

titaniumtux
Member

Re: Kure-0.7, first impressions

@Fluffball,
I changed admin_footer.html to what you suggested, yet the problem still persists...did that solve the issue for you?

I wouldn't mind using either of your templates if they're sure to work. Thanks


Primary machines: Everex StepNote SA2053T 2GB RAM Ubuntu/Firefox&Midori
Asus Eee PC t91 2GB RAM Ubuntu/Chromium
Server: Dell Inspiron 1300 1.25GB RAM Ubuntu/Epiphany/XAMPP (http://dubroy.servehttp.com); blog at http://dubroy.servehttp.com/blog

Offline

 

#6 2008-10-26 13:38:43

Fluffball
Member

Re: Kure-0.7, first impressions

Nope, the markup for admin_footer.html only solves an not-so-important markup issue.

To solve the problems with the plugin-listing not showing up I've applied the following code changes and templates:

In /admin/index.php search for line 112-122:

Code:

elseif(isset($_GET['plugins'])) {
  print("<span class=\"pagesub\">plugins</span><br />\n");
  print("<div style=\"position: relative; left: 8px;\">");
  plug("admplugins", "listing");
  print("</div>");
}

elseif(isset($_GET['plugin'])) {
  // blank page for plugins to use as a config/about page
  plug("admplugins", "page");
}

Change the code like this:

Code:

elseif(isset($_GET['plugins'])) {
    runtemplate("admin_plugin-listing");
}

elseif(isset($_GET['plugin'])) {
  // blank page for plugins to use as a config/about page
  runtemplate("admin_plugin-page");
}

After you're done create the two HTML files below and save them into the /templates/sanitation directory.

admin_plugin-listing.html

Code:

    <span class="pagesub">plugins</span><br />
    <div style="position: relative; left: 8px; padding-top: 10px;">
    {HOOK:ADMPLUGINS-LISTING}
      </div>

admin_plugin-page.html

Code:

    {HOOK:ADMPLUGINS-PAGE}

Bear in mind this is a temporary fix. Skoh might have other ideas to fix this issue.

Also,  Congratulations on your Graduation!

:)

Offline

 

#7 2008-10-26 16:59:35

titaniumtux
Member

Re: Kure-0.7, first impressions

Well, the temporary solution is perfect for now!

Hey, I appreciate you reading my blog. You should comment on my posts thanks to the plugin you worked on ;)

I hope disappearing admin panels won't re-occur in future betas of Kure. I must say, I do like the way Kure's versions are numbered. I'll really be looking forward to a version 1.0 milestone (it might even be a good excuse to throw a release party).

What would be really nice would be a built-in template creator (to be able to design headers and footers for a given template using the post creator web-based w/ the NicEditor plugin would be quite fun).


Primary machines: Everex StepNote SA2053T 2GB RAM Ubuntu/Firefox&Midori
Asus Eee PC t91 2GB RAM Ubuntu/Chromium
Server: Dell Inspiron 1300 1.25GB RAM Ubuntu/Epiphany/XAMPP (http://dubroy.servehttp.com); blog at http://dubroy.servehttp.com/blog

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson