Page 1 of 1

Which and Where on Template

Posted: Thu Dec 26, 2019 3:43 pm
by DV1
I already learned how to do this from a previous post:

viewtopic.php?t=2480156

What I'd like to know is where to do this (which template location) so the text is below the navbar and above the forum. It will be used for brief notices.

text-notice-location.jpg

Thanks

Daniel

Re: Which and Where on Template

Posted: Thu Dec 26, 2019 4:13 pm
by Mannix_
it should be overall_header.html or index_body.html

Re: Which and Where on Template

Posted: Thu Dec 26, 2019 4:54 pm
by DV1
Mannix, thanks for responding.

As I did before, I used:

Code: Select all

<!-- INCLUDE add_text.html -->
Where would that be placed in the following section of index-body.html to position as mentioned? I'm thinking where the line of question marks is but not sure.

Code: Select all

<!-- INCLUDE overall_header.html -->

??????????

<p class="{S_CONTENT_FLOW_END} responsive-center time<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p>
<!-- IF S_USER_LOGGED_IN --><p class="responsive-center time">{CURRENT_TIME}</p><!-- ENDIF -->

<!-- EVENT index_body_markforums_before -->
<!-- IF U_MARK_FORUMS -->
	<div class="action-bar compact">
		<a href="{U_MARK_FORUMS}" class="mark-read rightside" accesskey="m" data-ajax="mark_forums_read">{L_MARK_FORUMS_READ}</a>
	</div>
<!-- ENDIF -->
<!-- EVENT index_body_markforums_after -->

<!-- INCLUDE forumlist_body.html -->

<!-- EVENT index_body_forumlist_body_after -->

Re: Which and Where on Template

Posted: Thu Dec 26, 2019 5:01 pm
by Mannix_
if you place it where ????? are it would place it above "it is currently..." in the image of your first post

Re: Which and Where on Template

Posted: Thu Dec 26, 2019 5:09 pm
by DV1
Then here?

Code: Select all

<!-- INCLUDE overall_header.html -->

<p class="{S_CONTENT_FLOW_END} responsive-center time<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p>
<!-- IF S_USER_LOGGED_IN --><p class="responsive-center time">{CURRENT_TIME}</p><!-- ENDIF -->

<!-- EVENT index_body_markforums_before -->
<!-- IF U_MARK_FORUMS -->
	<div class="action-bar compact">
		<a href="{U_MARK_FORUMS}" class="mark-read rightside" accesskey="m" data-ajax="mark_forums_read">{L_MARK_FORUMS_READ}</a>
	</div>
<!-- ENDIF -->

??????????

<!-- EVENT index_body_markforums_after -->

<!-- INCLUDE forumlist_body.html -->

Re: Which and Where on Template

Posted: Thu Dec 26, 2019 5:21 pm
by Mannix_
above forum/category listing but if you want to place it there place it above <!-- EVENT index_body_markforums_before --> so the mark forums read button/text will stay close to forum/category list as it is its integral part

Re: Which and Where on Template

Posted: Thu Dec 26, 2019 5:35 pm
by DV1
Ok, I will test it out where you suggest.

Thanks

Re: Which and Where on Template

Posted: Thu Dec 26, 2019 7:29 pm
by Lumpy Burgertushie
Hi, it is certainly no problem asking for help with this.
however, I am curious why you don't just test things first to see if they work or not.
I usually learn quicker by trying things to see what happens and then if I get in trouble I can
ask for help.
remember, as long as you have a backup copy of a file before you make changes, you are never more
than a couple of clicks away from a complete recovery.

luck,
robert

Re: Which and Where on Template

Posted: Fri Dec 27, 2019 10:52 am
by warmweer
Lumpy Burgertushie wrote:
Thu Dec 26, 2019 7:29 pm
...
however, I am curious why you don't just test things first to see if they work or not.
I usually learn quicker by trying things to see what happens and then if I get in trouble I can
ask for help.
...
Exactly and in many cases the browsers Inspector allows editing the "cached" templates and css so that one can experiment with layout and formatting, even without having to edit the source files.

Re: Which and Where on Template

Posted: Fri Dec 27, 2019 2:30 pm
by DV1
Lumpy Burgertushie wrote:
Thu Dec 26, 2019 7:29 pm
Hi, it is certainly no problem asking for help with this.
however, I am curious why you don't just test things first to see if they work or not.
Some people just don't process things for whatever reasons in the manner that others would expect them to. That's just the way it rolls in real life.

Is there a problem with that?

Re: Which and Where on Template

Posted: Wed Jan 01, 2020 9:56 pm
by eeji
Have you tried the Board Announcement extension, as this will do what you want: https://www.phpbb.com/customise/db/exte ... uncements/

Re: Which and Where on Template

Posted: Fri Jan 03, 2020 6:36 pm
by DV1
Mannix

Thank you, it works well. :)

You can see it here.

Daniel