Latest News: (loading..)

johnnybebad

Members
  • Content count

    670
  • Joined

  • Last visited

1 Follower

About johnnybebad

Profile Information

  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. 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. cool, just wanted to get that straight. so I can have my admin directory and my ip trap admin directory in my robots.txt file
  8. 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
  9. got it sorted i think
  10. 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?
  11. 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
  12. 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
  13. 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 (rigadin@osc-help.net) Based on: Simple Template System (STS) - Copyright (c) 2004 Brian Gallagher - brian@diamondsea.com */ $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.
  14. the silo box is displaying on the category, and the hedaer tags box (see more) is displaying on the products page ??? Thanks
  15. 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