[RC] Extend phpBB Breadcrumbs

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Primy
Registered User
Posts: 109
Joined: Sat Dec 01, 2007 5:11 pm

[RC] Extend phpBB Breadcrumbs

Post by Primy »

Modification Name: Extend phpBB Breadcrumbs

Author: Primy

Modification Description:: This is a very simple MOD that will allow you to extend the phpBB standard breadcrumbs to any page of the board. For example, installing this MOD, breadcrumbs will shows: Board index ‹ User Control Panel (it will shows also module names eg: Board index ‹ User Control Panel ‹ Edit global settings). It adds also the topic title in breadcrumbs.

Modification Version:: 1.0.4

Modification Download: Download Extend phpBB Breadcrumbs
Last edited by Primy on Sun Jan 24, 2010 1:25 am, edited 3 times in total.
User avatar
Ashley.S.
Registered User
Posts: 469
Joined: Mon Aug 04, 2008 6:01 pm
Location: Falmouth, Cornwall, UK
Name: Ashley .S.
Contact:

Re: [RC] Extend phpBB Breadcrumbs

Post by Ashley.S. »

very interesting, I will be watching this
Regards,
-Ashley.S. [ PurephpBB Founder ]
User avatar
1234homie
Registered User
Posts: 439
Joined: Fri Sep 26, 2008 3:17 pm

Re: [RC] Extend phpBB Breadcrumbs

Post by 1234homie »

nice but... Maybe its possible to add for all pages, maybe its possible to include it in page_header function or something?
User avatar
imkingdavid
Former Team Member
Posts: 2673
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [RC] Extend phpBB Breadcrumbs

Post by imkingdavid »

How stable is this? :)
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
User avatar
1234homie
Registered User
Posts: 439
Joined: Fri Sep 26, 2008 3:17 pm

Re: [RC] Extend phpBB Breadcrumbs

Post by 1234homie »

imkingdavid wrote:How stable is this? :)
I think, ist very stable, its haven't any bugs or something, its standard added navlinks to template :)
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [RC] Extend phpBB Breadcrumbs

Post by Anyasha »

Installed with AutoMOD without a problem. It's working great. :)
Kiss me, I'm Polish!
Primy
Registered User
Posts: 109
Joined: Sat Dec 01, 2007 5:11 pm

Re: [RC] Extend phpBB Breadcrumbs

Post by Primy »

MOD updated to 1.0.2
  • Fixing a bug in install.xml file;
    Fixing a bug in functions_display.php;
    Fixing a bug in search.php;
    New titles(links) added in breadcrumbs (Login, Register, searched keyword, groups);
Maybe its possible to add for all pages, maybe its possible to include it in page_header function or something?
Which pages you mean?
User avatar
imkingdavid
Former Team Member
Posts: 2673
Joined: Sun Jul 26, 2009 7:59 pm
Location: EST
Name: David King

Re: [RC] Extend phpBB Breadcrumbs

Post by imkingdavid »

Just installed by hand and it looks like it works well. Although you should add which topic people are viewing in viewtopic. :D
Don't forget to smile today. :)
Please do NOT contact for support via PM or email.
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [RC] Extend phpBB Breadcrumbs

Post by Anyasha »

It would be nice if you put update files in the contrib folder so those of us with a previous version don't have to go over the entire thing again.
Kiss me, I'm Polish!
User avatar
1234homie
Registered User
Posts: 439
Joined: Fri Sep 26, 2008 3:17 pm

Re: [RC] Extend phpBB Breadcrumbs

Post by 1234homie »

I found a few bugs in IE8 because. Breadcrumbs must have define 'U_VIEW_FORUM' in navlinks.
Primy
Registered User
Posts: 109
Joined: Sat Dec 01, 2007 5:11 pm

Re: [RC] Extend phpBB Breadcrumbs

Post by Primy »

1234homie wrote:I found a few bugs in IE8 because. Breadcrumbs must have define 'U_VIEW_FORUM' in navlinks.
Hi 1234homie thanks 4 the information , can u send me a link where i can see the bug pls? It's strange 'cause ive ie8 and it works ok.
Anyasha wrote:It would be nice if you put update files in the contrib folder so those of us with a previous version don't have to go over the entire thing again.
Sorry, but i haven't any more the old packages...so i cannot make the update files :oops: From this version onwards ill insert the changes in contrib folder.
User avatar
1234homie
Registered User
Posts: 439
Joined: Fri Sep 26, 2008 3:17 pm

Re: [RC] Extend phpBB Breadcrumbs

Post by 1234homie »

Primy wrote:
1234homie wrote:I found a few bugs in IE8 because. Breadcrumbs must have define 'U_VIEW_FORUM' in navlinks.
Hi 1234homie thanks 4 the information , can u send me a link where i can see the bug pls? It's strange 'cause ive ie8 and it works ok.
Anyasha wrote:It would be nice if you put update files in the contrib folder so those of us with a previous version don't have to go over the entire thing again.
Sorry, but i haven't any more the old packages...so i cannot make the update files :oops: From this version onwards ill insert the changes in contrib folder.
Just install IE and go to link in navigation. When I click in navigation on link in posting.php this link redirect me to index page.


sorry for english.
Primy
Registered User
Posts: 109
Joined: Sat Dec 01, 2007 5:11 pm

Re: [RC] Extend phpBB Breadcrumbs

Post by Primy »

Ok u're right ;) Anyway the bug isn't related to ie (it occurs in any browser). I forgot to assign a var in posting.php. Ill fix it in the next version, meanwhile:

Open posting.php

SEARCH:

Code: Select all

// Set up Navlinks
$template->assign_block_vars('navlinks', array(
'FORUM_NAME' => ($page_title))
);
REPLACE WITH:

Code: Select all

// Set up Navlinks
$template->assign_block_vars('navlinks', array(
'FORUM_NAME' => ($page_title),
'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}posting.$phpEx", "mode=$mode&f=$forum_id&t=$topic_id", true, $user->session_id))
);
User avatar
1234homie
Registered User
Posts: 439
Joined: Fri Sep 26, 2008 3:17 pm

Re: [RC] Extend phpBB Breadcrumbs

Post by 1234homie »

I think its should be:

Code: Select all

'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}posting.$phpEx", "mode=$mode&f=$forum_id" . ($topic_id ? "&t=$topic_id" : ''))
topic_id is applied only if exist. We don't needed t=0 in link when we post new topic in forum.
Primy
Registered User
Posts: 109
Joined: Sat Dec 01, 2007 5:11 pm

Re: [RC] Extend phpBB Breadcrumbs

Post by Primy »

Yeah, that's better! :) Thank you!

So,

OPEN posting.php

FIND:

Code: Select all

    // Set up Navlinks
    $template->assign_block_vars('navlinks', array(
    'FORUM_NAME' => ($page_title))
    );
REPLACE WITH:

Code: Select all

// Set up Navlinks
$template->assign_block_vars('navlinks', array(
'FORUM_NAME' => ($page_title),
'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}posting.$phpEx", "mode=$mode&f=$forum_id" . ($topic_id ? "&t=$topic_id" : '')))
);
Other change to display a correct breadcrumbs when user is posting a new topic:

Open includes/functions_display.php

FIND:

Code: Select all

	if (isset($forum_data['topic_title']))
REPLACE WITH:

Code: Select all

	if (isset($forum_data['topic_title']) ? ($forum_data['topic_title']) : '')
Locked

Return to “[3.0.x] MODs in Development”