Comparing to other video scripts Clipshare is very easy to integrate . Please follow these simple steps,
Installation And Setup Instructions
1) Extract the zip file containing the software.
2) Create a new MySQL database for ClipShare and import the dump file /install/clipshare.sql using PHPMyAdmin. This will create and populate all DB tables.
3) Open /include/config.php using any text editor and edit the following variables:
$config['BASE_DIR'] = '/home/yoursite/public_html/clipshare'; This is the full path to the directory where the script is installed. No ending slash. $config['BASE_URL'] = 'http://www.yoursite.com/clipshare'; This is the URL where the script is installed. No ending slash. $config['tmpimgpath'] = '/home/yoursite/public_html/clipshare/tmp'; This is the full path to the directory where the /tmp folder is located. No ending slash. $config['tmpimgpath2'] = '/home/yoursite/public_html/clipshare/tmp'; This is the full path to the directory where the /tmp folder is located. No ending slash. $config['ffmpeg'] = '/usr/local/bin/ffmpeg'; This is the full path to FFmpeg module. No ending slash. $config['mplayer'] = '/usr/local/bin/mplayer'; This is the full path to Mplayer module. No ending slash. $config['mencoder'] = '/usr/local/bin/mencoder'; This is the full path to Mencoder module. No ending slash. $config['metainject'] = '/usr/local/bin/flvtool2'; This is the full path to FLVTool2 module. No ending slash.
4) Open /include/dbconfig.php using any text editor and edit the database variables (host, username, password and name of the database previously created and populated)
5) Open /js/myjavascriptfx.js using any text editor and edit the following variables:
var imgurl = ‘http://www.yoursite.com/clipshare/images’; No ending slash.
var baseurl = ‘http://www.yoursite.com/clipshare/’; Don’t forget the ending slash.
6) Upload all files in the root directory or a subdirectory on your server.
7) CHMOD the following files and directories to 777:
- /images/editorimage
- /templates (and all files and folders inside)
- /tmp
- /chimg
- /flvideo
- /include
- /thumb
- /video
- /templates_c
- /include/dbconfig.php
- /include/config.php
Things to do for template integration in Clipshare
Before integrating new template , please understand the templates structure of the clipshare with your new template file structure.
May be the master will be in /templates/head1.tpl and will be closed in /templates/footer.tpl
1. Copy the css file from the given new template and paste it into the clpshare /css folder
2. Copy the /images folder from the new template and replace it into the clipshare.
3. Edit the existing css file name in the /templates/head1.tpl into the new css file copied above.
4. In Clipshare all pages are seperated into different .tpl files(for ex:head1.tpl for header,footer.tpl for footer such as)
5. Each page are the combination of several .tpl files and that are specified in that corressponding .php file.(ex: index.php seperated into five .tpl files such as head1.tpl,footer.tpl,search.tpl,index.tpl,right.tpl).
6. So we have to separate our new template pages into several .tpl files specified in the ,php files.
7. For a page integeration we have to edit all the needed .tpl files
Note: Don’t edit or remove anything in .php files.
This entry was posted on Tuesday, May 5th, 2009 at 12:51 am and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.














