Forums / Addon Sideboxes / Contrib Sidebox not picking up color configuration

Contrib Sidebox not picking up color configuration

Locked

Started by chelseagirl on 6 Sep 2006, 4:16 PM · Views: 2,312

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
6 Sep 2006, 4:16 PM
#1
chelseagirl avatar

chelseagirl

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Contrib Sidebox not picking up color configuration

Hi,

I added the cc_accept contribution sidebox to my website and all went well, but for some reason it is picking up all the colors that I have configured in the stylesheet except the content background color. Can anyone think of a reason this could be happening? If you need me to put up a copy of my stylesheet or more info, please let me know. Thanks.

6 Sep 2006, 4:55 PM
#2
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: Contrib Sidebox not picking up color configuration

It's a fairly old contribution. I noticed there isn't a id class for the div and that's why there is no color association. It's okay on white backgrounds though. :P

/includes/templates/yourcurrenttemplate/sideboxes ;

Open up: tpl_cc_accept.php and locate the beginning line of code;

$content = <<< End_Of_Quote
<div>

Replace the above with;

$content = <<< End_Of_Quote
<div class="sideBoxContent centeredContent" id="ccAccept">

Let me know how it works for you, but also let me know if there is anything wonky with this sidebox contribution. If everything is good, I'll add this update to the original.

6 Sep 2006, 5:29 PM
#3
kuroi avatar

kuroi

Totally Zenned

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

Re: Contrib Sidebox not picking up color configuration

Naughty Sketchy. We don't normally go hard-coding this stuff. BUT you have hit the nail on the head and what you suggested will resolve the problem.

Better still, I'm just about to upload a version of this add-on that removes the table, inserts classes and IDs for stylesheet control, removes redundant code in the module file and conforms to version 1.3 sidebox standards (I got fed with this question popping up every couple of weeks :laugh:). It's tested just needs some tweaking of the installtion instructions and release package.

Kuroi Web Design and Development | Twitter

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

6 Sep 2006, 6:19 PM
#4
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: Contrib Sidebox not picking up color configuration

You're too good Kuroi!

I just finished up validating that table code to be XHTML compliant, but your effort is much better and your project is rightfully the next proper update. :D

6 Sep 2006, 9:09 PM
#5
chelseagirl avatar

chelseagirl

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Re: Contrib Sidebox not picking up color configuration

Thanks Sketchy, That did the trick! Everything else works fine.

:D

7 Sep 2006, 3:20 AM
#6
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: Contrib Sidebox not picking up color configuration

You're welcome, glad to have helped. :smile:

Once Kuroi's new update is ready, you should upgrade. That one that you have doesn't validate anyways.

7 Sep 2006, 3:58 AM
#7
chelseagirl avatar

chelseagirl

New Zenner

Join Date:
Sep 2006
Posts:
13
Plugin Contributions:
0

Re: Contrib Sidebox not picking up color configuration

Hi Sketchy,

Yes, I definitly will upgrade when Kuroi posts the new contribution. I am still working on this store and it is not live yet. This is my first experience with Zen-Cart and I am still learning. I need to also install the new upgrade of ZC yet. I'm a bit nervous about that, but will keep take it one step at a time and do the best I can.. I'm glad to have this forum and grateful for all the help.

I am reading as many of the posts as I can and the wiki whenever I can, but sometimes I still have to post questions when I can't find what I need to know. I did a search for this question, but didn't find anything. I did think that it was probably asked before, but didn't find the posts so I had to ask.

Thanks again.
Chelseagirl

7 Sep 2006, 8:55 AM
#8
kuroi avatar

kuroi

Totally Zenned

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

Re: Contrib Sidebox not picking up color configuration

It's available.

You will probably need to increase 2nd paddding setting to allow for your wider sideboxes (see the installation instructions) but will benefit from having the current Discover logo.

Kuroi Web Design and Development | Twitter

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