Add a short message for visitors

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
abcd2014
Registered User
Posts: 74
Joined: Sun Feb 18, 2018 12:26 pm

Add a short message for visitors

Post by abcd2014 »

I added last 3 lines in index_body.html to let visitors (or and registers) to know something,

the text is only one line - at same line as "Mark forums read" - float to left.
which is "Note: only registered users can post on our forums".

Code: Select all

<!-- EVENT index_body_markforums_before -->
<!-- IF U_MARK_FORUMS -->
<div style='float: left; padding: 0 5px;'>
<font style='color: #0066AA;'>Note: only registered users can post on our forums</font>
</div>
The message is nice. Unfortunately, only registers can see it.
The HTML has instruction at above:

Code: Select all

<!-- IF S_USER_LOGGED_IN -->
I am wondering:
How to add the message for visitors?

Thanks

.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Add a short message for visitors

Post by Lumpy Burgertushie »

why not just install this extension , that way you won't have to redo the edits everytime you update etc.

https://www.phpbb.com/customise/db/exte ... uncements/

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
abcd2014
Registered User
Posts: 74
Joined: Sun Feb 18, 2018 12:26 pm

Re: Add a short message for visitors

Post by abcd2014 »

I have to remember more if I installed more.

I try basic and easiest ways.
I only modify 4 or 5 files so far - they are good enough for me.

I found another solution: add the text "{Note: only ....]" after Board index - here it is http://www.mathlaunch.com/forum/.
This is not the best solution, but still a good solution for me.

I am a C++ programmer with zero sense of arts, I will re-color and re-image after I have more knowledge of phpbb.

Thanks for your help in last a few of days and phpbb itself.

.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Add a short message for visitors

Post by Lumpy Burgertushie »

if you are going to use that then you might want to rewrite it where it makes sense in english.
maybe : Only registered users can post on our board.

however, you might want to review how phpbb works. you currently have guest posting allowed and have that worthless captcha set for guests to have to solve before they can post.

that is the exact opposite of what you are trying to accomplish with the notice you put on about needing to be registered to post.

you need to edit the permissions to not allow guest posting. once you have set that, log out of your board and try to post a message and see what happens. you will get a login form and a notice that you have to be registered and logged in to post.

that is already built in to phpbb without you having to make any edits.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Post Reply

Return to “[3.2.x] Styles Support & Discussion”