[Add-on]New Topic Button On Topic Page

STG Unapproved MODs.

Post MODs here to be approved, and a Moderator will approve/validate it and move it to the MOD Database.

[Add-on]New Topic Button On Topic Page

Postby Adam101 on 21 Aug 2007, 08:20

Classification:Improvement
phpBB Part:Forum

MOD Name:New Topic Button On Topic Page
MOD Version:1
Author: Adam101
MOD Description:Adds a "New Topic" button next to "Post Reply" on the topic list page

Works with:[list]
[*]Used fine on an RC4 board


Language: English

Licence: GNU General Public License v2

Installation Level: Easy
Installation Time: 30 Seconds
Format: Below

Code: Select all
#
#-----[ OPEN ]-----------------------
#
styles/*/template/viewtopic_body.html
#
#-----[ FIND ]------------------------
#
<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></span></a></div>
#
#-----[ AFTER, ADD ]----------------
#
<div class="post-icon"><a href="{U_POST_NEW_TOPIC}" accesskey="n"><span>{L_POST_TOPIC}</span></a></div>
#
#-----[ FIND ]------------------------
#
<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></span></a></div>
#
#-----[ AFTER, ADD ]----------------
#
<div class="post-icon"><a href="{U_POST_NEW_TOPIC}" accesskey="n"><span>{L_POST_TOPIC}</span></a></div>
User avatar
Adam101    
Ensign
Ensign
 
Posts: 64
Joined: 28 Apr 2007, 05:35
Location: The Heart of England
Gender: Male
phpBB Knowledge: 2

Re: [Add-on]New Topic Button On Topic Page

Postby jdh on 01 Sep 2007, 18:05

If I am not mistaken, this is already done in subSilver2 styles (but it may just be Sniper_Blue). ;)

Thankies for posting, Adam101. :hello:
jdh ~ STG support team member - My awesome blog - my ohloh account
Image
User avatar
jdh    
STG Support Team
STG Support Team
 
Posts: 1577
Joined: 05 May 2007, 08:04
Location: Wisconsin, USA
Blog: View Blog (1)
Favorite Team: African Water Rats
Gender: Male
phpBB Knowledge: 5

Re: [Add-on]New Topic Button On Topic Page

Postby Sniper_E on 01 Sep 2007, 23:00

Ye JD, it is already a part of subsilver2

styles/subsilver2/template/viewtopic_body.html (lines 33 to 45)
Code: Select all
   <tr>
      <td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
      <!-- IF not S_IS_BOT -->
         <!-- IF S_DISPLAY_POST_INFO --><a href="{U_POST_NEW_TOPIC}">{POST_IMG}</a>&nbsp;<!-- ENDIF -->
         <!-- IF S_DISPLAY_REPLY_INFO --><a href="{U_POST_REPLY_TOPIC}">{REPLY_IMG}</a><!-- ENDIF -->
      <!-- ENDIF -->
      </td>
      <!-- IF TOTAL_POSTS -->
         <td class="nav" valign="middle" nowrap="nowrap">&nbsp;{PAGE_NUMBER}<br /></td>
         <td class="gensmall" nowrap="nowrap">&nbsp;[ {TOTAL_POSTS} ]&nbsp;</td>
         <td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
      <!-- ENDIF -->
   </tr>
Unapproved MOD
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
Image
User avatar
Sniper_E    
STG Styles Leader
STG Styles Leader
 
Posts: 4861
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [Add-on]New Topic Button On Topic Page

Postby clight77 on 18 Apr 2008, 18:01

For Prosilver phpbb3.0.1

Find:
<!-- IF not S_IS_BOT and S_DISPLAY_REPLY_INFO -->
<div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->"><a href="{U_POST_REPLY_TOPIC}" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->"><span></span><!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED_SHORT}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF --></a></div><div class="post-icon">

After Add:
<a href="{U_POST_NEW_TOPIC}" accesskey="n"><span></span></a></div>
clight77
Supporter
Supporter
 
Posts: 34
Joined: 06 Jul 2007, 21:40
Gender: Male


Return to Unapproved MODs

Who is online

Users browsing this forum: ccBot [Bot], Google Adsense [Bot] and 4 guests