Forum Replies Created
-
Author
-
July 11, 2014 at 15:54 in reply to: buddypress menu dropdown section is transparent and can not be read #22391JonbieParticipant
Anybody?
JonbieParticipantHi 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
JonbieParticipantHi 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
JonbieParticipantHi 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?
JonbieParticipantHi Abe,
Sorry for the delay in getting back to you. I couldnt get that code to work unfortunately?
JonbieParticipantHi 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.
JonbieParticipantHi, yes, the option is enabled and is still not importing the facebook avatar, any ideas?
JonbieParticipantHi,
the option is enabled in theme options/misellaneous but it still does not work?
any ideas
JonbieParticipantHey, yea i tried a few different fields but nothing is showing other than “Category”
JonbieParticipantsorry, 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 ‘
JonbieParticipantThe 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>
<?phpJonbieParticipantIm actually looking to add it to both places, and i confuse myself sometimes 😉
i will try that now.
JonbieParticipantHey 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?
JonbieParticipantHi 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 #14010JonbieParticipantworked 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 #14008JonbieParticipantThis 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 #13999JonbieParticipantThanks 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 #13988JonbieParticipantbrilliant 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 #13986JonbieParticipantIm 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 #13974JonbieParticipantThanks, I couldn’t find a plug-in as its the actual buddypress default menu labels i wanted to change but ill keep looking.
JonbieParticipantwent through my css and i found a contradiction. It works perfect now,
Thanks for the help.
JonbieParticipantthanks 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?
JonbieParticipantThanks 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
JonbieParticipantIf there is no help please let me know as i am waiting over 2 days for someone to get back to me?
JonbieParticipantDo 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.
JonbieParticipantThanks 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
JonbieParticipantthanks 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