TinyPortal

Development => Support => Topic started by: jensderknipser on March 01, 2007, 10:08:35 AM

Title: breadcrumb "on"/"off" configurable?
Post by: jensderknipser on March 01, 2007, 10:08:35 AM
Hi,

is it possible to do the settings like so, that the breadcrumb will not be shown at the frontpage???

Or where and how could I change the code (like "if page0frontpage then breadcrumb=0" ---> you see, I'm still at the beginning of lerning php-syntax ;)

Thanks in Advance
jens

Using epsilon
Title: Re: breadcrumb "on"/"off" configurable?
Post by: Nokonium on March 01, 2007, 01:25:40 PM
The only things you have to display are the copyrights, you can fiddle to your hearts content with anything else, though that is not recommended on a live site.

The breadcrumbs can be commented out /* yada */ to see what happens if you are feeling reckless bold  ;)

ALWAYS MAKE A BACKUP FIRST
Title: Re: breadcrumb "on"/"off" configurable?
Post by: jensderknipser on March 01, 2007, 02:04:19 PM
Hi,

Thanks for the fast reply. Commenting out the relevant line is what I had before, wich led to not having breadcrumbs at all. Would be ok so far, but I think, breadcrumbs are necessary inside the forum-pages though. That is, what I am thinking about. Maybe another Idea???

Thanks,
jens
Title: Re: breadcrumb "on"/"off" configurable?
Post by: IchBin on March 01, 2007, 02:46:05 PM
Breadcrumbs? or Linktree?....
Title: Re: breadcrumb "on"/"off" configurable?
Post by: jensderknipser on March 01, 2007, 04:12:51 PM
Breadcrumbs.
Title: Re: breadcrumb "on"/"off" configurable?
Post by: IchBin on March 01, 2007, 05:02:55 PM
Sorry, but I don't know what breadcrumbs are....
Title: Re: breadcrumb "on"/"off" configurable?
Post by: Lesmond on March 01, 2007, 05:49:27 PM
would this be it? http://en.wikipedia.org/wiki/Breadcrumb_(navigation)
Title: Re: breadcrumb "on"/"off" configurable?
Post by: IchBin on March 01, 2007, 06:01:58 PM
ok, so breadcrumbs = linktree. Yes its possible to not show the linktree on the frontpage. You'll need to take it out of the TPortal.template.php file. It will continue to show in all other places.
Title: Re: breadcrumb "on"/"off" configurable?
Post by: G6Cad on March 01, 2007, 06:02:13 PM
Breadcrumb is a sort of navigation right  ???
Title: Re: breadcrumb "on"/"off" configurable?
Post by: jensderknipser on March 01, 2007, 09:14:59 PM
Hi,
thanks for help so far and sorry for the inconvenience about the wording "breadcrumb" - in many other programs they use this , up to now "linktree" to me was the "main-navigation on top. sorry again for this...

@ichBin
hopefully I commented out the lines #9 to #14 in TPortal.template.php, but - I'm sorry for this - the linktree still appears at my frontpage ooo   Are there other places where to 'delete' something???

Thanks again,
jens

PS.: Forgot to mention: I'm using Bloc's theme Exodus
Title: Re: breadcrumb "on"/"off" configurable?
Post by: IchBin on March 01, 2007, 09:24:59 PM
This is the line you should be worrying about.

Line:12
<div style="margin-bottom: 4px;">', theme_linktree() , '</div>';

Make it look like this:
<div style="margin-bottom: 4px;"></div>';
Title: Re: breadcrumb "on"/"off" configurable?
Post by: jensderknipser on March 01, 2007, 09:57:59 PM
Funny: I changed the line #12 as you said, currently with no effect... and as I was a bit concerned about the semicolon after the px, I have deleted this also, but again no change...

By the time I suspect now, that it maybe again a matter of"wording" (as I am rather new with smf/TP and fell in love with it - after testing other solutions..), like "frontpage" to me is the page I see first when typing the url - currently I am using article-blocks here, no frontpage-blocks. So if this was the misleading story???

jens
Title: Re: breadcrumb "on"/"off" configurable?
Post by: G6Cad on March 01, 2007, 10:05:48 PM
Always remember to clear the cache and temp internet files and do a hard refresh with ctrl F5 when you edit code, many things uses cookies, and if the check runs the cookie, you dont see the changes ;)
So clear the cache and do a hard refresh and look gain :)
Title: Re: breadcrumb "on"/"off" configurable?
Post by: jensderknipser on March 01, 2007, 10:18:09 PM
Done (as always ;)), even restartet FF to have a "super-strong-refresh... but sorry to bother you all with that little peace of code - what's it :-\

greetz from
8)"mission impossible" 8)
jens
Title: Re: breadcrumb "on"/"off" configurable?
Post by: IchBin on March 01, 2007, 11:03:48 PM
What theme are you using?
Title: Re: breadcrumb "on"/"off" configurable?
Post by: jensderknipser on March 02, 2007, 08:25:58 AM
Using Bloc's ExodusTP.
Title: Re: breadcrumb "on"/"off" configurable?
Post by: IchBin on March 02, 2007, 01:48:38 PM
If you remove the linktree from the index.template.php like you did from the TPortal.template.php it won't show. However, removing it from the index.template will remove it from all pages at the top.
Title: Re: breadcrumb "on"/"off" configurable?
Post by: jensderknipser on March 03, 2007, 10:12:31 AM
Well, this is where this thread was starting from: doing so I would loose the linktree in the forum ???

I am still thinking of solving this problem by finding the place - and correct syntax - where to set a line of code like i.e.

echo '<td width="100%" align="left" valign="top" style="padding: 8px;">';
        if($context['TPortal']['centerbar'])
                     echo '<div>' , TPortal_sidebar('center') , '</div>';
echo '
<div id="linktree">' , theme_linktree2() , '</div>';
}


//inserted by me//
echo '<td width="100%" align="left" valign="top" style="padding: 8px;">';
        if($context['TPortal']['current_board'])
                     echo '<div>' , TPortal_sidebar('center') , '</div>';
echo '
<div id="linktree">' , theme_linktree2() , '</div>';
}

//eof my inserts

this is my index.template.php, line #370-386.

As my skills of reading and understanding the TP/smf's code are still minor (but growing, I hope), this Idea again didn't cause any change. But wouldn't this be a chanceful direction?
Thanks 4all,
jens