News:

:o فـائدة: الأشاعرة لخصوا عقيدة الرسول والصحابة أغلب أهل السنة والجماعة هم أشاعرة مثل البيهقي والنووي وابن حجر العسقلاني والسبكي، يتبعون طريقة الإمام أبي الحسن الأشعري في نصرة هذا المذهب

Main Menu

Embed You Tube to Gallery

Started by The Tech, 10, 25

Previous topic - Next topic

The Tech

http://javimoya.com/blog/youtube_en.php
http://www.4homepages.de/forum/index.php?topic=13557.0



Good to all, looking for that way I have finished completing a modification to be able to integrate the videos of Google Video and YouTube in 4images:

Archives to modify:

template/details.html
includes/db_field_definitions.php

Also it is had to modify Base de Datos.   http://www.4homepages.de/forum/index.php?action=dlattach;topic=13557.0;id=909


-----------------------

We began with the data base:

Upload video_install.php to your web site, and execute it.   http://yoursite/video_install.php

We go now with the archives:

We opened db_field_definitions.php:

and in the end we add before ?>

Code:
$additional_image_fields['google_id'] = array($lang['google_video'], "text", 0);
$additional_image_fields['youtube_id'] = array($lang['youtube_video'], "text", 0);
We opened details.html

Behind {image} we added

Code:
{if google_id}
<embed style="width:400px; height:326px; "id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId= {google_id}" allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL" FlashVars="playerMode=embedded"> </embed>
{endif google_id}

{if youtube_id}
<object width="476" height="392"><param name="movie" value="http://www.youtube.com/v/{youtube_id}"></param><embed src="http://www.youtube.com/v/{youtube_id}" type="application/x-shockwave-flash" width="476" height="392" ></embed></object>
{endif youtube_id}
in lang/YOUR_LANGUAJE/main.php we added in the end:


Code:
$lang['google_video']="Google ID";
$lang ['youtube_video']="YouTube ID";
------------------------------
Operation:

We are going to add an image in the Control Panel
In the field image we will raise this image: http://www.misimagenes.net/data/media/19/google_video.gif
In the Thumbail Field we will add this image: http://www.misimagenes.net/www/data/thumbnails/19/google_video_4.jpg
We filled up everything normally and down we will see TWO new fields
Depending on if the video this lodged in GOOGLE or this in YOUTUBE we will have to fill one or another field, and ke we put? then we see it with an example:
     Let us imagine ke we are in YouTube seeing this http://www.youtube.com/watch?v=Ge0B4ZR2B-o&search=concierto%20los%2040 video because we will have ke to add ALL the KE GOES BEHIND = UNTIL &, that is to say, Ge0B4ZR2B-o, in exactly equal sera GOOGLE, we will have to add ID of the video but in field of Google

This way we will obtain these http://www.misimagenes.net/details.php?image_id=992 results

I have added to the archives IMAGE and THUMBAIL like Attachs, for greater facility

Greetings and I hope that this modification seems to you interesting. (I feel to be a little complicated explicandome)