Youtube Addon auf GTchat 095 - Developper

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

      Youtube Addon auf GTchat 095 - Developper

      Hallo zusammen,

      ich hatte vor einiger Zeit das Youtube/Myvideo Addon problemlos in den GTchat 095 Alpha eingebaut. Da ich diese Version nun durch die Gtchat 095 Developper ersetzen will wollte ich das Addon auch dort einbauen. Pustekuchen - funktioniert nicht. Bevor ich nun das Problem im Detail schildere, würde mich interessieren ob das Addon überhaupt auf der Developper Version lauffähig ist.

      Grüße
      Pilzheinz
      Moin.

      Wiso sollte es nicht laufen???

      Ich selber benutze die Developper Version und bei mir funzt das addon.
      Hast du vielleicht etwas beim einbau falsch gemacht???

      Ist das addon eingebaut aber es werden keine Videos angezeigt oder wie was wo?????

      Also ich kann nur aus meinen Erfahrungen sagen das es uff alle fälle funzt.

      So lange du natürlich uff die GT-Chat Versionen achtest (0.95 und 0.96 usw)

      lg. Neo
      Hosting-Panter.eu - Home
      Antiref.net


      if ($ahnung == 'keine' ) { use ( FAQ ) && ( Google | | Suche ) }
      if ($antwort == 0 ) { post ( Frage ) }
      Hallo zusammen,

      ich bin bei der Einrichtung des Addons genau so vorgegengen wie in der Alpha Version. Wenn ich den Befehl samt Videocode nun in der Developper eingebe kommt folgende Meldung:

      Keine Bearbeitungsroutine für den Befehl /youtube in der Datei /www/htdocs/pilzfo/cgi-bin/gtchat5/Plugins/CommandHandlers/TextCommands.pm gefunden, möglicherweise ist dieser Plugin fehlerhaft oder falsch eingerichtet.

      und das auch nach mehrfach wiederholter Neueinrichtung. Ich muss da was entscheidendes übersehen. Nur was?

      Gruß
      Pilzheinz



      Hallo zusammen,

      hier mal die entsprechenden Einträge in der Settings. Die Ordner log und messages sind auf die Webspace hochgeladen.

      Bitte entschuldigt dass ich es auf die Art mache, ich habe hier keine Funktion gefunden wie ich die ganze Datei ( Settings ) hier anfügen kann.


      custom_command_handlers => {
      '' => 'plugindir::CommandHandlers/TextCommands.pm',
      addvip => 'plugindir::CommandHandlers/ModerationCommands.pm',
      admin => 'plugindir::CommandHandlers/TextCommands.pm',
      alive => 'plugindir::CommandHandlers/MiscCommands.pm',
      away => 'plugindir::CommandHandlers/TextCommands.pm',
      botty => 'plugindir::CommandHandlers/Botty.pm',
      botty2 => 'plugindir::CommandHandlers/Botty.pm',
      broadcast => 'plugindir::CommandHandlers/TextCommands.pm',
      callop => 'plugindir::CommandHandlers/TextCommands.pm',
      calluser => 'plugindir::CommandHandlers/CallUserCommand.pm',
      chat => 'plugindir::CommandHandlers/TextCommands.pm',
      color => 'plugindir::CommandHandlers/MiscCommands.pm',
      disablemoderation => 'plugindir::CommandHandlers/ModerationCommands.pm',
      dupeip => 'plugindir::dupeip.pm',
      enablemoderation => 'plugindir::CommandHandlers/ModerationCommands.pm',
      entwarn => 'plugindir::CommandHandlers/WarnCommands.pm',
      follow => 'plugindir::CommandHandlers/FollowCommand.pm',
      font => 'plugindir::CommandHandlers/FontCommand.pm',
      gag => 'plugindir::CommandHandlers/AdminCommands.pm',
      ghost => 'plugindir::CommandHandlers/GhostCommand.pm',
      ignore => 'plugindir::CommandHandlers/Ignoring.pm',
      img => 'plugindir::CommandHandlers/TextCommands.pm',
      imgmsg => 'plugindir::CommandHandlers/PrivateMessages.pm',
      invite => 'plugindir::CommandHandlers/Invitations.pm',
      kick => 'plugindir::CommandHandlers/AdminCommands.pm',
      lock => 'plugindir::CommandHandlers/LockCommand.pm',
      me => 'plugindir::CommandHandlers/TextCommands.pm',
      minus => 'plugindir::CommandHandlers/PointCommand.pm',
      moderated_text => 'plugindir::Moderation.pm',
      msg => 'plugindir::CommandHandlers/PrivateMessages.pm',
      myip => 'plugindir::CommandHandlers/MyipCommand.pm',
      myvideo => 'plugindir::CommandHandlers/TextCommands.pm',
      nick => 'plugindir::CommandHandlers/MiscCommands.pm',
      null => 'plugindir::CommandHandlers/PointCommand.pm',
      point => 'plugindir::CommandHandlers/PointCommand.pm',
      push => 'plugindir::CommandHandlers/AdminCommands.pm',
      quit => 'plugindir::CommandHandlers/MiscCommands.pm',
      removevip => 'plugindir::CommandHandlers/ModerationCommands.pm',
      reop => 'plugindir::CommandHandlers/AdminCommands.pm',
      room => 'plugindir::CommandHandlers/MiscCommands.pm',
      scream => 'plugindir::CommandHandlers/ScreamCommand.pm',
      screamto => 'plugindir::CommandHandlers/screamto.pm',
      sound => 'plugindir::CommandHandlers/TextCommands.pm',
      testcolor => 'plugindir::CommandHandlers/TextCommands.pm',
      tmpop => 'plugindir::CommandHandlers/AdminCommands.pm',
      topic => 'plugindir::CommandHandlers/TopicCommand.pm',
      ungag => 'plugindir::CommandHandlers/AdminCommands.pm',
      unignore => 'plugindir::CommandHandlers/Ignoring.pm',
      uninvite => 'plugindir::CommandHandlers/Invitations.pm',
      unlock => 'plugindir::CommandHandlers/LockCommand.pm',
      viewlock => 'plugindir::CommandHandlers/LockCommand.pm',
      wackel => 'plugindir::CommandHandlers/wackel.pm',
      warn => 'plugindir::CommandHandlers/WarnCommands.pm',
      whois => 'plugindir::CommandHandlers/WhoisCommand.pm',
      youtube => 'plugindir::CommandHandlers/TextCommands.pm',
      },



      custom_output_params => {
      admin => [
      'name',
      'nick',
      'color',
      'text',
      ],
      alive => [
      ],
      botty => [
      'name',
      'nick',
      'toname',
      'tonick',
      'color',
      'text',
      'url',
      'botty',
      ],
      broadcast => [
      'name',
      'nick',
      'color',
      'text',
      ],
      callop => [
      'name',
      'nick',
      'color',
      'text',
      ],
      calluser => [
      'name',
      'nick',
      'toname',
      'tonick',
      'color',
      'calluser',
      ],
      changed => [
      'name',
      'room',
      'oldroom',
      ],
      chat => [
      'name',
      'nick',
      'color',
      'text',
      ],
      color_changed => [
      'color',
      ],
      entered => [
      'name',
      'nick',
      'room',
      ],
      font => [
      'name',
      'nick',
      'color',
      'fontsize',
      'text',
      ],
      img => [
      'name',
      'nick',
      'color',
      'text',
      ],
      leaved => [
      'name',
      'nick',
      'room',
      ],
      me => [
      'name',
      'nick',
      'color',
      'text',
      ],
      message => [
      'message',
      ],
      moderated_sent => [
      'id',
      ],
      moderated_text => [
      'id',
      'name',
      'nick',
      'color',
      'text',
      ],
      moderation_disable => [
      'disable',
      ],
      myvideo => [
      'name',
      'nick',
      'text',
      ],
      nick_changed => [
      'name',
      'nick',
      'oldnick',
      ],
      offline_sent => [
      'toname',
      'tonick',
      'color',
      'text',
      'url',
      ],
      private => [
      'name',
      'nick',
      'color',
      'text',
      'url',
      ],
      private_sent => [
      'toname',
      'tonick',
      'color',
      'text',
      'url',
      ],
      room_entered => [
      'name',
      'nick',
      'fromroom',
      'toroom',
      ],
      room_greeting => [
      'name',
      'nick',
      'fromroom',
      'toroom',
      ],
      room_leaved => [
      'name',
      'nick',
      'fromroom',
      'toroom',
      ],
      scream => [
      'name',
      'nick',
      'color',
      'text',
      ],
      scream_send => [
      'toname',
      'tonick',
      'color',
      'text',
      'url',
      ],
      screamto => [
      'name',
      'nick',
      'color',
      'text',
      'url',
      ],
      sound => [
      'name',
      'nick',
      'color',
      'text',
      ],
      testcolor => [
      'color',
      ],
      text => [
      'name',
      'nick',
      'color',
      'text',
      ],
      user_changed => [
      ],
      wackel => [
      'name',
      'nick',
      'color',
      'text',
      'url',
      ],
      wackel_send => [
      'toname',
      'tonick',
      'color',
      'text',
      'url',
      ],
      whois => [
      'nick',
      'raumton',
      'raumtoff',
      'raumt',
      'raum',
      'name',
      'away',
      'group',
      'lastlogin',
      'host',
      'browser',
      'ip',
      'pmail',
      'email',
      ],
      youtube => [
      'name',
      'nick',
      'text',
      ],
      [
      ignore_messages => {
      broadcast => 1,
      callop => 1,
      entered => 1,
      img => 1,
      leaved => 1,
      me => 1,
      message => 1,
      myvideo => 1,
      nick_changed => 1,
      private => 1,
      room_entered => 1,
      room_leaved => 1,
      sound => 1,
      text => 1,
      youtube => 1,




      log_messages => {
      admin => 1,
      broadcast => 1,
      callop => 1,
      entered => 1,
      img => 1,
      leaved => 1,
      me => 1,
      myvideo => 1,
      nick_changed => 1,
      room_entered => 1,
      room_leaved => 1,
      sound => 1,
      text => 1,
      youtube => 1,



      permissions => {
      admin => 2,
      admin_cleanupmembers => 5,
      admin_color_aliases => 5,
      admin_command_aliases => 5,
      admin_commandpermissions => 10,
      admin_defaults => 10,
      admin_general_settings => 10,
      admin_images => 10,
      admin_lastlogin => 5,
      admin_log => 5,
      admin_maintenance => 10,
      admin_news => 5,
      admin_newsletter => 5,
      admin_permissions => 10,
      admin_smileys => 5,
      admin_smileyshide => 10,
      callop => 1,
      'command.addvip' => 3,
      'command.admin' => 3,
      'command.away' => 0,
      'command.ban' => 2,
      'command.broadcast' => 1,
      'command.callop' => 1,
      'command.calluser' => 0,
      'command.chat' => 5,
      'command.color' => 0,
      'command.disablemoderation' => 3,
      'command.dupeip' => 0,
      'command.enablemoderation' => 3,
      'command.entwarn' => 2,
      'command.follow' => 0,
      'command.gag' => 1,
      'command.ghost' => 3,
      'command.ignore' => 0,
      'command.img' => 0,
      'command.imgmsg' => 3,
      'command.invite' => 0,
      'command.kick' => 1,
      'command.lock' => 2,
      'command.me' => 0,
      'command.minus' => 3,
      'command.moderated_text' => 1,
      'command.msg' => 0,
      'command.myvideo' => 4,
      'command.nick' => 3,
      'command.null' => 5,
      'command.point' => 3,
      'command.push' => 1,
      'command.removevip' => 3,
      'command.reop' => 2,
      'command.room' => 0,
      'command.sound' => 0,
      'command.tmpop' => 2,
      'command.topic' => 3,
      'command.ungag' => 0,
      'command.unignore' => 0,
      'command.unlock' => 2,
      'command.viewlock' => 3,
      'command.wackel' => 1,
      'command.warn' => 1,
      'command.whois' => 0,
      'command.youtube' => 4,
      download => 0,
      ignore_maintenance => 10,
      ignore_max_users => 1,
      ignore_nickchange_interval => 5,
      invite => 1,
      privaterooms => 1,
      profile_change_nick => 2,
      profile_change_pointsystem => 10,
      profile_change_warns => 2,
      profile_image_activate => 2,
      profile_image_delete => 5,
      profile_image_see => 0,
      profile_modify => 5,
      profile_modify_commandpermissions => 5,
      profile_modify_permissions => 5,
      profile_seecommandpermissions => 2,
      profile_seeemail => 5,
      profile_seeip => 2,
      profile_seelastlogin => 1,
      profile_seepermissions => 2,
      profile_seepullmode => 2,
      profile_seeregistration => 1,
      profile_settempgroup => 2,
      profile_traceroute => 5,
      rooms_changeowner => 5,
      rooms_create => 1,
      rooms_createmoderated => 5,
      rooms_createpermanent => 5,
      rooms_createprivate => 5,
      rooms_createpublic => 0,
      rooms_moderate => 1,
      rooms_modify => 10,
      sysinfo => 5,
      user => -1,,


      Gruß
      Pilzheinz

      Pilzheinz schrieb:

      Hallo zusammen,

      ich bin bei der Einrichtung des Addons genau so vorgegengen wie in der Alpha Version. Wenn ich den Befehl samt Videocode nun in der Developper eingebe kommt folgende Meldung:

      Keine Bearbeitungsroutine für den Befehl /youtube in der Datei /www/htdocs/pilzfo/cgi-bin/gtchat5/Plugins/CommandHandlers/TextCommands.pm gefunden, möglicherweise ist dieser Plugin fehlerhaft oder falsch eingerichtet.

      und das auch nach mehrfach wiederholter Neueinrichtung. Ich muss da was entscheidendes übersehen. Nur was?
      Gruß
      Pilzheinz

      Der Befehl /youtube konnte in der TextCommands.pm nicht gefunden werden bzw. kann dort nicht verarbeitet werden. (Häng mal deine TextCommands.pm an!)

      Außerdem ~> Wieso machst du zwei Befehle? Mach doch erstmal /youtube und danach nen' befehlsalias /myvideo z.b.!
      Hallo Lukas,

      warum ich zwei Befehle? Nun, weil das in der Installationsanleitung so beschrieben war. :pardon:

      Hier die TextCommands.pm


      package GTChat::Plugins::TextCommands::095_01;
      use strict;

      return bless({
      command_handlers => {
      'sound' => \&custom_handler,
      '' => \&text_handler,
      'admin' => \&text_handler,
      'me' => \&custom_handler,
      'broadcast' => \&custom_handler,
      'callop' => \&custom_handler,
      'img' => \&custom_handler,
      'away' => \&away_handler,
      },
      });

      sub check_gagged
      {
      my $main = shift;

      if (exists($main->{current_user}{gagtime}) && $main->{runtime}{now} < $main->{current_user}{gagtime})
      {
      return [$main->createErrorOutput('gagged',{seconds => $main->{current_user}{gagtime}-$main->{runtime}{now}})];
      }
      return undef;
      }

      sub text_handler
      {
      my($self,$main,$command,$text) = @_;

      my @ret=();

      if (my $error=check_gagged($main))
      {
      return $error;
      }

      if ($main->{current_user}{away})
      {
      $main->{current_user}{away} = 0;

      my $output = $main->createInfoOutput('awayoff',{nick => $main->{current_user}{nick}});
      push @ret, $output->restrictToUser->restrictToCurrentRoom->setChangedAttributes('away');
      }

      my @to=();

      my @words = split(/\s/,$text);
      my $changed = 0;
      my $i=$#words;
      while ($i>=0 && $words[$i] =~ /^\@[^@]+$/)
      {
      $i--;
      }
      unshift(@words,splice(@words,$i+1));

      while ($words[0] =~ /^[^:]+:$/ || $words[0] =~ /^\@[^@]+$/)
      {
      $words[0] =~ s/\:$//;
      $words[0] =~ s/^\@//;

      my $candidates = $main->getPossibleOnlineUsers($words[0],$main->{current_user}{room});
      if ($#$candidates<0)
      {
      push @ret,$main->createErrorOutput('notinroom',{nick => $words[0]});
      }
      elsif ($#$candidates>0)
      {
      push @ret,$main->createErrorOutput('ambiguousname',{nick => $words[0]});
      }
      else
      {
      push @to, $candidates->[0]{nick};
      $changed = 1;
      }
      shift(@words);
      }
      $text=join(' ',@words) if ($changed);

      if ($text ne "")
      {
      my $output = $main->createOutput(
      {
      template => $command eq ''?'text':'admin',
      name => $main->{current_user}{name},
      nick => $main->{current_user}{nick},
      color => $main->{current_user}{color},
      text => $main->toHTML($text),
      '*' => \@to,
      });
      push @ret,$output->restrictToCurrentRoom;
      }

      return \@ret;
      }

      sub away_handler
      {
      my($self,$main,$command,$text) = @_;

      my @ret=();

      if (my $error=check_gagged($main))
      {
      return $error;
      }
      elsif ($text eq "")
      {
      $main->{current_user}{away}=1;

      my $output = $main->createInfoOutput('awayon',{nick => $main->{current_user}{nick}});
      push @ret, $output->restrictToUser->restrictToCurrentRoom->setChangedAttributes('away');
      }
      else
      {
      $text = $main->toHTML($text);
      $main->{current_user}{away}=$text;

      my $output = $main->createInfoOutput('awayon_reason!',{nick => $main->{current_user}{nick}, reason => $text});
      push @ret, $output->restrictToUser->restrictToCurrentRoom->setChangedAttributes('away');
      }

      return \@ret;
      }

      sub custom_handler
      {
      my($self,$main,$command,$text) = @_;

      my @ret=();

      if (my $error=check_gagged($main))
      {
      return $error;
      }

      if ($main->{current_user}{away})
      {
      $main->{current_user}{away} = 0;

      my $output = $main->createInfoOutput('awayoff',{nick => $main->{current_user}{nick}});
      push @ret, $output->restrictToUser->restrictToCurrentRoom->setChangedAttributes('away');
      }

      if ($text ne '')
      {
      my $output = $main->createOutput(
      {
      template => $command,
      name => $main->{current_user}{name},
      nick => $main->{current_user}{nick},
      color => $main->{current_user}{color},
      text => $main->toHTML($text),
      });
      $output->restrictToCurrentRoom if $command ne 'broadcast' && $command ne 'callop';
      push @ret,$output;
      }

      return \@ret;
      }

      Gruß
      Pilzheinz
      Hallo Rodolfo,

      wie bist du den drauf? Ich habe oben geschrieben dass ich keine Funktion für einen Dateiupload gefunden habe und es deshalb auf diese Art mache. Wenn du mir nun den Weg zu dem Upload gezeigt hättest, wäre mir mehr geholfen als mit deinem " Scheiß " Kommentar. :pillepalle:

      Am besten wird es sein ich bleibe bei meiner alten Alpha - Version. Ein solches Supportforum muss ich mir wahrlich nicht antun.

      Gruß
      Pilzheinz

      PS: ja, ich benutze noch Anrede und Gruß
      Hallo Lukas,

      ich habe gleich die neue TextCommands hochgeladen und es hat tatsächlich geklappt. Ich werde mal alt und neu vergleichen um zu sehen was du geändert hast.

      Für deine kompetente Hilfe bedanke ich mich recht herzlich bei dir. Den Button zum Dateiupload habe ich nun gefunden, war wohl heute Morgen noch nicht richtig wach. :pardon:

      Gruß
      Pilzheinz