Перейти к контенту
  • 0

Кнопки кодов


hERd

Вопрос

У меня стоит руссифицированный и модифицированный IPB 1.3. И там "Кнопки кодов" просто уродливые:

http://www.p2p.u9.ru/fast_reply.gif

 

Хочу как тут на форуме, эдинственное что кнопку скрытого сообщения нужно оставить.

Ссылка на комментарий
Поделиться на других сайтах

Рекомендуемые сообщения

  • 0

Поточнее можешь? Напр. уже при установки в файле topics.php не нашел ни то что надо найти, ни то на тчо надо заменить:

 

// ---------------
// Найти в файле:
// ---------------
if (   ( $this->topic['quick_reply'] == 1 )
    and ( $std->check_perms( $this->topic['reply_perms']) == TRUE )
    and ( $this->topic['state'] != 'closed' ) )
{
  $show = "none";
  $sqr = $std->my_getcookie("open_qr");
  if ( $sqr == 1 )
  {
  	$show = "show";
  }
  $this->output = str_replace( "<!--IBF.QUICK_REPLY_CLOSED-->", $this->html->quick_reply_box_closed(), $this->output );
  $this->output = str_replace( "<!--IBF.QUICK_REPLY_OPEN-->"  , $this->html->quick_reply_box_open($this->topic['forum_id'], $this->topic['tid'], $show, $this->md5_check), $this->output );
}

// ---------------
// Заменить на:
// ---------------
  // QReplyForm start
  if (   ( $this->topic['quick_reply'] == 1 )
     and ( $std->check_perms( $this->topic['reply_perms']) == TRUE )
     and ( $this->topic['state'] != 'closed' or $ibforums->member['g_post_closed'] == 1 )
     and ( $this->topic['poll_state'] != 'closed' or $ibforums->member['g_post_closed'] == 1 ) )
  {
  	$ibforums->lang['the_max_length'] = $ibforums->vars['max_post_length'] * 1024;

  	$this->output = str_replace("<!--IBF.QUICK_REPLY_FORM-->",$this->html->quick_reply_form($this->topic['forum_id'],$this->topic['tid'],$this->md5_check),$this->output);
  	$this->quick_add_smilie();
  	$this->html_checkboxes($this->topic['tid']);
  	$this->output = str_replace("<!--IBF.NAME_FIELD-->",$this->html_name_field(),$this->output);
  }
  // QReplyForm end

 

Помоги плиз!

Изменено пользователем hERd
Ссылка на комментарий
Поделиться на других сайтах

  • 0

hERd

пр. уже при установки в файле topics.php не нашел ни то что надо найти, ни то на тчо надо заменить:

Потому что на форум уже установлена эта форма. И то что надо, было заменено-удалено.

Ссылка на комментарий
Поделиться на других сайтах

  • 0
И как теперь исправить?

Удалить форму согласно тому хаку от Игорька, и поставить тот что надо.

 

 

 

//оффтоп

у тебя какой броузер? мне просто нравится тот шрифт, что на твоем рисунке в первом посте. ето какой шрифт?

Ссылка на комментарий
Поделиться на других сайтах

  • 0
Все-же как мне удалить этот быстрый ответ? Мне теперь нужно поставить hide хак но из-за модифицированного бытсрого ответа ничего не выходит!! Помогите пожалуйста!!!
Ссылка на комментарий
Поделиться на других сайтах

  • 0

тоесть её надо удалить?

 

function quick_reply_box_open($fid="",$tid="",$show="hide", $key="") {
global $ibforums;
return <<<EOF
<script type="text/javascript">
<!--
function emo_pop()
{
  window.open('index.{$ibforums->vars['php_ext']}?act=legends&CODE=emoticons&s={$ibforums->session_id}','Legends','width=250,height=500,resizable=yes,scrollbars=yes'); 
}
//-->
</script>
<br />
<div align='left' id='qr_open' style="display:$show;position:relative;">
   <form name='REPLIER' action="{$ibforums->base_url}" method='post'>
   <input type='hidden' name='act' value='Post' />
   <input type='hidden' name='CODE' value='03' />
   <input type='hidden' name='f' value='$fid' />
   <input type='hidden' name='t' value='$tid' />
   <input type='hidden' name='st' value='{$ibforums->input['st']}' />
   <input type='hidden' name='enabletrack' value='{$ibforums->member['auto_track']}' />
   <input type='hidden' name='auth_key' value='$key' />
   <!-- TITLE DIV -->
   <div class="tableborder">
	 <div class='maintitle'><{CAT_IMG}> {$ibforums->lang['qr_title']}</div>
	 <div class="tablepad" align="center">
		 <textarea cols='70' rows='8' name='Post' class='textinput' tabindex="1"></textarea>
		 <br /><br />
		 <a href='java script:emo_pop();'>{$ibforums->lang['show_emo']}</a> |
		 <input type='checkbox' name='enableemo' value='yes' class="checkbox" checked="checked" /> {$ibforums->lang['qr_add_smilie']} |
		 <input type='checkbox' name='enablesig' value='yes' class="checkbox" checked="checked" /> {$ibforums->lang['qr_add_sig']}
		 <br /><br />
		 <input type='submit' name='submit' value='{$ibforums->lang['qr_submit']}' class='forminput' tabindex="2" accesskey="s" /> 
		 <input type='submit' name='preview' value='{$ibforums->lang['qr_more_opts']}' class='forminput' />
		    <input type='button' name='qrc' onclick="ShowHide('qr_open','qr_closed');" value='{$ibforums->lang['qr_closeit']}' class='forminput' />
	 </div>
  </div>
   </form>
</div>
EOF;
}

function quick_reply_box_closed() {

Ссылка на комментарий
Поделиться на других сайтах

  • 0

на это? :D

// QReplyForm start
function quick_reply_form($fid="",$tid="",$key="") {
global $ibforums;
return <<<EOF
<script language="javascript1.2" type="text/javascript">
<!--
var MessageMax  = "{$ibforums->lang['the_max_length']}";
var Override	= "{$ibforums->lang['override']}";
MessageMax	  = parseInt(MessageMax);

if ( MessageMax < 0 )
{
MessageMax = 0;
}

function emo_pop()
{
 window.open('index.{$ibforums->vars['php_ext']}?act=legends&CODE=emoticons&s={$ibforums->session_id}','Legends','width=250,height=500,resizable=yes,scrollbars=yes');
}
function bbc_pop()
{
 window.open('index.{$ibforums->vars['php_ext']}?act=legends&CODE=bbcode&s={$ibforums->session_id}','Legends','width=700,height=500,resizable=yes,scrollbars=yes');
}
function CheckLength() {
MessageLength  = document.REPLIER.Post.value.length;
message  = "";
	if (MessageMax > 0) {
		message = "{$ibforums->lang['js_post']}: {$ibforums->lang['js_max_length']} " + MessageMax + " {$ibforums->lang['js_characters']}.";
	} else {
		message = "";
	}
	alert(message + "   {$ibforums->lang['js_used']} " + MessageLength + " {$ibforums->lang['js_characters']}.");
}

function ValidateForm(isMsg) {
	MessageLength  = document.REPLIER.Post.value.length;
	errors = "";

	if (isMsg == 1)
	{
		if (document.REPLIER.msg_title.value.length < 2)
		{
			errors = "{$ibforums->lang['msg_no_title']}";
		}
	}

	if (MessageLength < 2) {
		 errors = "{$ibforums->lang['js_no_message']}";
	}
	if (MessageMax !=0) {
		if (MessageLength > MessageMax) {
			errors = "{$ibforums->lang['js_max_length']} " + MessageMax + " {$ibforums->lang['js_characters']}. {$ibforums->lang['js_current']}: " + MessageLength;
		}
	}
	if (errors != "" && Override == "") {
		alert(errors);
		return false;
	} else {
		document.REPLIER.submit.disabled = true;
		return true;
	}
}

// IBC Code stuff
var text_enter_url	  = "{$ibforums->lang['jscode_text_enter_url']}";
var text_enter_url_name = "{$ibforums->lang['jscode_text_enter_url_name']}";
var text_enter_image	= "{$ibforums->lang['jscode_text_enter_image']}";
var text_enter_email	= "{$ibforums->lang['jscode_text_enter_email']}";
var text_enter_flash	= "{$ibforums->lang['jscode_text_enter_flash']}";
var text_code		   = "{$ibforums->lang['jscode_text_code']}";
var text_quote		  = "{$ibforums->lang['jscode_text_quote']}";
var error_no_url		= "{$ibforums->lang['jscode_error_no_url']}";
var error_no_title	  = "{$ibforums->lang['jscode_error_no_title']}";
var error_no_email	  = "{$ibforums->lang['jscode_error_no_email']}";
var error_no_width	  = "{$ibforums->lang['jscode_error_no_width']}";
var error_no_height	 = "{$ibforums->lang['jscode_error_no_height']}";
var prompt_start		= "{$ibforums->lang['js_text_to_format']}";

var help_bold		   = "{$ibforums->lang['hb_bold']}";
var help_italic		 = "{$ibforums->lang['hb_italic']}";
var help_under		  = "{$ibforums->lang['hb_under']}";
var help_font		   = "{$ibforums->lang['hb_font']}";
var help_size		   = "{$ibforums->lang['hb_size']}";
var help_color		  = "{$ibforums->lang['hb_color']}";
var help_close		  = "{$ibforums->lang['hb_close']}";
var help_url			= "{$ibforums->lang['hb_url']}";
var help_img			= "{$ibforums->lang['hb_img']}";
var help_email		  = "{$ibforums->lang['hb_email']}";
var help_quote		  = "{$ibforums->lang['hb_quote']}";
var help_list		   = "{$ibforums->lang['hb_list']}";
var help_code		   = "{$ibforums->lang['hb_code']}";
var help_click_close	= "{$ibforums->lang['hb_click_close']}";
var list_prompt		 = "{$ibforums->lang['js_tag_list']}";

//-->
</script>


<form name='REPLIER' action="{$ibforums->base_url}" method='post' onsubmit='return ValidateForm()'>
<input type='hidden' name='act' value='Post' />
<input type='hidden' name='CODE' value='03' />
<input type='hidden' name='f' value='$fid' />
<input type='hidden' name='t' value='$tid' />
<input type='hidden' name='st' value='{$ibforums->input['st']}' />
<input type='hidden' name='auth_key' value='$key' />

<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class='maintitle' colspan="2">  {$ibforums->lang['qr_title']}</td>
</tr>
<!--IBF.NAME_FIELD-->
<tr>
  <td class='pformstrip' colspan="2">{$ibforums->lang['ib_code_buttons']}</td>
</tr>
<tr>
  <td class='pformleft'>
   <input type='radio' class='radiobutton' name='bbmode' value='ezmode' onclick='setmode(this.value)' /> <b>{$ibforums->lang['bbcode_guided']}</b><br />
   <input type='radio' class='radiobutton' name='bbmode' value='normal' onclick='setmode(this.value)' checked="checked" /> <b>{$ibforums->lang['bbcode_normal']}</b>
   <script type='text/javascript' src='html/ibfcode.js'></script>
  </td>
  <td class='pformright'>
   <input type='button' accesskey='b' value=' B '	   onclick='simpletag("B")' class='codebuttons' name='B' style="font-weight:bold" onmouseover="hstat('bold')" />
   <input type='button' accesskey='i' value=' I '	   onclick='simpletag("I")' class='codebuttons' name='I' style="font-style:italic" onmouseover="hstat('italic')" />
   <input type='button' accesskey='u' value=' U '	   onclick='simpletag("U")' class='codebuttons' name='U' style="text-decoration:underline" onmouseover="hstat('under')" />

   <select name='ffont' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'FONT')"  onmouseover="hstat('font')">
   <option value='0'>{$ibforums->lang['ct_font']}</option>
   <option value='Arial' style='font-family:Arial'>{$ibforums->lang['ct_arial']}</option>
   <option value='Times' style='font-family:Times'>{$ibforums->lang['ct_times']}</option>
   <option value='Courier' style='font-family:Courier'>{$ibforums->lang['ct_courier']}</option>
   <option value='Impact' style='font-family:Impact'>{$ibforums->lang['ct_impact']}</option>
   <option value='Geneva' style='font-family:Geneva'>{$ibforums->lang['ct_geneva']}</option>
   <option value='Optima' style='font-family:Optima'>Optima</option>
   </select><select name='fsize' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'SIZE')" onmouseover="hstat('size')">
   <option value='0'>{$ibforums->lang['ct_size']}</option>
   <option value='1'>{$ibforums->lang['ct_sml']}</option>
   <option value='7'>{$ibforums->lang['ct_lrg']}</option>
   <option value='14'>{$ibforums->lang['ct_lest']}</option>
   </select><select name='fcolor' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'COLOR')" onmouseover="hstat('color')">
   <option value='0'>{$ibforums->lang['ct_color']}</option>
   <option value='blue' style='color:blue'>{$ibforums->lang['ct_blue']}</option>
   <option value='red' style='color:red'>{$ibforums->lang['ct_red']}</option>
   <option value='purple' style='color:purple'>{$ibforums->lang['ct_purple']}</option>
   <option value='orange' style='color:orange'>{$ibforums->lang['ct_orange']}</option>
   <option value='yellow' style='color:yellow'>{$ibforums->lang['ct_yellow']}</option>
   <option value='gray' style='color:gray'>{$ibforums->lang['ct_grey']}</option>
   <option value='green' style='color:green'>{$ibforums->lang['ct_green']}</option>
   </select>
     <a href='java script:closeall();' onmouseover="hstat('close')">{$ibforums->lang['js_close_all_tags']}</a>
   <br />
   <input type='button' accesskey='h' value=' http:// ' onclick='tag_url()'			class='codebuttons' name='url' onmouseover="hstat('url')" />
   <input type='button' accesskey='g' value=' IMG '	 onclick='tag_image()'		  class='codebuttons' name='img' onmouseover="hstat('img')" />
   <input type='button' accesskey='e' value=' E-Mail '	 onclick='tag_email()'		  class='codebuttons' name='email' onmouseover="hstat('email')" />
   <input type='button' accesskey='q' value=' Цитата '   onclick='simpletag("QUOTE")'   class='codebuttons' name='QUOTE' onmouseover="hstat('quote')" />
   <input type='button' accesskey='p' value='  Код  '	onclick='simpletag("CODE")'	class='codebuttons' name='CODE' onmouseover="hstat('code')" />
   <input type='button' accesskey='l' value=' Список '	 onclick='tag_list()'		  class='codebuttons' name="LIST" onmouseover="hstat('list')" />
   <!--<input type='button' accesskey='l' value=' SQL '	 onclick='simpletag("SQL")'	 class='codebuttons' name='SQL'>
   <input type='button' accesskey='t' value=' HTML '	onclick='simpletag("HTML")'	class='codebuttons' name='HTML'>-->
   <br />
   {$ibforums->lang['hb_open_tags']}: <input type='text' name='tagcount' size='3' maxlength='3' style='font-size:10px;font-family:verdana,arial;border:0px;font-weight:bold;' readonly="readonly" class='row1' value="0" />
    <input type='text' name='helpbox' size='50' maxlength='120' style='width:auto;font-size:10px;font-family:verdana,arial;border:0px' readonly="readonly" class='row1' value="{$ibforums->lang['hb_start']}" />
</td>
  </tr>
  <tr>
 <td colspan="2" class='pformstrip'>{$ibforums->lang['post']}</td>
  </tr>
  <tr>
 <td class='pformleft' align='center'>
   <!--SMILIE TABLE-->
   <br /><div class='desc'><strong>· <a href='java script:CheckLength()'>{$ibforums->lang['check_length']}</a> ·<br>· <a href='java script:bbc_pop()'>{$ibforums->lang['bbc_help']}</a> ·</strong></div>
 </td>
 <td class="pformright" valign='top'>
 	<textarea cols='70' rows='15' name='Post' tabindex='3' style='width:95%' class='textinput'></textarea></td>
  </tr>
  <tr>
<td class='pformleft'><b>{$ibforums->lang['po_options']}</b></td>
<td class='pformright'>
 <!--IBF.EMO-->
 <!--IBF.SIG-->
 <!--IBF.TRACK-->
</td>
  </tr>
<!--ENDFORM_QUICK-->
<tr>
 <td class='pformstrip' align='center' style='text-align:center' colspan="2">
<input type="submit" name="submit" value="{$ibforums->lang['submit_reply']}" tabindex='4' class='forminput' accesskey='s' /> 
<input type="submit" name="preview" value="{$ibforums->lang['button_preview']}" tabindex='5' class='forminput' />
 </td>
</tr>
</table>
</form>

EOF;
}

function smilie_table() {
global $ibforums;
return <<<EOF
<table class='tablefill' cellpadding='4' align='center'>
<tr>
<td align="center" colspan="{$ibforums->vars['emo_per_row']}"><b>{$ibforums->lang['click_smilie']}</b></td>
</tr>
<!--THE SMILIES-->
<tr>
<td align="center" colspan="{$ibforums->vars['emo_per_row']}"><b><a href='java script:emo_pop()'>{$ibforums->lang['all_emoticons']}</a></b></td>
</tr>
</table>
EOF;
}

function get_box_enableemo($checked) {
global $ibforums;
return <<<EOF
<input type='checkbox' name='enableemo' class='checkbox' value='yes' $checked /> {$ibforums->lang['enable_emo']}
EOF;
}

function get_box_enablesig($checked) {
global $ibforums;
return <<<EOF
<br /><input type='checkbox' name='enablesig' class='checkbox' value='yes' $checked /> {$ibforums->lang['enable_sig']}
EOF;
}

function get_box_enabletrack($checked) {
global $ibforums;
return <<<EOF
<br /><input type='checkbox' name='enabletrack' class='checkbox' value='1' $checked /> {$ibforums->lang['enable_track']}
EOF;
}

function get_box_alreadytrack() {
global $ibforums;
return <<<EOF
<br />{$ibforums->lang['already_sub']}
EOF;
}

function nameField_unreg($data) {
global $ibforums;
return <<<EOF
<tr>
<td colspan="2" class='pformstrip'>{$ibforums->lang['unreg_namestuff']}</td>
</tr>
<tr>
 <td class='pformleft'>{$ibforums->lang['guest_name']}</td>
 <td class='pformright'><input type='text' size='40' maxlength='40' name='UserName' value='$data' class='textinput' /></td>
</tr>
EOF;
}

function nameField_reg() {
global $ibforums;
return <<<EOF
<!-- REG NAME -->
EOF;
}
// QReplyForm end

Ссылка на комментарий
Поделиться на других сайтах

Присоединиться к обсуждению

Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.

Гость
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Ответить на вопрос...

×   Вы вставили отформатированный текст.   Удалить форматирование

  Допустимо не более 75 смайлов.

×   Ваша ссылка была автоматически заменена на медиа-контент.   Отображать как ссылку

×   Ваши публикации восстановлены.   Очистить редактор

×   Вы не можете вставить изображения напрямую. Загрузите или вставьте изображения по ссылке.

Зарузка...
×
×
  • Создать...

Важная информация

Находясь на нашем сайте, вы соглашаетесь на использование файлов cookie, а также с нашим положением о конфиденциальности Политика конфиденциальности и пользовательским соглашением Условия использования.