Page 1 of 1

Theme Cloning

PostPosted: Tue Feb 20, 2007 5:27 am
Author: richiebgood
Hey, I am trying to clone intera2 and just make a green version instead of blue. All i want to do it change the colour of the cellpic etc.

I am getting the following error.

phpBB : Critical Error

Could not get theme data for themes_id [23]

I changed the theme .css file name and the them_info file but i am missing something. Any help?

Re: Theme Cloning

PostPosted: Tue Feb 20, 2007 4:14 pm
Author: Teelk
Change the name of the cfg file as well.

PostPosted: Thu Feb 22, 2007 7:30 am
Author: richiebgood
"Teelk";p="22185" wrote:Change the name of the cfg file as well.


yup.
maybe i am going it wrong. I have three folders in my templates folder not. Subise, integra2 and my integra2-camo. The two integra folders are identical except for the remaning of the .css and .cfg files and the blue cell pics are changed to a grean and brown colour.
Is this right?

Or should i be going it like the subice folder, i.e. subice green and black are all in the one folder?

PostPosted: Wed Feb 28, 2007 2:30 am
Author: richiebgood
any help?

Re: Theme Cloning

PostPosted: Fri Mar 09, 2007 3:07 am
Author: Whisky
Changing just the names is not sufficient at all to clone a theme...

Open theme_info.cfg, you'll see something like this:
Code: Select all
//// phpBB 2.x auto-generated theme config file for fisubice// Do not change anything in this file!//////fisubice Theme//$fisubice[0]['template_name'] = "fisubice";$fisubice[0]['style_name'] = "FI Subice";$fisubice[0]['head_stylesheet'] = "fisubice.css";$fisubice[0]['body_background'] = "";$fisubice[0]['body_bgcolor'] = "";$fisubice[0]['body_text'] = "";$fisubice[0]['body_link'] = "";$fisubice[0]['body_vlink'] = "";$fisubice[0]['body_alink'] = "";$fisubice[0]['body_hlink'] = "";$fisubice[0]['tr_color1'] = "";$fisubice[0]['tr_color2'] = "";$fisubice[0]['tr_color3'] = "";$fisubice[0]['tr_class1'] = "";$fisubice[0]['tr_class2'] = "";$fisubice[0]['tr_class3'] = "";$fisubice[0]['th_color1'] = "";$fisubice[0]['th_color2'] = "";$fisubice[0]['th_color3'] = "";$fisubice[0]['th_class1'] = "";$fisubice[0]['th_class2'] = "";$fisubice[0]['th_class3'] = "";$fisubice[0]['td_color1'] = "";$fisubice[0]['td_color2'] = "";$fisubice[0]['td_color3'] = "";$fisubice[0]['td_class1'] = "row1";$fisubice[0]['td_class2'] = "row2";$fisubice[0]['td_class3'] = "";$fisubice[0]['fontface1'] = "";$fisubice[0]['fontface2'] = "";$fisubice[0]['fontface3'] = "";$fisubice[0]['fontsize1'] = "0";$fisubice[0]['fontsize2'] = "0";$fisubice[0]['fontsize3'] = "0";$fisubice[0]['fontcolor1'] = "";$fisubice[0]['fontcolor2'] = "006600";$fisubice[0]['fontcolor3'] = "ff0000";$fisubice[0]['span_class1'] = "";$fisubice[0]['span_class2'] = "";$fisubice[0]['span_class3'] = "";$fisubice[0]['img_size_poll'] = "0";$fisubice[0]['img_size_privmsg'] = "0";...


As you can see, ther'es a array declared there which is named like your theme name, "$fisubice" here for instance.
You have to replace all occurence with your new theme's name.

The best way for cloning a theme, and for developping web applications in general, is to use an advanced text editor with some powerfull search/replace functionnalities. I personally use Ultraedit or Dreamweaver.

By this way, all you have to do when cloning a theme is]fisubise.css[/i] to yournewtheme.css and so on...
* then with your (powerfull) editor, you perform a search of all "fisubice" text occurences in all the file of your template folder, and you replace them with your new theme's name.
* save all files, upload the folder, go to ACP/extreme styles and Install the nex theme.
You are done

Hope it helps

Re: Theme Cloning

PostPosted: Fri Mar 09, 2007 11:37 am
Author: Pogue Moran
I cant even get my extreme styles to clone a theme on my site it just goes to a blank page after I try doing the local file system. Same thing with the ftp

PostPosted: Fri Mar 09, 2007 11:43 am
Author: richiebgood
cheers, i eventually got it to work.
"Pogue Moran";p="22745" wrote:I cant even get my extreme styles to clone a theme on my site it just goes to a blank page after I try doing the local file system. Same thing with the ftp


I had the same problem

I found when i went to browse my files on ftp. i saw that it cloned some of the files, but the imoprtant files with all the names changed. So i then uploaded the remaining files from the orginal theme with the different logos, background colours etc.

If you check out my site now, i have two version so the integra style you can use. only minor changes that i felt would improve the look.Integra2 is a cool style but it looked a bit 'apply mac'y'

Re: Theme Cloning

PostPosted: Fri Mar 09, 2007 10:29 pm
Author: Frost
You have to use the correct path when cloning a style and for some people it makes a difference having the templates directory chmod'd to allow them to modify files through web and not ftp