Jump to content
Дизайн и модификация Invision Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Oilforum

Ответ на сообщение без цитаты

Recommended Posts

Суть в том, что в ветке обсуждения остается одна кнопка ОТВЕТ, при клике на которую подставляется ник без цитаты.

Edited by Oil

Share this post


Link to post
Суть в том, что в ветке обсуждения остается одна кнопка ОТВЕТ, при клике на которую подставляется ник без цитаты.

 

/sources/classes/class_post.php

 

Найти:

						if ( $tmp_post )
					{
						if ( $this->han_editor->method == 'rte' && $this->ipsclass->can_use_fancy_js )
						{
							$raw_post .= "[quote name='".$this->parser->make_quote_safe($tp['author_name'])."' date='".$this->parser->make_quote_safe($this->ipsclass->get_date( $tp['post_date'], 'LONG', 1 ))."' post='".$tp['pid']."']<br />{$tmp_post}<br />".$extra.'[/quote]'."<br /><br /><br />";
						}
						else
						{
							$raw_post .= "[quote name='".$this->parser->make_quote_safe($tp['author_name'])."' date='".$this->parser->make_quote_safe($this->ipsclass->get_date( $tp['post_date'], 'LONG', 1 ))."' post='".$tp['pid']."']\n$tmp_post\n".$extra.'[/quote]'."\n\n\n";
						}
					}

 

Заменить на:

						if ( $tmp_post )
					{
						if ( $this->han_editor->method == 'rte' && $this->ipsclass->can_use_fancy_js )
						{
							$raw_post .= "[b][url={$this->ipsclass->base_url}act=findpost&pid={$tp['pid']}]".$this->parser->make_quote_safe($tp['author_name'])."[/url],[/b] ";
						}
						else
						{
							$raw_post .= "[b][url={$this->ipsclass->base_url}act=findpost&pid={$tp['pid']}]".$this->parser->make_quote_safe($tp['author_name'])."[/url],[/b] ";
						}
					}

 

Найти:

$raw_post = trim($raw_post)."\n";

 

Заменить на:

//$raw_post = trim($raw_post)."\n";

 

+++

 

В шаблоне skin_topics -> RenderRow найти кнопку "+Цитата" и удалить её. Т.к. стиль на ойлфоруме изменен до неузнаваемости - уже по месту смотреть надо.

 

+++

 

Будет получаться вот такой линк:

 

Oil,

Share this post


Link to post

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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...