Excluding breadcrumbs from the index

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
User avatar
redhair
Registered User
Posts: 31
Joined: Wed May 05, 2004 2:59 am
Location: Netherlands
Contact:

Excluding breadcrumbs from the index

Post by redhair »

I am trying to exclude the breadcrumbs from the index.
I have tried:

Code: Select all

<!-- IF not S_INDEX -->
<!-- INCLUDE breadcrumbs.html -->
<!-- ENDIF -->
But that doesn't seem to work.
Anyone has an idea how it can work?
redhair like no other.

subMerged3 for phpBB3 BETA?

Pace
Registered User
Posts: 16
Joined: Fri Oct 06, 2006 10:00 am
Contact:

Re: Excluding breadcrumbs from the index

Post by Pace »

How about

Code: Select all

<!-- IF S_INDEX --><!-- ELSE -->
<!-- INCLUDE breadcrumbs.html -->
<!-- ENDIF -->
?

User avatar
redhair
Registered User
Posts: 31
Joined: Wed May 05, 2004 2:59 am
Location: Netherlands
Contact:

Re: Excluding breadcrumbs from the index

Post by redhair »

Nope..don't work.
redhair like no other.

subMerged3 for phpBB3 BETA?

User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Excluding breadcrumbs from the index

Post by Highway of Life »

Go to: /styles/<your style>/template/index_body.html
FIND:

Code: Select all

<!-- INCLUDE breadcrumbs.html -->
Replace, with:

Code: Select all

 
;)
Image

User avatar
redhair
Registered User
Posts: 31
Joined: Wed May 05, 2004 2:59 am
Location: Netherlands
Contact:

Re: Excluding breadcrumbs from the index

Post by redhair »

:D .. good one... I'll keep it in mind.
Yet I'm dealing with overall_header.html here.
redhair like no other.

subMerged3 for phpBB3 BETA?

User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Excluding breadcrumbs from the index

Post by Highway of Life »

:D ;)

Well, there is no specific code for a yes or no INDEX, so we can cheat...

Code: Select all

<!-- IF not S_DISPLAY_BIRTHDAY_LIST -->
<!-- INCLUDE breadcrumbs.html -->
<!-- ENDIF -->
Image

User avatar
redhair
Registered User
Posts: 31
Joined: Wed May 05, 2004 2:59 am
Location: Netherlands
Contact:

Re: Excluding breadcrumbs from the index

Post by redhair »

hmm pitty..

The "cheat" works, but if in ACP birthday listing is turned off, the breadcrumbs return on the index, but you knew that I presume.

Makes me doubt.

Q: "Yes/ No we are on the index" can't be build into next release? :)
redhair like no other.

subMerged3 for phpBB3 BETA?

User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Excluding breadcrumbs from the index

Post by Highway of Life »

I'm trying to make it easy on you without going into the PHP code. :P (staying in the template).
But if you really want a switch for Index, here it is... pull out your index.php file now.

Add this code somewhere inside the template_assign_vars:

Code: Select all

'S_THIS_INDEX'                => true,
now your template will use...

Code: Select all

<!-- IF not S_THIS_INDEX -->
<!-- INCLUDE breadcrumbs.html -->
<!-- ENDIF -->
Image

User avatar
Acyd Burn
Posts: 1838
Joined: Tue Oct 08, 2002 5:18 pm
Location: Behind You
Contact:

Re: Excluding breadcrumbs from the index

Post by Acyd Burn »

Or - without touching the code files - open your index_body.html file, add:

Code: Select all

<!-- DEFINE $S_IN_INDEX = 1 -->
as the very first line. Then, in overall_header.html, use:

Code: Select all

<!-- IF not $S_IN_INDEX -->
<!-- INCLUDE breadcrumbs.html -->
<!-- ENDIF -->
or, if you want to generally cover all breadcrumbs, shift the if statement into the breadcrumbs.html file.

Image

User avatar
redhair
Registered User
Posts: 31
Joined: Wed May 05, 2004 2:59 am
Location: Netherlands
Contact:

Re: Excluding breadcrumbs from the index

Post by redhair »

Yesss :idea:
That's what I need! Thanks :)

I don't want to touch the code since my template is meant for spreading.
So a potential user shouldn't have to go into php.
Highway of Life wrote: I'm trying to make it easy on you without going into the PHP code. :P


I do know my way around in php though .. just to have that clarified :P

Thanks again, both of you.
redhair like no other.

subMerged3 for phpBB3 BETA?

Post Reply