简体   繁体   English

Joomla 3.6自定义html模块中的“与我聊天”链接

[英]Chat with me link in Joomla 3.6 custom html module

Is there a way to insert this code on a Joomla custom module and have it act like a button, instead of putting this on the header of the template? 有没有一种方法可以将此代码插入Joomla自定义模块并使其像按钮一样,而不是将其放在模板的标头上?

{if isset($aUser.is_online) && $aUser.is_online && Phpfox::isModule('im') && Phpfox::getParam('im.enable_im_in_footer_bar') && $aUser.is_friend == 1}
            <li> 
            <a href="javascript:void(0);" onclick="jqcc.cometchat.chatWith('{$aUser.user_id}');">{img theme='module/chat.png' class='v_middle'} {phrase var='profile.instant_chat'}</a></li>    {/if} 

Yes - you can do that. 是的,你可以这么做。 What you need to do is add the above to a custom HTML module, and then create an override for the template of the custom HTML module that doesn't contain any divs (just has echo ($module->content); ). 您需要做的是将以上内容添加到自定义HTML模块中,然后为不包含任何div(只是具有echo ($module->content); )的自定义HTML模块的模板创建一个替代。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM