Excluding breadcrumbs from the index

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
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 »

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

Code: Select all

<!-- DEFINE $S_IN_INDEX = 1 -->

Ah, thanks Meik, I keep forgetting that we can use that now. so sweeeeeet!!! :D
Image

User avatar
dhn
Registered User
Posts: 1518
Joined: Wed Jul 04, 2001 8:10 am
Location: Around the corner
Contact:

Re: Excluding breadcrumbs from the index

Post by dhn »

Another way to do this, which is a little less "safe" but useful in its own ways:

Code: Select all

<!-- IF SCRIPT_NAME != "index" -->
So this section will only be parsed when it is not called from index.php - this works for all pages like ucp, mcp, vieforum, viewtopic, search, and so forth.

But Meik's way is the better one, because script names can be problematic, especially if we take MODs into consideration.

Ectoman
Registered User
Posts: 192
Joined: Sat Dec 15, 2001 3:53 pm
Location: Denver CO
Contact:

Re: Excluding breadcrumbs from the index

Post by Ectoman »

I just used this part of the code on my index page on the opposite. I only wanted the time, last visit and search options to appear on the index page. Works great!

Post Reply