scchristie

Members
  • Content count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About scchristie

Profile Information

  • Real Name
    Stewart Christie
  • Location
    London
  1. I have developed one recently but I'll need to add a little but of category-mapping code to make it work on every system. Could you remind me in a few weeks? I'm busy until mid-November.
  2. I'll be revisiting this later in the week and hope to have a new version ready. Bear with me!
  3. Here's the solution to the 'Buy Now' button problem when your cart is not set to display after clicking. In catalog/includes/modules/xsell_products.php at around Line 51 replace the "$info_box_contents["... statement with the following. $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $xsell['products_image'], $xsell['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']) . '">' . $xsell['products_name'] .'</a><br>' . $xsell_price. '<br><a href="' . tep_href_link(basename($PHP_SELF), 'action=buy_now&cPath=' . $HTTP_GET_VARS['cPath'] . '&xsell_id=' . $xsell['products_id'] . '&products_id=' . $product_info['products_id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY . $xsell['products_name'] . TEXT_NOW) .'</a>'); In catalog/includes/application_top.php find the "case 'buy_now' :" statement and replace with case 'buy_now' : if (isset($HTTP_GET_VARS['xsell_id'])) { $products_id_xs = $HTTP_GET_VARS['xsell_id']; } else { $products_id_xs = $HTTP_GET_VARS['products_id']; } if (isset($products_id_xs)) { if (tep_has_product_attributes($products_id_xs)) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_id_xs)); } else { $cart->add_cart($products_id_xs, $cart->get_quantity($products_id_xs)+1); } } if (isset($HTTP_GET_VARS['xsell_id'])) { $link_params = 'cPath=' . $HTTP_GET_VARS['cPath'] . '&products_id=' . $HTTP_GET_VARS['products_id']; } else { $link_params = tep_get_all_get_params($parameters); } tep_redirect(tep_href_link($goto, $link_params)); break; 'Buy now' will now act correctly with both types of basket and will also return the customer to the correct breadcrumb trail if you have mirrored products. If someone else wants to test this works on their setup too and get back to me I will post an update to the contribution.
  4. Ah, I see what you mean - this was the SQL from the original package. It shouldn't pose too much of a problem in most installations, but you can try the following:- CREATE TABLE forum_post ( post_id int(10) default NULL auto_increment, topic_id int(10) NOT NULL default '0', poster varchar(50) NOT NULL default ' ', post_time varchar(20) default NULL, email varchar(75) NOT NULL default ' ', web varchar(75) NOT NULL default ' ', PRIMARY KEY (post_id), KEY topic_id(topic_id), KEY poster_id(poster) ) TYPE=MyISAM; CREATE TABLE forum_postext ( post_id int(10) NOT NULL default '0', post_text text, PRIMARY KEY (post_id) ) TYPE=MyISAM; CREATE TABLE forum_smile ( id int(10) default NULL auto_increment, code varchar(50) default NULL, smile_url varchar(100) default NULL, emotion varchar(75) default NULL, PRIMARY KEY (id) ) TYPE=MyISAM; INSERT INTO forum_smile VALUES (1, ':D', 'icon_biggrin.gif', 'Very Happy'); INSERT INTO forum_smile VALUES (2, ':-D', 'icon_biggrin.gif', 'Very Happy'); INSERT INTO forum_smile VALUES (3, ':grin:', 'icon_biggrin.gif', 'Very Happy'); INSERT INTO forum_smile VALUES (4, ':)', 'icon_smile.gif', 'Smile'); INSERT INTO forum_smile VALUES (5, ':-)', 'icon_smile.gif', 'Smile'); INSERT INTO forum_smile VALUES (6, ':smile:', 'icon_smile.gif', 'Smile'); INSERT INTO forum_smile VALUES (7, ':(', 'icon_frown.gif', 'Sad'); INSERT INTO forum_smile VALUES (8, ':-(', 'icon_frown.gif', 'Sad'); INSERT INTO forum_smile VALUES (9, ':sad:', 'icon_frown.gif', 'Sad'); INSERT INTO forum_smile VALUES (10, ':o', 'icon_eek.gif', 'Surprised'); INSERT INTO forum_smile VALUES (11, ':-o', 'icon_eek.gif', 'Surprised'); INSERT INTO forum_smile VALUES (12, ':eek:', 'icon_eek.gif', 'Suprised'); INSERT INTO forum_smile VALUES (13, ':-?', 'icon_confused.gif', 'Confused'); INSERT INTO forum_smile VALUES (14, ':???:', 'icon_confused.gif', 'Confused'); INSERT INTO forum_smile VALUES (15, '8)', 'icon_cool.gif', 'Cool'); INSERT INTO forum_smile VALUES (16, '8-)', 'icon_cool.gif', 'Cool'); INSERT INTO forum_smile VALUES (17, ':cool:', 'icon_cool.gif', 'Cool'); INSERT INTO forum_smile VALUES (18, ':lol:', 'icon_lol.gif', 'Laughing'); INSERT INTO forum_smile VALUES (19, ':x', 'icon_mad.gif', 'Mad'); INSERT INTO forum_smile VALUES (20, ':-x', 'icon_mad.gif', 'Mad'); INSERT INTO forum_smile VALUES (21, ':mad:', 'icon_mad.gif', 'Mad'); INSERT INTO forum_smile VALUES (22, ':P', 'icon_razz.gif', 'Razz'); INSERT INTO forum_smile VALUES (23, ':-P', 'icon_razz.gif', 'Razz'); INSERT INTO forum_smile VALUES (24, ':razz:', 'icon_razz.gif', 'Razz'); INSERT INTO forum_smile VALUES (25, ':oops:', 'icon_redface.gif', 'Embaressed'); INSERT INTO forum_smile VALUES (26, ':cry:', 'icon_cry.gif', 'Crying (very sad)'); INSERT INTO forum_smile VALUES (27, ':evil:', 'icon_evil.gif', 'Evil or Very Mad'); INSERT INTO forum_smile VALUES (28, ':roll:', 'icon_rolleyes.gif', 'Rolling Eyes'); INSERT INTO forum_smile VALUES (29, ':wink:', 'icon_wink.gif', 'Wink'); INSERT INTO forum_smile VALUES (30, ';)', 'icon_wink.gif', 'Wink'); INSERT INTO forum_smile VALUES (31, ';-)', 'icon_wink.gif', 'Wink'); CREATE TABLE forum_topic ( topic_id int(10) default NULL auto_increment, topic_title varchar(100) default NULL, topic_poster varchar(50) NOT NULL default ' ', topic_time varchar(20) default NULL, topic_views int(10) NOT NULL default '0', topic_replies int(10) NOT NULL default '0', topic_last_post_id int(10) NOT NULL default '0', PRIMARY KEY (topic_id), KEY topic_last_post_id(topic_last_post_id) ) TYPE=MyISAM; I hope this helps!
  5. Is it working on the catalog side, i.e. can you post new threads and replies? If not, check your SQL tables through phpMyAdmin to see if the tables have been created correctly by the query in the install package. The fact that it is getting as far as the 'index' link points to an SQL problem. Forum layout is controlled by the standard stylesheet.css and the number of topics per page is controlled by your search result settings for the moment. All of the text is configurable from the catalog/includes/languages/english/forum.php file. You may want to create a /french/forum.php file if that is the main language of your site. I will be adding more features to the admin side on the next release - for the moment you can only use this to edit and delete posts.
  6. For the moment I would change the admin/includes/boxes/tools.php file to read something like this... <!-- tools //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_TOOLS, 'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools')); if ($selected_box == 'tools') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_BACKUP) . '" class="menuBoxContentLink">' . BOX_TOOLS_BACKUP . '</a><br>' . '<a href="' . tep_href_link('forum_admin.php') . '" class="menuBoxContentLink">' . BOX_TOOLS_FORUM . '</a><br>' . '<a href="' . tep_href_link(FILENAME_BANNER_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_BANNER_MANAGER . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CACHE) . '" class="menuBoxContentLink">' . BOX_TOOLS_CACHE . '</a><br>' . '<a href="' . tep_href_link(FILENAME_DEFINE_LANGUAGE) . '" class="menuBoxContentLink">' . BOX_TOOLS_DEFINE_LANGUAGE . '</a><br>' . '<a href="' . tep_href_link(FILENAME_FILE_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_FILE_MANAGER . '</a><br>' . '<a href="' . tep_href_link(FILENAME_MAIL) . '" class="menuBoxContentLink">' . BOX_TOOLS_MAIL . '</a><br>' . '<a href="' . tep_href_link(FILENAME_NEWSLETTERS) . '" class="menuBoxContentLink">' . BOX_TOOLS_NEWSLETTER_MANAGER . '</a><br>' . '<a href="' . tep_href_link(FILENAME_SERVER_INFO) . '" class="menuBoxContentLink">' . BOX_TOOLS_SERVER_INFO . '</a><br>' . '<a href="' . tep_href_link(FILENAME_WHOS_ONLINE) . '" class="menuBoxContentLink">' . BOX_TOOLS_WHOS_ONLINE . '</a>'); } $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- tools_eof //--> I will be addressing the naming issues when I do the full updates of the admin scripts. If you spot any bugs give me a shout - I'm currently using this in a dev environment myself before my new site goes live.
  7. I have started some enhancements to the excellent and very simple 'Forum for OSC'. This is very much a work in progress and my first contribution. All comments welcome. http://www.oscommerce.com/community/contributions,980 osC Forum v0.3.1 - 17 Feb 2006 ------------------------------------- * Fixed a slight bug in the admin side - I had forgotten to update the edit post functions. * Updated the install instructions for both clean and upgrade installs. Still to come: * Error checking on forms using messagestack * 'Alert' button to report dubious posts * Allow option to receive email if your post is replied to. * Fully integrate the Admin backend in osC style & allow more options osC Forum v0.3 - 16 Feb 2006 ----------------------------------- * Admin script now runs from the Admin side of the server * Customers must be registered and logged-in to create threads and replies. * Email addresses are now hidden, but registered customers can still contact each other. * osC style buttons added for the links. * Customer side now runs from one script - forum.php with the definitions in the language file. To add a language just alter /includes/languages/*your-language*/forum.php INSTALL ---------- If you have an old version installed just copy over your old files and delete the catalog/forum_*.php files from your server