Jump to content

kazack

Members
  • Content count

    53
  • Joined

  • Last visited

  • Days Won

    1

kazack last won the day on June 7 2014

kazack had the most liked content!

Profile Information

  • Real Name
    Shawn Mulligan

Recent Profile Visitors

5,072 profile views
  • RAC

  1. kazack

    Age Restricted Category v2.1

    Hi Amigoo, I took a gander at the contribution and I could create and admin page for the contribution that you are asking about, but honestly it would not benefit you the way you think it may as it lacks quite a few features to make it worth the install. I currently have 2 contributions out for OSC 2.3.4, I am planning on releasing more as time goes on and as I see the need for myself, every now and then I will release one just based on the threads or fix one up and re-release. Due to my current paying clients I don't have time to recode this. I sat with it for about an hour and started to write code and adding in features based on what was already written and ran into way too many in depth issues. So once my plate gets a little empty I will revisit this one again because I think here in the near future I will have the need for it as well. Shawn Mulligan
  2. kazack

    Editing "define content"

    You are so very welcomed. Shawn
  3. kazack

    Editing "define content"

    Real quick Easy answer if you don't mind it being HARDCODED, this is a quick fix for what you want: if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { $content_query = tep_db_query("select page_title, page_url from `define_content` where status='yes' order by id"); } else { $content_query = tep_db_query("select page_title, page_url from `define_content` where status='yes' and login_view='no' order by id"); } Line 35 to 39 in file /catalog/includes/modules/boxes/bm_information you are going to change the following: order by id to order by page_title ASC There are 2 places for this and it will put your information box in order by page title from A-Z Hope this helps, Shawn Mulligan P.S. This is based off of the define_content for OSC 2.3 and off of the file in the original package.
  4. It has come to my attention that not all users running php 5.x.x have access to the function: file_put_contents(). After doing some reading some hosting providers are blocking this function. I uploaded an updated full package for 2.3.4 to reflect the fix for this. The error message being seen is something similar to: Fatal error: Call to undefined function: file_put_contents() in /home/domain/public_html/catalog/admin/image_verify.php on line 146 I corrected the issue by adding a new block of code the /catalog/admin/image_verify.php and this was the only file modified. If you do not want to download the whole package again you can just add the following lines of code: if(!function_exists('file_put_contents')) { function file_put_contents($filename, $data, $file_append = false) { $fp = fopen($filename, (!$file_append ? 'w+' : 'a+')); if(!$fp) { trigger_error('file_put_contents cannot write in file.', E_USER_ERROR); return; } fputs($fp, $data); fclose($fp); } } Any questions or issues please feel free to ask. Thanks, Shawn Mulligan
  5. kazack

    Easy Populate

    I agree getting rid of all errors and warnings is the best cure. Depending on the poster's situation they may not know how to fix all the warnings, or do not currently have the funds to pay someone to replace all the deprecated functions. And until they do, the site still needs to be running. What does one do? I would turn off warnings so the site will still run properly until the time is right to fix / replace them. There is a difference between a warning and an error. If php throws a warning, it will not run the script, and just because a function is deprecated as mentioned before does not mean it won't run or will cause issues. The code I shared above only turns off warnings, errors will still show. So if his hosting environment gets updated and the poster is still using what was once a deprecated function, it will now show an error as the errors are not diasbled. Thanks, Shawn
  6. kazack

    Easy Populate

    Yes you are 100% correct, but if his environment is not up to date I would think with an error like this that there are others that would be deprecated as well, and instead of having to hunt down all the deprecated functions and correcting them, which would be a nightmare, it is just easier to turn off the reporting. Shawn Mulligan
  7. kazack

    Easy Populate

    A deprecated function is just a warning to let you know that it still will work but there is no support for it and it will be dropped in the next version. I found a solution that works for all deprecation errors that you may get on your site: The following was quoted from: http://www.codeterrorizer.com/php/turn-off-deprecated-warnings Turn off Deprecated Warnings Deprecated: Simply turn off these warnings in your php.ini error_reporting = E_ALL & ~E_DEPRECATED Or during runtime error_reporting(E_ALL & ~E_DEPRECATED); The following functions will throw this warning: - call_user_method_array() instead use call_user_func_array() - define_syslog_variables() - dl() - ereg_replace() instead use preg_replace() - eregi() instead use preg_match() - eregi_replace() instead use preg_replace() - set_magic_quotes_runtime() instead use magic_quotes_runtime() - session_register() instead use setzte Variable über $_SESSION - session_unregister() - session_is_registered() - set_socket_blocking() instead use stream_set_blocking() - split() instead use preg_split() - spliti() instead use preg_split() - sql_regcase() - mysql_db_query() instead use mysql_select_db() oder mysql_query() - mysql_escape_string() instead use mysql_real_escape_string() Hope this helps as well, Shawn Mulligan
  8. kazack

    I Just don't get it!

    How are you trying to upload the images? Through the osc admin or with easy populate? What I have done which is real easy to do is change the code on the appropriate pages to store the images in the rightful folders and make sure the images folders that you are using has the proper permissions for your environment. I will give you an example: In /admin/categories.php when you upload an image it is saved and stored with these 2 lines: Osc 2.3.4 $categories_image = new upload('categories_image'); $categories_image->set_destination(DIR_FS_CATALOG_IMAGES); You can do different things here. You can do it according to osc standards and open up /includes/configure.php and create a Category define statement or you can simply replace DIR_FS_CATALOG_IMAGES with the full path to where you want the categories image to be stored in between ''. Example: $categories_image = new upload('categories_image'); $categories_image->set_destination(DIR_FS_CATALOG_IMAGES); //Replace With $categories_image = new upload('categories_image'); $categories_image->set_destination(DIR_FS_CATALOG_CATEGORIES_IMAGES); //OR REPLACE WITH $categories_image = new upload('categories_image'); $categories_image->set_destination('/home/username/public_html/catalog/images/categories/'); And if you use NotePad +, phpdesigner or any other ide of similiar you can search for all files that contain DIR_FS_CATALOG_IMAGES and do a replace with DIR_FS_CATALOG_CATEGORIES_IMAGES. Just make sure that when you do it, you do not replace the one in the configure.php in /includes or /admin/includes and remember to create the new location in the /includes/configure.php and /admin/includes/configure.php files. And the change is just that simple as well for Manufacturers, and even product photos. When it comes to product photos, being some products have multiple products I have mine coded even worse than this because I have the following structure with mine: /images/products/(oscommerce product_id)/ Hope this helps out, Shawn Mulligan P.S. It bugged me to that oscommerce out of the box install has seperate image folders for manufacturers and category images etc, but the coding does not use them, they store all the images in the same folder. I have no clue what they were thinking.
  9. kazack

    Easy Populate error

    If you have to do it that way, it sounds like the folder does not have the right permissions for php to write the file to the temp folder /home/kungfu-v/public_html/catalog2/temp/ There are a few things that could be going on here. But I think it is invalid permissions for your hosting environment that it can't move the the temp file over to the temp folder, the other possibility I thought it could of been was out of disk space error as well. I have only seen this error in these 2 conditions. If you can upload the file directly to the the temp folder then I don't think it is an out of disk error, then we go back to the permissions issue. Some hosting environments allow you to use 777 which is not suggested by no means and other environments have strict rules and you have to have the folders set to: 666 or 755. Hope this sheds some insight on the real issue. Shawn Mulligan .
  10. kazack

    Information Module

    Hmm this would depend on what contribution or even template you have installed as there are several that can do this. For me with 2.2 I used a combination which was INFOPAGES contribution and also I used the DEFINE CONTENT contribution. The define content contribution only allowed you to change the content of predefined sections, if you wanted to change the name of the links etc you had to use the language files to do that. The infopages contribution allowed you to create new pages and edit the content from there. Again a little more information as to what contribution you are using for your information box. If there is no contribution installed for it then I would start with the following: /includes/modules/boxes/bn_information.php This file contains the link information that the information box displays. $data = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_INFORMATION_BOX_TITLE . '</div>' . ' <div class="ui-widget-content infoBoxContents">' . ' <a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . MODULE_BOXES_INFORMATION_BOX_SHIPPING . '</a><br />' . ' <a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . MODULE_BOXES_INFORMATION_BOX_PRIVACY . '</a><br />' . ' <a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . MODULE_BOXES_INFORMATION_BOX_CONDITIONS . '</a><br />' . ' <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . MODULE_BOXES_INFORMATION_BOX_CONTACT . '</a>' . ' </div>' . '</div>'; Then I would cross reference /includes/languages/english/modules/boxes/bm_information.php define('MODULE_BOXES_INFORMATION_TITLE', 'Information'); define('MODULE_BOXES_INFORMATION_DESCRIPTION', 'Show information page links'); define('MODULE_BOXES_INFORMATION_BOX_TITLE', 'Information'); define('MODULE_BOXES_INFORMATION_BOX_PRIVACY', 'Privacy Notice'); define('MODULE_BOXES_INFORMATION_BOX_CONDITIONS', 'Conditions of Use'); define('MODULE_BOXES_INFORMATION_BOX_SHIPPING', 'Shipping & Returns'); define('MODULE_BOXES_INFORMATION_BOX_CONTACT', 'Contact Us'); Which shows you what the defined links are. And then I would checkout the corresponding language files for the content of what you want to change. I am not going to do all of them but I will give you an idea: Conditions Of Use = /conditions.php When you open that file will see: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS); So then you open up /includes/filenames.php and find FILENAME_CONDITIONS which is: define('FILENAME_CONDITIONS', 'conditions.php'); So now you open up /includes/langauges/english/conditions.php define('NAVBAR_TITLE', 'Conditions of Use'); define('HEADING_TITLE', 'Conditions of Use'); define('TEXT_INFORMATION', 'Put here your Conditions of Use information.'); Now these examples are based on an out of the box install. Some of the files may have been edited if you have a modded store. Hope this helps you out a bit. Shawn Mulligan
  11. This thread is being started for support of the Product Image Verify contribution that I created for Osc 2.3.x.x. I had a few e-mails about this as I thought it was straight forward and didn't think that it needed support, and also had some feature requests as well. So now here it is, if you have problems, questions, feature requests or just want to talk about this contribution please feel free to post away. This contribution can be found at: http://addons.oscommerce.com/info/8210 There is an update as I wrote this mode in 2011, didn't think it was that long ago, but walked through both a manual install and a drag n drop install on a new virgin install of OSC 2.3.4 and come to find out somehow when I packaged up the files I wasn't using the 2.3.x.x file, so the css and everything on the admin side got messed up and distorted. A brief description of this contribution: I run several OSC 2.2 sites (in the process of converting at the last minute to 2.3.x.x, seems like it will take forever as I have 100+ contributions installed) and most of the sites get a daily feed that is automatically imported into my different OSC sites. Well most of us know that the feeds we sometimes get from providers do not contain all the proper information, and especially the images. When you have a site with a few products no problem, but when you have hundreds to thousands of products it is almost impossible to go through each and every product to check if an image was downloaded or not. What this contribution does for a virgin install is go through every product and selects the image if one is available and checks the file system to see if one actually exists. If the database does not have an image associated with the product, or the image is not found in the file system then it will list the relevant information and tell you what the issue is with the image. Now you can see at a glance if all your products have the expecting images in the database and in the file system. If there are no issues with images then nothin will be displayed, as to why waste resources. Being this is the first post I am also going to include a screenshot here for those of you that came across this thread but did not actually download the contribution package. Thanks in advance for any posts about this contribution as all feedback is welcomed. Shawn Mulligan
  12. Okay the package has been uploaded to support both 2.3.3.4 and 2.3.4 for drag n drop files on new installs. The manual install does not change as it works for both versions of OsCOmmerce. Thanks, Shawn Mulligan
  13. Yeah you are right. I am sorry. The 2.3.4 upgrade did not work, so I did a 2.3.4 full package and it does work with that if you follow the manual directions. I am getting ready to upload the 2.3.4 drag and drop files. Should be sometime today. Thanks for the correction. Shawn
  14. Oscommerce 2.4 was released today. I downloaded the upgrade since I am on an almost virgin install. Come to find out for some reason the upgrade did not work properly. So I deleted the whole site out including database, installed 2.4 full and then followed the install docs for contributions manager and all works with no issues. For some reason 2.4 upgraded did not work properly not did the links to the contribution work either. This contribution now works on 2.3.3.4 and 2.4. Thanks, Shawn Mulligan
  15. This thread was started for support of an old but revived contribution. I do not take full credit for the contribution but at the time of this posting I am taking full credit on tearing it apart, redoing logic, and making it compatible with OsCommerce 2.3.3.4. I will start this thread off with giving credits and posting the contents of the changelog file. I will reply to all posts when needed, when I can. Please be patient if I do not reply ASAP, as this is not my full time job and do have a family to tend to as well. I do appreciate any and all comments, questions, possible added feature requests as well, although I think this is pretty robust to begin with. Thank You all for your time. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- Contributions Manager Version 1.0 For 2.3.3.4 June 6th 2014 By Shawn Mulligan ########################################################### With Thanks to the following people for the 2.2 Version # Found Here: http://addons.oscommerce.com/info/1126 # User: Robert Hellemans - Original 2.2 Author # User: Lee Nielson # User: Druide - http://addons.oscommerce.com/profile/4805 # User: owl666 - http://addons.oscommerce.com/profile/88225 # ########################################################### Version 1.0 -Created New Forum Support Thread -Changed the order of changelog.txt to go from current to past -Renamed Contribution from Contribution Control & Bookmark Mod to Contributions Manager -Renamed files to reflect the new Contributions_Manager from the old Installed_Contributions -Rewrote code to work with OsCommerce 2.3.3.4 -Renamed tep_set_admin_query_status() to tep_set_contributions_manager_status() -Moved tep_set_contributions_status() to /admin/functions/contributions_manager.php -Created 3 more functions tep_set_contributions_manager_sort_order() and function tep_get_contributions_manager_sort_image() and function tep_count_contributions_manager() -Improved the logic to the original Sort Function -When you select how to sort, it stores it in the database and will stay sorted that way until you change it -Improved Up and Down Arrow Icons. Tinged with a little green and whatever you selected to sort the arrow is red. -Added Category to List and Sort by category Ascending and Descending -Removed Search Box -Removed Category Select Drop Down Box -Removed p join references with no sql joins -Renamed Variables to be meaningful -Removed Copy To Button - Don't see a need to make a second copy of a contribution -Changed Location From Configuration to TOOLS. Seems more fitting. -Used OsCommerce 2.3.3.4 css button to create the Add New Contribution. -Changed DeleteConfirm Logic to not allow deletion of contribution if only 1 exists. -Improved a little on the Help Page -And Probably much more not mentioned since this is a complete rewrite of code / logic / naming conventions / 2.3.3.4 Compatibility TODO: --change status to BUTTONS / RADIALS / CHECKBOX / DROPDOWN at EDIT (Lingering from Version 0.1.3) --Complete HELP INFO on all pages, link is there but not all the info is completed yet (Lingering from Version 0.1.3) --Change edit, delete and preview buttons to complete css --Add ability to upload original Install Text and SQL - Would make it easier than tracking it down for your exact install. --Possibly add the ability on the add / edit page to select from a list of all OsCommerce files which ones were changed during install and / or modification. --Probably more, but forgot what they were as I was writing the code and didn't take notes on. ######################################################################################################################## Version 0.1.4 MS2 update by admin@@MaxiDVD.com.au CHANGELOG - changed file admin/installed_contributions.php to support new array_merge function for MS2 Fixed small bug in "Select Target Release - Drop Down Menu" to update and recall changes - changed image add_to_database.sql version 1.3 to 1.4 && MS1 to MS2 - changed image admin/includes/languages/english/images/buttons/ic_up.gif - changed image admin/includes/languages/english/images/buttons/ic_down.gif to image admin/images/icon_down.gif to image admin/images/icon_up.gif ######################################################################################################################## Version 0.1.3 by webmaster@ruddlesmills.com CHANGELOG - changed file admin/installed_contributions.php fixed the search results page from this contribution - changed file admin/includes/languages/english/installed_contributions.php TODO: - change status to BUTTONS at EDIT - write HELP INFO on all pages, link is there but the info is not completed yet - make the categories with edit function - make a direct link on INSERT page to change the used URLs - go get some beer to get through the night :) ... ######################################################################################################################## Version 0.1.2 by webmaster@ruddlesmills.com CHANGELOG - changed file admin/installed_contributions.php - changed file admin/includes/language/english/installed_contributions.php - fixed links at page number results - added 'Select Category' for display per category - added with INSERT/UPDATE option: SELECT or add new 'Category' - added with INSERT/UPDATE option: SELECT or add new 'Release Target' - improved the links - fixed the link from the RESET button at INSERT/UPDATE page - added a sub title to HEADER_TITLE & more... ######################################################################################################################## Version 0.1.1 by webmaster@ruddlesmills.com CHANGELOG - changed file admin/installed_contributions.php - improved code logic on query - improved the links - changed installation notes (with my name on top again) ######################################################################################################################## Version 0.1 by webmaster@ruddlesmills.com CHANGELOG - BENJAMIN MOKEY made changes to installation notes (thank you for that) & DELETED my info from this page too :( - same person uploaded MY contribution under a new category, this is SOOO WRONG !!! (he should have added the file to the package and not deleted my info, read the rules for that !!) ######################################################################################################################## Version 0.1 by webmaster@ruddlesmills.com CHANGELOG - 4 full days of hard coding & testing and this 'got to have it' contribution has become a real working thing ;) ########################################################################################################################
×