Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2009-07-03 00:02:25

Plume
Member
Registered: 2009-07-02
Posts: 2

[Feature] "generate_navlinks" may generate links relative to PUN_ROOT

Hi,

We are building a home page and having generate_navlinks() prefixing navigation links it generates by PUN_ROOT ("/forum") lets the possibility to call the function on the home page. As far as I have looked into the your code, it should not change any behaviour.

It might be usefull to others so here I am with a regex style© patch:

In include/functions.php@generate_navlinks()

307,60s/href="/href="'.PUN_ROOT.'/g

Offline

#2 2009-07-03 00:46:53

Plume
Member
Registered: 2009-07-02
Posts: 2

Re: [Feature] "generate_navlinks" may generate links relative to PUN_ROOT

Hum, is it a good idea to prefix *all* href referencing .php files by PUN_ROOT ?

Offline

#3 2009-07-03 05:57:34

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 4,070
Website

Re: [Feature] "generate_navlinks" may generate links relative to PUN_ROOT

Not a bug report. Moved.


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Online

Board footer

Powered by FluxBB 1.5.0