MyECP

Shopping Cart





0 x Item    

€0.00
Vous êtes ici:
Decrease font size  Default font size  Increase font size 
French (Fr)English (United Kingdom)
MyECP / OsCommerce 2.2 Installation Guide PDF Print E-mail

Installation MyECP / osCommerce 2.2

Thanks for chosing MyECP and we hope you will have a good time to build your project.
To start go on our web shop to read your order in which you will find the license number to active the MyECP installation.
If you cannot find it and that you have already made a valid order with a approved payment, just contact us and we will validate your order very quickly.
Once you have the license number, download the "MyECP_osCommerce_2.2.zip" file in the downloads part of our site => "http://myecp.net/boutique/fdm_folder_files.php"
Download also the file named "com_myecp_installer.zip" which will be useful for the second part of MyECP installation.

Part 1 - IonCube Loader Installation
The installation of this loader is necessary, we have take the option to protect our work to avoid illegal copy and sharing. Only modules are not crypted, we have just protected some files not very useful.
Remember that the IonCube loader is a kind of cache and the files are not protected but converted to OpCodes in PHP format which can be useful to optimise bridging of CMS !
You will need this guide which explain how to install IonCube loader (compatible with Linux, Windows and Mac) HERE

Partie 2 - MyECP Installation in OsCommerce 2.2
For this part we will install MyECP in OsCommerce 2.2 and then install MyECP in Joomla.
1) Uncompress "MyECP_osCommerce_2.2.zip" archive and transfer the containing at the root of the shop at the place where are the files named: account.php, account_edit.php, account_history.php ...
2) Now we must edit 3 files because thanks to MyECP you will not need a complex setup.
To start we must edit the file "/includes/myecp/myecp_config.php". Inside this file you will see 2 lines that you must replace.
In the line JPATH_BASE set the internal path of your Joomla site and in line JURL_BASE set the URL of your site who contains also Joomla. If you don't know it, create a file PHP and insert a code :

<?php
if (isset( $_SERVER["HTTPS"] ) && $_SERVER["HTTPS"] == 'on') {
$myecp_is_ssl_connection = 'https://';
} else {
$myecp_is_ssl_connection = 'http://';
}

$parse_url = parse_url( $myecp_is_ssl_connection . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] );
$pathinfo = pathinfo( $parse_url['path'] );
echo 'JPATH_BASE = ' . dirname( __FILE__ ) . '<br />'
. 'JURL_BASE = ' . $parse_url['host'] . (( $pathinfo['dirname'] != '/' ) ? $pathinfo['dirname'] : '');

?>

Transfer it at the root of your Joomla site where are stored the following files : configuration.php, index2.php, index.php ...
Upon completion access this file through an URL and note the two lines listed just after the symbol =, then you must write them in this file : "/includes/myecp/myecp_config.php".
Now it's time to modify the second file, just get the file "/includes/application_top.php" and follow these steps :
Add on the second line or just after <?php this:

/**
* .::Contribution MyECP::.
*
* NOTE : Define Security & Include MyECP "Top"
*/
define( '_MYECP', 1 );
if (file_exists( 'includes/myecp/myecp.php' )) require_once ( 'includes/myecp/myecp.php' );

Add to the last but one line or just before ?> this :

/**
* .::Contribution MyECP::.
*
* NOTE : Define Security & Include MyECP "Bottom"
*/
if (file_exists( 'includes/myecp/myecp.php' )) require ( 'includes/myecp/myecp.php' );

This is how it should be :

<?php
/*
$Id$

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2008 osCommerce

Released under the GNU General Public License
*/

/**
* .::Contribution MyECP::.
*
* NOTE : Define Security & Include MyECP "Top"
*/
define( '_MYECP', 1 );
if (file_exists( 'includes/myecp/myecp.php' )) require_once ( 'includes/myecp/myecp.php' );

// start the timer for the page parse time log
define('PAGE_PARSE_START_TIME', microtime());
..
....
......
define('WARN_SESSION_AUTO_START', 'true');
define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');

/**
* .::Contribution MyECP::.
*
* NOTE : Define Security & Include MyECP "Bottom"
*/
if (file_exists( 'includes/myecp/myecp.php' )) require ( 'includes/myecp/myecp.php' );

?>

For the third file edit "/includes/footer.php" and follow these instructions :
Add to the last but one line or just before ?> this :

/**
* .::Contribution MyECP::.
*
* NOTE : Joomla Footer
*/
if (is_object( $Functions_MyECP )) $Functions_MyECP->MyECP_HTML_Header('footer');

This is how it should be :

<?php
/*
$Id$

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

require(DIR_WS_INCLUDES . 'counter.php');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
..
....
......
</table>
<?php
}

/**
* .::Contribution MyECP::.
*
* NOTE : Joomla Footer
*/
if (is_object( $Functions_MyECP )) $Functions_MyECP->MyECP_HTML_Header('footer');

?>

And here is the fourth file which will be important to keep a perfect synchronization of the sessions. To do so just edit the file "includes/functions/sessions.php" and follow this :

Look for this line :

if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) {

And replace it with :

if (!$SESS_LIFE = ini_get('session.gc_maxlifetime')) {

That's how it sould look like :

<?php
/*
$Id$

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2008 osCommerce

Released under the GNU General Public License
*/

if ( (PHP_VERSION >= 4.3) && ((bool)ini_get('register_globals') == false) ) {
@ini_set('session.bug_compat_42', 1);
@ini_set('session.bug_compat_warn', 0);
}

if (STORE_SESSIONS == 'mysql') {
if (!$SESS_LIFE = ini_get('session.gc_maxlifetime')) {
$SESS_LIFE = 1440;
}
..
....
......

Now we only have to delete the left and right modules because osCommerce do not work as a template. We must edit the following files "/includes/column_left.php" and "/includes/column_right.php"
Be careful and before any modifications make a backup of these two files.
The modification required is very simple, you must empty all the content of the file exception made of PHP tag, Here you can see the result of this method for both files :

<?php

?>

If you replace all codes by this, your modules will disappear and let place to those of Joomla and of course MyECP.
Now the installation of part 1 is over, not too hard, isnt'it ?
If you have no result this is normal you must complete the second part of MyECP installation to make it work.


Part 3 - Installation of MyECP in Joomla
This second part is more simple because no modification of file is required.
1) Connect to the admin interface on your site containing Joomla and click on the tab "Extensions" => "Install/Uninstall" and import the file "com_myecp_installer.zip" from the interface which allow the transfer an archive.
Once transfer validated, "MyECP Installer" is launching.
2) Click now on Composnents tab and you will see "MyECP Installer". Just click and insert the license number delivered to you after your order and click "Apply".
You can check if any red mark is present. This is very important for MyECP to fuinction correctly. In the case you cannot validate all these requirements, we rember you that our Team is at your disposal as you can contact us on our site. We will quickly help you to solve any problems.
Once all tasks are done click on the install icon and if all is ok a message indicate you that a certain number of extensions are installed on your site.
3) Now MyECP is well configured you need to activate plugins and fill a few fields which are necessary for MyECP. Go in the menu "System Check" and activate plugins marked in red an then in the menu "Configuration" fill the fields marked with a red cross. To guide ypou each fields is commented with a description.
Now the installation of MyECP is over, just activate and place the modules that you want as for example add forums ou even an image animation module to emphasize your products.

If you have any questions or if you need any help contact us on our site=> http://myecp.net/index.php?option=com_contact&view=contact&id=1&Itemid=60

The Linethis Team

 

MyECP Demo

Online Demo :

Portal
Catalog
Catalog Admin

JoomSEF3 / JFusion Frameless Demo

Online Demo :

Forum "phpBB 3.xx"
Forum "SMF 1.xx"

Login Form



Shopping Cart

more0 items

Pub SIP-Online

Services Informatiques Rouen Normandie - Dépannage Maintenance - Réseau - Telecom - Hébergement Web - Eure - Seine-Maritime