Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

The contents of the "Sponsor" sidebox

Locked

Started by shobuz99 on 22 Nov 2008, 2:55 AM · Views: 2,808

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
22 Nov 2008, 2:55 AM
#1
shobuz99 avatar

shobuz99

New Zenner

Join Date:
Jul 2008
Posts:
41
Plugin Contributions:
0

Post #1 by shobuz99

Question:
How do I change the contents of the "Sponsor" sidebox that appears
on both left and right sideboxes?

I've read several of the FAQ posts and seem to have gotten close;
but for some reason the actual sidebox titled "Sponsors" doesn't show up anywhere for me to edit it.

I know I'm missing something, or I'm just plain stupid...
Any one want to make a suggestion....other than "read it again!" :blush:

22 Nov 2008, 8:02 AM
#2
alexwoolfson avatar

alexwoolfson

Zen Follower

Join Date:
Sep 2008
Posts:
97
Plugin Contributions:
0

Post #2 by alexwoolfson

Hmm... I'm not familiar with that sidebox and don't see it under Admin > Tools > Layout Boxes Controller.

Do you have a link to your site?

One thing you might try to track it down is to go to Admin > Tools > Developer's Tool Kit then scroll all the way down to the bottom field titled "Look-up in all files".

Enter some distinctive text from your Sponsors sidebox into that field (Such as "sponsors" perhaps? No quotes needed...) and change the Drop Down menu next to it from "None" to "All Files - Catalog/Admin" and then click the Search button.

You'll get a list of all the files that have that text in it -- often a good place to start to figure out where you'd need to change things.

This feature is often the best way to track down obscure files....

Zen Cart 1.3.8a - Database Patch Level: 1.3.8 - PHP Version 5.2.6

22 Nov 2008, 12:29 PM
#3
shobuz99 avatar

shobuz99

New Zenner

Join Date:
Jul 2008
Posts:
41
Plugin Contributions:
0

Post #3 by shobuz99

alexwoolfson:

Hmm... I'm not familiar with that sidebox and don't see it under Admin > Tools > Layout Boxes Controller.

Do you have a link to your site?

One thing you might try to track it down is to go to Admin > Tools > Developer's Tool Kit then scroll all the way down to the bottom field titled "Look-up in all files".

Enter some distinctive text from your Sponsors sidebox into that field (Such as "sponsors" perhaps? No quotes needed...) and change the Drop Down menu next to it from "None" to "All Files - Catalog/Admin" and then click the Search button.

You'll get a list of all the files that have that text in it -- often a good place to start to figure out where you'd need to change things.

This feature is often the best way to track down obscure files....

alex,
Thanks. I did try the search in Developer's Tool Kit and came up with 4 finds, all located in /public_html/catalog/includes/languages/english.php
However, there is no obvious way to change the **contents **of the "Sponsors" sideboxes. I'm still overwhelmed with all the different files and places I need to go to edit simple things. This web site cart app is difficult to navigate in any structurally methodical way. I'm not used to editing web sites like this. I get one thing fixed and then try to figure out the next thing and end up forgetting how I edited and updated something 3 days ago. I guess I should keep a log.
I've also been a bad boy about backing up my changes to a CUSTOM folder. I haven't done any of it. Now I'm concerned that
it will take me forever to go back and backup ALL the changes I made so far... Sorry.. to vent.
Thanks for your help. I sure need it!
Rick (shobuz99)

22 Nov 2008, 1:46 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #4 by stevesh

The Sponsors sidebox is called banner_box in the Layout Boxes Controller and the content is controlled under Admin - Tools - Banner Manager

There is a learning curve involved with using Zencart, for sure, but I think it helps if you think of it as a "shopping cart program" rather than a "website cart app".

22 Nov 2008, 3:32 PM
#5
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,761
Plugin Contributions:
0

Post #5 by Kim

I've also been a bad boy about backing up my changes to a CUSTOM folder. I haven't done any of it. Now I'm concerned that
it will take me forever to go back and backup ALL the changes I made so far... Sorry.. to vent.

You will be very sorry when you go to upgrade if you don't follow the override system.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

22 Nov 2008, 8:10 PM
#6
shobuz99 avatar

shobuz99

New Zenner

Join Date:
Jul 2008
Posts:
41
Plugin Contributions:
0

Post #6 by shobuz99

Kim:

You will be very sorry when you go to upgrade if you don't follow the override system.

Yeah, I'm sure I will. So what now, go back to square 1 and learn how to use the override system? Yikes.. Self punishment, at my service.:(:cry:

22 Nov 2008, 8:15 PM
#7
alexwoolfson avatar

alexwoolfson

Zen Follower

Join Date:
Sep 2008
Posts:
97
Plugin Contributions:
0

Post #7 by alexwoolfson

shobuz99,

Seems like you got the specific advice you need re: the Sponsors sidebox.

As for the override system, let me join Kim in strongly encouraging you to take advantage of it -- and also let you know that moving your current changes over to it right now will be a piece of cake. Essentially, all you'll have to do is create folders with your override name in the appropriate places and then just copy over the files (not move, copy) you've already changed into those new folders. I promise it won't take forever -- if it takes an hour, I'd be surprised. It really is just creating new folders in a handful of places and copying the files you've already modified into the appropriate folders.

Take a look at this tutorial:

https://www.zen-cart.com/tutorials/index.php?article=142

and then this one:

https://www.zen-cart.com/tutorials/index.php?article=143

As for the rant, I know from firsthand experience that the interface to Zen Cart can be very overwhelming at first. But there is a consistent logic to it. With time (and reading the E-book manual), it's actually fairly easy to master. And once you get it, you'll be able to work with it very easily. (And it helps that the folks on this forum are so helpful and patient -- if you ever have any other questions, don't hesitate to ask...)

Courage, Rick -- it all gets easier from here. :cool:

Zen Cart 1.3.8a - Database Patch Level: 1.3.8 - PHP Version 5.2.6

22 Nov 2008, 11:32 PM
#8
shobuz99 avatar

shobuz99

New Zenner

Join Date:
Jul 2008
Posts:
41
Plugin Contributions:
0

Post #8 by shobuz99

alex,
You're right about the Zenner help and patience. Everyone here is really gracious about answering questions they have probably answered a million times. I do appreciate it.:D
I'm still working on the 'logic' of it all. It does make sense to backup, and I intend to start doing it asap.

One question on backup. The file that I referenced: /public_html/catalog/includes/languages/english.php... where would I store the backup of that? It's not a file that goes with the others in places like the /my custom-template/ folder that I will use for backup. Won't I have to create a "folder path" structure that mimics the actual one being used?

As I said, I'm editing haphazardly.
I get something done, and then look at the front page
and see what else needs to be changed..
Has anyone ever written a doc that takes a step by step approach (for new zenners)
and eventually ends up with a method to a finished, customized Zen Cart?
I'm not talking about a manual.
I used to write training manuals for IBM operators in a manufacturing environment.
But also, I put together HTML step-by-step setup instructions for certain processes that required computer operation of a tool... Know what I mean?
Just wondered.
Rick (shobuz99)

23 Nov 2008, 12:20 AM
#9
alexwoolfson avatar

alexwoolfson

Zen Follower

Join Date:
Sep 2008
Posts:
97
Plugin Contributions:
0

Post #9 by alexwoolfson

If I'm not mistaken, your

/public_html/catalog/includes/languages/english.php filepath

really is just the regular /includes/languages/english.php filepath -- the public_html/catalog folders might have been added by your webhost?

(If I'm wrong about this, more experienced Zenners will I'm sure correct me, but I don't have those folders at the root of my store folder, just the /includes folder.)

Is there a folder called "classic" living in /public_html/catalog/includes/languages folder?

If so, you would create your custom template folder at

/public_html/catalog/includes/languages/CUSTOM

and copy your modified english.php file into the new folder. Wherever you see that "classic" folder is where you can (and should) create a folder with YOUR_TEMPLATE_NAME.

(And remember , these aren't backups -- they are OVERRIDES. If you have made YOUR_TEMPLATE_NAME active in your Admin, then these modified files will be used instead the stock files.)

Zen Cart 1.3.8a - Database Patch Level: 1.3.8 - PHP Version 5.2.6

24 Nov 2008, 1:32 PM
#10
shobuz99 avatar

shobuz99

New Zenner

Join Date:
Jul 2008
Posts:
41
Plugin Contributions:
0

Post #10 by shobuz99

alexwoolfson:

If I'm not mistaken, your

/public_html/catalog/includes/languages/english.php filepath

really is just the regular /includes/languages/english.php filepath -- the public_html/catalog folders might have been added by your webhost?

(If I'm wrong about this, more experienced Zenners will I'm sure correct me, but I don't have those folders at the root of my store folder, just the /includes folder.)

Is there a folder called "classic" living in /public_html/catalog/includes/languages folder?

If so, you would create your custom template folder at

/public_html/catalog/includes/languages/CUSTOM

and copy your modified english.php file into the new folder. Wherever you see that "classic" folder is where you can (and should) create a folder with YOUR_TEMPLATE_NAME.

(And remember , these aren't backups -- they are OVERRIDES. If you have made YOUR_TEMPLATE_NAME active in your Admin, then these modified files will be used instead the stock files.)
alex,
I should probably start a new thread; but let me tell you that
your advice is great, and here's how far I've gotten.

Answer: yes, /public_html/catalog is part of my server.
I used and named the zc folder to /catalog. The /public_html is already the default server folder.

I've taken your advice and tried to find all instances where
the /classic folders reside and then create my custom folder
for override. I named it /larryslather.

I'm still a bit confused about what needs to be copied into
the /larryslather folder, in each case.
Here's the structure I determined by reading the tutorial link "How do I create a new Custom Template?" you sent me.
That tutorial said to create the structure as folows:

/includes/templates**/larryslather**/common
/css
stylesheet.css
/images
/sideboxes
/template
template_info.php

My confusion is that in many cases, the /classic folder has nothing in there but the file "empty.txt"...
There is no /common, etc. sub folders.
So how can the override go to the correct place, if it doesn't exist?

I am obviously, missing something because I tried resetting the template, in Admin->tools->template selection to /larryslather from the /classic after copying some files to it, but the template design
is not all like I had it when I used the /classic template, that modified. I'm sure that I need to copy more files to the /larryslather folders.. I just don't get what other files need to be copied there...

I will move this to a new thread if you think I should. Let me know.

I'm trying to be courageous:unsure:... i just don't want to get too lost and not be able to recover or retrace my steps.
Thanks again for your help
Rick (shobuz99)
P.S. here's the link to my site:
https://robohostingsolutions.com/~larrysla/catalog/index.php?main_page=

24 Nov 2008, 2:58 PM
#11
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #11 by stevesh

Nope, you've figured most of it out.

The way it works is, if you select the larryslather template in Admin - Tools - Template Selection, when Zencart goes to create, say, the footer, it will look first in includes/templates/larryslather/common. If there's no tpl_footer.php file there, it will go to includes/templates/template_default/common, and use the one there.

So, you only need to place those files you have changed in your override folders - Zencart will use the default files for the rest.

Some people automatically copy files they know they'll be editing to the override folders right away, but it isn't necessary.

One source of confusion is the fact that the 'Classic' template is enabled by default in Zencart, but it isn't the default template. It's a sample template that you can examine and edit to learn about the way things work. Because of that, if you want your custom template to look like the Classic one to start off with, you need to copy the files in classic/css and classic/images into your override folders.

What you're seeing now is the actual default template in all it's glory.

24 Nov 2008, 7:09 PM
#12
alexwoolfson avatar

alexwoolfson

Zen Follower

Join Date:
Sep 2008
Posts:
97
Plugin Contributions:
0

Post #12 by alexwoolfson

I'm happy to help, Rick.

A couple things I'd like to add to stevesh's excellent help.

First, in response to

I'm trying to be courageous... i just don't want to get too lost and not be able to recover or retrace my steps.

Before you do anything else, you need to learn how to backup Zen Cart. There is no reason a Zenner should have any fear for customizing her app. That's because she backs everything up after every significant, successful change with religious conviction.

Backing up is quick and easy. So is restoring if the backup was done properly. I backup everything before installing any plugins and every time I've done something to my site I'd be sad if it got deleted. It is not unusual during a serious customization day for me to have three (clearly timestamped) backups of my site and database in a day. It's just that easy -- takes 5 minutes.

You need to backup two things. Your Web site files and your database.

Backing up your Web site files is as easy as taking that /catalog folder and copying it to your local computer. You can just use your ftp program to copy the whole folder to a timestamped folder on your local computer. Or you can do what I do and use ssh and a command line on my server to zip it up first before I download it, like this:

tar zcf NameOfStoreFolder.tar.gz PathToStoreFolder/NameOfStoreFolder

(talk to your webhost to get the specifics on what to put in this command or where to enter it if you are unsure -- but again, you can just download the whole darn folder without compression, it's not that big)

For the database, again it's very easy. Ask you webhost how to access phpMyAdmn and then follow the instructions here:

https://www.zen-cart.com/tutorials/index.php?article=103

(Again, you should timestamp these backups for easy rollback later.)

IMHO, before you do anything else, you should have such a comfort with backing up your Zen Cart that you could completely destroy your site and not shed a single tear because you know you have several working backups to restore to...

I'm still a bit confused about what needs to be copied into the /larryslather folder

Second, I was going to respond more to this, but I'm thinking maybe you have it. And I'm running out the door. :blush: Still confused or do you think you have it now? :smile:

Zen Cart 1.3.8a - Database Patch Level: 1.3.8 - PHP Version 5.2.6

24 Nov 2008, 7:18 PM
#13
shobuz99 avatar

shobuz99

New Zenner

Join Date:
Jul 2008
Posts:
41
Plugin Contributions:
0

Post #13 by shobuz99

Thank you Steve and Alex. You've been a great help to me.
Yes. I think I've got it. (the domain in Spain stays mainly simple and plain...:smile:)
I will take your advice on all points, and when I finish, I'll let you know how it all went.
Thanks again,

Rick (shobuz99)

25 Nov 2008, 2:35 AM
#14
shobuz99 avatar

shobuz99

New Zenner

Join Date:
Jul 2008
Posts:
41
Plugin Contributions:
0

Post #14 by shobuz99

shobuz99:

Thank you Steve and Alex. You've been a great help to me.
Yes. I think I've got it. (the domain in Spain stays mainly simple and plain...:smile:)
I will take your advice on all points, and when I finish, I'll let you know how it all went.
Thanks again,

Rick (shobuz99)

Ok. I did it! Thanks to you stevesh and alexwoolfson!
I did figure out something that I didn't ask about.
Once I copied all the files and folders that needed to be used
as overrides, I was still ending up without the sideboxes or
the catagory pages displaying. I discovered that when you change your template, you need to update your "layout_controller.php" in Admin->Tools by turning on all the box file settings that affect /catalog/includes/modules ...
Basically they were all set to OFF when I switched to /larryslather from /classic. I just duplicated the /classic settings for /larryslather.
I also had to make sure the Admin->tools->banner manager was set correctly as well; because I was in there changing things (2 days ago) and forgot what I had done.

All in all there are still some things I need to work on; but basically I have successfully accomplished the override instructions you gave me, as far as template changes.

Thank you again..
I'm beginning to feel the Zen..:clap: