Jump to content

mazza

Members
  • Content count

    220
  • Joined

  • Last visited

1 Follower

Profile Information

Recent Profile Visitors

5,872 profile views
  1. This is most likely the easiest to install and most thorough contribution ever. The only thing I found odd was that when 'Enter special character conversions' AND 'Remove all non-alphanumeric characters' were enabled, only the latter was applied. Maybe more logical way would be to first apply 'Enter special character conversions' for those characters that are useful on the URL (like ?=>a,?=>o,?=>A,?=>O) and after that bulletproof the rest with 'Remove all non-alphanumeric characters' ? If I understand the code correctly this function handles both of those tasks: function strip($string){ $pattern = $this->attributes['SEO_REMOVE_ALL_SPEC_CHARS'] == 'true' ? "([^[:alnum:]])+" : "([[:punct:]])+"; $anchor = ereg_replace($pattern, '', strtolower($string)); $pattern = "([[:space:]]|[[:blank:]])+"; $anchor = ereg_replace($pattern, '-', $anchor); if ( is_array($this->attributes['SEO_CHAR_CONVERT_SET']) ) $anchor = strtr($anchor, $this->attributes['SEO_CHAR_CONVERT_SET']); return $this->short_name($anchor); // return the short filtered name } # end function Any tips on how to make this happen ? I tried changinc the order of code but it not work.
  2. mazza

    [Contribution]osC FireFox Conqueries

    Sure. Note this is propably not compatible with normal installations as I have my shop set up very differently from the stock directory/url scheme. This is on categories.php when inserting an new product, but the principle is the same for other pages/actions too. First getting an hidden form field if URL variable "&mode=inplace" is set: <?php if ($_GET['mode'] == 'inplace') { ?> <input type="hidden" name="mode" value="inplace" /> <?php } ?> This needs to be repeated in the preview section if ($_POST['mode'] == 'inplace') { echo '<input type="hidden" name="mode" value="inplace" />'; } Finally after everything is inserted to database, last in the case statement 'update_product': Find tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id)); Replace with: if ($_POST['mode'] == 'inplace') { tep_redirect(HTTP_CATALOG_SERVER . 'product_info.php?products_id=' . $products_id); } else { tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_id)); }
  3. mazza

    [Contribution]osC FireFox Conqueries

    This is really handy. Thank you. I needed to modify the files slightly since I am using Chemo's ULTIMATE SEO contribution. If someone else needs these, here is the modification: Change: showif="products_id=([0-9]+)" To: showif="-p-([0-9]+)" I also added this to all files: <input name="mode" value="inplace"> This is to let admin side know that we are coming from catalog. For example on categories.php you could have redirect back to catalog side after editing category or product.
  4. mazza

    Purchase Without Account

    This little hack sends customers straight to order info instead of making him choose between the 3 options. if (PWA_ON == 'false') { require(DIR_WS_INCLUDES . FILENAME_PWA_ACC_LOGIN); } else { tep_redirect(tep_href_link(FILENAME_CHECKOUT, '', 'SSL')); }
  5. onload="SetFocus(); onload="HTMLArea.replaceAll()" This does not seem right. Try removing: onload="SetFocus();
  6. mazza

    Article Manager v1.0

    I got images working on articles manager. Just use the code from categories.php and add article_image filed to articles table.
  7. mazza

    Article Manager v1.0

    Corrected new_articles.php: <?php $articles_new_array = array(); $articles_new_query_raw = "select a.articles_id, a.articles_date_added, ad.articles_name, ad.articles_head_desc_tag, au.authors_id, au.authors_name, td.topics_id, td.topics_name from " . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id left join " . TABLE_AUTHORS . " au on a.authors_id = au.authors_id, " . TABLE_ARTICLES_DESCRIPTION . " ad where a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "' order by a.articles_date_added desc, ad.articles_name"; $articles_new_split = new splitPageResults($articles_new_query_raw, MAX_NEW_ARTICLES_PER_PAGE); ?> <?php if ($articles_new_split->number_of_rows > 0) { $articles_new_query = tep_db_query($articles_new_split->sql_query); ?> <div class="cbox" id="newa"> <h2><?php echo TEXT_NEW_ARTICLES; ?></h2> <table class="listing"> <?php while ($articles_new = tep_db_fetch_array($articles_new_query)) { ?> <tr> <td><?php echo '<a href="' . tep_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $articles_new['articles_id']) . '">' . $articles_new['articles_name']. '</a>' ?></td> <td class="c"><?php echo '<a href="' . tep_href_link(FILENAME_ARTICLES, 'tPath=' . $articles_new['topics_id']) . '">' . $articles_new['topics_name'] . '</a>'; ?></td> <td class="r"><?php echo tep_date_long($articles_new['articles_date_added']); ?></td> </tr> <?php } // End of listing loop echo '</table></div>'; } else { ?> <?php } ?>
  8. mazza

    Article Manager v1.0

    Something to get you going: New file (new_articles.php) in modules: <?php $articles_new_array = array(); $articles_new_query_raw = "select a.articles_id, a.articles_date_added, ad.articles_name, ad.articles_head_desc_tag, au.authors_id, au.authors_name, td.topics_id, td.topics_name from " . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id left join " . TABLE_AUTHORS . " au on a.authors_id = au.authors_id, " . TABLE_ARTICLES_DESCRIPTION . " ad where a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "' order by a.articles_date_added desc, ad.articles_name"; $articles_new_split = new splitPageResults($articles_new_query_raw, MAX_NEW_ARTICLES_PER_PAGE); ?> <?php if ($articles_new_split->number_of_rows > 0) { $articles_new_query = tep_db_query($articles_new_split->sql_query); ?> <div class="cbox" id="newa"> <h2><?php echo TEXT_NEW_ARTICLES; ?></h2> <table class="listing"> <?php while ($articles_new = tep_db_fetch_array($articles_new_query)) { ?> <tr> <td><?php echo '<a href="' . tep_href_link(FILENAME_ARTICLE_INFO, 'name=' . tep_spider_name($articles_new['articles_name']) .'&' . 'articles_id=' . $articles_new['articles_id']) . '">' . $articles_new['articles_name']. '</a>' ?></td> <td class="c"><?php echo '<a href="' . tep_href_link(FILENAME_ARTICLES, . 'tPath=' . $articles_new['topics_id']) . '">' . $articles_new['topics_name'] . '</a>'; ?></td> <td class="r"><?php echo tep_date_long($articles_new['articles_date_added']); ?></td> </tr> <?php } // End of listing loop echo '</table></div>'; } else { ?> <?php } ?> In index.php: <?php require(DIR_WS_MODULES . 'new_articles.php');?> Has some of my own html since I hate the bloat OSC generates.
  9. That would mean every file under the Catalog folder. ps. you might want to use this one: <link rel="stylesheet" type="text/css" href="<?php echo THEME_STYLE;?>">
  10. mazza

    Search engines eating my bandwidth

    There the new Bot from Microsoft that seems to be quite aggressive.
  11. I think this is the place that needs modification: // XXX: COULD USE MORE SANITY CHECKS $price = $product_info['products_price']; // DEFAULT PRICE
  12. BTW does this use 2.x or the 3.x ? I noticed that while 2.x made the same crappy mshtml all IE based javascript gimmicks use, the 3.x makes almost perfect xhtml capable html.
  13. In addition to having specials end with date: start with date by product quantities (like 100 sold with special price)
  14. Hmm... Maybe I should have used "unfortunately" instead of "too bad". My apologies if it sounded too negative. That was not my intention as this is one of those rare contributions that has potential to be useful to alot of shops. However the missing feature does limit its potential to shops with one language. I would be more than happy to help with the coding as far as I can.
  15. Looks real nice. Too bad it is not multilingual so we cannot use it :( Heres the sql-plan if you are planning to add this feature: # Links Manager for OSC v0.2 # # Table structure for table `exchange_links_categories` # CREATE TABLE exchange_links_categories ( link_category_id int(11) NOT NULL auto_increment, link_category_contact varchar(96) NOT NULL default '', link_category_email varchar(96) NOT NULL default '', link_category_rating int(11) default NULL, link_category_date datetime NOT NULL default '0000-00-00 00:00:00', link_category_status int(1) NOT NULL default '1', PRIMARY KEY (link_category_id) ) TYPE=MyISAM; # -------------------------------------------------------- # # Table structure for table `exchange_links_categories_description` # CREATE TABLE exchange_links_categories_description ( link_category_id int(11) NOT NULL auto_increment, link_category_name varchar(64) NOT NULL default '', language_id int(11) NOT NULL default '0', link_category_description text, PRIMARY KEY (link_category_id) ) TYPE=MyISAM; # # Table structure for table `exchange_links_links` # CREATE TABLE exchange_links_links ( link_category_id int(11) NOT NULL default '0', link_id int(11) NOT NULL auto_increment, link_url varchar(255) NOT NULL default '', link_contact varchar(96) NOT NULL default '', link_email varchar(96) NOT NULL default '', link_reciprocal varchar(255) NOT NULL default '', link_rating int(11) default NULL, link_date datetime NOT NULL default '0000-00-00 00:00:00', link_status int(1) NOT NULL default '1', PRIMARY KEY (link_id,link_category_id) ) TYPE=MyISAM; # # Table structure for table `exchange_links_links_description ` # CREATE TABLE exchange_links_links_description ( language_id int(11) NOT NULL default '0', link_id int(11) NOT NULL auto_increment, link_title varchar(255) NOT NULL default '', link_description text, PRIMARY KEY (link_id,link_category_id) ) TYPE=MyISAM;
×