OSCNUKELITE INSTALLATION MANUAL

 

Project developers –

Bruno (Nonal), Henry (Whitehat)

 

 

Introduction -

With recent problem we had in our team and our recent move to http://osc2nuke.org , it was a good time to make new versions and show every body who have ever been the only coders of oscnukelite project (whitehat and I, and now the dreamlike team is proud to count Vic and tam as members).

This documentation is based on the installation of the full version of oscnukelite but the step are the same for the module some differences in the fact that module installation need more manipulation to be achieve.

But because of the integration of a full wysiwyg on oscommerce part as on phpnuke part, a full rewrite based on GT-ngeneration that cover all the modules that are inside the version (even future u will install) in the spirit to be adapted to each store with few line to change in 3 file, a lot of sensitive modifications in Your_Account module to match with the new integration on table customers into table nuke_users, we think it is smarter to release first a full version. And in a second time the module with a specific documentation for it.

Now I will describe a little the installation and the configuration of your store with oscnukelite but before a description of our version is needed.

 

 

OSCNUKELITE Description –

 

Based on PHPNUKE 7.2 Patched there are 6 languages that you can find in all ours version for oscommerce part:

 

French, English, German, Dutch, Spanish and Italian

 

Added on oscommerce part:

 

Change the language system of the catalog to have a full and stable translation of pages (only little problem need refresh page or click a link to have navbar and welcome message translate too)
Change checkout process to accept and solve the no address users
Added mod for table customers becoming integrate into nukea_users
Solve problem with advanced search form
Add a deep rewrite based on GT with easy possibilities to tweak it to have your Key Word directly into your catalog url and normally help you to have a better relationship with Google and other crawler
Taking out of double header and meta into oscommerce pages also to help you to have a better crawl (seems that Google don’t appreciate double header)
Modification of address filling concerning the zone selection now a dropdown box appears directly the first time (don’t need to make an error to have it)
Big work as been done about product and category description by the add of some contributions : Wysiwyg 1.7 (powerful html editor) , Ultrapics 2 (have now 14 images by product 7 little and 7 medium or big displayed into popup), category description (allow a description for category)
Print order on checkout success and account history (display billing into a nice popup)
New button that has been integrate to match to the theme in English and French language.
Modification of session and check user, now oscnukelite user session stay connected even if close the browser or stay inactive a long time.

 

Of course all contributions that were present in oscnukelite version are here too as pay pall IPN, quickupdate, printable catalog, vat intracom, wallie-card betaling, colissimo, chronopost etc…

I think now the problem is not contribution now but what to use and how to use it well in your site. But first let’s see how to install the site.

 

HOW TO MAKE A GOOD INSTALL –

 

Local Install –

 

You want to install a local site but before you need a server web usually apache with a server Mysql and php installed , all that configured of course.

There is many application that help you by providing those 3 component in one package and with the less configuration possible, I use AppServer version 2.3 but there is easyphp and a lot else that will make you earn some time.

 

You can find AppServer here http://www.appservnetwork.com/ the last version is 2.4 but I use 2.3 and it work very well I didn’t had time to test last one so I advise you this one.

In any case you need to configure at least the mail server I go detail how to do for AppServer but they run almost all the same way and based on same file and value.

If you have made default install you must now have a C: system drive looking like that:

 

 

If open the directory

 

 

Ex 1

 

 

 

Open file php.ini under directory C:\windows\ line 607 and change with your data example with wanadoo French ISP:

Ex: Pour wanadoo

[mail function]

; For Win32 only.

SMTP = smtp.wanadoo.fr

 

; For Win32 only.

sendmail_from = what u whant@localhost.com

 

You must create a directory tmp in c: like that c:/tmp/ for the cache if u want I run automatically after the install.

 

 

For local install and so testing purpose we will work with a mysql user root and no password (you mustn’t do that with an online site!!!)

 

 

 

 

Package composition:

 

You have downloaded the package on our site and it look like that once unzipped:

 

 

Ex 2

 

Note that you can use automatic installer that will import database and configure config.php file for you or just one of those two actions (can save a lot of time and a lot of troubles).

Once you have upload on your server the package as it is describe a little after in this documentation, just point your browser to http://Your_Url/install/ and follow the step.

 

Warning: What ever the solution you take (auto –installer or manually at the end of the process before create an admin you will have to apply the little sql dump called finaladd.sql 2Ko for the module version only). This is very important otherway all users will be false and some malfunctioning with URL will appears.

 

Or you can manually install the all package:

 

For this kind of installation you have to know that the sql file to load database is not in a directory called SQL but is inside the distro in the folder /install/ and this file is called osc2nuke.sql for the version oscnukelite 3.

 

Now if you choose manual install or automatic installer don’t let you upload database (already happened to some users) access to phpmyadmin http://localhost/phpMyAdmin/ and follow the steps:

 

 

 

Ex 3

 

 

Ex 4

 

 

Ex 5

 

The numbers of instructions executed is about 2300 but it change each time we remake a sql so as long as process successfully end you can consider this part achieve.

 

Now refer to picture Ex 2 of the archive unzipped you can see a directory html that contains all files of oscnukelite copy the content of this directory to the root web server directory with appserver it is called www:

 

Open directory inside this one

 

Ex 6

 

 

Once this done it stay to configure the config.php file normally in c:/AppServ/www/ I put here an example file with explanations that start after comment area ######## line 33 and finish before the line of your config.php $reasons = array ("As Is", on line 165 :

 

 

$dbhost = "localhost";

$dbuname = "root";

$dbpass = "";

$dbname = "phpnuke1ite";

$prefix = "nuke";

$user_prefix = "nuke";

$auth_prefix = "nuke";

$dbtype = "MySQL";

$sitekey = "SdFk*fa28367-dm88w09.3a2fDS+e9";

$gfx_chk = 0;

$secukey = "SdFk";//max 5 caracteres for user of sha1(indevelopement)

$debug_mode = FALSE;

define('HTTP_SERVER', 'http://localhost/');//care this is url

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be NULL for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTPS_SERVER', '/'); //

define('DIR_WS_CATALOG', 'catalog'); // absolute path required

define('DIR_WS_IMAGES', 'modules/catalog/');

define('DIR_WS_IMAGES1', '/modules/catalog/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'modules/catalog/includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

// where your pages are located on the server. use your local path. (eg, /usr/local/apache/htdocs)

define('DIR_FS_DOCUMENT_ROOT', "C:/AppServ/www /modules/");//care this is the path

//define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);// use this one on IIS server and quote under

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/);

// define our database connection

define('DB_SERVER', $dbhost); // eg, localhost - should not be NULL for productive servers

define('DB_SERVER_USERNAME', $dbuname);

define('DB_SERVER_PASSWORD', $dbpass);

define('DB_DATABASE', $dbname);

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

define('HTTP_CATALOG_SERVER', 'http://localhost /modules/');// Url of the catalog

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_AFS_DOCUMENT_ROOT', "C:/AppServ/www /modules/");//Where is located catalog

define('DIR_AWS_ADMIN', 'catalog_admin');

define('DIR_AFS_ADMIN', DIR_AFS_DOCUMENT_ROOT . DIR_AWS_ADMIN);

define('DIR_AWS_CATALOG', 'catalog/');

define('DIR_AFS_CATALOG', DIR_AFS_DOCUMENT_ROOT . DIR_AWS_CATALOG);

define('DIR_AWS_IMAGES', 'modules/catalog_admin/');

define('DIR_AWS_ICONS', DIR_AWS_IMAGES . 'icons/');

define('DIR_AWS_CATALOG_IMAGES', 'modules/catalog/');

define('DIR_AWS_INCLUDES', 'modules/catalog_admin/includes/');

define('DIR_AWS_BOXES', DIR_AWS_INCLUDES . 'boxes/');

define('DIR_AWS_FUNCTIONS', DIR_AWS_INCLUDES . 'functions/');

define('DIR_AWS_CLASSES', DIR_AWS_INCLUDES . 'classes/');

define('DIR_AWS_MODULES', DIR_AWS_INCLUDES . 'modules/');

define('DIR_AWS_LANGUAGES', DIR_AWS_INCLUDES . 'languages/');

define('DIR_AWS_CATALOG_LANGUAGES','modules/'.DIR_AWS_CATALOG .'includes/languages/');

//define('DIR_AWS_CATALOG_LANGUAGES', 'modules/catalog/includes/languages/');

define('DIR_AFS_CATALOG_LANGUAGES', 'modules/catalog_admin/includes/languages/');

define('DIR_WS_CATALOG_LANGUAGES', 'modules/catalog/includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', 'modules/catalog/includes/languages/');

define('DIR_AFS_CATALOG_IMAGES', 'modules/catalog_admin/');

define('DIR_FS_CATALOG_IMAGES', 'modules/catalog/');

define('DIR_WS_CATALOG_IMAGES', 'modules/catalog/');

define('DIR_AFS_CATALOG_MODULES', DIR_AFS_CATALOG . '/includes/modules/');

define('DIR_FS_BACKUP', DIR_AFS_ADMIN . '/backups/');

define('DIR_FS_CATALOG_MODULES', DIR_AFS_CATALOG . 'includes/modules/');

define('FILENAME_DEFAULT', 'index.php');

define ('BOX_CATALOG_PRODUCTS_WITH_IMAGES','catalog');

 

 

The installation is done after that. (Note that the example is a common config.php used in our distro probably not the same you have with last version you downloaded on our site).

 

 

ONLINE SERVER INSTALL –

 

The first step here is to take the information from your host about your site, it is the best source of data for this process, I will explain with an example and wont details part that are the same as local install but just refers to it.

Let’s say you have those parameters for your ftp server :

 

ftp://nonal.com
Access name : nonal
Access password : nalno
Site Url: http://nonal.com

 

When we connect to the site with ftp soft it look like that :

 

 

Ex 7

 

 

The folder that we will use here is the HTTPDOCS that will replace our directory c:/AppServ/www/ to upload the file contains into html folder of archive cf. Ex 2 . Once all is upload to the site stay to upload database to the server.

 

 

For this step cf. to Ex 3, 4, 5 create database oscnukelite don’t forget to add your site url in oscnukelite.sql before uploaded it as it is describe in local install previously and when it is done we have the biggest part waiting for us here with the file config.php that need to be configured I put here an example file with explanations that start after comment area ######## line 33 and finish before the line of your config.php $reasons = array ("As Is", on line 165:

 

 

 

$dbhost = "localhost";

$dbuname = "nonal";

$dbpass = "nalno";

$dbname = "phpnuke1ite";

$prefix = "nuke";

$user_prefix = "nukea";

$auth_prefix = "nukeb";

$dbtype = "MySQL";

$sitekey = "SdFk*fa28367-dm88w09.3a2fDS+e9";//Put your own site key need a personal one

$gfx_chk = 0;

$secukey = "SdFk";//max 5 caracteres for user of sha1(indevelopement)

$debug_mode = FALSE;

define('HTTP_SERVER', 'http://nonal.com');//care this is url ***

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be NULL for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTPS_SERVER', '/'); //

define('DIR_WS_CATALOG', 'catalog'); // absolute path required

define('DIR_WS_IMAGES', 'modules/catalog/');

define('DIR_WS_IMAGES1', '/modules/catalog/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'modules/catalog/includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

// where your pages are located on the server. use your local path. (eg, /usr/local/apache/htdocs)

define('DIR_FS_DOCUMENT_ROOT', "/usr/local/psa/home/vhosts/nonal.com/httpdocs/modules/");//care this is the path ***

//define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);// use this one on IIS server and quote under ***

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/);

// define our database connection

define('DB_SERVER', $dbhost); // eg, localhost - should not be NULL for productive servers

define('DB_SERVER_USERNAME', $dbuname);

define('DB_SERVER_PASSWORD', $dbpass);

define('DB_DATABASE', $dbname);

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

define('HTTP_CATALOG_SERVER', 'http://nonal.com /modules/');// Url of the catalog ***

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_AFS_DOCUMENT_ROOT', "/usr/local/psa/home/vhosts/nonal.com/httpdocs/modules/");//Where is located catalog ***

define('DIR_AWS_ADMIN', 'catalog_admin');

define('DIR_AFS_ADMIN', DIR_AFS_DOCUMENT_ROOT . DIR_AWS_ADMIN);

define('DIR_AWS_CATALOG', 'catalog/');

define('DIR_AFS_CATALOG', DIR_AFS_DOCUMENT_ROOT . DIR_AWS_CATALOG);

define('DIR_AWS_IMAGES', 'modules/catalog_admin/');

define('DIR_AWS_ICONS', DIR_AWS_IMAGES . 'icons/');

define('DIR_AWS_CATALOG_IMAGES', 'modules/catalog/');

define('DIR_AWS_INCLUDES', 'modules/catalog_admin/includes/');

define('DIR_AWS_BOXES', DIR_AWS_INCLUDES . 'boxes/');

define('DIR_AWS_FUNCTIONS', DIR_AWS_INCLUDES . 'functions/');

define('DIR_AWS_CLASSES', DIR_AWS_INCLUDES . 'classes/');

define('DIR_AWS_MODULES', DIR_AWS_INCLUDES . 'modules/');

define('DIR_AWS_LANGUAGES', DIR_AWS_INCLUDES . 'languages/');

define('DIR_AWS_CATALOG_LANGUAGES','modules/'.DIR_AWS_CATALOG .'includes/languages/');

//define('DIR_AWS_CATALOG_LANGUAGES', 'modules/catalog/includes/languages/');

define('DIR_AFS_CATALOG_LANGUAGES', 'modules/catalog_admin/includes/languages/');

define('DIR_WS_CATALOG_LANGUAGES', 'modules/catalog/includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', 'modules/catalog/includes/languages/');

define('DIR_AFS_CATALOG_IMAGES', 'modules/catalog_admin/');

define('DIR_FS_CATALOG_IMAGES', 'modules/catalog/');

define('DIR_WS_CATALOG_IMAGES', 'modules/catalog/');

define('DIR_AFS_CATALOG_MODULES', DIR_AFS_CATALOG . '/includes/modules/');

define('DIR_FS_BACKUP', DIR_AFS_ADMIN . '/backups/');

define('DIR_FS_CATALOG_MODULES', DIR_AFS_CATALOG . 'includes/modules/');

define('FILENAME_DEFAULT', 'index.php');

define ('BOX_CATALOG_PRODUCTS_WITH_IMAGES','catalog');

 

 

 

 

The installation is done after that. (Note that the example is a common config.php used in our distro probably not the same you have with last version you downloaded on our site).

 

First Contact –

 

Now you have to create a super admin go to http://YourUrl/admin.php and fill the form to create one and when it is done login with this account to the same URL.

What about the interface you are in now:

First go to preference 1.

Second go to oscnukelite 2.

 

 

Ex 8

 

 

 

Checklist –

 

Check first the database that now must contains 146 tables, also check that tables nuke_users, nuke_users_temp have now 9 field more than a normal nuke 72 install ( those field are at the end of each tables and represent old customers table data).

 

With the contributions we add into oscnukelite there is some configuration file to check depending on where the site is located and some other file to configure with specific data depending on your site sells for the rewrite (to bring specific keyword of your activity inside url). So let’s give some explanations on how to do that.

 

The wysiwiyg of oscommerce part need to know if your site is on root web server directory or in a directory inside the root, if you have your site located under root web server directory you don’t need to configure the file to have image manager working 100% but if your site is in another folder like www/folder/ you will need to change 2 path in the file /modules/catalog_admin/htmlarea/popups/ config.inc.php

 

Open this file and on line 23 and 24 have that:

define("SCRIPT_DIR", trim("/modules/catalog_admin/htmlarea/popups/"));

define("SCRIPT_URL", trim("/modules/catalog_admin/htmlarea/popups/"));

 

Change those lines into:

define("SCRIPT_DIR", trim("/folder/modules/catalog_admin/htmlarea/popups/"));

define("SCRIPT_URL", trim("/folder/modules/catalog_admin/htmlarea/popups/"));

 

You can close this file now it is done to check if that work great just create or modify a product and use image tool box to upload images of product.

 

The Rewrite Rule Adapted To Your Activity –

 

The rewrite is the fact that your site url are translated to be accessible and indexed by search engine as Google Yahoo and other.

 

Ex: Your url normally looks like that for the first product of your store

http://url/modules.php?name=catalog&file=product_info&products_id=1

But it is a little long and not very explicit so with the rewrite we make it look like that

http://url/product_test+1.html

That is the default rewrite but to be more efficient I propose you this little modification first go to keyword analyse engine for example http://dmoz.org/Computers/Internet/Web_Design_and_Development/Authoring/Online_Tools/Keywords/ and make search for your activity best keyword to use.

 

Once it is done take the 6 more adapted and open those 3 file:

1. .htacces in your root site directory
2. GT-catalog.php in / GoogleTap/
3. html_output.php /modules/catalog/includes/functions/

 

To illustrate the changes require I will take an example you sell DVD on your store and so the keyword search return you dvd, video, movie, videos, movie and store so we go make the url with those word and to not have url too long we will make 2 kind of rules one for the categories and on for products for the first kind we will use 3 word and for other 3 last word. But of course use your keyword to modify the file and not those I give.

 

 

In the file 1 look from line 403 to line 419 these are the rules for the catalog part:

 

#catalog

RewriteRule ^catalog.html modules.php?name=catalog&file=index

RewriteRule ^catalog_test-([0-9]*).html modules.php?name=catalog&file=index&cPath=$1

RewriteRule ^catalog_test-([0-9]*)_([0-9]*).html modules.php?name=catalog&file=index&cPath=$1_$2

RewriteRule ^catalog_test-([0-9]*)_([0-9]*)_([0-9]*).html modules.php?name=catalog&file=index&cPath=$1_$2_$3

RewriteRule ^product_test[\+]([1-9][0-9]*).html modules.php?name=catalog&file=product_info&products_id=$1

RewriteRule ^product_test-([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+]([1-9][0-9]*).html modules.php?name=catalog&file=product_info&cPath=$1&products_id=$2

RewriteRule ^product_test-([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+]([1-9][0-9]*)[\+][\+](add_product|notify|notify_remove).html modules.php?name=catalog&file=product_info&cPath=$1&products_id=$2&action=$3

RewriteRule ^product_test[\+]([1-9][0-9]*)[\+][\+](add_product|notify|notify_remove).html modules.php?name=catalog&file=product_info&products_id=$1&action=$2

RewriteRule ^product_test--([1-9][0-9]*)[\+]([1-9][0-9]*).html modules.php?name=catalog&file=product_info&manufacturers_id=$1&products_id=$2

RewriteRule ^product_test[\+]([1-9][0-9]*)[\+][\+][\+]([^/]+).html modules.php?name=catalog&file=product_info&products_id=$1&language=$2

RewriteRule ^catalog_test-([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+]([1-9][0-9]*)[\+][\+]([a-zA-Z0-9]*).html modules.php?name=catalog&file=index&cPath=$1&page=$2&sort=$3

RewriteRule ^product_test-([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+][\+]([a-zA-Z0-9]*)[\+]([1-9][0-9]*)[\+][\+][\+](buy_now)-([1-9][0-9]*).html modules.php?name=catalog&file=index&cPath=$1&page=$2&sort=$3&action=$4&products_id=$5

RewriteRule ^product_test-([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+]([1-9][0-9]*)[\+][\+]([a-zA-Z0-9]*)[\+][\+][\+](buy_now)-([1-9][0-9]*).html modules.php?name=catalog&file=index&cPath=$1&sort=$2&page=$3&action=$4&products_id=$5

RewriteRule ^catalog_test--([1-9][0-9]*).html modules.php?op=modload&name=catalog&file=index&manufacturers_id=$1

RewriteRule ^products_new-([1-9][0-9]*).html modules.php?name=catalog&file=products_new&page=$1

RewriteRule ^product_test[\+][\+](buy_now)[\+]([1-9][0-9]*).html modules.php?name=catalog&file=product_info&action=$1&products_id=$2

 

With the changes you have now that:

 

#catalog

RewriteRule ^catalog.html modules.php?name=catalog&file=index

RewriteRule ^ dvd-movie-video-([0-9]*).html modules.php?name=catalog&file=index&cPath=$1

RewriteRule ^ dvd-movie-video-([0-9]*)_([0-9]*).html modules.php?name=catalog&file=index&cPath=$1_$2

RewriteRule ^ dvd-movie-video-([0-9]*)_([0-9]*)_([0-9]*).html modules.php?name=catalog&file=index&cPath=$1_$2_$3

RewriteRule ^ dvd-movie-video[\+]([1-9][0-9]*).html modules.php?name=catalog&file=product_info&products_id=$1

RewriteRule ^movies-video-store-([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+]([1-9][0-9]*).html modules.php?name=catalog&file=product_info&cPath=$1&products_id=$2

RewriteRule ^ movies-video-store-([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+]([1-9][0-9]*)[\+][\+](add_product|notify|notify_remove).html modules.php?name=catalog&file=product_info&cPath=$1&products_id=$2&action=$3

RewriteRule ^ movies-video-store[\+]([1-9][0-9]*)[\+][\+](add_product|notify|notify_remove).html modules.php?name=catalog&file=product_info&products_id=$1&action=$2

RewriteRule ^ movies-video-store--([1-9][0-9]*)[\+]([1-9][0-9]*).html modules.php?name=catalog&file=product_info&manufacturers_id=$1&products_id=$2

RewriteRule ^ movies-video-store[\+]([1-9][0-9]*)[\+][\+][\+]([^/]+).html modules.php?name=catalog&file=product_info&products_id=$1&language=$2

RewriteRule ^ dvd-movie-video-([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+]([1-9][0-9]*)[\+][\+]([a-zA-Z0-9]*).html modules.php?name=catalog&file=index&cPath=$1&page=$2&sort=$3

RewriteRule ^ movies-video-store-([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+][\+]([a-zA-Z0-9]*)[\+]([1-9][0-9]*)[\+][\+][\+](buy_now)-([1-9][0-9]*).html modules.php?name=catalog&file=index&cPath=$1&page=$2&sort=$3&action=$4&products_id=$5

RewriteRule ^ movies-video-store-([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+]([1-9][0-9]*)[\+][\+]([a-zA-Z0-9]*)[\+][\+][\+](buy_now)-([1-9][0-9]*).html modules.php?name=catalog&file=index&cPath=$1&sort=$2&page=$3&action=$4&products_id=$5

RewriteRule ^ dvd-movie-video--([1-9][0-9]*).html modules.php?op=modload&name=catalog&file=index&manufacturers_id=$1

RewriteRule ^products_new-([1-9][0-9]*).html modules.php?name=catalog&file=products_new&page=$1

RewriteRule ^ movies-video-store[\+][\+](buy_now)[\+]([1-9][0-9]*).html modules.php?name=catalog&file=product_info&action=$1&products_id=$2

For the second file GT-catalog.php transform it like that:

 

 

$urlin = array(

"'(?

"'(?

"'(?

"'(?

"'(?

"'(?

"'(?

"'(?

"'(?

"'(?

"'(?

"'(?

"'(?

"'(?

"'(?

"'(?

);

 

$urlout = array(

"catalog.html",

"dvd-movie-video-([0-9]*).html",

"dvd-movie-video -([0-9]*)_([0-9]*).html",

"dvd-movie-video -([0-9]*)_([0-9]*)_([0-9]*).html",

"movies-video-store[\+]([1-9][0-9]*).html",

"movies-video-store-([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+]([1-9][0-9]*).html",

"movies-video-store-([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+]([1-9][0-9]*)[\+][\+](add_product|notify|notify_remove).html",

"product_test[\+]([1-9][0-9]*)[\+][\+](add_product|notify|notify_remove).html",

"movies-video-store--([1-9][0-9]*)[\+]([1-9][0-9]*).html",

"movies-video-store[\+]([1-9][0-9]*)[\+][\+][\+]([^/]+).html",

"dvd-movie-video-([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+]([1-9][0-9]*)[\+][\+]([a-zA-Z0-9]*).html",

"movies-video-store([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+][\+]([a-zA-Z0-9]*)[\+]([1-9][0-9]*)[\+][\+][\+](buy_now)-([1-9][0-9]*).html",

"movies-video-store([1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*|[1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*[_][1-9][0-9]*)[\+]([1-9][0-9]*)[\+][\+]([a-zA-Z0-9]*)[\+][\+][\+](buy_now)-([1-9][0-9]*).html",

"dvd-movie-video--([1-9][0-9]*).html",

"products_new-([1-9][0-9]*).html",

"movies-video-store[\+][\+](buy_now)[\+]([1-9][0-9]*).html",

);

?>

 

 

 

And the last one and easiest one is the third html_output.php find this code on line 72 function tep_href_link and changes this line 79:

 

$paginas = array(FILENAME_PRODUCT_INFO => array('name' => 'product_test',

To

$paginas = array(FILENAME_PRODUCT_INFO => array('name' => ‘movies-video-store’,

 

And line 104 changes:

 

FILENAME_DEFAULT => array('name' => 'catalog_test',

To

FILENAME_DEFAULT => array('name' => ‘dvd-movie-video’,

 

Now you have a specific rewrite adapted to your site.

If you want to disable the rewrite it is very easy 2 steps to follow:

1. Open file header.php

// Google Tap On or Off, 1=On, 0=Off

$next_gen_ob = 1;

2. Go in your oscommerce part admin in “configuration” and put the value “to activate url short” to “desactivado”. 

Wysiwyg Of Oscommerce Configuration –

 

After a lot of modification of original contribution we have obtain that only one file and 2 line have to be check and that only if you don’t use root web server directory but one under.

This file /modules/catalog_admin/htmlarea/popups/config.inc.php has 2 lines (22 and 23) that you have to check:

 

define("SCRIPT_DIR", trim("/modules/catalog_admin/htmlarea/popups/"));

define("SCRIPT_URL", trim("/modules/catalog_admin/htmlarea/popups/"));

 

If you have a directory let’s call it HTML where your site is running that is under root web server folder so you need to add it like that:

 

 

define("SCRIPT_DIR", trim("/HTML/modules/catalog_admin/htmlarea/popups/"));

define("SCRIPT_URL", trim("/HTML/modules/catalog_admin/htmlarea/popups/"));

 

WYSIWYG Of Phpnuke –

 

This wysiwyg cover for now in phpnuke part the message and story module of course if you want to extend this module to other phpnuke page it is very easy cause all have been already done, for example if you want to have it cover newsletter just need to do one file /admin/modules/newsletter.php and inside maximum 15 line that you can find in GT-next generation explanation file and installation file.

 

 

Documentation version 1.0 oscnukelite

Author Nonal

 

 

 

DREAMLITE TEAM