1 topolino Sep 15, 2005 12:49
3 topolino Sep 15, 2005 16:40
personman wrote:
There is a similar hack posted [url=http://forums.b2evolution.net/viewtopic.php?t=2572]here[/url] and [url=http://plugins.b2evolution.net/index.php/2005/09/14/edit_skins_in_the_backoffice]here[/url]. I don't know if one has an advantage over the other. Maybe they can be merged together. This is a good feature, though. Nice work.
Thanks for having taken a look at my little piece of code.
I had found this hack, but it didn't seem very flexible to me.
After seeing what wordpress could do in that regard, I really didn't understand why I couldn't do so with b2evo.
4 personman Sep 15, 2005 16:47
I haven't look at your code very closely. Can you explain what makes it more flexible? Then maybe you can submit your hack [url=http://plugins.b2evolution.net/index.php/2005/08/04/submit_a_plugin_or_hack]here[/url].
5 edb Sep 15, 2005 17:59
I just installed this hack and gotta tell you it's pretty cool. Basically what this gives you is a list of your skins across the top of your template page. You click the skin you want to edit and you get a list of all the files in that skin's folder. Of course each file name is linked to edit.
I can see advantages to either method. The blackcat2 method, while a bit more cumbersome to work with (a file for each skin and a link in the skin to edit) is cool because as you look at your page and say "I want to change this" you click your link and you're there. This method puts all the skins right there ready to be worked on from the back office, which is very convenient if you want to make global changes.
I knew there was another out there, and I'm convinced there's a third as well. I haven't looked - just sure I recall a third. Something very complex, but ultimately wicked cool. Each blogger had their own skin for their blog, but each skin was called 'custom' - and stored in a different path. skins/bloggerID/custom maybe? Anyway with that hack a logged in blogger could edit custom via template, but they were editing their specific custom. Is that cool or what?
6 topolino Sep 16, 2005 17:44
Thanks to EdB for trying it, and for describing it much better than what I did.
I wasn't aware of the plugin/hack submission page, but if you still think it's worth it, I will post it there.
After reading again the other hack, and your comments, I realize my hack is good for a particular use, that is, centralized edit of all skins in the admin area.
Why giving access to the custom skin only, while you might want to take a look or edit any of all the skins you made available?
And it's a zero-maintenance feature. As soon as you deploy a new skin, it's available for editing. No need to create another file.
In addition, as my hack adds this extra "skin" argument to the b2template.php script, it'd be possible to reach the skin edit page directly from the blog page.
If I understand correctly, the other method is more per user/per blog oriented. And indeed, it's another use I hadn't thought about, when b2Evolution is installed in a shared area. It would make sense to look for this third method.
7 personman Sep 16, 2005 17:50
topolino wrote:
I wasn't aware of the plugin/hack submission page, but if you still think it's worth it, I will post it there.
Yes, I think it's worth it. And I'm the one who decides what gets published there. :D
8 whittler Sep 25, 2005 11:12
Coolest plugin.
Definitely submit it for inclusion if you haven't already. The other one where you create a new file is too cumbersome for mine.
9 indyan Nov 02, 2005 19:00
Thanks.
There is a similar hack posted [url=http://forums.b2evolution.net/viewtopic.php?t=2572]here[/url] and [url=http://plugins.b2evolution.net/index.php/2005/09/14/edit_skins_in_the_backoffice]here[/url]. I don't know if one has an advantage over the other. Maybe they can be merged together. This is a good feature, though. Nice work.