Its not compactible with the latest xenporta version. Lot of things have changed.I can't get the xenporta module to install. It keeps telling me that xenPorta_TaigaChat.xml is not a valid xml block. I've uploaded what I need to upload.
Has anyone actually got a working block for the new xenporta yet? The code posted earlier doesn't work and doesn't show up at all :/
<?php
class EWRporta_Block_TaigaChat extends XenForo_Model
{
public function getModule(&$options)
{
$response = new XenForo_ControllerResponse_View();
$response->viewName = 'derp';
$response->params = array();
Dark_TaigaChat_ControllerPublic_Index::getTaigaChatStuff($response, 'index');
$response->params += array('xenporta' => true);
return $response->params;
}
}
<?xml version="1.0" encoding="utf-8"?>
<block block_id="TaigaChat" title="TaigaChat" version_string="1.0.0" version_id="1" url="http://8wayrun.com/" install_callback_class="" install_callback_method="" uninstall_callback_class="" uninstall_callback_method="" cache="now">
<admin_templates/>
<listeners/>
<options/>
<phrases/>
<route_prefixes/>
<templates>
<template title="EWRblock_TaigaChat"><![CDATA[<xen:include template="dark_taigachat" />]]></template>
</templates>
</block>
I just realised why it doesn't work, i did the xml but not the php code...completely forgot you had to wipe it when you install 1.5 gah!
What do i save the php code file as?
I made a modification to a template so sprite smilies are working here - but:Does anyone happen to have a sprite that will work with the smilies?
<xen:if is="{$taigachat.canPost}">
<div id='taigachat_controls'>
<xen:if is="({$taigachat.toolbar} == 1 AND !{$taigachat.alt} AND !{$taigachat.sidebar}) OR ({$taigachat.toolbar} == 2 AND (!{$taigachat.sidebar} OR ({$taigachat.sidebar} AND {$taigachat.alt})) OR ({$taigachat.toolbar} == 3)">
<div id='taigachat_toolbar'>
<xen:if is="{$taigachat.toolbar_bbcode}">
<xen:require css="editor_ui.css" />
<xen:foreach loop="$taigachat.toolbar_bbcode" value="$code" key="$title">
<button data-code='{$code}' class='button taigachat_bbcode xenForoSkin'>{xen:raw $title}</button>
</xen:foreach>
</xen:if>
<xen:if is="{$taigachat.toolbar_smilies}">
<div class="taigachat_Popup" id='taigachat_smilies' style='display: inline; top: 3px'>
<a rel="Menu"><img [EMAIL]src='@imagePath/xenforo/editor/smilie.png'[/EMAIL] alt='Smilies' title='Smilies' style='vertical-align: top' /></a>
<div class="Menu">
<div class="primaryContent menuHeader"><h3>{xen:phrase smilies}</h3></div>
<ul class="secondaryContent blockLinksList taigachat_smilies_list">
<xen:foreach loop="$taigachat.toolbar_smilies" value="$smilie" key="$text">
<li><a href='javascript:;' class='taigachat_smilie' data-src='styles/default/xenforo/clear.png' data-alt='{$text}' data-title='{$smilie.0}'><img class='mceSmilieSprite mceSmilie{$smilie.1}' src='styles/default/xenforo/clear.png' alt='{$text}' /></a></li>
</xen:foreach>
</ul>
</div>
</div>
</xen:if>
</div>
</xen:if>
<input id='taigachat_message' class='textCtrl' type='text' maxlength='{xen:raw $taigachat.maxlength}' placeholder='{xen:phrase dark_enter_message}' /> <input type='submit' id='taigachat_send' value='>' class='button primary' />
</div>
</xen:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.