Community Add-Ons
Contrib Installer
for osCommerce Online Merchant v2.2
Contrib Installer
Contrib Installer is an easy way to install contributions for osCommerce without manually editting files.
Installing a contribution with Contrib Installer requires a simple package which describes the contribution. I have included the Image Check contribution as an example. I am currently working on supporting other contributions (need help here!), so hopefully there will soon be Contrib Installer packages for many other contributions. If you want to help with making packages (it's very easy), that would be wonderful. For more info see the README.txt file in the package.
If you have any questions, comments, or problems, please post on the support thread:
http://forums.oscommerce.com/index.php?showtopic=156667
Changes since 2.0.6 (2.1 is very buggy):
-All strings located in language files.
-Removed intefration with phpbb. Removed class phpbb_user and phpbb forum features.
-Fixed bug with Contrib Installer removing.
-Changed layout and design.
-All code was cleaned up.
-PHP-tag now is not supported because of security reasons.
-All CSS rules moved to separated CSS-file (includes/contrib_installer.css)
-Buttons Pack/Unpack and Download is not shown by default. If you want you can turn them on on shop's configuration.
-Added russian translation made by Vam (http://vamshop.com/)
-Added new parameters in description tag:
<post_install>God bless you!</post_install> - message that will be shown after install
-Added javascript confirmation for file deleting. Now page will be reloaded only once.
-Removed editing, downloading and some unneeded features.
-New parameter MAX_UPLOADED_FILESIZE.
Full package.
Changes since 2.0.6
Removed class phpbb_user and phpbb forum features.
All CSS rules moved to separated CSS-file (includes/contrib_installer.css)
Code of cip_manager.php was cleanned up.
Buttons Pack/Unpack and Download is not shown by default. If you want you can turn them on on shop's configuration.
If this buttons is not showing their functions not allowed too.
Added russian translation made by Vam (http://vamshop.com/)
Added new parameters in description tag:
<pre_install>Backup first!</pre_install> - message that will be shown before install
<post_install>God bless you!</post_install> - message that will be shown after install
Added javascript confirmation for file deleting. Now page will be reloaded only once.
Changes since 2.0.5:
Fixed bug with empty lines which contain only whitespaces. This strings was removed by CI and this is wrong behaviour.
Fixed mistake in function name multi_serach() have became multi_search()
Fixed security bug: everybody could remove your CIP if admin's area has no password protection.
Added log system. By default this system is turned off. To switch on set a config parameter (Admin-> Configuration -> Contrib Installer-> Use Log System. Log file will be stored in Backups folder.
Changed class addadminmenu.
This is really new version.
Just try and you will understud.
Design, layout and code was changed a lot.
Read Changelog.txt for details about changes and features.
You could also check http://sourceforge.net/project/cip/ for new releases and CVS.
I just found a bug in action_contrib.php file in the functions folder, and fixed it!
Just replace this file with the old one in: catalogadminincludesfunctions or remove the line 103! (well i got the error but dont know if any other got the same error).
Changes since 1.0.15:
- Fixed an old bug in permissions_check.php [function del_file_permissions_check()]
This bug chacks premission in wrong way like in addfile (see 1.0.14a)
- Added new comments type "bash". Looks like this:
# comment
CIP package for Simple Template System 4.1 including german modules and Backend Translation (Full Package)
CIP package for Simple Template System 4.1
Full package.
Changes since 1.0.14a:
- Added in addcode_xml_check()
($t_array[$loop_index]['FINDLINENUMBERS'][0]['@']['TYPE'] != 'continued' or
$t_array[$loop_index]['FINDLINENUMBERS'][0]['@']['TYPE'] != 'new'))
So we can use both type="new" and type="continued".
- Fixed bug. When register_globals is Off Contrib Installer losts the contrib name at the installation time.
Now the contrib name is a function parameter for each function in this files:
conflicts_check.php
permissions_check.php
xml_check.php
tag_actions.php (here is a function call)
CIP for Forum V0.9a, a light wieght Forum for OSC2.2 MS2 by Karsten Ley
This is my first try a creating a CIP. Vlad Savitsky if you can check this out hopfully we can have another addition to the list of CIP's.
CIP file for installing Simple Template System 4.07 Plus
CIP file for installing Easy Populate 2.79a with the fix #1.
Full Package
German translation of messages and buttons for Contrib Installer 1.0.14
Deutsche Übersetzung der Mitteilungen und Buttons für Contrib Installer 1.0.14
Full package.
Changes since 1.0.14:
- bugfix for function addfile_permissions_check
- changed design of contribs list in contrib_installer.php to use with admin language different to English
Full package.
Changes since 1.0.13:
- added function recursive_permissions_check($path) (contrib_installer_base.php).
del_file (on permissions stage) checks if file and folders is writable recursivly...
- changed design of contribs list. Now we have a buttons near each contribs so we can use as many contribs as nessesary.
- Added definitions for buttons alt text in lang-file:
define('IMAGE_BUTTON_INSTALL', 'Install');
define('IMAGE_BUTTON_REMOVE', 'Remove');
- Changed message when file not exists form "Can't read file" to "File don't exists"
- added file How_To_Make_Contrib_Installer_Package.txt
Full package.
Changes since 1.0.12:
- Added a link for searching CIP's on osCommerce site.
- On init page not printed current version of Contrib Installer. Fixed.
- Fixed bug in function addcode() in tag_action.php.
If CI can't find lines he use trim() to delete linebreakes and whitespaces at the end of line.
Then he tryes again find new string. When new line was found CI do not recalculate string length.
Fixed.
Full package.
Changes since 1.0.11:
- Fixed stupid bugs. (some sections in install.xml was commented).
Full package.
Changes since 1.0.10:
- Fixed a bug when reports an error at addcode Contrib Installer said that error in findreplace- section.
- Added permissions settings for created by script (withscripts rights) contrib folders and backup (0777).
- Added new xml-parser which must fix an error of self-installation of Contrib Installer.
- added function html_end() which allows to have a nice page (wuth CSS) if error appears...
- Fixed bug which prints a constant name if used not english language. Now if constants not defined we use defaults.
- Fixed bug with unpacking a CIP's. Path to archivers on real server (on wild internet) can be just an archiver name.
But this can cause of errors...
- Added tag-name in all error messages in permissions_check.php and contrib_installer_base.php (recurcive_mkdir()).
- Fixed a bug with removing linebreakes from data from xml-file. Rinon gives an advice.
Full package.
Changes since 1.0.9:
- Added support for archived CIP's. Now they can be uploaded on server and unpacked by Contrib Installer.
Supported: zip
Unsupported yet: tar.gz, tar.bz, tar.bz2
- Added check for folders with CIP. Now we are looking for an install.xml in this folders and if find you will see it in contribs list.
- Now when Contrib Installer prints a list of CIP's he reads install.xml and do an xml_check for description-tag.
Added new function to xml_check.php - description_xml_check()
Full package.
Changes since 1.0.9:
- Added support for archived CIP's. Now they can be uploaded on server and unpacked by Contrib Installer.
Supported: zip
Unsupported yet: tar.gz, tar.bz, tar.bz2
- Added check for folders with CIP. Now we are looking for an install.xml in this folders and if find you will see it in contribs list.
- Now when Contrib Installer prints a list of CIP's he reads install.xml and do an xml_check for description-tag.
Added new function to xml_check.php - description_xml_check()
Full package.
Changes since 1.0.8:
- Fixed problem with search-strings founded several times (not original) when selfinstall works.
- Added install instructions on initial page.
Full package.
Changes since 1.0.7:
- Fixed a problem with 4th parameter $count in srt_replace() which available only PHP 5.0 and above. (Problem reported on forum).
- Fixed bug which don't print a line numbers in findreplace on conflicts check stage.
- Fixed bug which apears when we remove Contrib Installer. We remove table and after it tries to delete from this table some data.
- Removed files that belong to Contribution_Control_Bookmark_MOD-0.1.4. Also removed data from install.xml.
Full package.
What was changed since 1.0.6:
- Changed function linebreak_view() to view a real linebreaks which we tryes to find but not linebreakes from xml-file.
- Changed in check_conflicts.php findreplace and addcode which now if we can't find a string
delete whiespaces and linebreakes and research again. If can't find second time we print a message.
So we can resolve some conflicts automaticly!!!
Also changed tag_actoins for this feature can work.
- Added How_To_UpDate.txt, How_To_UnInstall.txt, How_To_Install.txt
- Removed *.jpg from Contrib Installer package (~150 kb)
- Removed Install instructions from readme.txt
Full package.
What was changed since 1.0.5:
- Fixed bug in permissions_check.php. When we del_file and need a write permission we print parent dir name of file.
Now we print a full file path (with filename).
- Added some strings from conflicts_check.php to language-file. Now they can be translated into another languages.
- Added a "Contrib Installer" link on Admin Area page (index.php)
- if we use
<findlinenumbers type="continued" />
<originallinenumbers type="continued" />
and on a conflicts check stage we have more than one search results we do not print a message and replace all of them.
- Fixed a bug that do not let to find strings when remove (in addcode and findreplace)
- When one CIP tryes to change file changed by another CIP we print a message HOW TO RESOVLE_CONFLICTS
- Conflicts message apears only if we can't find a string. If we can find it - we pass by.
- When file contains whitespaces at the end of lines - we could'n find a string if in xml-file we do not have a whitespace.
Now this problem resolved. we remove a whitespaces from file and from string that we find.
(function linebreak_fixing() - used ereg_replace instead of str_replace)
Full package.
What was changed since 1.0.3:
- From Contrib Installer removed (commented) Contribution_Control_Bookmark_MOD-0.1.4.
All files leaved in place but they don't used. In xml-file commented some code. I think this will resolve a problem
which reported on osc forum.
- Fixed bug with adding html-comments. Now you can do it in this way:
<add type="html">
<replace type="html"> - will use html-comments
<replace type="php">
<add type="php"> - php-comments
- Fixed Bug. FindReplace uses str_replace() which replaces all serach strings (not first one).
Now we print a message about it when conflicts Check (needed PHP 5.0.0).
- Removed Contrib Installer version from comments when insert a code into files.
- added some javascript code (from oscommerce.org) that helps to haide runtime messages when it's not nessesary.
This made in osc-site style. You can click on link and you will see all this messages but on default wedon't show them.
- added one more check to conflicts_check.php. When <addfile> we check if file exists in CIP folder.
- added a highlighting of installed contribs on Contrib Installer page in admin. They now in bold.
- All errors messages (placed in conflicts_check.php and tag_actions.php) now displaying a number of section in xml-file which have a problem.
So messages will be more helpful and useful.
- Fixed problem with linebreakes. Unix mashines loves "n" as a linebreak but windows - loves "rn".
So now we modify files to windows-style and also change a data from xml-file. They now can be compared correctly.
-Changed comments. We have problem when insert php-comments into html-code. Now this fixed.
As default we use php-comments.
When we found in <findreplace> or <addcode> parameter type="html" we use html-comments.
<findreplace type="html">
<addcode type="html">
If no type setted we use php-style for comments.
- Backup folder moved from contrib's folder to admin/backup/
Now user must make writeable this folder only once.
In future this backuped files may be easyly removed.
- When install contrib we now backup database into /admin/backups too. Gzip is used.
- function sql_xml_check($t_array, $action='') changed. Now we check <query> and <remove_query> when install and when remove.
Before we check only one tag so You could install but have no posibility to remove CIP.
This is full pacage. Stable.
1.0.3
- Bug fixes
- Added total BACKUP. Before make any changes to file Contrib Installer copy them to folder 'backup' under CIP-folder.
Example: admin/contributions/BTSv1.5d/backup/
So later you can easily restore files or resolve conflicts.
- Changed install.xml (selfinstall) to fix an error described in forum (page 6). This about SQL sintacs.
- Support of languages that differs from english. Usefull for language files.
- Added changelog.txt
1.0.2
- Correct changes (addcode and findreplace ) in languages-files (different
from english - like russian, ukrainian and etc.). XML-files should be in
original charset. (In xml_parser used 'UTF-8').
- Added Contribution_Control_Bookmark_MOD-0.1.4
- Contribution_Control_Bookmark_MOD-0.1.4 changed to use Contrib Installer to
delete contribs
- Fix a bug in addcode
- Fix a bug in addfile (files have not removed when uninstall)
- Changed conflicts check. Now check if needed file exist and is it file and
is it writeable. And also checks is it link for file.
- Fixed a bug when some CIP tryes to change the same file and find the same
strings.
- Added text on 'init' page which tells how to change permissions on Unix
(from readme.txt)
- Added new tag 'delfile'. When delete (install contrib) - CI just copy it
into contrib folder and than restore it when uninstall contrib.
- Added NEW way to resolve a conflicts for 'find and replace'. Replaced code
not deleted but just commented. So if another contrib tryes to find strings -
CI will find and will made a changes but they will be commented (in comment
area) so after install contrib will not work and you should repaire it by
hand. Note: you will see all changes in file with info about what contrib was
done it.
This is BETA. Full package.
Stable is v0.5d.
Changes:
- fixed bugs with write permissions
- fixed bugs when sql errors apears
- corrected recordind to "installed_contributions" table
- some small changes
This is BETA. Full package.
Stable version is 0.5d.
Changes:
- some checks before install:
--- xml check
--- permissions check
--- conflicts check
- self install from xml-file. So can be made self UNinstall.
-new tag PHP. Can be used any code (see contributions/contrib_installer/install.xml)
- code was reordered and more structurized
- and more...
God bless you in using this package.
http://solti.com.ua
Full pakage.
Small bug fixes for 0.5c.
(Don't show header of page- fixed)
http://solti.com.ua
Full pakage.
- Bug fixes for 0.5b.
- All language strings made as a constants
(in catalog/admin/includes/languages/english/contrib_installer.php)
so contrib can be translated to ohter languages.
http://solti.com.ua
Full pakage.
Bug fixes for 0.5:
- In previous (0.5) version only cleans broken Installations. This version (0.5b) clean up broken uninstallations.
(when removing files but this files don't exist - only prints a message and pass by).
http://solti.com.ua
This is full packege.
Changes to v0.4:
* After brocken installation you can clean up all changes that was already made. This gives you ability quickly reinstall without cleaning by hands.
* fixed example contribution. So you will noty see any errors while install it.
http://solti.com.ua
I've decided to separate the contribution install packages (cip) from the base Contrib Installer. Install packages will no longer be included on this page, but will rather be available for download from their respective original contribution pages. A list of packages that are compatible with the Contrib Installer will be available on the Contrib Installer announcement thread ( http://forums.oscommerce.com/index.php?showtopic=156668 )
This is a full base package without any other contributions included.
This is an install package for Article Manager 1.2b. To install, just unzip into your contributions directory, then install via the web admin interface.
This is an install package for Attibute Sets 5.5. To install, just unzip into your contributions directory, then install via the web admin interface.
This is an install package for Header Tags Controller 2.5.3. Please test thoroughly, since this package should be considered beta. To install, just unzip into your contributions directory.
This is an updated install package of Administration Access Level Accounts. Several bugs in the install package have been corrected, but nothing in the actual Administration Access Level Accounts contribution has changed. To install, just unzip into your contributions directory.
I have included the following contributions:
Administration Access Level Accounts 2.0 (version 2.1.1)
All Products Page (version 2.8)
osCommerce PayPal IPN Module v1.0 For 2.2MS2 (version 1.1)
Contribution Control & Bookmark MOD (version 0.1.4)
Image Check (version 1.2)
(This is the full package.)
--------------------------------------------------------------------------
How to upgrade Contrib Installer from version 0.2
--------------------------------------------------------------------------
* STEP 1 * - Copy the catalog/admin/contrib_installer.php file to your osCommerce directory.
* STEP 2 * - Copy the contributions/ directory to your contributions directory (you can safely overwrite any files, as long as you haven't manually altered anything in the contributions directory.
* STEP 3 * - (OPTIONAL) Run these sql queries:
UPDATE installed_contributions SET last_update = '2005-07-22' WHERE contr_ref = '3286';
This release fixes several bugs. I have also included the following contributions:
Contribution Control & Bookmark MOD (version 0.1.4)
Image Check (version 1.2)
(This is the full package.)
Sorry, I forgot another file. I hope that this is the last time. Please disregard the previous package. (This is the full package.)
Sorry, forgot files in the last package. Please disregard the previous package. (This is the full package.)
Contrib Installer
Contrib Installer is an easy way to install contributions for osCommerce without manually editting files.
Installing a contribution with Contrib Installer requires a simple package which describes the contribution. I have included the Image Check contribution as an example. I am currently working on supporting other contributions (need help here!), so hopefully there will soon be Contrib Installer packages for many other contributions. If you want to help with making packages (it's very easy), that would be wonderful. For more info see the README.txt file in the package.
If you have any questions, comments, or problems, please post on the support thread:
http://forums.oscommerce.com/index.php?showtopic=156667
