Author Topic: [MOD] Integrar Google VIDEO y YouTube  (Read 182568 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #15 on: August 21, 2006, 06:17:44 AM »
Then, I guess its some other modifications you've made to the code...this not supposed to happend without altering the code..
There are no " supposed to present in the fields name...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jaimecb

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #16 on: August 21, 2006, 12:54:40 PM »
Hola, quien podria ayudarme a hacer una especie de instalador ue modificase la base de datos, para evitar añadir los dos campos a la base de datos de forma manual?? asi seria menos complicada la instalacion del mod...

Gracias

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #17 on: August 22, 2006, 01:02:58 AM »
Hola, quien podria ayudarme a hacer una especie de instalador ue modificase la base de datos, para evitar añadir los dos campos a la base de datos de forma manual?? asi seria menos complicada la instalacion del mod...

Gracias

sorry bro i dont understand that lang can u tell me in english please

Offline excitex2

  • Addicted member
  • ******
  • Posts: 1.590
  • He desactivado la galería y el buscador
    • View Profile
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #18 on: August 22, 2006, 02:54:48 AM »
Saludos,,,

Sube este script al directorio raiz de tu galería y lo nombras como install_google_youtube.php y lo ejecutas,,,  recuerda que antes de ejecutarlo tienes que hacer una  copia de seguridad de la base de datos por si algo fallara,,,:

Code: [Select]
<?php

error_reporting
(E_ALL);
define('ROOT_PATH''./');
include(
ROOT_PATH.'config.php');
include(
ROOT_PATH.'includes/constants.php');
include(
ROOT_PATH.'includes/db_mysql.php');
$site_db = new Db($db_host$db_user$db_password$db_name);

$sql 'ALTER TABLE `'.IMAGES_TABLE.'` ADD `google_id` VARCHAR( 255 ) NULL';
$sql2 'ALTER TABLE `'.IMAGES_TABLE.'` ADD `youtube_id` VARCHAR( 255 ) NULL';

$site_db->query($sql);
$site_db->query($sql2);

echo 
"<br /><br /><br /><center><b>ADDED FIELD <font color=\"#FF9900\">google_id y youtube_id </font> TO TABLE: <font color=\"#FF9900\">".IMAGES_TABLE." </font>OK</b><BR>YOU CAN DELETE <b>INSTALL_GOOGLE_YOUTUBE.PHP</b> NOW</center>";
echo 
"<br /><br /><center><b>SE AÑADIÓ <font color=\"#FF9900\">google_id y youtube_id </font> A LA TABLA: <font color=\"#FF9900\">".IMAGES_TABLE." </font>CORRECTAMENTE :)</b><BR>PUEDES BORRAR <b>INSTALL_INSTALL_GOOGLE_YOUTUBE.PHP</b> AHORA</center>";

?>

excitex2
« Last Edit: August 22, 2006, 09:27:00 AM by excitex2 »
Lo importante no es saber,,, lo importante es tener el E-Mail de quien sabe

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #19 on: August 22, 2006, 03:18:26 AM »
can someone explain me this in english please

Offline tdkpaul

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #20 on: August 22, 2006, 08:02:27 PM »
use transliting tool !!

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #21 on: August 22, 2006, 11:29:43 PM »
k i think i added all this and now what should i do how should i stream youtube movies ? should i just paste the link or how ? can someone tell me please

Offline jaimecb

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #22 on: August 22, 2006, 11:31:22 PM »
Muchas Gracias excitex2 !!

Offline tdkpaul

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #23 on: August 24, 2006, 09:01:43 PM »
k i think i added all this and now what should i do how should i stream youtube movies ? should i just paste the link or how ? can someone tell me please
http://www.4homepages.de/forum/index.php?topic=13557.msg72964#msg72964

Offline sharangan

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • levikay
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #24 on: August 24, 2006, 09:14:03 PM »

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #25 on: August 24, 2006, 11:43:56 PM »
can u tell me how did u make it work

Offline excitex2

  • Addicted member
  • ******
  • Posts: 1.590
  • He desactivado la galería y el buscador
    • View Profile
Lo importante no es saber,,, lo importante es tener el E-Mail de quien sabe

Offline jackald

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #27 on: September 12, 2006, 02:32:28 PM »
Hey,
 Great mod now admin can add google and youtube but what if I would like my users to be able to that. I tried add google video as a user and there are  no fields with Google ID,YouTube ID.
   

« Last Edit: September 14, 2006, 11:52:49 PM by jackald »

Offline danceScape

  • Pre-Newbie
  • Posts: 5
  • Shall we dance?
    • View Profile
    • danceScape.com
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #28 on: September 12, 2006, 04:09:53 PM »
Wow, this is a great MOD.  Will 4 images be able to add this/integrate it to a new update?  This would be so powerful a module for everyone.

Also, wonder if this is another alternative ... that we can use the "Description" field to put in the CODE for the embedded video ... will this work?  Think it works for HTML but not sure if can actually put any script in description.

Offline jaimecb

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD] Integrar Google VIDEO y YouTube
« Reply #29 on: September 12, 2006, 06:15:12 PM »
ok.. ahora un poco mas alla... como se podria poner en index un video aleatorio???  al igual ke las imagenes aleatorias.. pero solo videos de google.. o youtube??

gracias!!!  (ay si supiera programar mejor)