View Topic Name While Posting MOD

主題已鎖定
頭像
cloudsnow30
.※.稜鏡之森の守護使者.※.
.※.稜鏡之森の守護使者.※.
文章: 145
註冊時間: 週六 2006-03-04 03:29
個人狀態: 冬眠喵型態
性別:
來自: 雲上天國
擁有感謝: 2 次
星座:
聯繫:

View Topic Name While Posting MOD

文章 cloudsnow30 »

代碼: 選擇全部

############################################################## 
## MOD Title: View Topic Name While Posting MOD
## MOD Author: GPHemsley < GPHemsley@aol.com > (Gordon P. Hemsley) http://www.lttp.net/
## MOD Description: This will allow you to see what topic you are replying to when you are 
## posting a reply.
## MOD Version: 1.0.5
## 
## Installation Level: Easy
## Installation Time: 3-5 minutes.
## Files To Edit: 2
##              - posting.php
##              - templates/subSilver/posting_body.tpl
## Included Files: N/A
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
##
## The MOD shows you the name of the topic you are replying to and provides a link back if you 
## want/need it. This does not show when posting a new topic or send a private message.
############################################################## 
## MOD History:
##
##   2003-08-11 - Version 1.0.5
##      - Fixed a bit of the MOD template.
##      - Compatible with phpBB 2.0.6.
##      - No need to update files if you have 1.0.4 installed.

##   2003-07-25 - Version 1.0.4
##      - Fixed some more of the MOD template.
##      - Made sure that it appeared during Quoting and Editing, as well.
##      - Included upgrade MODs for previous versions. Take caution when using EasyMOD.
##
##   2003-07-25 - Version 1.0.3
##      - Fixed the MOD template.
##      - Added descriptive Author Notes.
##      - No need to update files if you have Version 1.0.2 installed.
##
##   2003-06-01 - Version 1.0.2
##      - Fixed the problem of the -> [Topic Title] not showing because of a typo.
##      - Added a forgotten MOD Indentifier comment around inserted code.
##
##   2003-05-31 - Version 1.0.1
##      - Fixed the problem of the -> showing when not posting a reply.
##      - Added MOD Indentifier comments around inserted code.
##
##   2003-05-21 - Version 1.0.0
##      - Allows for the showing of the topic name when posting.
##
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

#
#-----[ OPEN ]------------------------------------------
#
posting.php

#
#-----[ FIND ]------------------------------------------
#
	$forum_name = $post_info['forum_name'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Begin View Topic Name While Posting MOD
      $topic_title = $post_info['topic_title'];
// End View Topic Name While Posting MOD

#
#-----[ FIND ]------------------------------------------
#
	'FORUM_NAME' => $forum_name,
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Begin View Topic Name While Posting MOD
	'TOPIC_SUBJECT' => $topic_title,
// End View Topic Name While Posting MOD

#
#-----[ FIND ]------------------------------------------
#
	'U_VIEW_FORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Begin View Topic Name While Posting MOD
      'U_VIEW_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"), 
// End View Topic Name While Posting MOD

#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('switch_not_privmsg', array());
#
#-----[ AFTER, ADD ]------------------------------------------
#

// Begin View Topic Name While Posting MOD
if ( $mode == 'reply' || $mode == 'quote' || $mode == 'editpost' )
{
$template->assign_block_vars('switch_not_privmsg.reply_mode', array());
}
// End View Topic Name While Posting MOD

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl

#
#-----[ FIND ]------------------------------------------
#
		-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
		-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a>
<!-- // Begin View Topic Name While Posting MOD -->
			<!-- BEGIN reply_mode -->
            -> <a href="{U_VIEW_TOPIC}" class="nav">{TOPIC_SUBJECT}</a>
			<!-- END reply_mode -->
<!-- // End View Topic Name While Posting MOD -->
		</span></td>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Sakura Moon ~ 櫻井璃月 ~
論壇系統管理員-Cloud Snow 晴雪
主題已鎖定

回到「PHPBB2-外掛列表」