Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

rrrhythm

Archived
  • Posts

    185
  • Joined

  • Last visited

Posts posted by rrrhythm

  1. In working on my shop I noticed that the code is full of this:

     

     <?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>

     

    This could easily be replaced with the simpler:

     <p>

     

    That would give approximately the same amount of white space, but has the advantage of being fluid. If someone is sight impaired (or even just over 40) and they increase the font size, then the whitespace will also increase accordingly, which if you think about it, is how it should really be.

     

    rj

  2. ...

     

    When using Firefox (2.0.0.3, Mac OSX), if I click on a small product image, the popup window pops up but it is blank. The large image is not loaded. If I close the popup window and re-try, the large image loads properly.

     

    This happens only the first time I click on a small image for a specific product. If I go to another page and return to this product, the image will load on the first click. If I go to another product, same problem again....

     

     

    this is somehow related to whether the image is cached, because you can re-create the problem by clearing your cache.

     

    i just solved this exact same problem on my site. the trick was to get rid of the width and height assignment in the javasript function, which lets them be set automatically.

     

    in product_info.php, find:

     

    <script language="javascript"><!--

    function popupWindow(url) {

    window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res

    izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')

    }

    //--></script>

     

    and delete the bit in red.

     

    if all your big images happen to be the same size, you could replace the '100' with the actual pixel height/width of your big images.

     

    cheers,

    rj

  3. anyone know how to make Image Magic give valid HTML?

     

    problem that i'm having is that Image Magic outputs image code like this:

     

    <img src="imagemagic.php?img=images/smallashiko.jpg&w=100&h=150&page=" >

     

    and the ampersands in the source value are coming up invalid

     

    according to the w3:

    Warning Line 141 column 235: cannot generate system identifier for general entity "w".

     

    ...magic.php?img=images/smallashiko.jpg&w=100&h=150&page=" width="100" height="1

     

    An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon. The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

     

    as you can see, the bit in red is my problem.

     

    help? anyone?

  4. While I like the Header Tags contrib, I found the behaviour of it confusing, with regard to the HTTA, HTKA, etc radio buttons, and the explanation included didn't help either.

     

    So I took the time to analyze it, and make a a chart of what it does. Note this is only in reference to index.php Also note there are two scenarios for index.php: either you're at the top (default) level, or you're at the category (or subcategory) level. In the following Index Title = whatever you enter in "Index Title" field on the Header Tags Text Control page, Default Title = whatever you enter into "Default Title" field on same page. Results are ordered at they will be on the page, and things that are added when a button is on are in blue text.

     

    All OFF:

    Top:

    Title = Index Title

    Key = Index Key

    Descrip = Index Descrip

    Category Level (Sub-Categories are similar with their own tags)

    Title = Category Title

    Key = Category Key

    Descrip =Category Descrip (short)

    HTTA ON: Adds Default Title

    Top:

    Title = Index Title - Default Title (note: it adds the spaces and the dash between Index Title and Default Title

    Key = Index Key

    Descrip = Index Descrip

    Category Level

    Title = Category Title - Default Title

    Key = Category Key

    Descrip =Category Descrip

    HTDA ON: Adds Default Description

    Top:

    Title = Index Title

    Key = Index Key

    Descrip = Index Descrip Default Description

    Category Level (Sub-Categories are similar with their own tags)

    Title = Category Title

    Key = Category Key

    Descrip =Category Descrip (short) Default Description

    HTKA ON: Adds Default Key to Top, Index Key to Categories

    Top:

    Title = Index Title

    Key = Default Key, Index Key (Note it adds the comma and space)

    Descrip = Index Descrip

    Category Level

    Title = Category Title

    Key = Category Key, Index Key (Note it adds the comma and space)

    Descrip =Category Descrip

    HTCA ON: Adds Index Title, Key and Descrip to Categories

    Top:

    Title = Index Title

    Key = Index Key

    Descrip = Index Descrip

    Category Level (Sub-Categories are similar with their own tags)

    Title = Category Title Index Title

    Key = Category Key, Index Key

    Descrip =Category Descrip (short) Index Descrip

    ALL ON:

    Top:

    Title = Index Title - Default Title

    Key = Default Key, Index Key

    Descrip = Index Descrip Default Description

    Category Level

    Title = Category Title Index Title - Default Title

    Key = Category Key, Default Key Index Key (comma between Cat and Default, not between Default and Index)

    Descrip =Category Descrip Index Descrip Default Descrip

     

    Why this particular ordering and logic, I'm not sure, but that's what it is.

     

    also, I referenced "Category Descrip (short)". That's because when you edit a category, there are two fields, a short one marked "Header Tags Category Description" and a long one at the bottom marked "Header Tags Categories Description". On the install i did, this longer field wasn't originally used for anything, but I used it to put a description of each category at the top of that page.

     

    cheers,

    rj

  5. Am I correct in understanding that Active Countries replaces the State text input with a drop down menu?

     

    if so, is there any easy way to not do that (like skipping all the steps in the Install marked "Enforce State Drop-down")?

     

    thanks for the help

     

    rj

  6. Can anybody point me towards how to modify the date listed in catalog/newsdesk_index.

     

    where i click on a news category, it gives me a table with all the news in that category, and the date includes the time as well as the date. in my case, it's pretty irrelevant that it was published at 12:03:16, so i just want it to show the date, not the time.

     

    but i can't yet figure out where the relevant code is.

     

    help? any pointers?

     

    thanks

    rj

  7. "There are no news articles in this category"

     

    Oh, but there are!

     

    ok. i've done my best to search through this forum, but still haven't found the answer to my problem. i've done a fresh install of the NewsDesk 1.48, into a fresh install of osC. everything is working fine, except for the News Categories, which work for the stock news articles included with NewsDesk, but don't seem to include the articles that i have added myself.

     

    the crazy thing, is that the articles show up fine on my /catalog/index.php, like they should. i can click the "read more" and pull them up fine. AND, in the News Categories box, the little index showing how many articles there are in the category works and shows the right number, but it doesn't list them with i click on that category.

     

    this is a previous post i found that seemed related, but desa80 never got a response as far as i could tell.

     

    Hi everybody!

    My problem is that when i click on my NEWS category : "newsdesk_index.php?newsdeskPath=4" no news are showing, but this text:

    "There are no news articles in this category".

    How to fix this?

    any help will be appreciated.

×
×
  • Create New...