This topic has 5 replies, 3 voices, and was last updated 9 years by sealagency.
-
Author
-
December 18, 2014 at 20:31 #39625sealagencyParticipant
Hello Laura,
I try to change the order of items on this menu
I currently have:
“Activités Profil Notifications Messages Amis Forums Q&A Réglages Events Media Petites annonces”I would
“Profil Notifications Messages Amis Forums Q&A Réglages du Profil Evennements Media Petites annonces Activités”
So change the order (Profil, activité) and incidentally the wording of elemnts (Evennements, Réglage du profil)
With “Profil” open by default.
How i can do that?Thanks very much
Attachments:
You must be logged in to view attached files.December 18, 2014 at 20:35 #39628sealagencyParticipantI see this post https://archived.seventhqueen.com/forums/topic/buddypress-profile-landing-page-change
but apparently this solution poses big problem 🙁December 18, 2014 at 21:31 #39641LauraModeratorHello, go to plugins folder in your ftp, locate bp-custom.php and add this after <?php and before ?>
COPY CODEdefine(‘BP_DEFAULT_COMPONENT’,’profile’); global $bp; $bp->bp_nav[‘profile’][‘position’] = 10; $bp->bp_nav[‘notifications’][‘position’] = 20; $bp->bp_nav[‘messages’][‘position’] = 30; $bp->bp_nav[‘friends’][‘position’] = 40; $bp->bp_nav[‘forum’][‘position’] = 50; $bp->bp_nav[‘posts’][‘position’] = 60; $bp->bp_nav[‘groups’][‘position’] = 70; $bp->bp_nav[‘activity’][‘position’] = 80; $bp->bp_nav[‘settings’][‘position’] = 90; } add_action( ‘bp_init’, ‘tricks_change_bp_tag_position’, 999 ); } add_action( ‘wp_head’, ‘tricks_change_bp_tag_position’,9 );
If this code doesnt move ALL ,then please tell me what are the following:
Q&A
Réglages du Profil
Evennements
Petites annoncesI mean their original name. Not translated or the plugin that added it
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
December 19, 2014 at 21:04 #39716sealagencyParticipantHello,
This code is strange there are tow } orphaned:
COPY CODEglobal $bp; $bp->bp_nav[‘profile’][‘position’] = 10; $bp->bp_nav[‘notifications’][‘position’] = 20; $bp->bp_nav[‘messages’][‘position’] = 30; $bp->bp_nav[‘friends’][‘position’] = 40; $bp->bp_nav[‘forum’][‘position’] = 50; $bp->bp_nav[‘posts’][‘position’] = 60; $bp->bp_nav[‘groups’][‘position’] = 70; $bp->bp_nav[‘activity’][‘position’] = 80; $bp->bp_nav[‘settings’][‘position’] = 90; } add_action( ‘bp_init’, ‘tricks_change_bp_tag_position’, 999 ); } add_action( ‘wp_head’, ‘tricks_change_bp_tag_position’,9 );
I try to complete and fix with
COPY CODEdefine(‘BP_DEFAULT_COMPONENT’,’profile’); function kleo_change_profil_tab() { global $bp; $bp->bp_nav[‘profile’][‘position’] = 10; $bp->bp_nav[‘notifications’][‘position’] = 20; $bp->bp_nav[‘messages’][‘position’] = 30; $bp->bp_nav[‘friends’][‘position’] = 40; $bp->bp_nav[‘forum’][‘position’] = 50; $bp->bp_nav[‘posts’][‘position’] = 60; $bp->bp_nav[‘groups’][‘position’] = 70; $bp->bp_nav[‘activity’][‘position’] = 80; $bp->bp_nav[‘settings’][‘position’] = 90; } add_action( ‘bp_init’, ‘tricks_change_bp_tag_position’, 999 ); add_action( ‘wp_head’, ‘tricks_change_bp_tag_position’,9 );
no modification
the file to edit is wp-content/plugins/bp-custom.php is not it?December 23, 2014 at 00:47 #40084AbeKeymasterHi, yes the file is wp-content/plugins/bp-custom.php
so as in
https://archived.seventhqueen.com/forums/topic/buddypress-profile-landing-page-change/#post-2418
the code to add should beCOPY CODEfunction kleo_change_profile_tab() { global $bp; $bp->bp_nav['profile']['position'] = 10; $bp->bp_nav['activity']['position'] = 20; $bp->bp_nav['friends']['position'] = 30; $bp->bp_nav['groups']['position'] = 40; $bp->bp_nav['blogs']['position'] = 50; $bp->bp_nav['messages']['position'] = 60; $bp->bp_nav['settings']['position'] = 70; $bp->bp_nav['activity']['name'] = 'Wall'; $bp->bp_nav['profile']['name'] = 'My profile'; } add_action( 'bp_setup_nav', 'kleo_change_profile_tab', 999 ); define( 'BP_DEFAULT_COMPONENT', 'profile' );
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.December 29, 2014 at 14:33 #40560sealagencyParticipantHello,
very well is ok for my with this code :
COPY CODEfunction kleo_change_profile_tab() { global $bp; $bp->bp_nav['profile']['position'] = 10; $bp->bp_nav['activity']['position'] = 20; $bp->bp_nav['activity']['name'] = 'Activités'; $bp->bp_nav['q-and-a']['name'] = 'Q&R'; $bp->bp_nav['profile']['name'] = 'Profil'; // événement traduit dans wp-content/plugins/events-and-bookings/languages/eab-fr_FR.po } add_action( 'bp_setup_nav', 'kleo_change_profile_tab', 999 ); define( 'BP_DEFAULT_COMPONENT', 'profile' );
-
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.