Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

johnnybebad

Pioneers
  • Posts

    670
  • Joined

  • Last visited

Posts posted by johnnybebad

  1. Hi Jack,

     

    installed 1.29 by uploading the files appeared okayt, but I dont want people to upload there images to the site, so prefer just to have the the old image url option only.

     

    would i need to modify much to keep the new functionality and still use the image url in submit links and in admin?

     

    maybe useful tohave as option selected in admin or to haev the option for the link submitter, if they want to upload or use the url?

     

    Thanks, I did note that previously submitted image urls worked fine.

  2. Hi my version of super tracker stopped working today, now according to my files and my security updates nothing has changed.

     

    the file itself is reading okay, ie if I manually insert a line in the database the file reads it and display in admin.

     

    so the database isnt recording the data anymore.

     

    any ideas?

  3. I don't understand what you mean about uploading files. There's no such option in Header Tags.

     

     

    Hi Jack, sorry about the crossed wires.

     

    google give you options on verifying that you own the site.

     

    you can add the meta tag

    you can upload the file

    and other options

     

    but it be a lot easier to have the tag available in header tags, and you can just fill it in and go.

     

    ie instead of uploading files to teh root directory, enter into admin the verification codes from the search engines so they can verify you own the site?

     

    <meta name="y_key" content="" />
    <meta name="google-site-verification" content="" />
    

  4. Hi Jack,

     

    I was wondering if there was an easy way to utilise trhe headertags module to enter in the metatags for the serach engine verifications, rather than having to use the file uploads.

     

    I am guessing I would need a new set of tags to load up, yahoo, bing, google and have them defaulted to every page or something?

     

    Thanks

     

    Module is working fantastically

  5. Hi Jack,

     

    A while back I was having problems with the headertags box, and the products description being very short compared to what I was expecting.

     

    I left it a while and come back to it.

     

    to cut along story short, my problem is due to the size limit in the headertags box

     

     $info_box_contents[] = array('text' => strip_tags(substr($product_info['products_description'], 0, 100)).'<a style="color: red;" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int)$_GET['products_id']).'"  >  (...' . TEXT_SEE_MORE . ')</a>');
    

     

    The 100 value basically stops stripping my html from the product description in the database as its already processed 100 characters, I either remove the html code from the product description or increase this value so it process the data how I would like it.

     

    At least i have the solution, but the description is using more html coding than it needs to ? so maybe need to look at a better way of dealing with that, but at least my mystery is solved.

     

    Thanks

  6. Hi I havent installed this mod yet, but have no doubts it would be useful as it comes from Jack.

     

    my query is, what does the optimisation do exactly.

     

    If I ran the optimization, things are being changed but what exactly is being changed.

     

    sorry for souning thick but I am trying to work out what things would change.

     

    ie if rearranging the tables so they are sequential and use up the numbers in order ie no gaps, in config I have 500 rows but my next entry would be 6473, it renumbers it 1 to 500? next entry being 501.

     

    this would then in the products table make the entries change if I have delted any old products(discontinued never to be seen again) so my urls for acessing them would change so i need to update my sitemaps, googlebase etc etc.

     

    Am I thinking along the correct lines, or way off, just want to get thiongs straight in my head before using this one.

     

    Cheers

  7. query, this may sound stupid so bear with me.

     

    if good bots obey robots.txt and bad bots don't.

     

    how do I stop good bots entering my real admin folder without tellin the bad ones where it is?

     

    as in your file you have disallow:/includes, cgibin personal and admin

     

    just wondered if I am to excclude my real admin folder in the list, and do I really want bad bots to know it exists ?

     

    Thanks

  8. the htaccess I can see I have to download latest osc and take that copy of the file for the imaghes directory

     

     

    I couldnt find it in the downloaded contribution files at all, think I have found it in sitemonitor_functions.php seen post.

     

    struggling at the moment, how do I know when I have covered all my sites files?

     

    got it sorted i think

  9. the htaccess I can see I have to download latest osc and take that copy of the file for the imaghes directory

     

     

    I couldnt find it in the downloaded contribution files at all, think I have found it in sitemonitor_functions.php seen post.

     

    struggling at the moment, how do I know when I have covered all my sites files?

  10. Hi Jack,

     

    updated to the latest version and I am trying to get to grips with things.

     

    I have an option of 0-9 configuration files (what is the difference or is it so that I can create several different options to concentrate on various areas?

     

    with respect to the hacker code section. this is what i need to get my head around.

    Can you explain briefly what each part means and what happens if I do x y or z.

     

    just i am doing things and dont really understand what they are doing, I havent excluded anything, as after all I would want to make sure nothing changes with any file??

     

    error_reporting(0) for admin/sitemonitor_configure_9.php also numbers 0 1 and 2 which are the config files I ran, but I dont know why I ran them.

     

    also I dont have .htaccess file protecting the image directory however is there any guidance on what should be used as I rea a thread about it and was surprised there was conflicting information so wasnt sure what i should be using.

     

    sorry if I sound stupid, but run the code its highlighted a few things but just dont have a clue whats going on and what i should be doing with the info I get. The files highlighted and checked are okay, but I dont know if I have checked all the files i should have and or why i havent checked them.

     

    Thanks

  11. Hi,

     

    couldn't find the answer , but a fter some thinking and testing I come up with a soluition or being able to use cataloglogo placholder in popup_image file rather than manualy writing out is location.

     

    in sts_inc/popup_image.php

     

    use

    <?php
    /*
     $Id: popup_image.php,v MoPics 6 2003/06/05 23:26:23 Rigadin $
    
     osCommerce, Open Source E-Commerce Solutions
     http://www.oscommerce.com
    
     Copyright (c) 2003 osCommerce
    
     Released under the GNU General Public License
    */
    $sts->template['cataloglogo'] = '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . STORE_LOGO, STORE_NAME); 
    
     $products_query = tep_db_query("select pd.products_name, p.products_model, p.products_image from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'");
     $products = tep_db_fetch_array($products_query);
    
    $sts->template['productname'] = $products['products_name'];
    $sts->template['productmodel'] =  $products['products_model'];
    $sts->template['popupimage'] = tep_image(DIR_WS_IMAGES . $products['products_image'],'','','', 'name="prodimage"');
    
    // Empty placeholders, to be used in case you build something for several product images
     $sts->template['back']=''; // Back button, in case there are several product images
    $sts->template['next']= ''; // Next button
    $sts->template['count']=''; // For the text 1/7 (first picture on seven, ...)
    
    ?>

     

    basically added the catalogologo line at the top, now I can use it as a placeholder in the popupimage I cant see any ill affects can any tell me if this is going to cuase problems down the line or its an okay solution

     

    Thanks

  12. the silo box is displaying on the category, and the hedaer tags box (see more) is displaying on the products page ???

     

    Thanks

    go it working now correctly I think but will be checking back later.

     

    1. needed to add code to column_left.php so it reads as shown in code below (this is so it works outside sts)

    <?php
    /*
     $Id: column_left.php 1739 2007-12-20 00:52:16Z hpdl $
    
     osCommerce, Open Source E-Commerce Solutions
     http://www.oscommerce.com
    
     Copyright (c) 2003 osCommerce
    
     Released under the GNU General Public License
    */
    
    // START STS 4.1
    if ($sts->display_template_output) {
     include DIR_WS_MODULES.'sts_inc/sts_column_left.php';
    } else {
    //END STS 4.1
    
    if ((USE_CACHE == 'true') && empty($SID)) {
       echo tep_cache_categories_box();
     } else {
       include(DIR_WS_BOXES . 'categories.php');
     }
    
     if ((USE_CACHE == 'true') && empty($SID)) {
       echo tep_cache_manufacturers_box();
     } else {
       include(DIR_WS_BOXES . 'manufacturers.php');
     }
     require(DIR_WS_BOXES . 'affiliate.php');
     require(DIR_WS_BOXES . 'whats_new.php');
     require(DIR_WS_BOXES . 'search.php');
     require(DIR_WS_BOXES . 'information.php');
     require(DIR_WS_BOXES . 'links.php');
     require(DIR_WS_BOXES . 'featured.php');
    require(DIR_WS_BOXES . 'paypalLogo.php');
    require(DIR_WS_BOXES . 'googlead.php');
    /*** Begin Header Tags SEO ***/
     if (HEADER_TAGS_DISPLAY_SILO_BOX == 'true')
       if (isset($category_depth) && $category_depth !== 'top')
         include(DIR_WS_BOXES . 'headertags_seo_silo.php');
    /*** End Header Tags SEO ***/
    /*** Begin Header Tags SEO ***/
     if (HEADER_TAGS_DISPLAY_COLUMN_BOX == 'true' && basename($_SERVER['PHP_SELF']) == FILENAME_PRODUCT_INFO)
       include(DIR_WS_BOXES . 'header_tags.php');
    /*** End Header Tags SEO ***/
    // START STS 4.1
    }
    // END STS 4.1
    
    ?>

     

    2. sts_inc/sts_column_left.php like:-

    <?php
    /*
     $Id: sts_column_left.php,v 4.3.3 2006/03/12 22:06:41 rigadin Exp $
    
     osCommerce, Open Source E-Commerce Solutions
     http://www.oscommerce.com
    
     Copyright (c) 2005 osCommerce
    
     Released under the GNU General Public License
    
    STS v4.3.3 by Rigadin ([email protected])
    Based on: Simple Template System (STS) - Copyright (c) 2004 Brian Gallagher - [email protected]
    */
    
     $sts->restart_capture(); // Clear buffer but do not save it nowhere, no interesting information in buffer.
    // Get categories box from db or cache  
     if ((USE_CACHE == 'true') && empty($SID)) {
       echo tep_cache_categories_box();
     } else {
       include(DIR_WS_BOXES . 'categories.php');
     }  
     $sts->restart_capture ('categorybox', 'box');  
    
    // Get manufacturer box from db or cache  
     if ((USE_CACHE == 'true') && empty($SID)) {
       echo tep_cache_manufacturers_box();
     } else {
       include(DIR_WS_BOXES . 'manufacturers.php');
     }
     $sts->restart_capture ('manufacturerbox', 'box');
    require(DIR_WS_BOXES . 'competition.php');
    $sts->restart_capture ('competitionbox', 'box');
    
    
    /*** Begin Header Tags SEO ***/
     if (HEADER_TAGS_DISPLAY_COLUMN_BOX == 'true' && basename($_SERVER['PHP_SELF']) == FILENAME_PRODUCT_INFO)
       require(DIR_WS_BOXES . 'header_tags.php');
    $sts->restart_capture ('headertagsbox', 'box');
    
    
    
    
    
    require(DIR_WS_BOXES . 'whos_online.php');
     $sts->restart_capture ('whosonlinebox', 'box'); // Get Whos online new box
    
    require(DIR_WS_BOXES . 'paypalLogo.php');
     $sts->restart_capture ('paypallogobox', 'box'); // Get Whos online new box
    
     require(DIR_WS_BOXES . 'whats_new.php');
     $sts->restart_capture ('whatsnewbox', 'box'); // Get What's new box
    
     require(DIR_WS_BOXES . 'search.php');
     $sts->restart_capture ('searchbox', 'box'); // Get search box
    
    require(DIR_WS_BOXES . 'newsdesk_latest.php');
     $sts->restart_capture ('newsdeskbox', 'box'); // Get shopping cart box
    
    require(DIR_WS_BOXES . 'newsdesk.php');
     $sts->restart_capture ('catnewsdeskbox', 'box'); // Get shopping cart box
    
    require(DIR_WS_BOXES . 'faqdesk.php');
     $sts->restart_capture ('catfaqdeskbox', 'box'); // Get shopping cart box
    
    require(DIR_WS_BOXES . 'faqdesk_latest.php');
     $sts->restart_capture ('faqdeskbox', 'box'); // Get shopping cart box
    
     require(DIR_WS_BOXES . 'information.php');
     $sts->restart_capture ('informationbox', 'box');  // Get information box
    
     require(DIR_WS_BOXES . 'shopping_cart.php');
     $sts->restart_capture ('cartbox', 'box'); // Get shopping cart box
    
     if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');
     $sts->restart_capture ('maninfobox', 'box'); // Get manufacturer info box (empty if no product selected)
    
     if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');
     $sts->restart_capture ('orderhistorybox', 'box'); // Get customer's order history box (empty if visitor not logged)
    
     include(DIR_WS_BOXES . 'best_sellers.php');
     $sts->restart_capture ('bestsellersbox_only', 'box'); // Get bestseller box only, new since v4.0.5
    
    require(DIR_WS_BOXES . 'googlead.php');
     $sts->restart_capture ('googleadbox', 'box');  // Get information box
    require(DIR_WS_BOXES . 'affiliate.php');
     $sts->restart_capture ('affiliatebox', 'box');  // Get information box
    require(DIR_WS_BOXES . 'featured.php');
     $sts->restart_capture ('$featuredbox', 'box');  // Get information box
    
    
    // Get bestseller or product notification box. If you use this, do not use these boxes separately!  
     if (isset($HTTP_GET_VARS['products_id'])) {
       include(DIR_WS_BOXES . 'product_notifications.php');
    $sts->restart_capture ('notificationbox', 'box'); // Get product notification box
    
    // Get bestseller or product notification box. If you use this, do not use these boxes separately!    
       if (tep_session_is_registered('customer_id')) {
         $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");
         $check = tep_db_fetch_array($check_query);
         if ($check['count'] > 0) {
           $sts->template['bestsellersbox']=$sts->template['bestsellersbox_only']; // Show bestseller box if customer asked for general notifications
         } else {
           $sts->template['bestsellersbox']=$sts->template['notificationbox']; // Otherwise select notification box
         }
       } else {
         $sts->template['bestsellersbox']=$sts->template['notificationbox']; // 
       }
     } else {
       $sts->template['bestsellersbox']=$sts->template['bestsellersbox_only'];
    $sts->template['notificationbox']='';
     }
    
     include(DIR_WS_BOXES . 'specials.php');
     $sts->restart_capture ('specialbox', 'box'); // Get special box
     $sts->template['specialfriendbox']=$sts->template['specialbox']; // Shows specials or tell a friend
    
    include(DIR_WS_BOXES . 'featured.php');
     $sts->restart_capture ('featuredbox', 'box'); // Get featured box
     $sts->template['featuredbox']=$sts->template['featuredbox']; // Show featured products
    
    
     if (isset($HTTP_GET_VARS['products_id']) && basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) {
       include(DIR_WS_BOXES . 'tell_a_friend.php');
    $sts->restart_capture ('tellafriendbox', 'box'); // Get tell a friend box
    $sts->template['specialfriendbox']=$sts->template['tellafriendbox']; // Shows specials or tell a friend
     } else $sts->template['tellafriendbox']='';
    
    
    // Get languages and currencies boxes, empty if in checkout procedure  
     if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
       include(DIR_WS_BOXES . 'languages.php');
       $sts->restart_capture ('languagebox', 'box');
    
       include(DIR_WS_BOXES . 'currencies.php');
       $sts->restart_capture ('currenciesbox', 'box');
     } else {
       $sts->template['languagebox']='';
       $sts->template['currenciesbox']='';
     }
     if (basename($PHP_SELF) != FILENAME_PRODUCT_REVIEWS_INFO) {
       require(DIR_WS_BOXES . 'reviews.php');
       $sts->restart_capture ('reviewsbox', 'box');  // Get the reviews box
     } else {
       $sts->template['reviewsbox']='';
     }
    /*** Begin Header Tags SEO ***/
     if (HEADER_TAGS_DISPLAY_SILO_BOX == 'true')
       if (isset($category_depth) && $category_depth !== 'top')
         require(DIR_WS_BOXES . 'headertags_seo_silo.php');
    $sts->restart_capture ('headertagssilobox', 'box');
    /*** End Header Tags SEO ***
    ?>

     

    This means I can move the boxes by using placeholders as I would normally to anywhere in my sts_template.html

     

    I havent got any errors and it looks okay, but will be checking it again later so i know if I have any problems.

  13. The header tags box should only display on a product page so there is a mistake in your installation since the link you provided is to a category.

     

    the silo box is displaying on the category, and the hedaer tags box (see more) is displaying on the products page ???

     

    Thanks

  14. Hi Jack,

     

    My link

     

    I now have the headertags working except the headertags box is sometimes empty even when the product description is plentiful so not sure whats happening there.

     

    This is the same inside and outside of sts, so dont understand what code it is I am missing.

     

    as you can see I have a column problem with headertags infoboxes in sts trying to find out why and have posted for support on the sts thread

  15. My link

     

    The site above has the headertags seo contribution installed aswell as sts. Outside of sts it works fine.

     

    Until I checked my code it didnt work quite like it should in sts.

     

    I now have it working but as you can see from the link posted I have my left, right and content columns + the headertag box/s in another column.

     

    I have trawlled through this time and time again, and have at least got somewhere with it but need to know where I should be looking to ressolve the headertag box remaining issue of correct placement.

     

    Any help will be much appreciated.

  16. HI Jack,

     

    I have a fair bit more work todo on this to get it correct.

     

    However when going through the installation, I found my column left instrustions hadn't been followed exactly, the two bits of headertag code together instead of top and bottom effectively.

     

    the result being that I have at least one of the boxs working like expected, so I just need to go through it all again and make sure I am obeying the rules(installation isntructions properly.

     

    Thanks

  17. Recheck the instructions for adding the boxes. You left out part of the code, according to your previous post. The code in the header_tags.php box strips the html so I can't say why it isn't working with your installation. With any STS installation, if you are having problems with some contribution like this that it effects, then turn STS to see whre the problem lies.

     

     

    Hi Jack, I will look into this some more think things are clarified now, my other infoboxes work fine, and the default column file is something I need to check for.

     

    scrub the html stripper part some are working and some are not, when I edit the description it does change for some of them I am guessing theres either something missing from the code I have entered or something in these individual product descriptions thats stopping it, I will try and find the common factors if issue persits after I recheck the code.

     

    Thanks for your help

  18. Also, it appears that the silo boxs fill from the product description rather than header tage description and its size controlled?

     

    the other thing is it doesnt appear to acknowledge some of the descriptions, due to the html formatting of the product description using tinymce editor that I have in the description/ or in the feed file it was imported from.

     

    Any ideas if theres a quick fix or something I can do rather than plain text all 2000+ products.

     

    Also the boxs display all the time in sts and outside sts display as they should do, cant figure out why though.

  19. I am really lost with this.

     

    the three header tag boxes are captured in sts_column_left.php

     

    $sts->restart_capture ('headertagsbox', 'box');

    require(DIR_WS_BOXES . 'header_tags.php');

    $sts->restart_capture ('headertagssilobox', 'box');

    require(DIR_WS_BOXES . 'headertags_seo_silo.php');

    $sts->restart_capture ('headertagssilowbox', 'box');

    require(DIR_WS_BOXES . 'headertags_seo_silo_W_Products.php');

     

    hmm

     

    headertagsbox has the product info description and the see more

     

    These two theres hardly any difference in coding so they do the same job excpet one is slightly different? and I only need one of them as one should do the job the other wont.

    headertagssilobox this one works fine.

    headertagssilowbox If i use this one I get an error so I guess I dont need it.

     

     

    Okay so now I have the two box's I want

     

    $sts->restart_capture ('headertagsbox', 'box');

    require(DIR_WS_BOXES . 'header_tags.php');

    $sts->restart_capture ('headertagssilobox', 'box');

    require(DIR_WS_BOXES . 'headertags_seo_silo.php');

     

    I just cant seem to get them to wor right at all with the sts, and the sts is working fine with the rest anyone else have this problem?

     

    Just need to know what to do. I am still trying to work this out.

     

    so I would have $headertagssilobox$ and $headertagsbox$ to place in my sts_template.html and they should work accrodingly but they dont appear to. I am going to back track, and maybe I shopuld post this issue on the sts thread?

     

    doing my nit in this is.

     

    They dont display properly at all in sts.

  20. The first two have to be enabled in the settings for them to show. The last is an alternate file for the second if you want products listed too. The first will only display on the product page. The second only on the category and/or product page. For STS you just include the provided code in the column_left or column_right file.

     

    Hi I am behind with my sts module, so if I update that maybe everything will be fine.

     

    a little confusded on the boxes and how they work, but it maybe become clearer, in that the first two have to be enabled and the last one of the three is an alternative to the 2 box, I will go back and check this as I think i have gone wrong somewhere.

  21. Hi Jack,

     

    I have a query, and i apologies if its been answered before but I can not find the answer.

     

    There are three infoboxes with this mod.

     

    headertags.php

    headertags_seo_silo.php

    headertags_seo_silo_W_Products.php

     

    headertags.php box I dont see anything inside or outside of sts.

     

    Can you tell me what each of these is to supposed to do and how I would correctly place them using sts plave holders, just I am having trouble getting them to behave the same way as they do outside sts.

     

    headertags.php box I dont see anything inside or outside of sts.(behaves the same???? or I dont have it working at all)

     

    ie in sts I have both boxes displayed all the time unless I place the placeholder code for one in product_info.php.html and the other in index.php.html is there a smarter way for me to use it?

     

    Also the headertags_seo_silo_W_Products.php will display all the time if the place holder is used in the index.php.html file

     

    headertags_seo_silo.php and headertags_seo_silo_W_Products.php will display all the time if placed in the sts_template.html rather than in the way they do outside sts.

     

    also headertags_seo_silo.php displays inside and outside of sts when there is not enough characters to display anything and your left with a box and a (see more)being displayed, it would be better for me if it was empty for the box not to be displayed.

     

    Wow its taken my ages to try and write that in an understandable way, accept my apologies if it doesnt make sense, I was unable to find the answer to these, if its already been answered and you can point me in the right direction I would be grateful, I did see a post saying that its been answered before for part of this at least but i couldnt find that post.

     

    Thanks

  22. Thanks for the explanation. I think I understand now. The links status section was originally written as a way to monitor what the results of the cron job were. The cron job will check a link and change the database entry for the site saying it was checked and its status. When you check a link from the links section, it just checks the link - no updating is done. Both sections (cron and link checking) have grown and changed quite a bit since the links status section was added so, you are correct, it is not reporting as it should. I have that change on the list for the next version. In the meantime, you could run the link_check.php file manually to check the links and update the status entries.

    Hi Jack,

     

    I am having trouble running the file manually, I end up with a blank page, and the browser is showing it as loading. Off to do some shopping see if it has finished when I get back I guess. Any tips on how to run this properly, I just opened the file

  23. Hi Jack.

     

    on admin/links.php there is a check link button

     

    I click on this and select how many links i want to check.

     

    When its completed i get a list of links that have been checked.

     

    On this list it will say if the link has been found or not.

     

    However the data displayed here does not match the data in admin/links_status.php

     

    easiest way to to demonstrate, is to change the check link phrase to something unrelated to your link, then run the links check, all the links will show as not found however the links_status.php will show the original link found status.

     

    If this doesnt help I will look at getting some screen shots together.

     

    Cheers

×
×
  • Create New...