Remove Post Reply button for visitors

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
loukas79
Registered User
Posts: 49
Joined: Sat Feb 11, 2023 1:47 pm

Remove Post Reply button for visitors

Post by loukas79 »

Hello guys.
We are building a new forum around technical issues and want visitors to be able to read everything but not post. Permissions were granted to visitors correctly, but the New Topic and Reply to Post buttons still show up normally to visitors if we don't want them to. I found a method to hack the new theme keys in this post: viewtopic.php?p=15548256#p15548256 , which works and breaks the New topic button, but I can't find a solution to break the Post reply button. Can someone help me solve this?
Thank you very much
User avatar
warmweer
Jr. Extension Validator
Posts: 12006
Joined: Fri Jul 04, 2003 6:34 am
Location: somewhere in the space-time continuum

Re: Remove Post Reply button for visitors

Post by warmweer »

loukas79 wrote: Fri Dec 06, 2024 3:08 pm Hello guys.
We are building a new forum around technical issues and want visitors to be able to read everything but not post. Permissions were granted to visitors correctly, but the New Topic and Reply to Post buttons still show up normally to visitors if we don't want them to. I found a method to hack the new theme keys in this post: viewtopic.php?p=15548256#p15548256 , which works and breaks the New topic button, but I can't find a solution to break the Post reply button. Can someone help me solve this?
Thank you very much
You could use the Group Template Variables extension to remove New Topic, New Post. etc... for specific groups

viewforum_body.html (for new topic)
viewtopic_body.html (for new post)

Take note you will have to do this for every style you're using.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
loukas79
Registered User
Posts: 49
Joined: Sat Feb 11, 2023 1:47 pm

Re: Remove Post Reply button for visitors

Post by loukas79 »

I solved it according to that post: viewtopic.php?p=15482406#p15482406
The mistake was mine because in my haste, i made the code changes in the prosilver files while using pyrocode. When i edited the files that the post above says in my installed theme, everything works as i want it to.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53600
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: Remove Post Reply button for visitors

Post by Brf »

The Post Reply and New Post buttons lead to the Login page and redirect back to Posting. That way, if your registered users are in the habit of visiting without logging-in, then it takes less keystrokes to log-in to post.
loukas79
Registered User
Posts: 49
Joined: Sat Feb 11, 2023 1:47 pm

Re: Remove Post Reply button for visitors

Post by loukas79 »

Brf wrote: Fri Dec 06, 2024 6:33 pm The Post Reply and New Post buttons lead to the Login page and redirect back to Posting. That way, if your registered users are in the habit of visiting without logging-in, then it takes less keystrokes to log-in to post.
I know that the keys are not there by chance and that they are there for a reason. But i think that if someone is on a topic and logs in, that they are automatically taken back to the page they were looking at before. Even if there's no automatic redirect, it's okay for them to make a few more clicks.

Return to “[3.3.x] Support Forum”