Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'toolbar'

Viewing 25 results - 451 through 475 (of 805 total)
  • Author
    Search Results
  • #161066
    bp-help
    Participant

    Study the code from this plugin that @chouf1 and @hnla helped considerably:
    https://github.com/bphelp/custom_toolbar/blob/master/custom-toolbar.php
    This should help you achieve your requirement. Pay particular attention to the code on line 78 and after to see how the images are added.

    Hugo Ashmore
    Participant

    The buddybar has been deprecated since V 1.6 in favour of the more elegant and functional WP toolbar is there a reason you need to use the old buddybar? It’s simpler in the long run to try and work with the BP defaults.

    #161031
    danbpfr
    Participant

    @lepasi,

    Sending menu is exactly the same thing as sending a picture for the above code. The only difference is the one send’s  text, and the other one could send a picture.

    But you “don”t want to create a menu“. Ghost !

    So if you already played around with code, you probably noticed that the toolbar contains a register button, and that button use some css id and class.

    So play with CSS and add your picture to the right of the register button. I wouldn’t offense you by tellling how to add a picture into a list.

    #161010
    LePasi
    Participant

    Hey 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 ?

    #161006
    danbpfr
    Participant

    You 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/

    LePasi
    Participant

    Hey hey !
    on my website on the top, you can see the tool bar:
    – when user is logged OUT / not registered => Login & Register Button on the left side.
    – when user is logged IN => other stuff bla bla

    Now i just want a new div container that i can modify over css NEXT TO THE Register Button.
    I want to put a small image into this div. Not more.
    div_container
    I tried some advices and codesnippets from forum, also tried to modify some php files on my own.
    Does anyone has a clue where and how to modify what file ?
    Thanks ! !

    2456Zebra
    Participant

    [RESOLVED]!!

    Well, that was easy. Worked like a charm.

    You Rock!

    Thanks

    Hugo Ashmore
    Participant

    Try adding:

    show_admin_bar( true );

    To your functions.php file.

    2456Zebra
    Participant

    You know the bar at the top which allows a user to sign in or register that is usually there….it’s gone missing after the update to Buddypress 1.7

    My site is: http://www.MedoWorld.com

    I’ve gone to Settings – Buddypress – Settings – and clicked and unclicked the setting for allow not signed in users to see Toolbar. Did nothing.

    I deleted the plug-ins that I updated too.

    Any ideas?

    Are you able to tell by looking at the error codes? How do I see those error codes and will I know what to do when I see them?

    Thanks

    #160298

    In reply to: Default Friend

    bp-help
    Participant

    @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_toolbar

    #159937
    Gargoyle297
    Participant

    Sorry, 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.

    #159936
    Gargoyle297
    Participant

    Hi,
    i’m running wp 3.5.1 and BuddyPress 1.6.5 with, at the moment, the default theme.
    The link to <>/members/<>/forums/favorites/ from the top right menu (member’s toolbar menu) goes nowhere… It points to a non-existing page.
    I tried different themes (i.e.: atahualpa last version customized) then reverted to the standard one.
    And a question too: I cannot find the way to ‘mark’ topics as a favourite.
    Maybe is there something missing?

    Link to the site: http://www.triariurberugby.it/test (this is the wp root for this site). I’m testing a separate instance of the site to check for the bp-plugin.

    Thanks

    #159723

    In reply to: Cannot post drug names

    palmdoc
    Participant

    Hi @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; )

    #159638
    Fernon
    Participant

    @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.

    #158838
    bp-help
    Participant

    I 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.zip

    #158739
    danbpfr
    Participant

    @johnsorci, where should be this link ?

    On the Toolbar, under the howdy menu ?

    #157630

    In reply to: My Buddypress Site

    bp-help
    Participant

    Try 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!

    bp-help
    Participant

    @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 USER2

    2.) 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!

    Hugo Ashmore
    Participant

    now 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.

    #157448
    danbpfr
    Participant

    in 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' ); 

    bp-help
    Participant

    @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.

    bp-help
    Participant

    Just 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.

    #157303
    danbpfr
    Participant

    the 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.

    #157132
    danbpfr
    Participant

    i 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.

    #156822
    danbpfr
    Participant

    hi @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 );

Viewing 25 results - 451 through 475 (of 805 total)
Skip to toolbar