You Are Here mod
Posted by D. Alan Stewart
Re: modify display December 22, 2004 02:41PM |
Registered: 17 years ago Posts: 30 |
There is a short description in the function (source code) I provided earlier in this thread. Since it is just a function and no complete module (not even a php file), you have to add it to an existing module / create one.
When hooked properly, the function stores the Path in a global Variable, which can be used in your Templates.
I am sorry that I can not build a module for you right now.
When hooked properly, the function stores the Path in a global Variable, which can be used in your Templates.
I am sorry that I can not build a module for you right now.
forumpath module, inspired by YouAreHere mod April 27, 2005 10:51AM |
Registered: 17 years ago Posts: 30 |
Finally I created a working module around the above mentioned forumpath function.
The module creates an Array which represents the current position in the forum tree. The Array should be used within the desired Templates via a LOOP section. An example code is given in the module php file.
Feel free to use and modify it, if you have any suggestions please give feedback :)
PS: Tnx to D. Alan Stewart again ;)
Edited 2 time(s). Last edit at 04/27/2005 11:12AM by soeren.
The module creates an Array which represents the current position in the forum tree. The Array should be used within the desired Templates via a LOOP section. An example code is given in the module php file.
Feel free to use and modify it, if you have any suggestions please give feedback :)
PS: Tnx to D. Alan Stewart again ;)
Edited 2 time(s). Last edit at 04/27/2005 11:12AM by soeren.
Re: forumpath module, inspired by YouAreHere mod April 27, 2005 11:09AM |
Registered: 17 years ago Posts: 30 |
Re: forumpath module, inspired by YouAreHere mod April 27, 2005 01:48PM |
Admin Registered: 19 years ago Posts: 9,240 |
April 21, 2006 07:04AM |
Admin Registered: 16 years ago Posts: 744 |
Hi soeren,
with Phorum 5.1.x I get an error when the template is cached the first time: "Template warning: Missing argument for /loop statement".
For the template you propose:
I think it should be
Bye
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
with Phorum 5.1.x I get an error when the template is cached the first time: "Template warning: Missing argument for /loop statement".
For the template you propose:
{LOOP FPNAVFORUM} {IF FPNAVFORUM->forum_id}> {/IF}<a href="{FPNAVFORUM->url}"><b>{FPNAVFORUM->name}</b></a> {/LOOP}
I think it should be
{/LOOP FPNAVFORUM}
Bye
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: You Are Here mod May 12, 2006 01:09PM |
Registered: 16 years ago Posts: 179 |
Just installed the You Are Here dated 05/09/2004 on my 5.1.11 install and it works great! Exactly what I was looking for!
Thanks!
Steel Rat
[infinite-realities.com]
Thanks!
Steel Rat
[infinite-realities.com]
Re: You Are Here mod August 30, 2006 09:44AM |
Registered: 17 years ago Posts: 30 |
September 02, 2006 10:06AM |
Registered: 16 years ago Posts: 5 |
Either this module does not work with PHP 5.1.15, or i do not know how to install it. I have downloaded tarball, unpacked it into mods folder, enabled forum path module but still nothing. Do i have to edit some .tpl files perhaps?
I have similar problem with poll module which i simply cannot install... :(
Any help will be apriciated! \o/
I have similar problem with poll module which i simply cannot install... :(
Any help will be apriciated! \o/
September 04, 2006 07:07AM |
Admin Registered: 16 years ago Posts: 744 |
Hi Dejan,
Yes, you have to extend header.tpl. See inline documentation in forumpath.php.
I recommend to add the following code add the fin of header.tpl:
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Quote
dejan
Do i have to edit some .tpl files perhaps?
Yes, you have to extend header.tpl. See inline documentation in forumpath.php.
I recommend to add the following code add the fin of header.tpl:
{IF FPNAVFORUM} {LOOP FPNAVFORUM} {IF FPNAVFORUM->forum_id}> {/IF}<a href="{FPNAVFORUM->url}"><b>{FPNAVFORUM->name}</b></a> {/LOOP FPNAVFORUM}<br /><br /> {/IF}
Regards
Oliver
Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: You Are Here mod October 12, 2006 06:45AM |
Registered: 15 years ago Posts: 85 |
I have installed the mod and it works fine except:
When I'm at the forum home page I see: "You are here: "
If I click on the phorum name (above general issues / gossip) I see : "You are here: Forum name"
Is it something to do with my path set up (the latter is index.php4) or should I tweak the setting in this mod? I suppose the best resolution would be for index.php?4 to be the forum home page.
Sorry, but I've slightly confused myself with this
When I'm at the forum home page I see: "You are here: "
If I click on the phorum name (above general issues / gossip) I see : "You are here: Forum name"
Is it something to do with my path set up (the latter is index.php4) or should I tweak the setting in this mod? I suppose the best resolution would be for index.php?4 to be the forum home page.
Sorry, but I've slightly confused myself with this
Sorry, only registered users may post in this forum.