Forum Replies Created
-
Author
-
July 11, 2014 at 15:54 in reply to: buddypress menu dropdown section is transparent and can not be read #22391
Jonbie
ParticipantAnybody?
Jonbie
ParticipantHi Abe,
the other post added the “View forum” option to the wp-admin bar dropdown.
I am trying now to add the same option to the buddypress forum sub-nav
Jonbie
ParticipantHi Abe,
Thanks for the code Abe.
I am having the issue now on where to place it. The h1 title on the buddypress users page is the users name. I would like to add to profile field beside the users name, on the same line right beside it but i have no idea which file to add it too?
Any idea where the file is that grabs the users name and places it in the h1 title?
Thanks
Jonbie
ParticipantHi Sharmstr,
I have finally found out what is happing with that code you sent me.
The category is visible when you are viewing your friends in the friends tab but not visible when searching members in the members directory.
any idea on why this is happening?
Jonbie
ParticipantHi Abe,
Sorry for the delay in getting back to you. I couldnt get that code to work unfortunately?
Jonbie
ParticipantHi Abe,
I am using this code to place the profile field “Type of account” beside the users name in the h1 title of all buddypress pages.
<div id=’member_profile’>
<div class=’profile_fields’>Category: <span><?php echo bp_get_profile_field_data(array(‘Type of account’ => ‘Type of account’));?></span></div>
</div>
<?phpi added it to under
<div id=”item-header-content” <?php if (isset($_COOKIE[‘bp-profile-header’]) && $_COOKIE[‘bp-profile-header’] == ‘small’) {echo ‘style=”display:none;”‘;} ?>>
but it doesnt seem to be working, am i adding it to wrong place? is the code ok?
Thanks for the help.
Jonbie
ParticipantHi, yes, the option is enabled and is still not importing the facebook avatar, any ideas?
Jonbie
ParticipantHi,
the option is enabled in theme options/misellaneous but it still does not work?
any ideas
Jonbie
ParticipantHey, yea i tried a few different fields but nothing is showing other than “Category”
Jonbie
Participantsorry, badly worded.
As the field is not showing i was going to try using the id instead of the name. The id is 5 im just not 100% sure of code for it, is it (field_id= 5);?> or do i include the ‘
Jonbie
ParticipantThe category title is coming up but not the type of account details, the field id is 5, i drop the ‘?
?>
<div id=’member_profile’>
<div class=’profile_fields’>Category: <span><?php bp_profile_field_data( field_id= 5 );?></span></div>
</div>
<?phpJonbie
ParticipantIm actually looking to add it to both places, and i confuse myself sometimes 😉
i will try that now.
Jonbie
ParticipantHey sharmstr,
Still no luck with that, the page i am trying to get that profile field to show up on is audiokulture.com/members ,
im not getting any errors but it still is not showing up?
Jonbie
ParticipantHi Sharmstr,
I actually spent the day trying to get that exact article to work for me but i just couldn’t get it.
maybe you could tell me if this looks right?
<div id=”item-buttons”>
<?php do_action( ‘bp_member_header_actions’ ); ?>
</div><!– #item-buttons –>
<?php
<div id=”member_profile”>
<div class=”profile_fields”>Category: <span><?php bp_profile_field_data( ‘field=Type of account’ );?></span></div>
</div>
do_action( ‘bp_profile_header_meta’ );?>
</div><!– #item-meta –>
April 1, 2014 at 06:34 in reply to: Change the name of menu/sub menus in wp admin bar dropdown #14010Jonbie
Participantworked perfect,
Thanks for the help and your time Sharmstr.
appreciate it.
April 1, 2014 at 06:05 in reply to: Change the name of menu/sub menus in wp admin bar dropdown #14008Jonbie
ParticipantThis is the code i entered thats giving me the error?
function custom_adminbar_titles() {
global $wp_admin_bar;
$wp_admin_bar->add_menu( array(
‘id’ => ‘my-account-xprofile’,
‘title’ => ‘Bio’,
‘id’ => ‘my-account-xprofile-change-avatar’,
‘title’ => ‘Change Profile Picture’,
)
);
}
add_action( ‘wp_before_admin_bar_render’, ‘custom_adminbar_titles’ );April 1, 2014 at 04:17 in reply to: Change the name of menu/sub menus in wp admin bar dropdown #13999Jonbie
ParticipantThanks for that but it doesnt seem to let me use the code twice? it only change one or the other? it gives me a syntax error when i duplicate the code?
Any ideas?
April 1, 2014 at 02:56 in reply to: Change the name of menu/sub menus in wp admin bar dropdown #13988Jonbie
Participantbrilliant sharmstr, you were totally right! works perfect. Would i be able to trouble you for the “change avatar” title be changed to “Change Profile Picture”
function custom_adminbar_titles() {
global $wp_admin_bar;
$wp_admin_bar->add_menu( array(
‘id’ => ‘change-avatar’,
‘title’ => ‘Change Profile Picture’,
)
);
}
add_action( ‘wp_before_admin_bar_render’, ‘custom_adminbar_titles’ );April 1, 2014 at 02:45 in reply to: Change the name of menu/sub menus in wp admin bar dropdown #13986Jonbie
ParticipantIm getting a Parse error: syntax error, unexpected ‘&’ in
April 1, 2014 at 02:10 in reply to: Change the name of menu/sub menus in wp admin bar dropdown #13974Jonbie
ParticipantThanks, I couldn’t find a plug-in as its the actual buddypress default menu labels i wanted to change but ill keep looking.
Jonbie
Participantwent through my css and i found a contradiction. It works perfect now,
Thanks for the help.
Jonbie
Participantthanks for the quick reposonse Abe,
Unfortunately that did not work, the profile pic etc are still copying the opacity, if you know what i mean?
Jonbie
ParticipantThanks for the help Sharmstr.
The sidebar code worked great. Unfortunately the code for the background didn’t do the job. Below is the code oi used to add a background and to change the opacity, no doubt it is done wrong. If you could point me in the right direction it would very much be appreciated.
.template-page.col-sm-push-3 .wrap-content {
background: #fff;
opacity:0.9;
}Thanks
Jonbie
ParticipantIf there is no help please let me know as i am waiting over 2 days for someone to get back to me?
Jonbie
ParticipantDo you have any plugins active? I had the same problem and it turned out to be a facebook plugin. Deactivating and deleting the plugin solved the problem for me.
Jonbie
ParticipantThanks for the advise, and you were right, i had tried other snippets with no luck, your code and advise worked great for me.
Thanks for taking the time to help.
Jonbie
Jonbie
Participantthanks for getting back to me Kieran. i have that installed a the moment as i wanted to remove the them options links etc (so as not to allow users access to the backend of the website)
Unfortunately it only adds a link to the bar and not to the forums sub menu. In the dropdown menu there is a tab labeled “forums” when you hover over this it expands and gives you 4 options (none of which are to view the forum page which i found very strange) These menus were there by default after i installed bb press.
i am looking to add a view forums tab to the forums sub menu.
Is this possible?
-
AuthorPosts