CNVE: Create New Variant Easily
- For ElkArte 1.0x and 1.1x
- Manual modifications.
1. Please do your own backup though every installation is backed up automatically.
2. By default, new variant has to be created manually by copying and adding it to CSSDIR.
3. Forum admins also have to manually edit default index.template.php to add it there as well.
4. This addon allows admins to do it via admin panel instead.
5. Since custom.css is not available in default variants, this will create the file as well.
Thank you for using/testing it.
Yours friendly,
Abu Fahim Ismail.
BSD License. Feel free to modify accordingly but keep original and current authors' link(s) if it is in there somewhere. ;)
#Change Logs@Version 1.0.2- Fix custom.css to custom_newvar.css.
@Version 1.0.1- Add creation of custom.css.
@Version 1.0.0- Initial release.
Just tested on 1.1 RC2 and does what it says. Thanks for this addon
#Change Logs@Version 1.0.1- Add creation of custom.css.
I merely added this code into the addon:
$custom_css = fopen($theme_dir . '/custom.css', 'w');
Do report if it is not working as intended for you.
There is an error if one tries to install this addon on EA 1.1.4. I'll update this later, if I can remember about it.
Edited: It was actually the experimental version 1.0.3 that cannot be installed. Not the one in the OP (version 1.0.2) as that works fine. ;D
Experimental version 1.0.3 is not shared in here but it was mainly an attempt to create new variant for theme other than default; and an added ability to delete the created new variant.
The experiment failed and I haven't attempted to fix it until now.
I'll remember you, because I'm using elkarte 1.1.5 and I'm trying to create an new / other variant of the theme.
Aah... Thanks for reminding. I'll check it out now.
Edited: My bad. The package (1.0.2) installation worked fine on ElkArte version 1.1.5. The creation of the new variant on default theme also work just fine.