Перейти до змісту
Домент ipb-board.ru продається.

Не работает чат

Рекомендовані відповіді

Опубліковано

Юра, привет.

Подскажи, почему не работает чат когда я его ставлю, тупо кнопки "отправить" обновить" и т.д не работают, на стандартном стиле работает. Может какой код куда добавить надо?

Опубліковано
  • Адміністратор

Привет, Ro13x.

Пробуй так:
Админ Панель-Внешний вид-Ваш стиль-skin_shoutbox_hooks-hookGlobalShoutbox заменить все на:

<!--- ShoutBoxJsLoader ---><script type='text/javascript'>/* Setup some value */ipb.shoutbox.shoutboxGLOBAL = true;</script><if test="in_array( $this->settings['shoutbox_global_hook'], array( 'b' ) )"><br class="clear"/></if><div class='category_block block_wrap' id='category_shoutbox'>	<h3 class='maintitle'>		<a class='toggle right' href='#' title='{$this->lang->words['toggle_shoutbox']}'>{$this->lang->words['toggle_shoutbox']}</a>		<a href="{parse url="app=shoutbox" seotitle="false" base="public"}" title='{$this->lang->words['view_main_shoutbox']}'>{$this->settings['shoutbox_title']}</a>		<if test="showPopupLink:|:$this->settings['shoutbox_popup']"><a href="#" id="shoutbox-popup-button" title="{$this->lang->words['open_popup']}"><img src="{$this->settings['img_url']}/shoutbox/popup.png" alt="{$this->lang->words['open_popup']}" /></a></if>	</h3>	<div class='ipsBox table_wrap'><div class='ipsBox_container'>		<table class='ipb_table shoutbox_table'>			{$d['announcement']}			<if test="$this->settings['shoutbox_global_theme'] == 2">				<tr class='row1'>					<td valign='top' class='altrow' colspan='2'>						<div id='shoutbox-shouts' style='height:{$d['shout_height']}px;overflow:auto'>							{$d['noshouts']}							{parse template="inactivePrompt" group="skin_shoutbox" params=""}							<table id='shoutbox-shouts-table'>								<tbody>									{$d['shouts']}								</tbody>							</table>						</div>						<div id='shouts-global-resizer'></div>						{parse template="popupInlineError" group="skin_shoutbox" params="glb"}					</td>				</tr>				<if test="$this->memberData['g_shoutbox_use']">					<tr class='row1'>						<td class='altrow' valign='top' colspan='2'>							<input type='text' id='shoutbox-global-shout' size='70' class='input_text' />							<input type='button' id='shoutbox-submit-button' value='{$this->lang->words['shout']}' class='input_submit' />							<input type='button' id='shoutbox-clear-button' value='{$this->lang->words['clear']}' class='input_submit alt' />							<input type='button' id='shoutbox-refresh-button' value='{$this->lang->words['refresh']}' class='input_submit alt' />							<if test="$this->settings['shoutbox_allow_smilies']"> <input type='button' id='shoutbox-smilies-button' value='{$this->lang->words['smilies']}' class='input_submit alt' data-clicklaunch="populateSmilies" data-scope="shoutbox" /></if>							<if test="$this->settings['shoutbox_allow_bbcode']"> <input type='button' id='shoutbox-bbcode-button' value='{$this->lang->words['bbcode']}' class='input_submit alt' /></if>							<input type='button' id='shoutbox-myprefs-button' value='{$this->lang->words['my_prefs']}' class='input_submit alt' />						</td>					</tr>				</if>			<else />				<tr class='row1'>					<td class='altrow' valign='top'<if test="$this->memberData['g_shoutbox_use']"> style='width:75%'<else /> colspan='2'</if>>						<div id='shoutbox-shouts' style='height:{$d['shout_height']}px;overflow:auto'>							{$d['noshouts']}							{parse template="inactivePrompt" group="skin_shoutbox" params=""}							<table id='shoutbox-shouts-table'>								<tbody>									{$d['shouts']}								</tbody>							</table>						</div>						<div id='shouts-global-resizer'></div>						{parse template="popupInlineError" group="skin_shoutbox" params="glb"}					</td>					<if test="$this->memberData['g_shoutbox_use']">						<td class='short row2 altrow' style='width:25%;min-width:250px;' valign='top'>							<textarea id='shoutbox-global-shout' style='width:92%;overflow:auto;' rows='3' cols='50' class='input_text'></textarea>							<br /><br />							<input type='button' id='shoutbox-submit-button' value='{$this->lang->words['shout']}' class='input_submit' />							<input type='button' id='shoutbox-clear-button' value='{$this->lang->words['clear']}' class='input_submit alt' />							<input type='button' id='shoutbox-refresh-button' value='{$this->lang->words['refresh']}' class='input_submit alt' />							<br /><br />							<if test="$this->settings['shoutbox_allow_smilies']"> <input type='button' id='shoutbox-smilies-button' value='{$this->lang->words['smilies']}' class='input_submit alt' data-clicklaunch="populateSmilies" data-scope="shoutbox" /></if>							<if test="$this->settings['shoutbox_allow_bbcode']"> <input type='button' id='shoutbox-bbcode-button' value='{$this->lang->words['bbcode']}' class='input_submit alt' /></if>							<input type='button' id='shoutbox-myprefs-button' value='{$this->lang->words['my_prefs']}' class='input_submit alt' />						</td>					</if>				</tr>			</if>		</table>	</div></div></div><if test="in_array( $this->settings['shoutbox_global_hook'], array( 't', 'ct' ) )"><br class="clear"/></if><script type='text/javascript'>//<![CDATA[{$d['js']}//]]></script>

Админ Панель-Внешний вид-Ваш стиль-skin_shoutbox-shout_row заменить все на:

<if test="$ajax==false"><tr class='row2' id='shout-{$d['_archive']}row-{$d['s_id']}'></if>	<if test="$this->settings['shoutbox_show_photos']"><td style='width: 1%; white-space: nowrap;'>{$d['photo']}</td></if>	<td style='width: 1%; white-space: nowrap;'>		<if test="showAtTag:|:$this->settings['shoutbox_at_tag']">			<a href="#" class="at_member" data-store="{$d['members_display_name']}" title="{$this->lang->words['insert_name']}">@</a> 		</if>		<if test="$d['member_id']">			{IPSMember::makeProfileLink($d['_members_display_name'], $d['member_id'], $d['members_seo_name'])}		<else />			<abbr title="{$d['members_display_name']}">{$d['_members_display_name']}</abbr>		</if>	</td>	<if test="showColon:|:$this->settings['shoutbox_format_colon']"><td style='width: 1%; white-space: nowrap;'>:</td></if>	<td style='width: 98%;'>		<span class='right desc' title='{$d['_date']}'>({$d['s_date']})<if test="$can_edit || ($this->registry->getClass('shoutboxLibrary')->moderator && $this->registry->getClass('shoutboxLibrary')->checkModeratorPerm('edit_shouts', true))"> <a href='{parse url="app=shoutbox" seotitle="false" base="public"}#edit{$d['s_id']}' onclick='return ipb.shoutbox.editShout({$d['s_id']})' title='{$this->lang->words['mod_opt_edit']}'><img src="{$this->settings['img_url']}/comment_edit.png" alt="{$this->lang->words['macro__edit']}" /></a></if><if test="$this->registry->getClass('shoutboxLibrary')->moderator"> <a href='{parse url="app=shoutbox" seotitle="false" base="public"}#shout{$d['s_id']}' onclick='return ipb.shoutbox.modOptsLoadShout({$d['s_id']})' title='{$this->lang->words['mmenu_load_mod_opts']}'>{parse replacement="edit_folder"}</a></if><if test="!$this->registry->shoutboxLibrary->checkModeratorPerm('delete_shouts', true) && $this->memberData['g_shoutbox_delete_own'] && $d['member_id'] == $this->memberData['member_id']"> <a class="deleteMyShout" id="delete_{$d['s_id']}" href="#" title="{$this->lang->words['mod_opt_delete']}"><img src="{$this->settings['img_url']}/delete.png" alt="" /></a></if></span>		<if test="$d['_ignored'] == 1">			<span id='unhide_shout_{$d['s_id']}' class='desc'>{$this->lang->words['ignored_shouter']} <a href='#shout{$d['s_id']}' onclick='return ipb.shoutbox.showHiddenShout({$d['s_id']})' title='{$this->lang->words['ignored_shouter_view']}'>{$this->lang->words['ignored_shouter_view']}</a></span>			<span id='hidden_shout_{$d['s_id']}' class='shoutbox_text' style='display:none'>{$d['s_message']}</span>		<else />			<span class='shoutbox_text'>{$d['s_message']}</span>		</if>	</td><if test="$ajax==false"></tr></if>
Опубліковано
  • Автор

 

Привет, Ro13x.

Пробуй так:

Админ Панель-Внешний вид-Ваш стиль-skin_shoutbox_hooks-hookGlobalShoutbox заменить все на:

<!--- ShoutBoxJsLoader ---><script type='text/javascript'>/* Setup some value */ipb.shoutbox.shoutboxGLOBAL = true;</script><if test="in_array( $this->settings['shoutbox_global_hook'], array( 'b' ) )"><br class="clear"/></if><div class='category_block block_wrap' id='category_shoutbox'>	<h3 class='maintitle'>		<a class='toggle right' href='#' title='{$this->lang->words['toggle_shoutbox']}'>{$this->lang->words['toggle_shoutbox']}</a>		<a href="{parse url="app=shoutbox" seotitle="false" base="public"}" title='{$this->lang->words['view_main_shoutbox']}'>{$this->settings['shoutbox_title']}</a>		<if test="showPopupLink:|:$this->settings['shoutbox_popup']"><a href="#" id="shoutbox-popup-button" title="{$this->lang->words['open_popup']}"><img src="{$this->settings['img_url']}/shoutbox/popup.png" alt="{$this->lang->words['open_popup']}" /></a></if>	</h3>	<div class='ipsBox table_wrap'><div class='ipsBox_container'>		<table class='ipb_table shoutbox_table'>			{$d['announcement']}			<if test="$this->settings['shoutbox_global_theme'] == 2">				<tr class='row1'>					<td valign='top' class='altrow' colspan='2'>						<div id='shoutbox-shouts' style='height:{$d['shout_height']}px;overflow:auto'>							{$d['noshouts']}							{parse template="inactivePrompt" group="skin_shoutbox" params=""}							<table id='shoutbox-shouts-table'>								<tbody>									{$d['shouts']}								</tbody>							</table>						</div>						<div id='shouts-global-resizer'></div>						{parse template="popupInlineError" group="skin_shoutbox" params="glb"}					</td>				</tr>				<if test="$this->memberData['g_shoutbox_use']">					<tr class='row1'>						<td class='altrow' valign='top' colspan='2'>							<input type='text' id='shoutbox-global-shout' size='70' class='input_text' />							<input type='button' id='shoutbox-submit-button' value='{$this->lang->words['shout']}' class='input_submit' />							<input type='button' id='shoutbox-clear-button' value='{$this->lang->words['clear']}' class='input_submit alt' />							<input type='button' id='shoutbox-refresh-button' value='{$this->lang->words['refresh']}' class='input_submit alt' />							<if test="$this->settings['shoutbox_allow_smilies']"> <input type='button' id='shoutbox-smilies-button' value='{$this->lang->words['smilies']}' class='input_submit alt' data-clicklaunch="populateSmilies" data-scope="shoutbox" /></if>							<if test="$this->settings['shoutbox_allow_bbcode']"> <input type='button' id='shoutbox-bbcode-button' value='{$this->lang->words['bbcode']}' class='input_submit alt' /></if>							<input type='button' id='shoutbox-myprefs-button' value='{$this->lang->words['my_prefs']}' class='input_submit alt' />						</td>					</tr>				</if>			<else />				<tr class='row1'>					<td class='altrow' valign='top'<if test="$this->memberData['g_shoutbox_use']"> style='width:75%'<else /> colspan='2'</if>>						<div id='shoutbox-shouts' style='height:{$d['shout_height']}px;overflow:auto'>							{$d['noshouts']}							{parse template="inactivePrompt" group="skin_shoutbox" params=""}							<table id='shoutbox-shouts-table'>								<tbody>									{$d['shouts']}								</tbody>							</table>						</div>						<div id='shouts-global-resizer'></div>						{parse template="popupInlineError" group="skin_shoutbox" params="glb"}					</td>					<if test="$this->memberData['g_shoutbox_use']">						<td class='short row2 altrow' style='width:25%;min-width:250px;' valign='top'>							<textarea id='shoutbox-global-shout' style='width:92%;overflow:auto;' rows='3' cols='50' class='input_text'></textarea>							<br /><br />							<input type='button' id='shoutbox-submit-button' value='{$this->lang->words['shout']}' class='input_submit' />							<input type='button' id='shoutbox-clear-button' value='{$this->lang->words['clear']}' class='input_submit alt' />							<input type='button' id='shoutbox-refresh-button' value='{$this->lang->words['refresh']}' class='input_submit alt' />							<br /><br />							<if test="$this->settings['shoutbox_allow_smilies']"> <input type='button' id='shoutbox-smilies-button' value='{$this->lang->words['smilies']}' class='input_submit alt' data-clicklaunch="populateSmilies" data-scope="shoutbox" /></if>							<if test="$this->settings['shoutbox_allow_bbcode']"> <input type='button' id='shoutbox-bbcode-button' value='{$this->lang->words['bbcode']}' class='input_submit alt' /></if>							<input type='button' id='shoutbox-myprefs-button' value='{$this->lang->words['my_prefs']}' class='input_submit alt' />						</td>					</if>				</tr>			</if>		</table>	</div></div></div><if test="in_array( $this->settings['shoutbox_global_hook'], array( 't', 'ct' ) )"><br class="clear"/></if><script type='text/javascript'>//<![CDATA[{$d['js']}//]]></script>

Админ Панель-Внешний вид-Ваш стиль-skin_shoutbox-shout_row заменить все на:

<if test="$ajax==false"><tr class='row2' id='shout-{$d['_archive']}row-{$d['s_id']}'></if>	<if test="$this->settings['shoutbox_show_photos']"><td style='width: 1%; white-space: nowrap;'>{$d['photo']}</td></if>	<td style='width: 1%; white-space: nowrap;'>		<if test="showAtTag:|:$this->settings['shoutbox_at_tag']">			<a href="#" class="at_member" data-store="{$d['members_display_name']}" title="{$this->lang->words['insert_name']}">@</a> 		</if>		<if test="$d['member_id']">			{IPSMember::makeProfileLink($d['_members_display_name'], $d['member_id'], $d['members_seo_name'])}		<else />			<abbr title="{$d['members_display_name']}">{$d['_members_display_name']}</abbr>		</if>	</td>	<if test="showColon:|:$this->settings['shoutbox_format_colon']"><td style='width: 1%; white-space: nowrap;'>:</td></if>	<td style='width: 98%;'>		<span class='right desc' title='{$d['_date']}'>({$d['s_date']})<if test="$can_edit || ($this->registry->getClass('shoutboxLibrary')->moderator && $this->registry->getClass('shoutboxLibrary')->checkModeratorPerm('edit_shouts', true))"> <a href='{parse url="app=shoutbox" seotitle="false" base="public"}#edit{$d['s_id']}' onclick='return ipb.shoutbox.editShout({$d['s_id']})' title='{$this->lang->words['mod_opt_edit']}'><img src="{$this->settings['img_url']}/comment_edit.png" alt="{$this->lang->words['macro__edit']}" /></a></if><if test="$this->registry->getClass('shoutboxLibrary')->moderator"> <a href='{parse url="app=shoutbox" seotitle="false" base="public"}#shout{$d['s_id']}' onclick='return ipb.shoutbox.modOptsLoadShout({$d['s_id']})' title='{$this->lang->words['mmenu_load_mod_opts']}'>{parse replacement="edit_folder"}</a></if><if test="!$this->registry->shoutboxLibrary->checkModeratorPerm('delete_shouts', true) && $this->memberData['g_shoutbox_delete_own'] && $d['member_id'] == $this->memberData['member_id']"> <a class="deleteMyShout" id="delete_{$d['s_id']}" href="#" title="{$this->lang->words['mod_opt_delete']}"><img src="{$this->settings['img_url']}/delete.png" alt="" /></a></if></span>		<if test="$d['_ignored'] == 1">			<span id='unhide_shout_{$d['s_id']}' class='desc'>{$this->lang->words['ignored_shouter']} <a href='#shout{$d['s_id']}' onclick='return ipb.shoutbox.showHiddenShout({$d['s_id']})' title='{$this->lang->words['ignored_shouter_view']}'>{$this->lang->words['ignored_shouter_view']}</a></span>			<span id='hidden_shout_{$d['s_id']}' class='shoutbox_text' style='display:none'>{$d['s_message']}</span>		<else />			<span class='shoutbox_text'>{$d['s_message']}</span>		</if>	</td><if test="$ajax==false"></tr></if>

Спасибо, но вот  skin_shoutbox-shout_row почему то нету :(

Опубліковано
  • Адміністратор

Возьми свой стиль на катором чат не работает и установи на другой любой тестовий форум где есть чат и проверь если не работает проблема в шаблоне.

Опубліковано
  • Автор

Возьми свой стиль на катором чат не работает и установи на другой любой тестовий форум где есть чат и проверь если не работает проблема в шаблоне.

Я же говорю, на стандартном стиле работает. Проблема скорей всего в шаблоне, ну вот я не понимаю в чем именно, код где то удален,изменен? 

Опубліковано
  • Адміністратор

Найти:

<!-- jQuery - Do you already load this javascript?  (i.e. cometchat) --><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script><!-- Rotating Code --><script type="text/javascript">    $(document).ready(function(){        $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);    });

Заменить на:

<!-- jQuery - Do you already load this javascript?  (i.e. cometchat) --><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script><!-- Rotating Code --><script type="text/javascript">    jQuery(document).ready(function(){        jQuery("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);    });
Опубліковано

 

Найти:

<!-- jQuery - Do you already load this javascript?  (i.e. cometchat) --><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script><!-- Rotating Code --><script type="text/javascript">    $(document).ready(function(){        $("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);    });

Заменить на:

<!-- jQuery - Do you already load this javascript?  (i.e. cometchat) --><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js" ></script><!-- Rotating Code --><script type="text/javascript">    jQuery(document).ready(function(){        jQuery("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);    });

 

Нету такого кода

Есть кусок такого, который чем то похож

{parse template="_ipbfsConfig" group="global" params=""}		<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>		<script type='text/javascript'>!window.jQuery && document.write('<script src="{style_images_url}/js/jquery.min.js"><\/script>')</script>		<script type='text/javascript' src="{style_images_url}/js/cookie.js"></script>		<script type='text/javascript' src="{style_images_url}/js/ipbforumskins.js"></script>		{parse template="includeJS" group="global" params="$jsModules"}		{parse template="includeFeeds" group="global" params="$documentHeadItems"}		{parse template="includeRTL" group="global" params=""}				{parse template="includeVars" group="global" params="$header_items"}<script src='https://www.google.com/recaptcha/api.js'></script><div class="sa-top-background">			<div class="sa-top-background-cover"></div>			<div class="sa-top-background-pattern"></div>		</div>
Гість
Ця тема закрита для опублікування відповідей.