-
Author
Tagged: buddypress, breadcrumbs, kleo, activity, slug, titles
-
April 25, 2014 at 15:53 #16051guy_fraserParticipant
Hi,
I’m not sure if this is a Kleo issue or BuddyPress issue.
I’ve created a page “Socialise” and then gone in to Settings > BuddyPress and on the Pages tab I’ve set Activity Streams to use that page.
When I view the Socialise page, the activity stream is there however…
1. The page title is “Sitewide Activity”, not “Socialise” – how do I change that?
2. The breadcrumb trail names the current page “Activity” (it should be Socialise) and the hyperlink is to /activity when it should be /socialise – how do I change that?
April 25, 2014 at 16:29 #16052guy_fraserParticipantIn addition, I’ve made Members page a child of Socialise page, but the breadcrumb trail shows: Home / Members instead of: Home / Socialise / Members
It seems the breadcrumbs and titles of these pages are hardcoded in the theme?
April 29, 2014 at 01:46 #16287AbeKeymasterHi, Sitewide activity name comes from Buddypress and you can change it by translating Buddypress strings. See: http://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/
I have changed a bit the code for breadcrumb so it will show the correct name for the members and group pages if you rename the pages assigned to Buddypress and the activity translated as instructed above. Until next update please replace this file content wp-content\themes\kleo\kleo-framework\lib\function-breadcrumb.php with the the one from the attached file. Members page will only take the name of the assigned one and won’t show it’s parent page
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.Attachments:
You must be logged in to view attached files.April 29, 2014 at 03:36 #16320guy_fraserParticipantHi,
Thanks for this, I’ve uploaded the file and it’s a great improvement.
I still wish the page title and breadcrumbs would be based on the actual page name and hierarchy though 😉
April 29, 2014 at 10:52 #16340AbeKeymasterBuddypress has it’s own components name which you can change. See: https://archived.seventhqueen.com/forums/topic/pag-navigation-bug/#post-1882
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.April 29, 2014 at 12:20 #16354guy_fraserParticipantWhy not just use the standard breadcrumb trail for pages (Groups, Members, etc) and then append to it for the virtual pages (user profiles, topics, etc)?
April 29, 2014 at 12:39 #16358AbeKeymasterThat is the way it works but Buddypress rewrites the page title for the activity. Your members and groups should be fine with the modified code
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.April 29, 2014 at 13:24 #16369guy_fraserParticipantSo, I kind of see what you’re getting at, but as both an end-user and site admin I find it terribly confusing. WP allows me to create page hierarchies, set the slugs of pages, and set the titles of pages. When working with normal pages, both the titles and breadcrumbs work fine.
However, when using bbPress and BuddyPress, there seems to be a break from the standard conventions to some seemingly random way of doing things, and I can’t fathom why.
My Page hierarchy <and what I’ve associated each page with>:
Socialise <sitewide activity>
– Members <members directory>
– Groups <groups directory>
– Forums <forums directory>So, for example, I would expect that when I’m on Groups page, the breadcrumbs would be:
Home > Socialise > GroupsWhat I actually get is something quite random:
Socialise (gives: Home / Sitewide Activity; desired: Home / Socialise)
– Members (gives: Home / Members; desired: Home / Socialise / Members)
– Groups (gives: Home / Groups Create a Group; desired: Home / Socialise / Groups)
– Forums (gives: Home; desired: Home / Socialise / Forums)Ignoring page titles for a moment, and focussing just on the breadcrumb trail, it’s the fact that “Socialise” part of the trail is missing in the Members, Groups and Forums pages, etc. – the breadcrumb trail, which is supposed to reflect the actual page hierarchy, is not reflecting the actual page hierarchy…
I realise that the bbForums and BuddyPress plugins output their own page titles / breadcrumbs, but I’m also aware that the theme also manipulates these things and, as such, was wondering if the theme could cover up some of the UX cracks caused by the third party plugins.
My main frustration is that I’m not proficient enough in PHP to work out how to change this myself – I tried earlier today and crashed my site.
Attachments:
You must be logged in to view attached files.May 5, 2014 at 01:10 #16846AbeKeymasterHi, I understand what you are saying and we will try to see if it can be done in a way but doing so e hacks to the urls might cause some problems in other areas. It is Buddypress way of implementing components urls. Also the forum url can be configured from Settings – Forums
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.