Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Flash Chat

Aloittaja dailytalk, kesäkuu 26, 2007, 01:36:33 IP

« edellinen - seuraava »

dailytalk

Problem mit Flash Chat wegen update von SMF 1.1.2 auf SMF 1.1.3

http://custom.simplemachines.org/mods/index.php?mod=611

Wollte gerade den Flash Chat in meinem Forum integrieren. Die Installation der Dateien klappte eigentlich problemlos. Doch leider scheint er mit der neuen Version SMF 1.1.3 nicht mehr ganz kompatibel zu sein. Ich bekomme nämlich folgende Errormeldung:

Table 'SMF1.flashchat_connections' doesn't exist
File: /srv/www/vhosts/nischenprodukte.ch/httpdocs/Sources/BoardIndex.php
Line: 360

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.3, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.


Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.3, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php. 


Ich musste folgendes aus der BoardIndex.php (im Verzeichnis Sources) löschen damit ich den Error wieder wegbekam:

Lainaa// --- Begin FlashChat integration ---
   // Get the FlashChat database config (for the prefix)
   global $boarddir;
   include($boarddir . '/chat/inc/config.srv.php');
   // Load all the users currently in the chat
   $result = db_query("
      SELECT
         fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
         fr.name AS roomName, fr.ispublic,
         mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
         mg.ID_GROUP, mg.groupName
      FROM {$GLOBALS['fc_config']['db']['pref']}connections AS fc
         LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
         LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
         LEFT JOIN {$GLOBALS['fc_config']['db']['pref']}rooms AS fr ON (fc.roomid = fr.id)
      WHERE fc.userid IS NOT NULL
      ORDER BY mem.realName ASC", __FILE__, __LINE__);
      
   $context['users_chat'] = array();
   $context['list_users_chat'] = array();
   $context['num_chat'] = mysql_num_rows($result);
   
   // Loop through all users in chat
   while ($row = mysql_fetch_assoc($result))
   {
      // Does their membergroup have a colour?
      if (!empty($row['onlineColor']))
         $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
      else
         $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

      // Add them to the 'Users Online' list
      $context['users_chat'][$row['memberName']] = array(
         'id' => $row['userid'],
         'username' => $row['memberName'],
         'name' => $row['realName'],
         'group' => $row['ID_GROUP'],
         'href' => $scripturl . '?action=profile;u=' . $row['userid'],
         'link' => $link,
         'chat' => array(
            'color' => $row['color'],
            'lang' => $row['lang'],
            'room' => array(
               'id' => $row['roomid'],
               'name' => $row['roomName'],
               'public' => ($row['ispublic'] == 'y' ? true : false),
            ),
         ),
      );
      
      $context['list_users_chat'][$row['memberName']] = $link . ' (' . ($row['ispublic'] != 'y' ? $txt['fc_private_room'] : $row['roomName']) . ')';
      
      // Groups online
      if (!isset($context['online_groups'][$row['ID_GROUP']]))
         $context['online_groups'][$row['ID_GROUP']] = array(
            'id' => $row['ID_GROUP'],
            'name' => $row['groupName'],
            'color' => $row['onlineColor']
         );
   }
   mysql_free_result($result);
   // --- End FlashChat integration ---

Und ja ich weiss, es steht "Compatible With: 1.1.1, 1.1.2" aber ich habe den vorgestern heruntergeladen, dann kam gestern das Update und es hiess besser vorher den Update machen und nachher die mods um allfällige Probleme zu vermeiden...so und nun sitze ich auf dem ansich guten Flash Chat herum und kann ihn nicht nutzen.

Weiss jemand was zu tun ist um den Flash Chat kompatibel zu machen???

dailytalk

#1
Habe gesehen, dass es einen Update für SMF 1.1.3 gab und nochmals probiert den Flash Chat zu integrieren. Installation lief problemlos. Alles wurde als Erfolgreich installiert angezeigt.

Doch aus irgend einem Grund kann man nach der Installation die Index.php nicht mehr brauchen. Wenn ich nach der Installation auf den Home oder übersicht-Button klicke, kommt einfach eine Errorseite. Seltsam, naja. Habe nun die Faust im Sack gemacht, den Flash-Chat wieder deinstalliert (nun läuft wieder alles wie geschmiert) und die 5 USD, die ich für dieses Teil, dass bei mir nicht ein einziges Mal wirklich funktioniert hat, zahlen musste abgeschrieben. Reut mich echt das Geld. Hätte es ebensogut aus dem Fenster werfen können.

dailytalk

Versuche es jetzt mit dem AChat...doch das ich leider auch nur so eine Alphaversion.

GammaGandalf

Besorge dir mal den Chat von tufat der geht hatte ich auch eingebaut

dailytalk

Hast du mir einen Link zu downloadseite vom Tufat-Chat?

dailytalk

#5
Frage zu den Smilies...

Da ich mehr Smilies verwende als ursprünglich vom Programmierer vorgesehen wird die Breite meines Chattemplates verändert, da die Smilies offensichtlich nur auf einer Zeile dargestellt werden können. Wie kann man den Code ändern, damit die Smilies auf 2 Zeilen dargestellt werden?

Hier der Code des tpvchat.template.php
Lainaa// This function displays all the stuff you'd expect to see with a message box, the box, BBC buttons and of course smileys.
function template_postbox(&$message)
{
   global $context, $settings, $options, $txt, $modSettings;
   $context['show_bbc'] = true;
   // Assuming BBC code is enabled then print the buttons and some javascript to handle it.
   if ($context['show_bbc']) {
      echo '<!-- <table border="1">
         <tr>
            <td valign="middle"> -->
               <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                  function bbc_highlight(something, mode)
                  {
                     something.style.backgroundImage = "url(" + smf_images_url + (mode ? "/bbc/bbc_hoverbg.gif)" : "/bbc/bbc_bg.gif)");
                  }
               // ]]></script>';

      // The below array makes it dead easy to add images to this page. Add it to the array and everything else is done for you!
      $context['bbc_tags'] = array();
      $context['bbc_tags'][] = array(
         'bold' => array('code' => 'b', 'before' => '', 'after' => '', 'description' => $txt[253]),
         'italicize' => array('code' => 'i', 'before' => '', 'after' => '', 'description' => $txt[254]),
         'underline' => array('code' => 'u', 'before' => '', 'after' => '', 'description' => $txt[255]),
         'strike' => array('code' => 's', 'before' => '', 'after' => '', 'description' => $txt[441]),
         array(),
         'glow' => array('code' => 'glow', 'before' => '', 'after' => '', 'description' => $txt[442]),
         
         array(),
         'pre' => array('code' => 'pre', 'before' => '
', 'after' => '
', 'description' => $txt[444]),
         'left' => array('code' => 'left', 'before' => '
', 'after' => '
', 'description' => $txt[445]),
         'center' => array('code' => 'center', 'before' => '
', 'after' => '
', 'description' => $txt[256]),
         'right' => array('code' => 'right', 'before' => '
', 'after' => '
', 'description' => $txt[446]),
         array(),
         'hr' => array('code' => 'hr', 'before' => '
', 'description' => $txt[531]),
         array(),
         'size' => array('code' => 'size', 'before' => '', 'after' => '', 'description' => $txt[532]),
         'face' => array('code' => 'font', 'before' => '', 'after' => '', 'description' => $txt[533]),
      );
      $context['bbc_tags'][] = array(
         'flash' => array('code' => 'flash', 'before' => 'http://',%20'after'%20=>%20'', 'description' => $txt[433]),
         'img' => array('code' => 'img', 'before' => '', 'description' => $txt[435]),
         'url' => array('code' => 'url', 'before' => '', 'after' => '', 'description' => $txt[257]),
         'email' => array('code' => 'email', 'before' => '', 'after' => '', 'description' => $txt[258]),
         'ftp' => array('code' => 'ftp', 'before' => '', 'after' => '', 'description' => $txt[434]),
         array(),
         'table' => array('code' => 'table', 'before' => '
', 'after' => '', 'description' => $txt[436]),
         'tr' => array('code' => 'td', 'before' => '
', 'after' => '
', 'description' => $txt[449]),
         'td' => array('code' => 'td', 'before' => '
', 'after' => '
', 'description' => $txt[437]),
         array(),
         'sup' => array('code' => 'sup', 'before' => '', 'after' => '', 'description' => $txt[447]),
         'sub' => array('code' => 'sub', 'before' => '', 'after' => '', 'description' => $txt[448]),
         'tele' => array('code' => 'tt', 'before' => '', 'after' => '', 'description' => $txt[440]),
         array(),
         'code' => array('code' => 'code', 'before' => '
', 'after' => '', 'description' => $txt[259]),
         'quote' => array('code' => 'quote', 'before' => '
Lainaa', 'after' => '
', 'description' => $txt[260]),
         array(),
         'list' => array('code' => 'list', 'before' => '
    \n
    • ', 'after' => '
    \n
    \n
', 'description' => $txt[261]),
      );


Link zum Chat

(Klar könnte ich auch ein paar Smilies entfernen, doch das möchte ich nicht.)

GammaGandalf


PowerPyx


wegen der sicherheitslücken würde ich keinen flash-chat benutzen. Versuche deine Forenuser zu übereden sich mit einem echten IRC Channel anzufreunden.

Gruß
Pyx

YO_zhik

Lainaus käyttäjältä: coca-cola - joulukuu 22, 2007, 12:10:00 AP
Frage zu den Smilies...

Da ich mehr Smilies verwende als ursprünglich vom Programmierer vorgesehen wird die Breite meines Chattemplates verändert, da die Smilies offensichtlich nur auf einer Zeile dargestellt werden können. Wie kann man den Code ändern, damit die Smilies auf 2 Zeilen dargestellt werden?

Hier der Code des tpvchat.template.php
Lainaa// This function displays all the stuff you'd expect to see with a message box, the box, BBC buttons and of course smileys.
function template_postbox(&$message)
{
[...]
}


Link zum Chat

(Klar könnte ich auch ein paar Smilies entfernen, doch das möchte ich nicht.)
Das ist die Version von unboard.de. Ich habe die Anordnung in eine Reihe in der Version 0.2.4 gefix. Aber es gibt eine Eigenentwicklung - UnChat. Hier http://unboard.de/index.php?nav=down findest du die Downloadseite.

Advertisement: