Jump to content

8T8T

Members
  • Content count

    17
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Sky Kwan
  • Location
    Hong Kong
  1. Oops! >_< I use Firefox and and the popup works. However, it doesn't work in IE and Opera. I appreciate if someone can help. Thanks.
  2. Thanks Nancy for your inspiration. I use instead the image as the popup. The revised contribution: CSS Manufacturers Box with Image Popup See the result: www.8t8t.com
  3. Try the modifications and it should come up as the top 2 columns (short before/after mouse over). The height of the infobox is not affected.
  4. I should say table 'manufacturers', in mysql. 'date_added' is one of the field in table 'manufacturers'. To store the popup text you want, you need to insert a field in table 'manufacturers'. For the popup text input, you also have to make modifications on the admin side. That requires some work.
  5. Good idea! You need to add a field to database manufacturers, like manufacturers_description or else. Here I use date_added as an example. in catalog/includes/boxes/manufacturers.php find: $manufacturers_query = tep_db_query("select distinct m.manufacturers_id, m.manufacturers_name from " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS . " p where m.manufacturers_id = p.manufacturers_id AND p.products_status <> 0 order by m.manufacturers_name"); replace with: $manufacturers_query = tep_db_query("select distinct m.manufacturers_id, m.manufacturers_name, m.date_added from " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS . " p where m.manufacturers_id = p.manufacturers_id AND p.products_status <> 0 order by m.manufacturers_name"); find: $manufacturers_list .= '<tr><td>' . '</td><td class="infobox_manufacturers_contents" valign="middle"><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . $manufacturers_name . '</a></td></tr>'; replace with: $manufacturers_list .= '<tr><td>' . '</td><td class="infobox_manufacturers_contents" valign="middle"><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . $manufacturers_name . '<span>' . $manufacturers['date_added']. '</span></a></td></tr>'; in catalog/stylesheet.css change the height of the infobox div.manufacturers { background: #fec324; color: #5500cc; padding: 0 0 1px 0; margin: 0; border: 0; height: 178px; /* height of the manufacturers box */ overflow: auto; } add some space at the bottom .infobox_manufacturers { background: white; font: 10px Verdana,Arial,sans-serif; padding-bottom: 30px; } add below to the bottom for the text pop hover div.manufacturers a span { display: none; } div.manufacturers a:hover span { display: block; position: absolute; top: 364px; left: 0; width: 175px; padding: 5px 0 5px 12px; margin: 10px; z-index: 100; color: #555; background: transparent; font: Verdana,Arial,sans-serif; text-align: left; } or simply replace the original code /* CSS Manufacturers Box start */ div.manufacturers { background: #fec324; color: #5500cc; padding: 0 0 1px 0; margin: 0; border: 0; height: 178px; /* height of the manufacturers box */ overflow: auto; } div.manufacturers a { display: block; padding: 2px 2px 2px 5px; border-left: 10px solid #a61818; background-color: #c83a24; color: #f5ccbe; text-decoration: none; width: 100%; } html>body div.manufacturers a {width: auto;} div.manufacturers a:hover { background-color: #ff2200; border-left: 10px solid #be1818; color: #ffffff; } .infobox_manufacturers_heading { background: #fec324; color: #dd0000; border-right: 10px solid #fe8b24; height: 20px; font: bold 10px Verdana,Arial,sans-serif; padding-left: 10px; } .infobox_manufacturers { background: white; font: 10px Verdana,Arial,sans-serif; padding-bottom: 30px; } .infobox_manufacturers_contents { background: #5d1c1c; font: 10px Verdana,Arial,sans-serif; border-top: 1px solid #ec6034; border-bottom: 1px solid #711111; } div.manufacturers a span { display: none; } div.manufacturers a:hover span { display: block; position: absolute; top: 364px; left: 0; width: 175px; padding: 5px 0 5px 12px; margin: 10px; z-index: 100; color: #555; background: transparent; font: Verdana,Arial,sans-serif; text-align: left; } /* CSS Manufacturers Box end */ The result: http://8t8t.com/demo/index.php
  6. This contribution enables the Manufacturers infobox to be modified by CSS stylesheet. No javascript used. It is easy to install. CSS Manufacturers Box Live demo: http://8t8t.com (list of artists) Enjoy it! :)
  7. 8T8T

    [contribution] "osC_GiftWrap_v1.0"

    I'm using Paypal as payment option. When sending the amounts to Paypal's payment page, the GiftWrap fee is added to the Price Total. Is it possible to add the GiftWrap fee to Shipping and Handling instead of Price Total? Thanks, Danny
  8. Hi Wing Add a number of sequence you want in front of the questions and they will be sorted in order. - - - - - Besides, I get an error if clicking the search button without entering anything. Can somebody help? Thanks. Parse error: parse error in /home/.zabarsybianheater/eighty8/8t8t.com/catalog/faqdesk_search_result.php on line 211
×