Jump to content

Syeager

Members
  • Content count

    30
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Steve Yeager
  • Location
    New Jersey, USA
  • Website
  1. Syeager

    Header Tags Again

    Sorry for this topic, if it was already covered, but I did search, read many posts and I am still confused. I volunteered to help my friend, who has OSC 2.2 with STS (not sure what version). I noticed he doesn't have any tags like "keywords" and "description". And I wander what will be the easiest way to add them? I will need them to appear only on the main page. If they appear on all pages, it will be even better. But so far I couldn't find a single file where to put them. Any help?
  2. Syeager

    [contribution] Simple Template System (sts)

    At about line 300 in catalog/index.php you will find something like <?php } else { // default page ?> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> You can change width to some other percentage or to some fixed pixel size. However, people may have different display sizes, so 100% usually will accommodate most of them. It simply uses any width available. To check how it works on other display resolutions you can resize your browser window. And if you want to change your flexible site layout to some fixed size, you will have to change 100% to something else in many other places.
  3. Syeager

    [contribution] Simple Template System (sts)

    You can check following link http://www.phpit.net/faq/register-globals-on/ or just Google for register_globals to find more inforation. This part of PHP configuration and you may not have access to it.
  4. Syeager

    [contribution] Simple Template System (sts)

    When you scroll down and see a list of files, on the right side there will be a little pix of the computer with a little arrow pointing down to it. It means download. Honestly, it's looks nice, but not 100% obvious to all people. Just a single word DOWNLOAD would be much better. Or perhaps a bigger bigger picture :)
  5. Syeager

    [contribution] Simple Template System (sts)

    Bill, I understand it completely. However in IPB templates are stored in the database and can be edited using built in editor in the control panel without modifying any file via FTP. And changes can be reverted to prior version with a click of the mouse. It's just a different design concept. This is just something to consider for future versions of osC.
  6. Syeager

    [contribution] Simple Template System (sts)

    Also templates already contain tags that are something similar to $template_name, so you have a complete control of positioning elements on your site. I wish they will do something like this with osC, but I understand it will be a complete redesign and I doubt it will ever happen. :(
  7. Syeager

    [contribution] Simple Template System (sts)

    It's a little off topic, but I like how they do it in Invision Power Board - it's Bulletin Board system. They store all the HTML templets for every component in the DB, then crate a disk cache that is actually used during the access. Changes to HTML can be done via built in admin editor and you can always roll back in a matter of seconds. It's quite different design idea. In most cases you don't even have to edit your php files, unless there are some changes in logic. It's unlike osC, where every piece of HTML is hard coded into PHP files.
  8. Syeager

    Featured Product Support v1.5.4

    This file - ../boxes/featured.php is included in 3 places as per instructions that came with Featured Products. In ../sts_inc/sts_user_code.php, ../sts_inc/sts_column_left_php and ../includes/filenames.php. Perhaps I can remove the call from one of the places, but making dummy file was easier. Now I just have to figure out why it's called. And may as well learn something about program logic and structure.
  9. Syeager

    Featured Product Support v1.5.4

    Bill,I did recheck once again line by line every modification to files. Everything was OK. Then I started putting trace comments into suspected files like <!-- this calls that in this file --> and eventually I traced it down to ../includes/boxes/featured.php. Then I replaced this file with the dummy empty file like "<$php $>" and the problem went away. Apparently this file is included when it shouldn't. I still have to figure out what piece of code includes it and why. File itself puts out Featured box unconditionally - there are no ifs there. But debugging PHP is a real pain in the neck. Only way I know is adding trace comments and looking at resulting HTML. But again, it works correctly with STS disabled without any changes. And making dummy file for boxes/featured.php solves my problem.
  10. Syeager

    Featured Product Support v1.5.4

    Bill, It's not as easy as it looks. I have no $featuredbox tag. And I have only 2 templates at this time - index.php.html and sts_template.html. And they are default as came with STS. I only removed some boxes that I don't use now. If I remove these files, Featured Products woks as expected (but I have error on top of the page that sts_template.html is missing). So it's a problem related to STS. For some reason it includes both Featured Product boxes in $content tag. One for a single random item at the beginning and one with the list at the end. If I remove $content, then nothing shows at all as it should be. So it's they way STS and Featured products interact. It's happening when $content is processed. Perhaps I made a mistake when modifying files, but I checked every line several times and didn't find any errors. It acts like $featuredbox is always there at the beginning of $content. And I can't figure out what portion of code is responsible for this. May be there's some missing "if" or something.
  11. Syeager

    Featured Product Support v1.5.4

    I have a slightly different problem. I have 2 featured boxes! One on the bottom of the main page showing multiple products as it should be (instead of new products) and another featured box on top of the middle of the content area showing only 1 random featured product on every page and it's takes full width with one picture in the middle. I use osC 2.2 RC2, latest STS and latest update to Featured products. First I installed previous one with that big .DOC file that I followed very carefully. Then I updated PHP from the last download and added couple of things to DB as instructed. I can turn it on and off in admin, add/remove/switch on and off products, etc. Bottom Featured area works as it should be, but I have no clue how to get rid of the top box. And I have no $featuredbox tag anywhere in my code. Any help?
  12. Syeager

    [contribution] Simple Template System (sts)

    Thanks Bill. This will work, of course. But I was just wandering if something like this can be done by STS alone. Like replacing "new products" with something else. Like with some particular category. However I couldn't find a placeholders for this. And again, I am just starting learning STS and osC. Thing is that the shop was made and named after one particular type of products and now they started to add stuff that doesn't fall into mainline and these things are showing up on the main page :) And, of course, they want some products to be shown on the main page, so I can't just remove it. So, perhaps, "Featured Products" is the best solution. And I am just looking for the easiest way to fix it.
  13. Syeager

    Pop Up Mouseover Images

    Just a note about popup hack from Apple posted above. If you are using category column listing addon, you need to modify product_listing_col.php instead of original product_listing.php. Also you need to add [$x] after every instance of $listing in modified portion of the code. One problem with this Apple popup is that it always positioning popup to the right and bottom of the thumbnail image and it increases the size of the page and some pop ups extend beyond the visible browser window, so you need to scroll to see them. I'd like them to be always positioned within the browser window. So if thumbnail is on the right, popup is to the left. If on the bottom - then popup is up.
  14. Syeager

    [contribution] Simple Template System (sts)

    I am just starting to use STS. What I would like to do is to replace "new products" listing on main page with some listing I create myself. Perhaps some hidden category. Though it can still be called "new products". Can I use STS to do it?
  15. Syeager

    [contribution] Simple Template System (sts)

    Can someone tell me how popup image works? Or just point me to some page that's using it to look at? I couldn't really figure it out from the STS docs. What I'd like to to is to have larger image poped up in the same browser window when hovering mouse over a thumbnail in the category list. I've seen it in some osC sample pages. Is this STS or something else?
×