Additional New Topic Button

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Scam Warning
User avatar
cprgolds
Registered User
Posts: 459
Joined: Thu Oct 11, 2007 5:49 am
Location: Portland, Oregon

Additional New Topic Button

Post by cprgolds »

I am not sure if this should be an extension request or not, but it would be useful to have a New Topic Button at the end of a Post adjacent to the Quick Reply button.

Some posted will make several posts in a row and it is more efficient to just start a new topic, rather than returning to the forum listing to do so.
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 4049
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Additional New Topic Button

Post by Kailey »

Like this?

Image
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
cprgolds
Registered User
Posts: 459
Joined: Thu Oct 11, 2007 5:49 am
Location: Portland, Oregon

Re: Additional New Topic Button

Post by cprgolds »

kmtruscott wrote:Like this?
Precisely!
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 4049
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Additional New Topic Button

Post by Kailey »

That would require a new template event. I can create a ticket and a pull request. However, since some styles may offer the button and others not, I'm not sure if the developers would merge it. We'll see.

In the mean time, you can always add this yourself. There are two places to make this change, both in the same file.

OPEN: styles/prosilver/template/viewtopic_body.html

FIND:

Code: Select all

<a href="{U_POST_REPLY_TOPIC}" class="button icon-button <!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->">
    <!-- IF S_IS_LOCKED -->{L_BUTTON_TOPIC_LOCKED}<!-- ELSE -->{L_BUTTON_POST_REPLY}<!-- ENDIF -->
</a>
AFTER ADD:

Code: Select all

<a href="{U_POST_NEW_TOPIC}" class="button icon-button <!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->post-icon<!-- ENDIF -->" title="<!-- IF S_IS_LOCKED -->{L_FORUM_LOCKED}<!-- ELSE -->{L_POST_TOPIC}<!-- ENDIF -->">
    <!-- IF S_IS_LOCKED -->{L_BUTTON_FORUM_LOCKED}<!-- ELSE -->{L_BUTTON_NEW_TOPIC}<!-- ENDIF -->
</a>
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
cprgolds
Registered User
Posts: 459
Joined: Thu Oct 11, 2007 5:49 am
Location: Portland, Oregon

Re: Additional New Topic Button

Post by cprgolds »

@kmtruscott -- Thanks -- am slowly working on style (waiting for things to settle down) and I will do just that.

I certainly saves me the time to figure this out again.

Thanks again!
User avatar
thevisionisdivine
Registered User
Posts: 141
Joined: Tue Mar 10, 2015 3:36 pm
Name: Bruno Bianco

Re: Additional New Topic Button

Post by thevisionisdivine »

Sorry if I ask this, but... in which directory is the original "New Topic" ( and, i.e., "Post Reply" ) button and which is its file name?

Thanks
* * * All To Be The Master Of The Wind * * *
User avatar
canam800er
Registered User
Posts: 208
Joined: Thu Jul 21, 2011 7:42 pm

Re: Additional New Topic Button

Post by canam800er »

Hi
@cprgolds
Here is a Extension New Topic Button in Topic
Sorry for my bad english, I am German and translated with DeepL!
My Extensionen!
User avatar
trandoductin
Registered User
Posts: 76
Joined: Mon Sep 26, 2016 4:11 am

Re: Additional New Topic Button

Post by trandoductin »

Thanks for the adding code instruction.
Works great on my forums
Tarantino
Registered User
Posts: 876
Joined: Sat Feb 18, 2012 1:51 pm

Re: Additional New Topic Button

Post by Tarantino »

There is a problem on both solutions provided. Users without permissions to create a topic will still see the New Topic button. How can I hide it if the user doesn't have permission to create a new topic?

Return to “Extension Requests”