Contributions
Basic Template Structure v0.9
A Basic template structure lets you design your store from one page.
mainpage.tpl.php contains the DTD, head, javascript, header, column_left, column_right and footer for every page.
Seperate template pages contain the body_text of each page.
Expand All / Collapse All
Half the cache problem (which costed me over 90% of the time) appeared to be a simple typo in the osC2.2ms2 cache function.
Included cache file in this package removes the osC bug (and the hack included in the previous BTS-cache-fix-suggestion to work around the bug).
This is only a cache file update, if you are about to install the BTS you need to download the 1 Apr 2005 - BTSv1.5d (+ f update) instead.
Cache update suggestion for the BTS (needs BTSv1.5x to be installed)
Problem: if the cache in the osC admin is enabled, a.o. the categories box does not show the categories.
affected file:
includes/functions/cache.php
Problem reported by phwoarrr: http://forums.oscommerce.com/index.php?showtopic=71930&view=findpost&p=594963
There was an error (spotted by ieuflr2000) in the BTSv1.5e-update readme.txt
So this update replaces the BTSv1.5e-update and needs the BTSv1.5d to be installed.
Minor update for the BTSv1.5 (install BTSv1.5d first, if you don't have it installed yet)
1) updated help-text template, earlyer versions of this help template had a lot of errors, hopefully I've corrected most now.
2) load separate stylesheets for each page now if you like
3) prepared for, soon to be released, STS addon
4) some minor cleanup
This update is not required, it only adds some minor improvements. Installation is very simple, just overwrite the old files with the two includes files
(but as usual, backup first, just to be sure).
full version (so no need to install any previous BTS version)
The same as previous 1.5 versions, but this one includes all updates.
This update (so the previous version needs to be installed first) includes some small improvements to the 2 upgrade instruction files and a small update to the configure_bts.php file.
The bts_select() function (in the configure_bts.php file) has been updated to support different columns per template (just had forgotten to add it to the previous versions).
Just copy the included files over the old ones.
Update for BTSv1.5b (so this contains some updated files only, needs the BTSv1.5b to be installed)
Just copy these files over the BTSv1.5b files. Includes some minor changes: a.o. renamed two files and made some changes to the configure_bts.php file.
feedback & support: http://forums.oscommerce.com/index.php?showtopic=71930
Same as 1.5a, but 2 screenshots and complete upgrade instructions (from v1.4 and v1.5) are included now.
full version
feedback & support: http://forums.oscommerce.com/index.php?showtopic=71930
This version includes important security fixes!
All previous versions (inc. all templates!) need to be updated or fixed! If you don't feel like upgrading, please do apply the previous recommended fixes asap!
The v1.4 template switching code (fallback system) has been updated and optimized in v1.5. It's faster (probably about as fast as a stock osC2.2 ms2 install according to the osC parse time logs, seems even faster sometimes :D ) than v1.4, and safer than any previous BTS version. Also template compatibility has been improved.
The usage and update docs are still being worked on, I hope to be able to release more/better documentation soon. Some new and handy help files are already included with this new release.
http://forums.oscommerce.com/index.php?showtopic=71930
The file was over 300k including screenshots, so this is w.o. screenshots, and hopefully the version including screen shots will follow soon.
Added .htaccess file to the security fix (so this includes the previous securityfix text)
Allthough I didn't have any plans to update the BTS anymore the recently discovered security problem changed my plans.
So a new version will be released soon. This version will include the security fixes and some other code cleanup, no added features are planned.
Upgrading from the previous version (v1.4) will probably not be difficult.
BTS security problem + fix
I hope it's clear as it is, I'm in a bit of a hurry ;)
The new JTS (template structure derived from the BTS) will be upgraded today to version 1.1: http://www.oscommerce.com/community/contributions,3025
(so version 1.0 is affected too)
P.S. the support thread is still here: Support: http://forums.oscommerce.com/index.php?showtopic=71930
Changes v.1.2
Fixed critical bug: When click on print version link previous theme path doesn't back.
This package contain "How to block all links.txt"
This hack make all links redirect in main page (index.html) so your visitors
can't browse site in small window without toolbars, statusbar and etc.
You need also download BTS 1.4 (see below).
This hack hide buttons if used "print version".
When used another theme buttons will be shown.
So you can use one themplate for different themes.
You need also download BTS 1.4 (see below).
How to add different images, buttons etc to each theme with BTS
Tested with BTS 1.3
http://solti.com.ua
How to add different images, buttons etc to each theme with BTS
Tested with BTS 1.3
http://solti.com.ua
Instructions how to add different images, buttons etc to each theme with BTS.
Tested with BTS 1.3.
http://www.solti.com.ua
See Print_Version_4BTS_v.1.0 below.
You don't need to download v1.0.
Use this package (not v.1.0).
Changes v.1.1
1.Added language strings (russian, ukrainian and english). Used charset windows-1251
2.Added link "Close this windows" on popup window
3.Fixed bug: before if you change template and that click "Print version" link - it will show popup
window with previous template (not "_print").
4. Changed sizes of popup window to 640x480 vs 480x640.
God Bless You
http://www.solti.com.ua
At first you need to install BTS (1.3 or higher).
After you apply this small changes you can see link "Print Version" on every page (or on selected pages only).
By clicking on this link you start a new window that contains only CONTENT without left and right columns of boxes.
Tested with BTS 1.3.
God Bless You
http://www.solti.com.ua
This is just a small update to the "Themes Switch Box v1.0" BTS addon by Vlad. (it's a replacement, don't need 1.0 to make it work)
This nice theme or template switcher now is compatible with the BTSv1.3 and BTSv1.4
Also the choosen theme is stored into a cookie, so the visitor will see the theme/template her or she has choosen at the previous visit (i.s.o. reverting to the default each visit) .
To use this you need to install the BTSv1.4 or BTSv1.31 first.
This packege help you make a different boxes layout.
You should do a small chenges and in one theme you will have some box but in another theme will not.
It can be usefull if you theme have own navigation that duplicates navigation provided by boxes. For example, you can use tabs...
God bless. Vlad
http://www.solti.com.ua
Shows pull down menu (like currency) with a templates folders. You can chose anyone.
This changes saves as session variable so will be lost when session close.
New session will use default theme.
ToDo: Save selected theme as default in database.
Tested with BTS_v1.3.
The main 1.4 idea is that, i.s.o. duplicating all template files for every template, only the files that are different from the "fallback" template have to be copied to you new templates directory. Any missing files will automaticly load from your fallback dir. So new templates directories only have to contain the files that are really different now.
Also some other minor updates.
Full package
(sorry no upgrade instructions, compare the v1.4 catalog contents with 1.31 using winmerge for example if you want to upgrade)
Did some quick tests only, and it seems to work fine, but make sure you backup before install!
support : http://forums.oscommerce.com/index.php?showtopic=71930
Same Full package again.
containing the BTSv1.31 (=BTSv1.3 + the talon777 updates and some other tiny updates)
Exactly the same as my previous BTSv1.31 upload, only uploaded it again because shachin's package is corrupted. I think we really need some kind of contributions moderator.
B.t.w. the support thread is here: http://forums.oscommerce.com/index.php?showtopic=71930
hth
! Unexpected end of archive
! BTSv1.31_1.zip: Either multipart or corrupt ZIP archive
Basic Template Structure v0.9
Full package
containing the BTSv1.31 (=BTSv1.3 + the talon777 updates and some other tiny updates)
Just noticed that stylesheet.css in the original osC 2.2MS2 is the same as BTS 1.3 templates/osC/stylesheet.css and the only file in BTS 1.3 that is calling the original stylesheet.css is info_shopping_cart.php
Instructions included
This bug fix includes fixes for the files listed below, basically it just adjust the orders of meta information and includes 1 add in line. Instructions also included.
Files:
templates/osC/main_page.tpl.php
templates/osC/popup.tpl.php
info_shopping_cart.php
This is a simple update of meta_tags.php, which cleans up the file and fixes the Address Book Title Display bug. You can either use the new meta_tags.php included or follow the instructions.txt file.
The BTSv1.3 is the same as the BTSv1.2 +patches (but without the CSS template, a new improved CSS template might be contributed separately some day).
It is a full package, no other downloads needed other than osC2.2MS2 itself.
(includes the reviews patch by Dan Parchman, which is an osC2.2MS2 bug by the way)
Hope this helpes :)
Support: http://forums.oscommerce.com/index.php?showtopic=71930 (same as v1.2)
Please don't ask for support through PM, only use the forum thread!
I noticed that written product reviews were not properly displayed by the product_reviews_info.tpl.php in the CSS template included in Basic Template Structure v1.2.
The problem was traced to the different order in which the left nav, content, and right nav columns were called in the two templates osC and CSS.
The osC main_page.tpl.php includes them in order: left nav, content, right nav.
The CSS main_page.tpl.php includes them: left nav, right nav, content.
This _should_ work, except that there is a variable naming problem in osCommerce 2.2MS2.
The array variable $review, which is defined in product_reviews_info.php and contains the selected review information becomes overwritten by a same-named variable in the includes/boxes file reviews.php when it is executed before the template content file product_reviews_info.tpl.php, as it is in the CSS template.
I believe that the use of same-named variables in two different files that could easily be included in different orders is a fundamental error.
My suggested fix is to rename the $review array in the file /catalog/includes/boxes/reviews.php to $reviews_text (which reflects the contents of the single-element array in this context), thus preventing the overwriting of the $review array as defined in product_reviews_info.php.
This tar has the modified /catalog/includes/boxes/reviews.php and a simple installation file.
This is only a fix for the CSS and OneTable content template files! (The error is not in the BTS itself, and not in the standard osC template)
There is an error in some of the CSS and OneTable content template files included in the BTSv1.2 which makes a.o. writing reviews impossible (looks like text is always less than 50 characters), and the Javascript won't work as intended.
Note1:
I don't advise anyone to use the CSS and the OneTable template
which are included in the BTSv1.2 as they are,
they are samples made for testing only!
This bug fix does not change that!
After this fix, you can use one of these templates to start creating your own.
Note2: if want to install the BTSv1.2 make sure you only use it on osC2.2MS, and that all included BTS files overwrite any existing ones!
***************************************************
Also included a automatic templates menu update (only for fun, not needed for the fix) contributed by <--R O B--> La Rochelle France
Patch probably only needed if you don't load the included "BTS.sql" in the shop's database.
(Much better to load the BTS.sql anyway.)
patch-a for the BTSv1.2 (this patch upgrades to BTSv1.2a)
/**********************************************************/
After installation an error message like this can appear:
[QUOTE]
Warning: main(templates/css/main_page.tpl.php): failed to open stream: No such file or directory in /home/yourdomain/html/catalog/index.php on line 150
[/QUOTE]
1) Fix:
change 'css' to 'CSS' in line 510 of "catalog/includes/application_top.php"
2) Or use the new included application_top.php and overwite the "old" one.
/**********************************************************/
No serious errors expected for the BTSv1.2, it is already installed on several live osC sites without any other errors/problems.
Main new features:
* Very easy, multifunctional, Template Switching
* Easy (small) infobox template setup (for individual box templates)
* added (very basic) fourth template: "Sorry we're Closed"
* easyer to install than ever (if installed on "fresh" osC2.2MS2)
several small improvements
If anyone is interested I will post a LINK TO a support thread here:
http://forums.oscommerce.com/index.php?showtopic=71778&view=findpost&p=280945
demo at:
http://www.eeweb.nl/osc-bts/
The BTSv1-1 is based on the original BTS code. It involves a lot of file changes (only files that where affected by the BTS already), thats why this is a full version.
Main new features/changes:
- extra "one table" layout template (default)
- extra CSS layout template
- added id's to the small boxes
- small bug fix (bug also aplies to BTSv1b)
- corrected several validation errors
The included templates are simple templates, only intended to be used as a basic startpoint to create your own templates.
I am not sure if the difference to the "original" osC cart is enough to replace/remove the copyright notice, so I left it in place.
Note: I am not a programmer, nor am I the creator of the BTS, so please don't expect me to solve all BTS related issues. You can ask all questions of course, but I can't promise anything.
Includes everything that was updated in 1.0a along with a fix for the page title on the forgot password screen.
Only file changed was includes/meta_tags.php
There is no news in this version, but all the corrected bugs since the V1.0.
You can see explanations in the forum:
http://forums.oscommerce.com/viewtopic.php?t=51299
- patch "a" from http://www.w3design.ca/files/
- formcheck/form_check error from account_edit.php, account_password.php
- colspan error from products_new.tpl.php
- formcheck error from create_account.php
- metatag error from 8 files, meta_tags.php replacement
All the credits are to Brenden Vickery and osc forum members.
Basic Template Structure (BTS) v1.0
For use with osCommerce 2.2 MS2 only.
Updated:
Files upgraded for use with 2.2 MS2.
Info Boxes now use template structure instead of the infoBox class.
Meta tags optimizor added(Plug-and-Play).
Support:
Use osCommerce forum post
http://forums.oscommerce.com/viewtopic.php?p=197322#197322
A Basic template structure lets you design your store from one page.
mainpage.tpl.php contains the DTD, head, javascript, header, column_left, column_right and footer for every page.
Seperate template pages contain the body_text of each page.
Note: Contributions are used at own risk.