Forums / Templates, Stylesheets, Page Layout / Ooops... modified some stuff and now need to do overrides

Ooops... modified some stuff and now need to do overrides

Locked

Views: 1,843

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
13 Nov 2008, 7:25 PM
#1
mjmazza avatar

mjmazza

New Zenner

Join Date:
Nov 2008
Location:
Johns Island, SC
Posts:
19
Plugin Contributions:
0

Ooops... modified some stuff and now need to do overrides

In my excitement to start using ZC, I jumped right in and started modifying stuff using the tutorial/faq section. My site looks good but now I have discovered the necessity of building in overrides and need to set these up. I have tried to do so, however, some of the site doesn't show properly when I view the new "template". mainly, I am not seeing any sideboxes. Any suggestions?

13 Nov 2008, 7:32 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Ooops... modified some stuff and now need to do overrides

If you've created a new template, moved your changed files there and set it as the active template, they you will need to go to Admin > Tools > Layout Boxes Controller, and set up the sideboxes that you want for your new template.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

13 Nov 2008, 7:55 PM
#3
mjmazza avatar

mjmazza

New Zenner

Join Date:
Nov 2008
Location:
Johns Island, SC
Posts:
19
Plugin Contributions:
0

Re: Ooops... modified some stuff and now need to do overrides

Thanks, but I modified the defaut template (contemporary green) and after all the changes, I can't remember all the things I did. I tried to go in and build in some override directories, and did what you suggested, but not everything was there when I previewed the site. The sideboxes and some of the header were gone.

I can switch back to the "contemporary green" template and everything is there.

Do you think I should start over? :frusty:

13 Nov 2008, 8:00 PM
#4
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: Ooops... modified some stuff and now need to do overrides

In addition to the overrides folders for your template, you will need them for your includes/languages and other files too.

  • english.php
  • header.php.
  • index.php
  • define_main_page.phpjust to name a few.

You can just make copies of the files and move them to your overrides folders!

Tina

13 Nov 2008, 8:06 PM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Ooops... modified some stuff and now need to do overrides

The sideboxes have to be reset whenever a new template is used. To do this go to admin>tools>layout boxes controller and click the reset button at the bottom of the screen.

The other issues you'll have to try to figure out what you modified and duplicate those folders/files for your custom template.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

13 Nov 2008, 8:10 PM
#6
mjmazza avatar

mjmazza

New Zenner

Join Date:
Nov 2008
Location:
Johns Island, SC
Posts:
19
Plugin Contributions:
0

Re: Ooops... modified some stuff and now need to do overrides

This has been driving me a little nuts. I tried creating all my OR folders and copying stuff in them, including all the file you mentioned, but just couldn't get it to work. I'm missing something.

What happens if I just create an OR directory in the includes folder and copy all of the sub directories to it? Will that suffice as a backup?

Sorry about all the "questions." I am new and it just hasn't "clicked" yet.

13 Nov 2008, 8:12 PM
#7
mjmazza avatar

mjmazza

New Zenner

Join Date:
Nov 2008
Location:
Johns Island, SC
Posts:
19
Plugin Contributions:
0

Re: Ooops... modified some stuff and now need to do overrides

Thanks! That is probably my whole problem. I will try it and get back with you if it works. I hope so....

13 Nov 2008, 8:15 PM
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Ooops... modified some stuff and now need to do overrides

You should be able top work out which files you've changed by looking at the datestamps on the files. Most FTP or local PC file viewers will allow you to sort each folder by date modified making this fairly easy. You only need the files you've changed in your template.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

13 Nov 2008, 8:22 PM
#9
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Ooops... modified some stuff and now need to do overrides

kuroi:

You should be able top work out which files you've changed by looking at the datestamps on the files. Most FTP or local PC file viewers will allow you to sort each folder by date modified making this fairly easy. You only need the files you've changed in your template.

That would be the easiest way to tell.

Don't forget to create/edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

13 Nov 2008, 8:33 PM
#10
mjmazza avatar

mjmazza

New Zenner

Join Date:
Nov 2008
Location:
Johns Island, SC
Posts:
19
Plugin Contributions:
0

Re: Ooops... modified some stuff and now need to do overrides

That did it!! Thank you. This forum is great! I hope to be of some help someday!

13 Nov 2008, 8:38 PM
#11
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Ooops... modified some stuff and now need to do overrides

mjmazza:

That did it!! Thank you. This forum is great! I hope to be of some help someday!

You will be. :D

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey