|
BLUE CRYSTAL GROUP |
Contents
Bilingual Categories and locations
Bilingual Categories and locations
|
Works
on PMD: Version Fully compatible with PMD PRO version 1.1.8 & Up
Release date: 11/15/09
Author: Blue Crystal group
Terms:
· You can not
re-sell this modification or use it as a base for other modifications and sell
it.
· You are free to modify this code for
your own purposes. You may install this mod on one instance of phpmydirectory for which you hold a valid phpmydirectory license.
DISCLAIMER:
Blue Crystal does not warrant the merchantability of this modification, and all
liability is limited to any amount paid. Installation of this modification is
done at your own risk. Backup your scripts before making changes to them.
Mod Package
|
The zip
file you have received has two folders:
Modified
code - The modified code is code from PMD that has been changed.
You can upload the contents of this folder if you have not made any
change to your own files.
New code
- The New Code are new files that will have to be uploaded as part of the
installation.
Installation
|
Steps to
do the integration
1. -
Extract the contents of the zip file to new folder.
We'll refer to this folder as the distribution folder
2. –
Create a folder that we will call the “staging folder”
3.-
Download from your site to the staging folder, all the files that exist in
modified folder that you will
find in
the distribution folder
Those
file are: defaults_setup.php and cp/template/default/admin_header.tpl
4.- Open defaults_setup.hp
Comment out the lines:
define('T_CATEGORIES', DB_TABLE_PREFIX.'categories');
and
define('T_LOCATIONS', DB_TABLE_PREFIX.'locations');
Commenting out can be done by preceding the line with two slash //
Go to the end of the file and prior to the ?>
Enter
|
//BCG BICATLOC MOD STARTS HERE include(PMDROOT . "/bcg/bicatloc/alt_set_def.php"); // BCG BICATLOC MOD ENDS HERE |
5. Open
the file cp/template/default/admin_header.tpl
To ad
add the lines
<!--//BCG
MOD BICATLOC START HERE//-->
<a href="#"><?php echo $lang['admin_general_menu_blue_crystal']; ?></a>
<div><a href="#"><?php echo $lang['admin_general_menu_bicatloc']; ?></a><div>
<a href="./admin_bicategories.php"><?php echo $lang['admin_general_menu_bicategories'];
?></a>
<a href="./admin_bilocations.php"><?php echo $lang['admin_general_menu_bilocations'];
?></a>
</div></div>
<!--//BCG
MOD BICATLOC ENDS HERE//-->
Just
before the lines
<span
class="qmclear"></span>
</div>
<script
type="text/javascript">qm_create(0,false,0,500,false,false,false,false);</script>
</div>
<div
class="page-container">
6.- Open
the file bcg/bicatloc/bicatloc.config.php
Enter
here in the variables
$bcg_pri_language = 'english';
$bcg_alt_language = 'spanish';
The
names of the primary language and secondary language of your site EXACTLY as
defined in PMD
7.- Copy
the files on the new-files directory to your main directory and upload the
files you just modified
8.-
Execute the install job script
with http://your_URl/bcg_ install_bicatloc.php
The
install script will ask you for a license number. The license is a number of
the form 999-9999-9999-9999 and is unique by domain.
You will
find your license number on the receipt you received when you purchased the
modification or you can find it on your order history on the Blue Crystal web.
License
number on your order history (example)

The
system should respond with :
Install done
If the
response is an error, please send Blue Crystal a copy of the message you
received and stop the installation
Installation
completed.
Using the
system
|
Maintenence
After
you install the mod you will find a new tab in the Control panel

Use
these options to maintain the locations and categories on the alternate
language
Hidden Categories
If you
happen to mark categories as "hidden", you will have to go the
Bilingual Category maintenance option and click on "submit" for the
category you marked as "Hidden" in the
regular maintenance screen.
Frequently Asked Questions
|
None
Most reported
problems
|
None
Contacting Blue
Crystal Group
|
Should you have any issues with the
software, questions or concerns, the quickest
way to contact us is by means of our Forum
http://bluecrystalgroup.com/support/forum
or by e-mail to support@bluecrystalgroup.com
We’ll
get back to you inside a business day.