Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] Thema Options 1.0 (5 different themas)


Recommended Posts

I have this worked out to an extent as well ...

 

Based on the concept and original design of Thema, it should address many of the aspects of the layout including individual box styles rather than just one style for all.

Link to comment
Share on other sites

I have it now where it works with the current layout of thema and you can change stylesheets per box per theme that do not interfer with regular styles.

 

You can use seperate buttons for the different themes as well.

 

Let me finish the header, footer, columns etc. And this should cover the whole store for a quick switch between themes.

 

There are not major changes here, just header colors so I can see it's working but you can peek at:

 

http://www.thewebmakerscorner.com/freegv/

 

Ignore the messies on the page, I am working on things there. :shock:

Link to comment
Share on other sites

Great Linda, Excellent Work!

 

I am currently looking for a way to include the 4 images for corners of boxes (catalogimagesinfobox) into the my button sets. So the infoboxes will have round courners as well.

 

Give me a little bit of time.

 

Best Regards,

 

EL Bavaro

http://www.win-vermieter.de/osc/index.htm

EL Bavaro

Link to comment
Share on other sites

I have it now where it works with the current layout of thema and you can change stylesheets per box per theme that do not interfer with regular styles.

 

You can use seperate buttons for the different themes as well.

 

Let me finish the header, footer, columns etc. And this should cover the whole store for a quick switch between themes.

 

There are not major changes here, just header colors so I can see it's working but you can peek at:

 

http://www.thewebmakerscorner.com/freegv/

 

Ignore the messies on the page, I am working on things there. :shock:

 

Great Job you are doing Linda, very good...

 

Salvo

Link to comment
Share on other sites

  • 7 months later...

actually it works fine with 2.2.2

and you probably did miss something. Actually I have written another part to the thema that allows the boxtops to change with it and was just trying to finalize the other graphics without dealing with the product images. anyway. if anyone is interested holler and I will try to get it out faster.

(my knowledge is so small you would think that an ant was a genius in comparison)

Link to comment
Share on other sites

You change them in the css of whichever theme your working in.

they are in catalog->includes->infobox->thema->1 through 5 .. I think

(my knowledge is so small you would think that an ant was a genius in comparison)

Link to comment
Share on other sites

Actually it would be very simple to do. In the customer account show pics of the screens and ask which theme would you like, place that in the customer table and when the customer logs in use that as the theme id within the sessions and woilla you have the customer selected theme .. would be a nice cheap pr reason to have the customer sign up

(my knowledge is so small you would think that an ant was a genius in comparison)

Link to comment
Share on other sites

Hmm this would be a great addition!!!

 

Anyone want to look into it? I am still learning!

 

Also is is possible to access a theme via an address?

 

ie. www.shop.com/cataglog/index.php?=ID2

 

Something like that?

Link to comment
Share on other sites

So first off , I recied the same error as bigd38

Parse error: parse error in /var/www/html/catalog/admin/configuration.php(125) : eval()'d code on line 1

Still havent figured out what the problem is. Can change themes via SQL.

 

Second , what happend to Kenny?

I went to site, not there, though if I add a dash I get a site. No theme shop info??? Sounds like what Im looking for...

 

So where is this project? Or the Thema project standing?

It makes allot more sense to go the route of web portal style theme control (all in one place) as it saves time and install headaches.

 

Also , can people please include installations notes on everything.

I downloaded the blue and WhatsNew thema themes and it took forever tofigure where all te parts went as there is absolutely no isntallation information included.

 

 

[/code]

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

does anybody has a solution to be able to put al the files needed by the thema use in only one directory instead of :

 

\catalog\includes\classes\thema\

\catalog\images\infobox\thema\

\catalog\includes\classes\thema\

 

i m still using it on ms1 !

MS2

Link to comment
Share on other sites

  • 2 weeks later...

Good evening,

 

Saddened for my Englishman me am French.

I work on worm. Ms2 I made installs(settles) him(it) of thema_1_ms2 all is good but Voila below I have the footer which it sticks has right-hand side in the continuation of the straight(right) column

Here is the file of her(it) thema_ garage of the version

 

 

<?php

/*

$Id: boxes.php,v 1.28 2002/06/01 18:44:37 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

class tableBox {

var $table_border = '0';

var $table_width = '100%';

var $table_cellspacing = '0';

var $table_cellpadding = '2';

var $table_parameters = '';

var $table_row_parameters = '';

var $table_data_parameters = '';

 

// class constructor

function tableBox($contents, $direct_output = false) {

$tableBox_string = '<table border="' . $this->table_border . '" width="' . $this->table_width . '" cellspacing="' . $this->table_cellspacing . '" cellpadding="' . $this->table_cellpadding . '"';

if ($this->table_parameters != '') $tableBox_string .= ' ' . $this->table_parameters;

$tableBox_string .= '>' . "\n";

 

for ($i=0; $i<sizeof($contents); $i++) {

if ($contents[$i]['form']) $tableBox_string .= $contents[$i]['form'] . "\n";

$tableBox_string .= ' <tr';

if ($this->table_row_parameters != '') $tableBox_string .= ' ' . $this->table_row_parameters;

if ($contents[$i]['params']) $tableBox_string .= ' ' . $contents[$i]['params'];

$tableBox_string .= '>' . "\n";

 

if (is_array($contents[$i][0])) {

for ($x=0; $x<sizeof($contents[$i]); $x++) {

if ($contents[$i][$x]['text']) {

$tableBox_string .= ' <td';

if ($contents[$i][$x]['align'] != '') $tableBox_string .= ' align="' . $contents[$i][$x]['align'] . '"';

if ($contents[$i][$x]['params']) {

$tableBox_string .= ' ' . $contents[$i][$x]['params'];

} elseif ($this->table_data_parameters != '') {

$tableBox_string .= ' ' . $this->table_data_parameters;

}

$tableBox_string .= '>';

if ($contents[$i][$x]['form']) $tableBox_string .= $contents[$i][$x]['form'];

$tableBox_string .= $contents[$i][$x]['text'];

if ($contents[$i][$x]['form']) $tableBox_string .= '</form>';

$tableBox_string .= '</td>' . "\n";

}

}

} else {

$tableBox_string .= ' <td';

if ($contents[$i]['align'] != '') $tableBox_string .= ' align="' . $contents[$i]['align'] . '"';

if ($contents[$i]['params']) {

$tableBox_string .= ' ' . $contents[$i]['params'];

} elseif ($this->table_data_parameters != '') {

$tableBox_string .= ' ' . $this->table_data_parameters;

}

$tableBox_string .= '>' . $contents[$i]['text'] . '</td>' . "\n";

}

 

$tableBox_string .= ' </tr>' . "\n";

if ($contents[$i]['form']) $tableBox_string .= '</form>' . "\n";

}

 

$tableBox_string .= '</table>' . "\n";

 

if ($direct_output) echo $tableBox_string;

 

return $tableBox_string;

}

}

 

class infoBox extends tableBox {

function infoBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->infoBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="infoBox"';

$this->tableBox($info_box_contents, true);

}

 

function infoBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="infoBoxContents"';

$info_box_contents = array();

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

for ($i=0; $i<sizeof($contents); $i++) {

$info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="boxText"', 'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class infoBoxHeading extends tableBox {

function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner) {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/thema/' . SITE_THEMA . '/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/thema/' . SITE_THEMA . '/corner_right_left.gif');

}

if ($right_arrow) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/thema/' . SITE_THEMA . '/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/thema/' . SITE_THEMA . '/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"', 'text' => $left_corner),

array('params' => 'width="100%" height="14" class="infoBoxHeading"', 'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading"', 'text' => $right_corner));

$this->tableBox($info_box_contents, true);

}

}

 

class contentBox extends tableBox {

function contentBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->contentBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="infoBox"';

$this->tableBox($info_box_contents, true);

}

 

function contentBoxContents($contents) {

$this->table_cellpadding = '4';

$this->table_parameters = 'class="infoBoxContents"';

return $this->tableBox($contents);

}

}

 

class contentBoxHeading extends tableBox {

function contentBoxHeading($contents) {

$this->table_width = '100%';

$this->table_cellpadding = '0';

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'infobox/thema/' . SITE_THEMA . '/corner_left.gif')),

array('params' => 'height="14" class="infoBoxHeading" width="100%"', 'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'infobox/thema/' . SITE_THEMA . '/corner_right_left.gif')));

$this->tableBox($info_box_contents, true);

}

}

 

class errorBox extends tableBox {

function errorBox($contents) {

$this->table_data_parameters = 'class="errorBox"';

$this->tableBox($contents, true);

}

}

// BOF MS2 compliancy addition added by MP-Webdesign for

class productListingBox extends tableBox {

function productListingBox($contents) {

$this->table_parameters = 'class="productListing"';

$this->tableBox($contents, true);

}

}

//EOF MS2 compliancy addition

?>

 

I do not see what makes that it takes place.

 

Thank you for your help(assistant)

 

 

 

Pcamille

IEUFLR2000

Link to comment
Share on other sites

  • 2 months later...

is there anyway to give a variable in the url of a slice gif for a background in the stylesheet.css ?

id like to change the 12 number by the variable that would give the number or the value of the thema used ...

 

TD.infoBoxBottomSlice {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
font-weight: bold;
text-align: center;
color: black;
background : url('../../../../images/infobox/thema/[COLOR=red][B]12[/B][/COLOR]/french/boxbottom_slice.gif');
}

MS2

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...