Results 1 to 3 of 3

question with BTS stylesheet link

This is a discussion on question with BTS stylesheet link within the Custom Mods and Hacks forums, part of the osCmax V2.5 Forums category; I created a new template and borrowed a code from fallback.... Code: <?php if (bts_select('stylesheets', $PHP_SELF)) { // if a ...

      
  1. #1
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    Indianapolis, IN
    Posts
    675
    Blog Entries
    1
    Rep Power
    28


    Question question with BTS stylesheet link

    I created a new template and borrowed a code from fallback....

    Code:
    <?php if (bts_select('stylesheets', $PHP_SELF)) { // if a specific stylesheet exists for this page it will be loaded ?>
    <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheets', $PHP_SELF)); // BTSv1.5 ?>">
    <?php
    } else { ?>
    <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','stylesheet.css')); // BTSv1.5 ?>">
    <?php  }...
    Is there a way to add an additional <link> tag to this bts select code without hard-coding it into main_page.tpl.php...or is it best to hardcode a <link> tag above or below this code?


    Just to get a general idea where I'm going with this...I'm experimenting with an additional stylesheet that will be used as an override, and attached to the template.


    thanks for any advice
    bh
    Last edited by blackhawk; 05-24-2011 at 06:09 AM.

  2. #2
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    Indianapolis, IN
    Posts
    675
    Blog Entries
    1
    Rep Power
    28


    Default Re: question with BTS stylesheet link

    when i try to do this...

    Code:
    <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheetb','stylesheetb.css')); // BTSv1.5 ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','stylesheet.css')); // BTSv1.5 ?>">
    i get an error in firebug that says...

    Code:
    <link rel="stylesheetb" type="text/css" href="Error: bts_select()! No template selected for template type: stylesheetb">
    any tips?

  3. #3
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    Indianapolis, IN
    Posts
    675
    Blog Entries
    1
    Rep Power
    28


    Default Re: question with BTS stylesheet link

    got it - it suppose to be...

    Code:
    <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','stylesheetb.css')); // BTSv1.5 ?>">
    removed the b in the 'stylesheet' area.

    *The overriding practice of an additional stylesheet is for testing purposes on my localhost. Once I add more specific classes to this new stylesheet, which "i hope" will overide the default css classes layed throughout the template, it'll then become my default and only stysheet.
    Last edited by blackhawk; 05-24-2011 at 06:22 AM.

Similar Threads

  1. Quick question on Top link
    By 14karat in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 03-02-2010, 06:59 PM
  2. how do i set a link active, if the link links to actual page
    By poschiman in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 06-03-2006, 04:10 PM
  3. stylesheet-css.css
    By samsin1 in forum osCMax v1.7 Installation
    Replies: 3
    Last Post: 09-16-2004, 02:21 PM
  4. stylesheet help
    By Dumb_Question in forum osCommerce 2.2 Modification Help
    Replies: 5
    Last Post: 04-13-2003, 07:59 PM
  5. Real question -bad link to admi/categories
    By pilot1 in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 04-13-2003, 09:02 AM

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
  •