Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

paulc010

Archived
  • Posts

    8
  • Joined

  • Last visited

Everything posted by paulc010

  1. Does anyone/has anyone looked at ways to remove parameters from urls? Say for example you have an SEO url indexed in google as www-domain-com/myproduct-p-1.html and as www-domain-com/myproduct-p-1.html?language=en&currency=GBP It would be nice to perform a 301 redirect on the latter if the former is the default url for that language and currency and prevent i.e. google from deciding on the canonical. Does this even make sense? Paul
  2. I have to confess that since posting the above I've started using the link below on my site, so am unlikely to continue contributing to this. http://www.addthis.com/bookmark.php There are some times that reinventing the wheel just isn't worth the effort..... Paul
  3. You can enter the details for a new link by clicking the new link button in the Links Manager II admin page. Enter the contact details as your own, but the url and description to match the site you wish to link to. Turn off link checking for that url - it isn't going to work until your link is approved anyway. You then just look up the appropriate link page url to feed to the other site. Simple ;) Paul
  4. :-" as I was saying I'm sure it's something obvious that I'm missing..... I have no idea why it was set to false, but it was. :blush: Why is it that we always miss the obvious? The upside is that in the meantime I've recoded the feed to produce the correct urls in the first place, and deleted/upoaded the products. So much for a quiet Sunday afternoon! Many, many thanks for pointing out my stupidity :thumbsup: Paul
  5. I've got a bit of a puzzler here, but I'm sure I'm not seeing the answer for staring at the problem, so here goes! I used a contribution for google base which listed the urls in non-seo format. Now I made the assumption that when they hit my server they would get a 301 redirect to the correct name.... but they don't. I now have a shed load of urls sitting out there that display the correct page (which is fine) but are duplicates of the seo'd pages you get when crawling the web site. Any ideas on how I can redirect the malformed urls? If I block product_info.php in robots.txt, would that at least zap any that google has indexed, or break the proper ones too? An example is: product_info.php?language=en&currency=GBP&products_id=1633 Which should be: silly-billyz-play-blanket-p-1633.html http://www.greatgiftsgalore.co.uk/ has been removed from the above! The thing is that apart from this everything works fine. I was sure that these would get redirected automatically, but it doesn't seem to be the case, unless I've changed something..... V2.1d and several other versions tried, but to no avail. I also have the independent validation contribution installed. Any advice appreciated! Paul
  6. Added a version 1.3a - Great contribution btw - was about to start writing one myself when I came across it! Added some more links, and modified the code to remove the need for all those escape characters. Contains: del.icio.us Digg Google Bookmark Yahoo myWeb Furl Squidoo StumbleUpon Additional images included. Paul
  7. Firstly, thanks for a great contribution! Just implemented 1.18 on www.greatgiftsgalore.co.uk which (now!) uses a modified/compatible version of Ultimate SEO. I've Made a few changes/fixes and thought I'd post them here for others. In catalog/links_submit.php before <!doctype Changed: $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_LINKS)); To: $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_LINKS_SUBMIT)); The breadcrumb link was wrong. In catalog/links.php (around line 93) added: if ($link_featured_cat == $link_featured) $link_featured_cat = ''; BEFORE require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LINKS); This stops getting two identical featured links if you end up with only one active.... And around line 104 commented out the existing code and replaced it (left it in for comparison): // $breadcrumb->add($pathStr[$i], FILENAME_LINKS . '?parentID=' . tep_get_category_id($pathStr[$i])); $breadcrumb->add($pathStr[$i], tep_href_link(FILENAME_LINKS, 'lPath=' . tep_get_category_id($pathStr[$i]))); I'm only using (and only ever will use) 1 level of category, so I wanted to get rid of the parentid=0 parameters. So around line 198 I replaced this: $lPath_new = 'parentid=' . $categories['parent_id'] . '&lPath=' . $categories['link_categories_id']; WITH: $lPath_new = 'lPath=' . $categories['link_categories_id']; It may be best to test for nested categories, and if none found use the new code, else use old. I did this for the next section, so will probably go back and fix it now I've noticed :rolleyes: Finally, around line 485 I replaced: <?php $prev_query = tep_db_query("select parent_id from " . TABLE_LINK_CATEGORIES . " where link_categories_id = '" . $lPath . "'"); if (tep_db_num_rows($prev_query)) { $prev = tep_db_fetch_array($prev_query); ?> <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_LINKS, 'lPath='.$prev['parent_id']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td> <?php } ?> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right" align="center"><?php echo tep_draw_form('check_links', tep_href_link(FILENAME_LINKS, '', 'NONSSL'), 'post', 'onSubmit="return true;" onReset="return true"') . tep_draw_hidden_field('action_search', 'process'); ?> Search <?php echo tep_draw_input_field('links_search', '', 'maxlength="255", size="30"', false) . tep_image_submit('button_quick_find.gif', SEARCH); ?> </form></td> <td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_LINKS_SUBMIT, tep_get_all_get_params()'lPath=' . $lPath) . '">' . tep_image_button('button_submit_link.gif', IMAGE_BUTTON_SUBMIT_LINK) . '</a>'; ?></td> WITH: <?php $prev_query = tep_db_query("select parent_id from " . TABLE_LINK_CATEGORIES . " where link_categories_id = '" . $lPath . "'"); if (tep_db_num_rows($prev_query)) { $prev = tep_db_fetch_array($prev_query); if ($parentid != 0) { ?> <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_LINKS, 'lPath='.$prev['parent_id']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td> <?php } else{ ?> <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_LINKS) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td> <?php } } ?> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right" align="center"><?php echo tep_draw_form('check_links', tep_href_link(FILENAME_LINKS, '', 'NONSSL'), 'post', 'onSubmit="return true;" onReset="return true"') . tep_draw_hidden_field('action_search', 'process'); ?> Search <?php echo tep_draw_input_field('links_search', '', 'maxlength="255", size="30"', false) . tep_image_submit('button_quick_find.gif', SEARCH); ?> </form></td> <?php if ($lPath != 0) { ?> <td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_LINKS_SUBMIT, tep_get_all_get_params()'lPath=' . $lPath) . '">' . tep_image_button('button_submit_link.gif', IMAGE_BUTTON_SUBMIT_LINK) . '</a>'; ?></td> <?php } else { ?> <td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_LINKS_SUBMIT) . '">' . tep_image_button('button_submit_link.gif', IMAGE_BUTTON_SUBMIT_LINK) . '</a>'; ?></td> <?php } ?> This will fix up the button parameters for correct SEO links (including getting rid of the -link-0.html), and in the case of single level categories eliminate the parentid parameter altogether (and the unnecessary sort one from the submit link button). The submit_link.php file is still not SEO optimised in terms of parameters, but I've disallowed it in robots.txt anyway... Hope I've managed to keep out the typos, and that this helps someone. Paul
×
×
  • Create New...