question about external page

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
Neculai Anisor
Registered User
Posts: 172
Joined: Tue Jan 08, 2013 9:36 pm
Location: Renfrew, Renfrewshire, Scotland
Name: Neculai Anișor
Contact:

Re: question about external page

Post by Neculai Anisor » Tue Mar 28, 2017 10:18 pm

John Rambo wrote:
Tue Mar 28, 2017 9:25 pm
Now if I click on home to make turned on
what I have to put in the file overall_header.html
Open overall_header.html
Find:

Code: Select all

<body id="phpbb" class="nojs notouch section-{SCRIPT_NAME} {S_CONTENT_DIRECTION} {BODY_CLASS}">
Replace with:

Code: Select all

<body id="phpbb" class="nojs notouch <!-- IF SCRIPT_NAME eq 'home' -->home<!-- ELSE -->community<!-- ENDIF --> section-{SCRIPT_NAME} {S_CONTENT_DIRECTION} {BODY_CLASS}">
Image | Romanian Support Team | Animo @ phpBB.ro - Administrator

User avatar
John Rambo
Registered User
Posts: 74
Joined: Tue Jun 18, 2013 8:46 pm

Re: question about external page

Post by John Rambo » Wed Mar 29, 2017 6:10 pm

Neculai Anisor wrote:
Tue Mar 28, 2017 10:18 pm
John Rambo wrote:
Tue Mar 28, 2017 9:25 pm
Now if I click on home to make turned on
what I have to put in the file overall_header.html
Open overall_header.html
Find:

Code: Select all

<body id="phpbb" class="nojs notouch section-{SCRIPT_NAME} {S_CONTENT_DIRECTION} {BODY_CLASS}">
Replace with:

Code: Select all

<body id="phpbb" class="nojs notouch <!-- IF SCRIPT_NAME eq 'home' -->home<!-- ELSE -->community<!-- ENDIF --> section-{SCRIPT_NAME} {S_CONTENT_DIRECTION} {BODY_CLASS}">
great thank you very much

User avatar
John Rambo
Registered User
Posts: 74
Joined: Tue Jun 18, 2013 8:46 pm

Re: question about external page

Post by John Rambo » Thu Mar 30, 2017 9:22 pm

Neculai Anisor wrote:
Tue Mar 28, 2017 7:30 pm
You don't need a new header & footer for that gosh ...

Code: Select all

<!-- IF not SCRIPT_NAME eq 'home' -->
<!-- INCLUDE navbar_header.html -->
<!-- ENDIF -->
That's only an example of a page named "home.php".
Do that on your overall_header.html.

Same thing used by phpbb.com but in a different way.

Code: Select all

<!-- IF not S_IS_WEBSITE -->
	<!-- INCLUDE navbar_header.html -->
I sang victory too soon, unfortunately you not even see in the forum index the navbar

User avatar
Neculai Anisor
Registered User
Posts: 172
Joined: Tue Jan 08, 2013 9:36 pm
Location: Renfrew, Renfrewshire, Scotland
Name: Neculai Anișor
Contact:

Re: question about external page

Post by Neculai Anisor » Thu Mar 30, 2017 9:23 pm

:lol: Can i take a look at your board please?
Image | Romanian Support Team | Animo @ phpBB.ro - Administrator

User avatar
John Rambo
Registered User
Posts: 74
Joined: Tue Jun 18, 2013 8:46 pm

Re: question about external page

Post by John Rambo » Thu Mar 30, 2017 9:25 pm

I have a test board installed locally, :roll:

User avatar
John Rambo
Registered User
Posts: 74
Joined: Tue Jun 18, 2013 8:46 pm

Re: question about external page

Post by John Rambo » Fri Mar 31, 2017 9:38 am

Neculai Anisor wrote:
Thu Mar 30, 2017 9:23 pm
:lol: Can i take a look at your board please?
You've tried it work?

Post Reply

Return to “[3.2.x] Support Forum”