Recent Topics

1 Jun 01, 2007 02:25    

My b2evolution Version: Not Entered

When I try to edit templates through the back-office it will only allow me to edit the templates in the /skins/custom directory. How do I change the directory of the templates I want to edit?

2 Jun 01, 2007 04:11

You would have to hack a file to do that, but I don't know which one. I believe BTW that the ability to edit any skin via the back office will be part of 2.0 but don't quote me on that.

Lemme see if I can find the file you'll need to hack.......

Okay I have to re-install my favorite php editor so I can't be totally sure, but it looks like inc/CONTROL/skins/b2template.php lines 39 and 69, with a couple of other lines that make it say 'custom'.

BTW you will still be able to edit only one skin this way. There used to be a hack that allowed editing multiple skins but I think those were so long ago that they won't apply to b2evolution's new file structure.

3 Jun 01, 2007 13:11

Great, that worked very well. I had to change the code in three lines.

In lines 39, 61 and 121 I made the following change:

from

$edit_folder = $skins_path.'custom/';

to

$edit_folder = $skins_path.'crystal_glass/';

(crystal_glass because that's the skin I'm using currently)

Thanks a lot, EdB!


Form is loading...