Firefox PHP

You Are Here mod

Posted by D. Alan Stewart 
Re: You Are Here mod
April 30, 2004 02:33AM
I changes this in CVS to go only one level up instead of the root.
It doesn't make much sense to go from the forum directly to the root of the forum (only with a mod like this ;-)).


Thomas Seifert
Re: You Are Here mod
April 30, 2004 03:42PM

also with my forum..

personally i think there should be a link to "Forum List" and another to "up one level" but i think the You Are Here mod would nicely replace this navigation completely with a simple link to the top level forum list.

r.
Re: You Are Here mod
April 30, 2004 04:35PM
ts77 Wrote:
-------------------------------------------------------
> I changes this in CVS to go only one level up
> instead of the root.
> It doesn't make much sense to go from the forum
> directly to the root of the forum (only with a mod
> like this ;-)).

Ahhhh.
Re: You Are Here mod
April 30, 2004 04:38PM
rheo Wrote:
-------------------------------------------------------
> > also with my forum..
>
> personally i think there should be a link to
> "Forum List" and another to "up one level" but i
> think the You Are Here mod would nicely replace
> this navigation completely with a simple link to
> the top level forum list.
>
> r.

Yes, and I will take care of adding the root level this weekend. I don't know how I missed that except that my focus was on issues such as discerning whether the current page is index.php, list.php, or read.php.
new version
May 01, 2004 06:35PM
Here's a new version with the root level included in the path.

Attachments:
open | download - YouArehere.tar.gz (920 bytes)
Re: You Are Here mod
May 01, 2004 09:43PM

nice!

it's still not showing up in my index.php though..

does it require something in the index.php in order to work?

Attachments:
open | download - index.php (4.1 KB)
Re: You Are Here mod
May 03, 2004 10:41AM
No, everything is in YouAreHere.php. Is the title of your Phorum an empty string? I'm getting that from $PHORUM['title'].

You should be getting:

Position: "phorum title" > "folder" >...

From the root of the Phorum yhou should have:

Position: "phorum title"
Re: You Are Here mod
May 03, 2004 05:49PM

the problem is probably that i may not have the require "hook" in my index.php. i've customized it heavily and don't update it from teh cvs anymore.

i'll compare mine to the cvs version soon to confirm this.. thanks for the mod tho.. it works great!

Re: You Are Here mod
May 04, 2004 11:52AM
You likely don't have the after_header and before_footer hooks in your index rheo

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: You Are Here mod
May 09, 2004 06:59PM
Here's a verion updated to use the phorum_page constant in the latest CVS version. Also some cosmetic fixes - text that is not a link no longer acts as an empty link.
Attachments:
open | download - YouAreHere.tar.gz (943 bytes)
Sorry, only registered users may post in this forum.

Click here to login