Добавление в тему ответа "Re:"

Идеи для расширения функциональности phpBB 2.0.x
Аватара пользователя
DonVito
phpBB 1.2.1
Сообщения: 24
Стаж: 19 лет 6 месяцев

Добавление в тему ответа "Re:"

Сообщение DonVito »

Хочется осуществить такую вещь, как добавление в тему ответа при ответе: Re: НАЗВАНИЕ ТЕМЫ (или последнего ответа).
Есть ли такой мод?

Поиском не нашёл. Правда.
Аватара пользователя
Balamut
Former team member
Сообщения: 2214
Стаж: 20 лет 1 месяц
Откуда: {postrow.POSTER_FROM}
Поблагодарили: 68 раз

Сообщение Balamut »

http://phpbbhacks.com/download/1967
This hack inserts a default subject into the "subject" field when replying to posts. The default subject inserted is: "re: (topic title here)".

It's very easy to install, just 2 simple edits and no database changes.
Добавлено спустя 45 секунд:

Код: Выделить всё

################################################################################
##
##   Hack Title:		Default Subject on Reply
##   Hack Version:		1.0.1 
##   Hack Author:		John McKernan (JohnMcK, PRESAGEmedia)
## 
##   Hack Description:	This hack inserts a default subject into the 'subject'
##						field when replying to posts. The default subject
##						inserted is: "re: <topic title here>".
##								
##						It's very easy to install, just 2 simple edits.
##
##   phpBB Version:		2.0.4 - 2.0.9
##		
##   Difficulty Level:	Very Easy 
##   Installation Time:	2 Minutes
##
##   Files To Edit:		(2)
##						\posting.php
##						\language\lang_english\lang_main.php
##
##   Release History:
##						1.0.1 - Jul 15, 2004
##								  Validated for v 2.0.9
##						1.0.0 - Oct 29, 2003
##								  Initial Release
##
################################################################################
##
##  FOR UPDATES/SUPPORT, please visit http://www.phpbbhacks.com/forums
##
##  Stay up-to-date on the latest news involving our hacks, sign-up for
##  our newsletter at http://wwww.presagemedia.com/lists/?p=subscribe
##
##  This author supports phpBBHacks.com. This hack is made available
##  through their database at http://www.phpbbhacks.com or our Download
##  Center at http://www.presagemedia.com
## 
##  If you are new to installing hacks for phpBB, may I suggest that you take
##  a look at my 'Installing phpBB Hacks' tutorial at phpBBHacks.com. You can
##  find it here: http://www.phpbbhacks.com/forums/viewtopic.php?t=12211 or
##	here: http://www.presagemedia.com/hacks/cms_view_article.php?aid=2
##
################################################################################
##
##  This hack is released under the GPL License.
##  All Intellectual Property Rights are retained by the hack author(s) 
##  shown above.
##
################################################################################
##
##  BEFORE ADDING THIS HACK TO YOUR FORUM, please be sure to backup ALL
##  affected files.
##
################################################################################

##
##----------[ OPEN ]-------------------------------------
##

posting.php

##
##----------[ FIND ]-------------------------------------
##

	else if ( $mode == 'reply' ) 
   { 
      $user_sig = ( $userdata['user_sig'] != '' ) ? $userdata['user_sig'] : ''; 

      $username = ( $userdata['session_logged_in'] ) ? $userdata['username'] : ''; 
      $subject = ''; 
      $message = ''; 

   } 

##
##----------[ INLINE FIND ]------------------------------
##

      $subject = '';

##
##----------[ REPLACE WITH ]-----------------------------
##

	  $subject = $lang['RE'] . ': ' . $post_info['topic_title']; 

##
##----------[ OPEN ]-------------------------------------
##

\language\lang_english\lang_main.php

##
##----------[ FIND ]-------------------------------------
##


//
// That's All Folks !
//

?>

##
##----------[ BEFORE, ADD ]------------------------------
##

// Default Subject on Reply
$lang['RE'] = 're';
	 	 

##
##----------[ SAVE AND CLOSE ALL FILES ]-----------------
##
##     End
##
//
// That's all, Folks!
// -------------------------------------------------
Аватара пользователя
DonVito
phpBB 1.2.1
Сообщения: 24
Стаж: 19 лет 6 месяцев

Спасибо!

Сообщение DonVito »

Большое спасибо, всё очень просто и быстро устанавливается и прекрасно работает!

Вернуться в «Запросы модов для phpBB 2.0.x»