osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

BTS Columns Question

This is a discussion on BTS Columns Question within the osCommerce 2.2 Discussion forums, part of the osCommerce 2.2 Forums category; I've looked everywhere and it appears that with BTS you are stuck with either two or three columns depending ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 04-16-2007, 12:03 PM
New Member
 
Join Date: Apr 2007
Posts: 27
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
php4ever is on a distinguished road
Default BTS Columns Question

I've looked everywhere and it appears that with BTS you are stuck with either two or three columns depending on your master template. Some pages should have three while others should have two.

Is there a way to determine which pages have two and which has three columns?
__________________
http://www.jaredritchey.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 04-17-2007, 06:31 AM
New Member
 
Join Date: Apr 2007
Posts: 27
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
php4ever is on a distinguished road
Default Re: BTS Columns Question

Well I spent all night last night reading documentation on BTS STS and every other thing I could find and I'm more annoyed then I ever have been.

Rather than get into the arguments and differences of each template system I'll just say that maybe BTS is a stumbling block to the success of osCMax because its not as flexible as it could be. However it could also help osCMax succeed because it provides a drop in system for changing layouts providing no modifications have been done to the target site. I personally intend on using it along with some PHP to change the theme of the site based on season (date controlled variables) where I built 4 templates for a sporting store and the theme will vary accordingly.

So on the subject of variable columns I managed to come up with a simple method of controlling what pages have two columns and what pages have three columns based on defining them in a small script.

The idea behind this thinking is that the right column in my design in particular should only be present when needed and all other times the site should be a simple two column fixed width design.

I'll write on the method this morning in my blog on how to change BTS templates from 2 column or 3 column layouts so you can have different numbers of columns for different pages.

~ Jared
__________________
http://www.jaredritchey.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 04-20-2007, 09:29 AM
New Member
 
Join Date: Apr 2007
Posts: 27
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
php4ever is on a distinguished road
Default Re: BTS Columns Question

I wish this forum had the kind of traffic needed to make oscmax popular. I'm writing another article today about oscmax and I've yet to see if anyone is interested in having a variable column BTS solution. I'd share it if I had have an idea that anyone considered it.

Jared
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 04-20-2007, 03:12 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,190
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: BTS Columns Question

Quote:
Originally Posted by php4ever View Post
I wish this forum had the kind of traffic needed to make oscmax popular.
Chicken or the egg syndrome. Can't get traffic until it is more popular... can't get more popular without more traffic. We are getting there. Every month since January this year we have had more and more downloads and visitors. The main issue is that most that use osCMax do not participate or contribute here. They use it and only show up when they have a problem.

As for the multi column solution, share it regardless of shown interest. I think if it is a good solution and people see it, they will use it. I have found that most users of osCMax may not realize they want a feature until they see an example of it working.

Next, I have seen this type of variable page display type done before with BTS and it did not require very much coding. It was a matter of creating several main_page.tpl.php pages such as main_page_2col.tpl.php and main_page1col.tpl.php and then simply calling the different main template from the actual php file.

Say you want 1 column on your product page, but 2 on your listing page, you would simply change the main template call in the product_info.php page to use the 1 column layout etc. I have oversimplified the total process, but it is not very complicated since all the parts are already there and working.

I look forward to seeing your solution to this problem!
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 04-20-2007, 04:24 PM
New Member
 
Join Date: Apr 2007
Posts: 27
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
php4ever is on a distinguished road
Default Re: BTS Columns Question

Mike, thanks for your reply, yes I hope that oscmax takes off because there are certain loaded versions I'm not a fan of.

As to the variable column coding, it is painfully simple and highly effective and I'll grab the code when I get back to my desk this evening.

I'll also zip up a complete drop in CSS template as an example.

I've added osCMax to my Featured Friends menu so maybe we can get some more attention over here. I publish and write in about 40 forums which all have my link in my signature not to mention the forums I'm administrator and or moderator of. I currently guest moderate or administer 11 vBulletin forums so I'll spread the word.

~ Jared

Last edited by php4ever; 04-20-2007 at 04:55 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 04-20-2007, 05:58 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,190
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: BTS Columns Question

Jared,

Great! I look forward to seeing how you implement your solution to the BTS columns.
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 05-07-2007, 05:55 AM
New Member
 
Join Date: Apr 2007
Posts: 27
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
php4ever is on a distinguished road
Default Re: BTS Columns Question

Ok, I figured out how to get the thing to work when it went to HTTPS in the URL as it wasn't previously but the only thing missing is if the URL has / and no file extension afterwards. So What I'll do is wrap this up this morning and post it for anyone with a bit more PHP knowledge than I have cares to play with it.

~ Jared
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 08-11-2007, 08:35 AM
mc8 mc8 is offline
New Member
 
Join Date: Mar 2007
Posts: 11
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
mc8 is on a distinguished road
Default Re: BTS Columns Question

Quote:
Originally Posted by michael_s View Post
Next, I have seen this type of variable page display type done before with BTS and it did not require very much coding. It was a matter of creating several main_page.tpl.php pages such as main_page_2col.tpl.php and main_page1col.tpl.php and then simply calling the different main template from the actual php file.

Say you want 1 column on your product page, but 2 on your listing page, you would simply change the main template call in the product_info.php page to use the 1 column layout etc. I have oversimplified the total process, but it is not very complicated since all the parts are already there and working.
Hi Michael - What you are talking about here is exactly what I want to do - can you expand on what parts I should be looking at to implement this?
Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 08-11-2007, 09:23 AM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 405
Thanks: 3
Thanked 63 Times in 61 Posts
Rep Power: 6
met00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the rough
Default Re: BTS Columns Question

Quote:
Originally Posted by michael_s View Post
Next, I have seen this type of variable page display type done before with BTS and it did not require very much coding. It was a matter of creating several main_page.tpl.php pages such as main_page_2col.tpl.php and main_page1col.tpl.php and then simply calling the different main template from the actual php file.

Say you want 1 column on your product page, but 2 on your listing page, you would simply change the main template call in the product_info.php page to use the 1 column layout etc. I have oversimplified the total process, but it is not very complicated since all the parts are already there and working.

I look forward to seeing your solution to this problem!
Better solution posted...

Duplicating templates is not a good idea (long term maint headache).

Using a variable that is set in the initial file call (the ones in /catalog, before they get to the /templates/templatename directories) is a much better way to resolve the issue.

Heck, you could even use that to fine tune sideboxes as well (of course that would require a slight rewrite of the sidebox code) so you could use
$sidebox['cc'] = 0;
to turn the cc sidebox off on pages where you don't want it displayed, and then
$sidebox['cc'] = 1;
to turn it on when you get into say the shopping cart or checkout processing. - or just keep it turned on by default in the normal admin area and turn it off uing the above method when you don't want to display it.

The same can be used for columns by modification of the main template...
if (!$offcolumns['right']) {
// do column processing
}
and then when you don't want he column to process just use
$offcolumns['right'] = 1; will test the right colum
in the catalog root file before the templates get called.
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Product Listing in Columns michael_s New osCommerce Contributions 0 04-06-2007 06:12 PM
Why do my columns appear to change width? Lobotaman osCMax v2 Features Discussion 4 02-01-2007 12:22 PM
How do you Remove Blue Columns??? cxm322 osCMax v1.7 Discussion 9 01-18-2004 01:00 PM
adding columns to RHS, LHS or center coloumn starchild osCMax v1.7 Discussion 2 12-19-2003 07:51 PM
Background colour in columns only adder667 osCommerce 2.2 Modification Help 4 04-14-2003 01:02 AM


All times are GMT -8. The time now is 04:05 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax