Jump to content

Jack_mcs

Members
  • Content count

    30,613
  • Joined

  • Last visited

  • Days Won

    152

Everything posted by Jack_mcs

  1. Jack_mcs

    Jssor Slider

    This addon will display banners in the header or the home page, depending upon which module is installed. The banners rotate using selected methods in the module. There are 29 transitions included but those can easily be changed , added to or deleted as desired. No file changes are needed. This addon is based on the code supplied by dinopacha.
  2. @pete2007You may want to test your site here. If it returns anything less than an A score, it needs to be fixed. Pay special attention to the TLS section. TLS 1.2 should be enabled and the default setting.
  3. Jack_mcs

    php version compatibility

    Most likely not. In the least, it will generate a very large number of php warnings so you will need to be sure to disable error reporting. Many hosts are removing versions of php prior to 7.1 but they generally still offer 7.2. Your site might run without too many problems under 7.2 so you may want to check with your host to see if that is an option.
  4. Jack_mcs

    Security Checks

    You may have missed copying the php delimiter. Look at the first line of the file and make sure it has just these the following there: <?php If that isn't it, please post the file here.
  5. Jack_mcs

    Editing zones.php

    You can't do it from admin. You have to edit the file. In the top of the file it explains what to change to increase the zones. Once you do that, you will see the additional fields in admin.
  6. Jack_mcs

    Header Tags SEO

    I'm tying for 2-4 weeks.
  7. Jack_mcs

    Header Tags SEO

    This is the support thread for the new Header Tags SEO contribution. It is based on the Header Tags Controller but is not compatible. Why the new name? There are a couple of reasons for this. First, so much has changed in the code that it is mostly a different package and maintaining it would be difficult if it were considered just an update. But beyond that, a lot of people mistakenly confuse the Header Tags Controller as just a meta tags handler. It is that but has gone beyond that basic function for some time now. So to compare it to the other meta tags contributions is just wrong. And I should say here that if all you are looking for is a way to handle the meta tags of your shop, you should not install this contribution since it is definitely overkill. But when you consider that the keywords meta tag is rarely used by google at all nowadays, I can't imagine why someone would want to install a package that relied on that tag so much. And that is the real reason for the new name. This contribution is the only one of its kind to tie together so many Search Engine Optimization (SEO) tricks, that the new namejust made sense. What's the difference? The following are the major changes (or the ones I could remember) in this new contribution: -> The code is 100% langage compliant. -> Removed the english/header_tags.php file in favor of database entries. -> Fixed a bug introduced in a previous version. A spelling mistake would make Page Control fail in some cases. I only mention this here because it was a nasty little bug I could never locate. So anyone having that problem should consider upgrading. -> Added control options to admin->Configuration. -> Added additional meta tag options. It is doubtful these will be used that much but a number of requests were received for this option so it was added. -> Added an option to view the title and meta tags on the actual web page from admin. -> Added Social Bookmark code. -> Added code to apply mouseover text to the sites logo - unique for each page. -> Added code to have the breadcrumb use the header tags titles. -> Added an exclude list in admin/includes/functions/header_tags.php that prevents header tags code from being added to certain files (like checkout pages). This is because those pages don't need tags and excluding them will simplify matters. -> Added option to Page Control and Fill Tags so that the keywords can be dynamically generated from the pages on the site. Currently, the code only supports single keywords but I plan on changing that. There is an option in admin to only pick keywords that fall within the keyword density settings. -> Added an automatic page add feature. You still have to edit the actual file in the root but that's all. -> Added easy install instruction for STS shops. There is just one change to make and the two contribution work together. -> Added code to have the new features work with BTS based shops. There may be a few cases where an option doesn't work due to how BTS handles the files, but they should be minimal and not anything to cause a great stir. -> Changed how title, description and keywords are built. This should provide more flexibility for those that want that option. Each item has a sort order and is displayed in the string of text based on that sort order. So, for example, the title of a page can contain some entered text, the default title and the category and manufacturers names (if applicable), in any order. -> Added an Un-Install file to completely remove Header Tags from the database. This should make testing and troubleshooting easier. -> Added code to use curl instead of standard php file calls. The code will try curl first and then switch to a file command if it is not present. -> Tested in MS2, RC2, STS and BTS shops. Special thanks to the following for their suggestions: bkellum java roasters surfalot A lot of time went into creating this contribuiton. I hope it proves useful. Jack
  8. Copy the following into the admin/includes/functions/html_output.php file at the bottom before the ?>. function tep_draw_bootstrap_button($title = null, $icon = null, $link = null, $priority = 'secondary', $params = [], $style = null) { if ( !isset($params['type']) || !in_array($params['type'], ['submit', 'button', 'reset']) ) { $params['type'] = 'submit'; } if ( ($params['type'] == 'submit') && isset($link) ) { $params['type'] = 'button'; } if ( ($params['type'] == 'button') && isset($link) ) { $button = '<a href="' . $link . '"'; if ( isset($params['newwindow']) ) { $button .= ' target="_blank" rel="noopener"'; } $closing_tag = '</a>'; } else { $button = '<button type="' . tep_output_string($params['type']) . '"'; $closing_tag = '</button>'; } if ( isset($params['params']) ) { $button .= ' ' . $params['params']; } $button .= ' class="btn '; $button .= (isset($style)) ? $style : 'btn-outline-secondary'; $button .= '">'; if (isset($icon) && tep_not_null($icon)) { $button .= ' <span class="' . $icon . '" aria-hidden="true"></span> '; } $button .= $title; $button .= $closing_tag; return $button; }
  9. Jack_mcs

    Header Tags SEO

    This addon hasn't been coded to work with your version. The last (fatal error) is due to the class usage being changed so the command in the code will no longer work. There are too many changes to fix that to post here so you will have to wait for the next version if you want to use this addon.
  10. Jack_mcs

    reCAPTCHA richtig einbinden

    That depends. There are two basic versions: one for shops with modules capability and one for those that don't have it. Your version is on the edge of when that was added, as I recall. Take a look in admin->modules and see if there is a Header Tags section. If there is, use the files in the "Phonex_Frozen_and_v234" directory. Just upload the new files and then make the file changes in the "ChangedFiles_Frozen_and_V234" directory. If that section isn't in admin->Modules, then use the MS2 directory for the installation.
  11. Jack_mcs

    HoneyPot Captcha

    This addon prevents multiple emails from being sent through the forms on the site by adding a hidden challenge. Sending emails through the forms is a favorite thing to do by spammers. This has traditionally been handled by Googles Recaptcha code but that causes too much of a challenge in many cases and can easily frustrate your customers. This code doesn't present a challenge for the customer at all. The checking is done without the customer even knowing it. The code will work in any version of oscommerce but the instructions are just for the Community Edition and just for the contact us page (due to time constraints).
  12. Jack_mcs

    HoneyPot Captcha

    For the telephone error, change this $telephone = $customer_details['telephone']; to $telephone = ($customer_details['telephone'] ?? null); You can do similar for the street address but that should be enabled so you may not have your modules setup completely, For the last error, I see I didn't copy the new post code list to admin. To fix that, in includes/functions/honeypot.php copy lines 239 through 404 and copy them over lines 70 through 88 in admin/includes/functions/honeypot.php.
  13. Jack_mcs

    HoneyPot Captcha

    Please always include your version of oscommerce and php.
  14. Jack_mcs

    HoneyPot Captcha

    The last Phoenix version I installed it into is 1.0.7.15, though it may work in later versions. The shop files are in the Changed... directories. Although I see that older versions were uploaded so I have uploaded a new version with those changes.
  15. Jack_mcs

    HoneyPot Captcha

    A new version has been uploaded with these changes: Added an option to delete all fake accounts for those sites where there are too many to delete normally. Pro Version only. Changed code to fully follow the status setting. Changed code to not allow empty emails. Changed the V2 database install file so it is automatic. Corrected mistake in the create account page for Phoenix. Corrected mistake in the captcha file for the numbers captcha. Corrected a mistake in the postal code check that would allow invalid postal codes through when the option was set to both. Corrected Fake Accounts check orders code to return accurate counts, Pro version only. Moved the changes for the contact_us and create_account pages to the templates directory. Reduced the file size of the log file. Removed the check for the Purchase Without Account page. Removed the return statement in the hook for Phoenix that was causing duplicate displays.
  16. Jack_mcs

    Need help with Database issue - site is down

    If your 14 year old shop can run on php 7, then it has definitely been altered. That makes troubleshooting more difficult since it is not standard. The first thing I would try is to lower the php version. But the error you mentioned is due a server setting so that may not help. Godaddy is not good when it comes to helping with php issues so I wouldn't put a lot of faith in their response.
  17. Jack_mcs

    Need help with Database issue - site is down

    That is due to how mysql is setup on the server. Your host will have to make a change to fix it. My guess is that your host updated php and/or mysql since you said the shop has been working. If they did that, your shop probably won't work since a shop that old wouldn't be able to run on php higher than 5.4 unless the code has been altered. I suggest that when you contact them about the error, you also ask what php version the site is using and if they have made changes to the servers version.
  18. Jack_mcs

    quantity monitoring

    The shopping cart page was just an example. The $cart variable is available throughout the shop, though you may need to use global $cart; in some places to make it usable. So anywhere you need to know the quantities in the shop, just use the code I posted and you will know. What you do with the results is up to you.
  19. Jack_mcs

    quantity monitoring

    In shopping_cart.php, add something like this. Add what you want to do with the quantities at the echo statement. $id_list = $cart->get_product_id_list(); $ids = explode(',', $id_list; foreach ($ids as $id) { $qty = $cart->get_quantity($products_id); echo 'There are ' . $qty . ' products in this category<br>'; }
  20. Jack_mcs

    quantity monitoring

    I don't understand what you are trying to do. Can you explain it in more detail? Or are you saying you don't know how to implement the code I mentioned?
  21. Jack_mcs

    quantity monitoring

    There are a number of ways to do it but I would use the shopping_cart class. See includes/classes/shopping_cart.php for the available functions. You probably want to use get_product_id_list. So it would be $id_list = $cart->get_product_id_list(); Then explode the list and go through the array to get each ID. Then call $qty = $cart->get_quantity($products_id);
  22. Jack_mcs

    quantity monitoring

    Retrieve all of the product ID's from the products_to_categories table for the given categories ID. Then loop through the returned value and change their status.
  23. Jack_mcs

    reCAPTCHA richtig einbinden

    @BoniChipsy As I recall, you have to add code in the header to handle the form. I suggest you install Honey Pot instead since it does a much better job compared to recaptcha.
  24. Jack_mcs

    This site can’t be reached 127.0.0.1

    As mentioned, I don't this is something that can be resolved here, at least by me. There are too many possibilities and no way to know what the code is doing.
  25. Jack_mcs

    This site can’t be reached 127.0.0.1

    Ask your host to recompile php and include mysql in it.
×