Creativespirits Everything you need in one place on the web including the Paranormal and Graphics
July 05, 2008, 06:47:45 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Login Register  
Pages: [1]   Go Down
  Print  
Author  (Topic Read 1297 times)
Chronos
Forum Administrator
Godlike
*****
Offline Offline

United States United States

Posts: 4,882



Disclose.tv addition for 4images.
« on: December 25, 2007, 10:47:33 PM »

 Following on from a topic within the 4images site on how to add Google and Youtube videos to the 4images gallery script. I wondered just how to add other video sites to this. This is an addon to that and allows you to add videos from the Disclose.tv website.

 The original topic on 4images is here for you all to read.

 This modification can be installed either with or without Integrate Google and YouTube VIDEO

Files to modify
template/details.html
includes/db_field_definitions.php
lang/your_language/main.php

Step 1.

Upload disclose_install.php (Attached to this post) to your web site, and run it.   http://yoursite/disclose_install.php once the script has finished DELETE THE FILE.

Step 2.

Open db_field_definitions.php
Find ?>
Add before

Code:
1 $additional_image_fields['disclosetv_id'] = array($lang['disclosetv_video'], "text", 0);

(If you have Integrate Google and YouTube VIDEO add below that modification)

Step 3.

Open details.html
After  {image} add

Code:
1 {if disclosetv_id}
2 <object width="450" height="370"><embed src="http://disclose.tv/embedPlayer.php?vid=4e2a6330465c8ffcaa696a5a1" FlashVars="config=http://disclose.tv/videoConfigXmlCode.php?pg=video_{disclosetv_id}_no_0_extsite" quality="high" bgcolor="#000000" width="450" height="370" name="flvplayer" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowFullScreen="true" /></object>
3 {endif disclosetv_id}

Step 4.

Open lang/your_language/main.php
Find ?>
add before

Code:
1 $lang ['disclosetv_video']="Disclose.tv ID";

* disclose_install.php (0.57 KB - downloaded 67 times.)
« Last Edit: January 30, 2008, 11:15:13 PM by Chronos » Report to moderator   Logged
Creativespirits.net
« on: December 25, 2007, 10:47:33 PM »

 Logged
Chronos
Forum Administrator
Godlike
*****
Offline Offline

United States United States

Posts: 4,882



Re: Disclose.tv addition for 4images.
« Reply #1 on: December 26, 2007, 12:42:28 AM »

Using the code with your site.

 When you look at the URL of Disclose.tv this is how it looks.

http://disclose.tv/viewvideo/2411/Ufo_In_Costa_Rica/

The part that you need to copy into the id section is the number 2411.

 That is all.

Enjoy
Report to moderator   Logged
Chronos
Forum Administrator
Godlike
*****
Offline Offline

United States United States

Posts: 4,882



Re: Disclose.tv addition for 4images.
« Reply #2 on: January 30, 2008, 11:16:44 PM »

I have just updated the code for details.html, If your player has stopped working for disclose TV just replace the code in step 3.

 Thanks
Report to moderator   Logged
Creativespirits.net
   

 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
Page created in 0.093 seconds with 25 queries.

Google visited last this page Yesterday at 09:47:20 PM

1999-2006 © Creative Spirits  /  Privacy Policy  /  Contact  /   CC Licence
All Rights Reserved. All artwork remains copyright of their respective owners.
A Divison of Colman Creations