How to remove index.php from breadcrumbs

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Ideas Centre
Locked
mvhenderson.4
Registered User
Posts: 8
Joined: Wed Mar 02, 2016 9:21 pm

How to remove index.php from breadcrumbs

Post by mvhenderson.4 » Thu Mar 03, 2016 9:57 pm

Go to my website: http://www.forumsforadhd.com now notice how the URL simply says www.forumsforadhd.com which is good. in my bread crumbs click Board Index, now look, the URL says www.forumsforadhd.com/index.php . When someone clicks Board Index i would like for it to just take them to www.forumsforadhd.com not www.forumsforadhd.com/index.php. please help me out thank you (:

I am using prosilver se template

User avatar
Lumpy Burgertushie
Registered User
Posts: 66342
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: How to remove index.php from breadcrumbs

Post by Lumpy Burgertushie » Fri Mar 04, 2016 12:57 am

but index.php is the actual file name of the main page. why do you care if it shows up or not in the url in the browser? if you click on a forum, it will show forum.php in the browser because that will be the page you are on.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Re: How to remove index.php from breadcrumbs

Post by Arty » Fri Mar 04, 2016 8:13 am

Delete this line in navbar_header.html

Code: Select all

			<span class="crumb"{$MICRODATA}><a href="{U_INDEX}" accesskey="h" data-navbar-reference="index" itemprop="url"><span itemprop="title">{L_INDEX}</span></a></span>
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

User avatar
Lumpy Burgertushie
Registered User
Posts: 66342
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: How to remove index.php from breadcrumbs

Post by Lumpy Burgertushie » Fri Mar 04, 2016 1:47 pm

arty, I think he meant the actual url showing index.php in the browser .


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Re: How to remove index.php from breadcrumbs

Post by Arty » Fri Mar 04, 2016 1:59 pm

Good point. Then open includes/functions.php, find

Code: Select all

		'U_INDEX'				=> append_sid("{$phpbb_root_path}index.$phpEx"),
replace with

Code: Select all

		'U_INDEX'				=> append_sid($phpbb_root_path),
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

Locked

Return to “[3.1.x] Styles Support & Discussion”