Results 1 to 10 of 10

Template selection

This is a discussion on Template selection within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi, This might sound like an incredibly stupid question, but how do I select the template I want to use ...

      
  1. #1
    New Member
    Join Date
    Aug 2005
    Posts
    9
    Rep Power
    0


    Default Template selection

    Hi,

    This might sound like an incredibly stupid question, but how do I select the template I want to use from the administration control panel?

    I know where and how to do it in the Reloaded version of OSC, but OSCMax is quite confusing to me!

    Also, I am assuming the method of template creation is different to the method used on Reloaded? Are there any FAQs on creating them in OSCMax?


    Thanks!

  2. #2
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    Default RE: Template selection

    HTH
    Neil
    www.12website.com

    "You can have everything in life that you want if you will just help enough other people get what they want."
    Zig Ziglar

  3. #3
    New Member
    Join Date
    Sep 2005
    Posts
    10
    Rep Power
    0


    Default RE: Template selection

    What are the differences in the supplied templates? How do we know which one to use at the start? thanks

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,500
    Rep Power
    567


    Default RE: Template selection

    To specifically answer your question about changing the default template, it is really easy:

    In the admin under Configuration, click on Default Template Directory and change the directory name to the actual teplate directory name you want to use. It is set by default to aabox, but you can change it to osC, or whatever template you are using.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    New Member
    Join Date
    Sep 2005
    Posts
    10
    Rep Power
    0


    Default being more specific

    What I mean to ask is whether or not the different templates affect the fuctionality of the program or do they all work the same, just look different. I am not familiar with templates, I customized a stock osc site from scratch as my first project years ago so all these fanciful features have me a little confused at the start of a new project using this great package..

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,500
    Rep Power
    567


    Default RE: being more specific

    Pick whichever template you want. There is no difference in function, they just look different. They are samples for you to check out, but really it does not matter which you start with...
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    New Member
    Join Date
    Sep 2005
    Posts
    10
    Rep Power
    0


    Default do i need to modify fallback/content with css-fluid

    am I supposed to be modifying the files in templates/fallback/content even when Im using the other templates. I dont understand why there is no content folder in the other template folders.

  8. #8
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default RE: do i need to modify fallback/content with css-fluid

    There is ONLY one file you really need to change - main_page.tpl.php and the CSS. IF and ONLY IF you need to change something else that is very specifice then COPY that file over to your template ... DO NOT CHANGE THE "fallback" unless your adding a mod....
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  9. #9
    New Member
    Join Date
    Aug 2005
    Posts
    9
    Rep Power
    0


    Default

    I've tried searching, to no avail.

    In STS, I've found you keep each template's images (info buttons etc) in an images folder in that template's folder.

    I can't find any similar system for BTS- are you just expected to keep manuaully replacing images in the default /image folder each time you change templates?

  10. #10
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default

    I have found the instruction do to so. Strange that it has not BEEN merged into the core of BTS....YET...

    Maybe it will be added into next version for osCMax...

    Intructions:
    How to add different images, buttons etc to each theme with BTS. (In 4 easy steps:

    All default graphics normally can be found in
    /catalog/includes/languages/< language >/images/
    /catalog/includes/languages/< language >/images/buttons/...
    /catalog/includes/languages/< language >/images/icon.gif

    If you theme should use default images don't copy anything.

    =================================================
    1. Copy all folders from /catalog/includes/languages/ to your template folder

    You should have this:
    /catalog/templates/< template folder >/< language 1>/images/buttons/...
    /catalog/templates/< template folder >/< language 1>/images/icon.gif
    ...
    /catalog/templates/< template folder >/< language N>/images/buttons/...
    /catalog/templates/< template folder >/< language N>/images/icon.gif

    =================================================
    2. Delete unneeded files with language strings
    /catalog/templates/< template folder >/< language N>/*.php

    =================================================
    3. Open /catalog/includes/functions/html_output.php

    FIND THIS-(Aprox line 309):

    Code:
    ////
    // Output a function button in the selected language
      function tep_image_button($image, $alt = '', $parameters = '') {
        global $language;
    
        return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters);
      }
    REPLACE WITH:

    Code:
    ////
    // Output a function button in the selected language
      function tep_image_button($image, $alt = '', $parameters = '') {
        global $language;
        if(file_exists($tplDir . $language .'/images/buttons/' . $image)) {
            return tep_image($tplDir . $language .'/images/buttons/' . $image, $alt, '', '', $parameters);
        } else {
            return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters);
        }
      }

    FIND THIS-(Aprox line 294):

    Code:
    ////
    // The HTML form submit button wrapper function
    // Outputs a button in the selected language
      function tep_image_submit($image, $alt = '', $parameters = '') {
        global $language;
    
        $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';
    
        if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';
    
        if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;
    
        $image_submit .= '>';
    
        return $image_submit;
      }
    REPLACE WITH:

    Code:
    ////
    // The HTML form submit button wrapper function
    // Outputs a button in the selected language
      function tep_image_submit($image, $alt = '', $parameters = '') {
        global $language;
    
        if(file_exists($tplDir . $language. '/images/buttons/' . $image)) {
            $image_submit = '<input type="image" src="' .
                tep_output_string($tplDir . $language. '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';
        } else {
            $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language .
                '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';
        }
    
        if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';
    
        if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;
    
        $image_submit .= '>';
    
        return $image_submit;
      }
    4. For different language icons open /catalog/includes/boxes/languages.php
    FIND THIS-(Aprox line 33)

    Code:
      while (list($key, $value) = each($lng->catalog_languages)) {
        $boxContent .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
      }
    REPLACE WITH:
    Code:
      while (list($key, $value) = each($lng->catalog_languages)) {
        if(file_exists($tplDir . '/'.$value['directory'] . '/images/' . $value['image'])) {
            $boxContent .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) .
                'language=' . $key, $request_type) . '">' . tep_image($tplDir . '/'. $value['directory'] . '/images/' . $value['image'],
                $value['name']) . '</a> ';
        } else {
            $boxContent .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) .
                'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' .
                $value['image'], $value['name']) . '</a> ';
        }
      }
    Done!
    Change graphics as needed - next time you change the template it will also use the changed graphics if available also!

Similar Threads

  1. Price Updating Dynamically with Drop-Down Selection
    By lisasher in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 06-07-2005, 02:41 PM
  2. Products Attributes - drop-down menu for product selection
    By SuperPickle in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-11-2004, 10:24 PM
  3. country code selection?
    By rabbit116 in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 03-30-2004, 12:57 PM
  4. Category Selection Buttons
    By auntie22 in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-30-2004, 11:14 AM
  5. dynamic character selection
    By dan000 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 11-18-2003, 02:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •