the simple blogging engine
You are not logged in.
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
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
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.
Offline
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:
</td></tr>
</table>
</body>
</html>:)
Offline
@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
Offline
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:
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:
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
<span class="pagesub">plugins</span><br />
<div style="position: relative; left: 8px; padding-top: 10px;">
{HOOK:ADMPLUGINS-LISTING}
</div>admin_plugin-page.html
{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
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).
Offline