Changeset 1493
- Timestamp:
- 08/17/11 23:07:12 (22 months ago)
- Location:
- xmpp
- Files:
-
- 3 modified
-
files/images/candy/default.css (modified) (2 diffs)
-
files/lib/page/ChatPage.class.php (modified) (1 diff)
-
templates/chat.tpl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
xmpp/files/images/candy/default.css
r1490 r1493 6 6 * @copyright 2011 Amiado Group AG, All rights reserved. 7 7 */ 8 html, body { 9 margin: 0; 10 padding: 0; 8 #candy { 11 9 font-family: Arial, Helvetica, sans-serif; 12 10 } … … 23 21 } 24 22 25 a {23 #candy a { 26 24 color: #333; 27 25 text-decoration: none; 28 26 } 29 27 30 ul {28 #candy ul { 31 29 list-style: none; 32 30 padding: 0; -
xmpp/files/lib/page/ChatPage.class.php
r1490 r1493 16 16 public function assignVariables() { 17 17 parent::assignVariables(); 18 18 19 19 WCF::getTPL()->assign(array( 20 'allowSpidersToIndexThisPage' => true 20 'allowSpidersToIndexThisPage' => true, 21 'username' => WCF::getUser()->userID ? WCF::getUser()->username : false 21 22 )); 22 23 } -
xmpp/templates/chat.tpl
r1492 r1493 25 25 <script type="text/javascript" src="{@RELATIVE_WCF_DIR}js/3rdParty/candy.min.js"></script> 26 26 <script type="text/javascript"> 27 //<![CDATA[ 27 28 onloadEvents.push(function(){ 28 29 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 } 31 38 }); 32 Candy.Core.connect( );39 Candy.Core.connect({if $username}{$username|json_encode}{/if}); 33 40 }); 41 //]]> 34 42 </script> 35 43 … … 37 45 <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> 38 46 39 <div id="candy"></div>47 <div style="position:relative"><div id="candy"></div></div> 40 48 </div> 41 49
