|
BLUE CRYSTAL GROUP |
Contents
6BContacting
Blue Crystal Group
0BVideo
mod
|
Works on PMD: Version Fully compatible with PMD Version 1.1.8.& up
Release
date: 11/10/09
Author: Blue Crystal group
Description: Uploads and displays videos
Terms:
· 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.
· You can not
re-sell this modification or use it as a base for other modifications and sell
it.
· 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 and database before
making changes to them.
1BMod
Package
|
The zip file you have received
has 2 folders:
Modified code - The
modified code is code form PMD that has been changed.
New code - The New Code are new
files that will have to be uploaded as part of the installation.
2BModified
code
|
3BInstallation
|
Please read the entire set of
instructions before doing the install.
1. - Extract the contents of the
zip file to new folder.
We'll refer to this folder as the distribution folder
2. - Make a copy of the
distribution folder.
We'll refer to this folder as the staging folder
3. Verify that your PMD
installation is ready to work with coupons.
Make sure that you can upload
graphics to your installation by uploading a logo.
If the system is having some
problems, do not load the coupon mod until the system is fully working.
4.- Integrate code
To integrate the changes, you
will have to take the modified code from the files sent and merge it with your existing code.
Copy the files to integrate from
your web site to the staging folder.
You can use a tool like winmerge
to do this.
In general the merge process would be like this:
The BCG loader is used for some
of the Blue Crystal modification and if you have a Blue Crystal modification,
you may already have installed the loader in some scripts. The
loader.php code needs to be called only once so if you already have those lines
in your current scripts, do not repeat them.
The BCG loader lines are similar
to these:
/**** BCG mod loader STARTS HERE
****/
$filename=''; // The filename may vary
$methodName='require_once';
require_once(PMDROOT.'/bcg/loader.php');
/**** BCG mod loader ENDS HERE ****/
When doing the integration, to
find what linens to copy, look in the PHP files for the comments that say
// BCG video mod starts
...
...
...
// BCG coupon mod ends
In the template files , the new lines will be marked
as follows:
<!-- BCG Video mod starts
here ->>
...
....
<!-- BCG Video mod ends
here ->>
PMD base code does change and you
will find that your code does not match line by line the code we sent. When
copying the modified lines of code, first see in which line number they are in
our delivered code and what lines are before and after the modified code then , locate the line number in your code and look for the
lines before and after the modified code.
Copying the modified code:
All modified code will have a
line with BCG on it so you can search for BCG and will find the new lines.
Most modifications include adding
new lines of code as opposed to changing existing lines.
Most files have only one section
to copy but other files have 2 or 3 sections.
Do this for every file that you
don't want to overwrite
Keep in mind that we only send
the listing template for level 1, (listing_1.tpl) you can put the code changes
in the templates of the levels you want to.
If you have installed other Blue
Crystal Mods, some files will be already updated with the
"loader" code
5. Update .htaccess
Download .htaccess and add the following lines before the last line
which is
</IfModule>
#BCG MOD START HERE
RewriteRule ^(.+)/videos\.html$
listing_videos.php?id=$1 [L]
#BCG MOD ENDS HERE
Upload .htaccess
6.- Upload all the files on the video-new-files directory to your
main directory
8.- Execute the install.php script
Type the following on your web
browser and hit enter http://your_URl/bcg_install_video.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)
9. Change the files/videos
folder permissions to 777 (you can use chgmod for this)
10. Set up configuration
In configuration:
Select Setup and Settings

Then select the modification
option on the Navigation panel:

10.1.-
Go to memberships and click on the Video field to indicate that the
membership will have the video feature.
10.2.-
Then go to Configuration/settings/BCG Videos and set the tow critical
settings
Show Featured video. You can set this to Yes or No.
Enter the number of coupons allowed.
10.3
Assign the video field to all categories

Click on Edit fields
Select the video group

Edit the field and click on add
to all categories

End of installation
5BVideo
Formats
|
The system is
delivered to only handle FLV files by default.
You can change this
by modifying the list of allowed media types in
bcg/video/video_config.php
$media_to_allow =
array('swf','wmv','wma','avi', 'mov', 'mp3', 'asf', 'mpg', 'mpeg', 'mid',
'flv');
Those other formats
require video players that the browsers (Ie, firefox) will have to
download. The mod tells the browser to
download the player and a good number of times every thing works fine
BUT there is a small amount of users out there (especially in Europe, and
some in the US) that will have their browsers settings so that no player plug
ins can be downloaded and sometimes don't even see the browser is asking them
to download the player (or will ignore the message).
Some of these people
know that they are missing stuff for not downloading the player plug-ins but there are another group of people that will think that
there is something wrong with YOUR site. So, therefore you must dumb down
the site to serve that minor percentage of people that would have trouble
5BMost
frequent problems
|
1.- The videos and/or upload folder in user_files, do not have write
rights (mod 777)
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.