Community Add-Ons
Administration Access Level Accounts 2.0
for osCommerce Online Merchant v2.2
This is a re-work of 'Admin Account with Access Level' 1.2 by Zaenal Muttaqin to work with MS2. Here's the original:
http://www.oscommerce.com/community/contributions,1174
I had to stretch my poor PHP skills to get this to work, I did almost nothing to it. All credit goes to Zaenal.
There's two folders, an 'original' folder with all of the files not distributed with MS2 and a 'modified' folder with files that have been modified from MS2. With a virgin MS2 install simply copy all the files over the orginial MS2 files.
Here's the discussion for this:
http://forums.oscommerce.com/viewtopic.php?p=197787
Bug:
When a admin without permission click in some link in catalog/admin/index.php an error mesage is generated. The system canot find "FILENAME_FORBIDEN"
Fix:
file : admin/includes/functions/general.php
function : tep_admin_check_login
what to do : replace "FILENAME_FORBIDEN" to "FILENAME_FORBIDDEN"
The attached file is a dummy file that contains exactly what's written here.
This bug fix the checkbox in "Define Groups" page.
All you have to this is:
In file admin/includes/account_check.js.php
replace all
this.defineForm
to
document.defineForm
:-)
Cristiano Meira Magalhães
=========================
crixtiano@gmail.com
This fix addresses the issue when integrating Adminstration Access Levels Accounts 2.2a with the register globals contribution whereby you cannot edit admin accounts once setup(i.e. cannot change password, details, etc).
The attached file contains instructions only and is not the full package
This fixes a bug in the 24 Jan 2006 2.2a full package.
In the admin/includes/application_top.php file, the line:
if (basename($PHP_SELF) != FILENAME_LOGIN && basename($PHP_SELF) != FILENAME_PASSWORD_FORGOTTEN) {
should be changed to:
if (basename($PHP_SELF) != FILENAME_LOGIN && basename($PHP_SELF) != FILENAME_PASSWORD_FORGOTTEN && basename($PHP_SELF) !=
FILENAME_FORBIDDEN) {
The attached file is a dummy file that contains exactly what's written here.
This is the Dutch language update conctribution for Admin Acces 22a. You need to have Admin Access 22a installed. It also includes the Dutch button graphics. Enjoy
This fixes a bug in the 2 Feb 2006 2.2a full package, which as of now is regarded as the most recent "stable" version.
In the admin/admin_members.php file, line 472:
$contents[] = array('align' => 'center', 'text' => TEXT_INFO_EDIT_GROUP_INTRO . '<br> <br>' . tep_draw_input_field('admin_groups_name', $gInfo->admin_groups_name));
TEXT_INFO_EDIT_GROUP_INTRO should be TEXT_INFO_EDIT_GROUPS_INTRO.
In the admin/includes/functions/general.php file, line 973 and 974 are:
tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where products_id = '" . (int)$product_id . "'");
tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where products_id = '" . (int)$product_id . "'");
These lines were changed as a bug fix in the 060817 update of osCommerce core files. These should be changed to:
tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where products_id = '" . (int)$product_id . "' or products_id like '" . (int)$product_id . "{%'");
tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where products_id = '" . (int)$product_id . "' or products_id like '" . (int)$product_id . "{%'");
The attached file is a dummy file that contains exact what's written here.
Here are some Bug Fixes to oliswiss' last Extensions because they rewards the patch-process with the error:
Categories / Products
-> Categories / Products Status Action
1065 - Query was empty
Fixes:
======
General changes
---------------
- German translation revised, e.g. 'Account' -> 'Konto'
- Some Buttons changed, too
- No 'patch' file - you get the complete file, so that
using a Merge-Tool is no problem
admin_members.php
-----------------
- Admin-Group-Member-Editing:
works now: You can (re)define the categories-access rights
- Admin-Group-Member-Creating:
works now: You can define the the categories-access rights
and they are saved now to the Database
- Some buttons replaced:
- 'Insert' -> 'Save'
- 'Next' -> 'Save'
You have to merge the PHP-Files with your version. If you use
a Merge Tool like WinMerge
-> SourceForge.net WinMerge,
http://sourceforge.net/projects/winmerge
this step should be simple.
02.07.2006, Thomas Schittli
Current support thread is here - file is a dummy
http://forums.oscommerce.com/index.php?showtopic=186194&hl=
sorry for previous - to click happy
This extension makes it possible to set rights to product categories on their highest level for administrators.
The Administrators see only those categories, on which them corresponding rights possess.
Administrators of the group 1, thus the Top administrators, have full rights for all categories.
The options for categories (new category, edit, delete, move) as well as those for products (new product, edit, delete, copy, move) can be assigned to each administrators, which are not member from the Top-Admin group.
in english AND german
CONTAINS:
- FULL PACKAGE of this Contribution
- PATCHFILES for earlier versions
This extension makes it possible to set rights to product categories on their highest level for administrators.
The Administrators see only those categories, on which them corresponding rights possess.
Administrators of the group 1, thus the Top administrators, have full rights for all categories.
The options for categories (new category, edit, delete, move) as well as those for products (new product, edit, delete, copy, move) can be assigned to each administrators, which are not member from the Top-Admin group.
in english AND german
CONTAINS:
- FULL PACKAGE of this Contribution
- PATCHFILE for earlier version
The Patch solves following Problems:
- Administrators (not group 1), which did create a category, couldn't display it due to he had no rights on it (solved).
- a small bug in the first version prevented the deletion of a category (solved).
- Wheelmouse-problem with JavaScript solved.
The German Definitions have been corrected and upgraded because of big grammar mistakes.
Die deutschen Files wurden korrigiert und verbessert, da die ursprüngliche Übersetzung grobe grammatische Fehler aufwies, was daran liegt, dass die englischen Files einfach mit google übersetzt wurden, wobei immer große Missverständnisse entstehen.
Just a little tweeking here and there...
Moved style attributes to a separate file.
Numbered edits for ease of disabling/locating
Added "Includes Contribution" line to file headers
Added disabling directions to edited areas.
Reformatted the index.php page to show Administration and My Account at the top of the main navigation area.
Reworded a few of the language files. Translations are compliments of Dictionary.Com translator. {I'm sorry I can't be more precise in my translations, but other than Ancient Greek I'm stuck with English here.}
Added instructions for installing after other modifications and contributions are already installed. (22a-README.txt)
This extension makes it possible to set rights to product categories on their highest level for administrators.
The Administrators see only those categories, on which them corresponding rights possess.
Administrators of the group 1, thus the Top administrators, have full rights for all categories.
The options for categories (new category, edit, delete, move) as well as those for products (new product, edit, delete, copy, move) can be assigned to each administrators, which are not member from the Top-Admin group.
in english AND german
This is the full previous Admin-Access-Level package (2.1_1) with UPDATE to oscommerce-2.2ms2-051113.
The package includes definitions of constants in the following languages: english, french, spanish, italian, german.
some bugs are corrected in the file french.php :
a parse error and the french date formating behind :
// look in your $PATH_LOCALE/locale directory for available locales..
// on RedHat6.0 I used 'en_US'
// on FreeBSD 4.0 I use 'en_US.ISO_8859-1'
// this may not work under win32 environments..
setlocale(LC_TIME, 'fr_FR.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('PHP_DATE_TIME_FORMAT', 'd/m/Y H:i:s'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
function tep_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
}
}
This package has been written originally by Zaenal Muttaqin for osCommerce's Administration Tool (MS1), after customized by Seth Lake to works on osCommerce (MS2), with refinements by Herald Ponce De Leon.
Then, the existing works have been joined by Piero Trono (http://php-multishop.com) in this package that includes the complete translation in spanish, italian and french (translation in french thanks to CRDD - coroidedroite@yahoo.fr), including the button images and some missing variables.
I have added just one missing instruction to the admin/language/english.php file. You can overwrite your file with mine or you can put the missing instruction at line no 305. The instruction is:
define('TEXT_INFO_EDIT_GROUP_INTRO','Edit Group Introduction');
The Web Development Network [www.wadaan.net]
some small fixes, more email and SSL. not a major update.
thanks to Keith (xtreemsurf) for finding the fault in SSL compatibility. Fixes this issue.
Update the Administration Access Level Accounts 2.1 for Espanish Language
this is an update to 2.1 fixing the bad email text for forgotten passwords.
This is a re-work of 'Admin Account with Access Level' 1.2 by Zaenal Muttaqin to work with MS2. Here's the original:
http://www.oscommerce.com/community/contributions,1174
I had to stretch my poor PHP skills to get this to work, I did almost nothing to it. All credit goes to Zaenal.
There's two folders, an 'original' folder with all of the files not distributed with MS2 and a 'modified' folder with files that have been modified from MS2. With a virgin MS2 install simply copy all the files over the orginial MS2 files.
Here's the discussion for this:
http://forums.oscommerce.com/viewtopic.php?p=197787
