Changeset 1493

Show
Ignore:
Timestamp:
08/17/11 23:07:12 (22 months ago)
Author:
Torben Brodt
Message:

xmpp fixes

Location:
xmpp
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • xmpp/files/images/candy/default.css

    r1490 r1493  
    66 * @copyright 2011 Amiado Group AG, All rights reserved. 
    77 */ 
    8 html, body { 
    9         margin: 0; 
    10         padding: 0; 
     8#candy { 
    119        font-family: Arial, Helvetica, sans-serif; 
    1210} 
     
    2321} 
    2422 
    25 a { 
     23#candy a { 
    2624        color: #333; 
    2725        text-decoration: none; 
    2826} 
    2927 
    30 ul { 
     28#candy ul { 
    3129        list-style: none; 
    3230        padding: 0; 
  • xmpp/files/lib/page/ChatPage.class.php

    r1490 r1493  
    1616        public function assignVariables() { 
    1717                parent::assignVariables(); 
    18                  
     18 
    1919                WCF::getTPL()->assign(array( 
    20                         'allowSpidersToIndexThisPage' => true 
     20                        'allowSpidersToIndexThisPage' => true, 
     21                        'username' => WCF::getUser()->userID ? WCF::getUser()->username : false 
    2122                )); 
    2223        } 
  • xmpp/templates/chat.tpl

    r1492 r1493  
    2525        <script type="text/javascript" src="{@RELATIVE_WCF_DIR}js/3rdParty/candy.min.js"></script> 
    2626        <script type="text/javascript"> 
     27        //<![CDATA[ 
    2728                onloadEvents.push(function(){ 
    2829                        Candy.init('http-bind/', { 
    29                                 core: { debug: false }, 
    30                                 view: { resources: '{@RELATIVE_WCF_DIR}images/candy/', language: 'de' } 
     30                                core: {  
     31                                        debug: false, 
     32                                        autojoin: ['www@conference.talk.easy-coding.de'] 
     33                                }, 
     34                                view: { 
     35                                        resources: '{@RELATIVE_WCF_DIR}images/candy/',  
     36                                        language: 'de'  
     37                                } 
    3138                        }); 
    32                         Candy.Core.connect(); 
     39                        Candy.Core.connect({if $username}{$username|json_encode}{/if}); 
    3340                }); 
     41        //]]> 
    3442        </script> 
    3543 
     
    3745        <p class="info">Die Chat Integration in das Forum befindet sich noch im Aufbau. Mit eurem Jabber Client könnt ihr aber schon fleißig mitchatten. Mehr unter : <a href="http://www.easy-coding.de/easy-coding-xmpp-server-talk-easy-coding-de-t7173.html">easy-coding XMPP Server - talk.easy-coding.de</a></p> 
    3846 
    39         <div id="candy"></div> 
     47        <div style="position:relative"><div id="candy"></div></div> 
    4048</div> 
    4149