Search Results for 'toolbar'
-
AuthorSearch Results
-
April 10, 2013 at 2:39 pm #161010
In reply to: [Resolved] Add image to the adminbar/toolbar/
LePasiParticipantHey thanks for your reply, but
this is absolutely not what i’m lookin for. As i mentioned before, i already go through some code and stuff , i also found this already (also in your link)
`/**
* Add the Smashing WP Exoplanets menu
*/
function smashing_wp_exoplanets_menu() {
global $wp_admin_bar;
$wp_admin_bar->add_menu(array(
‘id’ => ‘smashing-wp-exoplanets’,
‘title’ => __(‘ExoplanetArchive’),
‘href’ => ‘http://exoplanetarchive.ipac.caltech.edu/index.html’
));
}`so you can add a new menu item. Even if this doesn’t work for me, i didn’t try to add a new menu, but an image. .
anyone ?
April 10, 2013 at 2:29 pm #161006In reply to: [Resolved] Add image to the adminbar/toolbar/
danbpfrParticipantYou willl find hundreds of answers to this question, because what you want to customize is the wordpress 3.3+ Toolbar.
i.e here: http://wp.smashingmagazine.com/2012/03/01/inside-the-wordpress-toolbar/April 9, 2013 at 3:03 pm #1608112456ZebraParticipant[RESOLVED]!!
Well, that was easy. Worked like a charm.
You Rock!
Thanks
April 9, 2013 at 2:55 pm #160808Hugo AshmoreParticipantTry adding:
show_admin_bar( true );
To your functions.php file.
April 8, 2013 at 1:57 pm #160298In reply to: Default Friend
bp-helpParticipant@naijaping
I tried doing a plugin with the help of several members that replicated what you did but your knowledge is better. If you have time can you look over the code? I can list you as the author or whatever you choose. Thanks mate!
Here is the URL:
https://github.com/bphelp/custom_toolbarApril 4, 2013 at 9:42 pm #159937In reply to: [Resolved] member favourite topics issue
Gargoyle297ParticipantSorry, i used the wrong characters….
…The link to SITE_URL/members/USER_NAME/forums/favorites/ from the top right menu (member’s toolbar menu) goes nowhere… It points to a non-existing page.April 2, 2013 at 9:28 pm #159723In reply to: Cannot post drug names
palmdocParticipantHi @chouf1
Thanks for the tip about checking with the host – will do. Here’s my configuration:
Host URL: forum.mydobbs.net
Site URL: http://forum.mydobbs.net
Wordpress URL: http://forum.mydobbs.net
Wordpress Version: 3.5.1
BuddyPress Version: 1.6.5
MultiSite Status: Off / Disabled
Theme: BuddyBoss Child Theme
Server: Apache
Active Plugins: 39 (BuddyPress Edit User Profiles. 1.0; BP Group Management 0.5.4; BP Post Buttons 1.0; BP Profile Search 3.2; BP Unread Posts 0.8.0; BP Webcam Avatar 0.8; BuddyPress Activity Plus 1.4.1; BuddyPress Announce Group 1.3; BuddyPress Auto Group Join 2.2.1; BuddyPress Docs 1.3.3; BuddyPress Facebook 0.2; BP Group Documents 0.4.0; BuddyPress Group Email Subscription 3.3.3; BuddyPress Message Attachment 1.1; BuddyPress Mobile 1.5.2.3; BuddyPress Registration Groups 0.8; BuddyShare 1.2.1; BuddyPress Toolbar 1.5.1; BuddyPress Topic Mover 2.5.1; BuddyPress Usernames Only 0.58; BuddyPress 1.6.5; CubePoints Buddypress Integration 1.9.8.9; CubePoints 3.2.1; E-Newsletter 1.2.4; Events Manager 5.3.7; Export Users to CSV 0.3; FFF Cron Manager 0.7; Google Doc Embedder 2.5.6; HungryFEED 1.6.2; NextGEN Gallery Voting 2.4.1; NextGEN Gallery 1.9.12; s2Member® Framework 130221; Fast Secure Contact Form 3.1.8.1; Simple Popup Plugin 4.1; WordPress Chat 1.3.2.6; WP-FB-AutoConnect 3.0.1; WP Mail Options 0.1.10; WP-Polls 2.63; WPMU DEV Dashboard 3.2.5; )April 2, 2013 at 7:22 am #159638In reply to: [Resolved] Profile settings url
FernonParticipant@chouf1 It works! Thanks for the effort, I really appreciate it. How can I also add the link to the profile buddypress navigation? It only shows up in the toolbar now.
March 28, 2013 at 6:39 am #158838In reply to: Notifications and happenings
bp-helpParticipantI don’t have an answer for 1.)
but I have made an attempt at creating a plugin for number 2.) with the help of @hnla and @chouf1 but I have not really sorted it out yet to my liking. Feel free to see if you can improve upon it. Get it here:
https://github.com/bphelp/custom_toolbar/archive/master.zipMarch 27, 2013 at 1:39 pm #158739In reply to: [Resolved] Specific Dynamic Link from Username
danbpfrParticipant@johnsorci, where should be this link ?
On the Toolbar, under the howdy menu ?
March 24, 2013 at 6:52 pm #157630In reply to: My Buddypress Site
bp-helpParticipantTry adding some more margin to the li elements in your toolbar because its uneven with the site name in the toolbar example add:
#wp-admin-bar li.no-arrow a {
margin-top: 3px !important;
}
Just a suggestion!March 23, 2013 at 4:52 pm #157557bp-helpParticipant@hnla Okay I added this and it places the count under the title. Now all I need to do is:
1.) Add name of person sending friend request and messages beside the count as well as the greeting.
Example: You have 1 friend request from USER1, You have 2 messages from USER22.) Add avatar of person sending the friend request or message to to left in the drop-down notification.
If you or anyone else can help on that it will be great.
For anyone who would like to use this I packaged it as a plugin here:
https://github.com/bphelp/custom_toolbar
If you would like to help with the code I can add you as a contributor. Thanks everyone!March 23, 2013 at 12:56 pm #157540Hugo AshmoreParticipantnow having to write this a second time as bp decided I wasn’t logged in for some odd reason after I submitted so this is brief.
Watch your syntax, don’t wrap those functions in strings, ‘;’ line terminations in an array ought not to be there. You don’t need or want to echo out those functions at this point simply pass the function through so simply the ‘get’ function.
This is a working example of two:
<code>
$wp_toolbar->add_node(array(
‘parent’ => ‘user-friends’,
‘id’ => ‘friend-requests’,
‘title’ => ‘ Friend Requests ‘,
‘href’ => bp_loggedin_user_domain() . bp_get_friends_slug() . ‘/requests/’,
‘meta’ => array(‘html’ => ‘<span>’ . bp_friend_get_total_requests_count( bp_loggedin_user_id() ) . ‘</span>’ )
));</code>
<code>
$wp_toolbar->add_node(array(
‘parent’ => ‘user-messages’,
‘id’ => ‘messages’,
‘title’ => ‘ Messages ‘,
‘href’ => bp_loggedin_user_domain() . bp_get_messages_slug() . ‘/view/’,
‘meta’ => array(‘html’ => ‘<span>’ . bp_get_total_unread_messages_count(bp_loggedin_user_id() . ‘</span>’ ) )
));</code>
This isn’t ideal but all I can see to work with in add_node() but there may be better approaches, and to get this working I mainly had to study the code page to see how the ‘meta’ was handled.March 22, 2013 at 12:36 am #157448In reply to: Show user's option nav in sidebar globally
danbpfrParticipantin other words, you want the old buddybar “My account” menu from the buddybar to the sidebar ?
take a look in bp-core/bp-core-adminbar.php and bp-core-buddybar.php <- this one is well commented
you can also revert to the old buddybar by adding this to bp-custom to view the difference with the default WP Toolbar
add_filter(
'bp_use_wp_admin_bar'
,
'__return_false'
);
March 21, 2013 at 9:06 pm #157436bp-helpParticipant@hnla Here is the link to it on github:
https://github.com/bphelp/custom_toolbar
Thanks in advanced for any help or time you may be able to spare.March 21, 2013 at 4:17 am #157359bp-helpParticipantJust for clarification I decided to keep the toolbar and attempt to add the split up notifications to it. I just need help with display of the individual notifications in the drop-down menu.
March 20, 2013 at 1:49 pm #157303danbpfrParticipantthe extrem right of the bar is occupied by the search box, who normally appear when you’re on the front -end.
So the limit on the rigth is at the left of the HowDy witch ends with the user avatar. At the right of the avatar is some jquery for the search box. And it’s better you don’t try to touch this, if you don’t know what you make.
Be also aware that CSS styling begins always on the left top corner, because it’s the only common point of the multiple existing screen sizes.
The #wpadminbar li applies to any list on the Toolbar. So your CSS in completly false and unusable as is.March 20, 2013 at 10:01 am #157132danbpfrParticipanti know BP, no need to give me a test user access: that have no effect on your code.
You removed many things in the toolbar i guess. So i would recommand you reload a fress bp-default folder, with untouched css at least.
Apply the code and don’t touch the css! and come back with questions.
March 19, 2013 at 10:50 pm #156822In reply to: Deleting Admin Sub-menu items
danbpfrParticipanthi @adenicol,
you’re using the old buddybar or an old BP version, right ? Here is a solution to remove items in BP 1.5 > 1.6.x with buddybar activated, but be aware that some menus changed place in the upcoming BP 1.7
So if you mean the WP Toolbar (like here the black one on top) witch holds the group admin options, the code sit in bp-groups/bp-groups-buddybar.php
This contains only one function. Simply copy it to your (preferably child) theme functions.php, rename it, do your changes (html remove, ad/remove conditinals), deactivate the original filter and register.
original function is bp_groups_adminbar_admin_menu()
rename it to my_bp_groups_adminbar_admin_menu() (or what you want)
and do the same in the action filter.
original: add_action( ‘bp_adminbar_menus’, ‘bp_groups_adminbar_admin_menu’, 20 );
modified: add_action( ‘bp_adminbar_menus’, ‘my_bp_groups_adminbar_admin_menu’, 20 );
Resume
remove_action( ‘bp_adminbar_menus’, ‘bp_groups_adminbar_admin_menu’, 20 );
function my_bp_groups_adminbar_admin_menu() {bla bla
}
add_action( ‘bp_adminbar_menus’, ‘my_bp_groups_adminbar_admin_menu’, 20 );
March 19, 2013 at 10:13 pm #156821danbpfrParticipant@shahzaib147, so far i know there is only one Toolbar in WP
If the code works on the backend bar it should also work on the frontend !
That’s the case on my test site. Have you refreshed the page (F5) ?Or have you an extra theme with an extraaaaaa Toolbar ? Give more details about your config or a picture, because i don’t see what you’re talking about.
March 18, 2013 at 7:16 pm #156720danbpfrParticipanti have already helped you here for the same question: https://buddypress.org/support/topic/how-to-add-images-to-a-custom-toolbar/#post-156520
Let me tell you that you don’t ask for help now, but search somebody doing that plugin at your place. 👿
Go to the job board and hire a dev, if you don’t know go further with all the elements you already received. I’m not at your personal service !
March 17, 2013 at 10:24 pm #156640In reply to: [Resolved] How to add images to a custom toolbar?
bp-helpParticipant@hnla since the topic name is “How to add images to a custom toolbar” then if you could kindly mark this as resolved. Thanks again for your help!
March 17, 2013 at 10:20 pm #156639bp-helpParticipant@chouf1 with your help and hnla’s I have this working but even with the above examples in how to get the counts in a drop down I am not certain how to do this. Where do I place:
echo bp_friend_get_total_requests_count( $user_id );
echo bp_get_total_unread_messages_count($name );
echo count($notifications);
In the code because it either fires off an error or it actually echo’s the code. What am I doing wrong? Thanks again for all your help! 🙂
`
function custom_toolbar($wp_toolbar) {
global $wp_admin_bar;if ( is_user_logged_in() ) {
$wp_toolbar->add_node(array(
‘id’ => ‘bp-notifications’,
‘title’ => __(‘ ‘),
‘href’ => bp_loggedin_user_domain() . bp_get_messages_slug() . ‘/notices/’,
/*’meta’ => array(‘class’ => ‘notifications’)*/
));$wp_toolbar->add_node(array(
‘id’ => ‘user-friends’,
‘title’ => __(‘ ‘),
‘href’ => bp_loggedin_user_domain() . bp_get_friends_slug() . ‘/requests/’,
/*’meta’ => array(‘class’ => ‘menupop’)*/
) );$wp_toolbar->add_node(array(
‘id’ => ‘user-messages’,
‘title’ => __(‘ ‘),
‘href’ => bp_loggedin_user_domain() . bp_get_messages_slug() . ‘/view/’,
/*’meta’ => array(‘class’ => ‘menupop’)*/
) );
}
}
add_action(‘admin_bar_menu’, ‘custom_toolbar’, 999);
`March 17, 2013 at 6:50 pm #156622In reply to: [Resolved] How to add images to a custom toolbar?
Hugo AshmoreParticipantHas @Chouf1 not answered that question on the lst comment on this thread he linked to?:
Those various references should point you to the functions you need to work with.
March 17, 2013 at 4:21 pm #156610In reply to: [Resolved] How to add images to a custom toolbar?
Hugo AshmoreParticipantIt’s in the codex searching on ‘WP plugins_url()’ ought to find it.
It may not work if you have odd folders but yours look standard-ish oh and if you copied my example I added a typo _incl / _inc – personally much prefer ‘assets’
-
AuthorSearch Results