Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to implement user notifications to template without admin bar

  • @davidkooo

    Participant

    How to implement user notifications to template without admin bar?

    I am using custom theme and I have disabled wordpress/buddypress admin bar, that means users does not have any notifications. How to create notifications in my own theme?

    http://transformers.scifi-guide.net/

Viewing 18 replies - 26 through 43 (of 43 total)
  • @bphelp

    Participant

    @modemlooper I put the code from the gethub link in my functions.php and I placed
    in the header.php after the and I can’t seem to get this to work, any help is greatly appreciated!

    @bphelp

    Participant

    Oops code got stripped sorry!

    @modemlooper
    I put the code from the gethub link in my functions.php and I placed
    `

    `
    in the header.php after the“ and I can’t seem to get this to work, any help is greatly appreciated!

    @bphelp

    Participant

    Its stripping out the code here, whats the problem?

    @modemlooper

    Moderator

    make sure you are on the visual editor

    @bphelp

    Participant

    @modemlooper I used the code you supplied on gethub and I put it in my child themes functions.php between opening and closing php tags. Then I placed bp_notification_badge() within opening and closing php tags in the header.php just under the div id=”header” and nothing shows up at all. What have I done wrong?

    @modemlooper

    Moderator

    try using bp-custom.php

    place that file in your plugins folder

    @bphelp

    Participant

    That just gave me a white screen

    @modemlooper

    Moderator

    you must not be placing code correctly.

    @bphelp

    Participant

    I am not much of a coder but shouldn’t there be an add action at the end of that github code? I may be mistaken because I am a total noob. Sorry!

    @bphelp

    Participant

    @modemlooper I’ve done you instructed and everything I know to do. I put the github code in bp-custom.php and I put your other code which calls it within the header div in header.php and it doesn’t spit out anything. I just don’t know where I am going wrong! This is all in my child theme WP 3.5.1 and BP 1.6.4

    @bphelp

    Participant

    @medemlooper It just does not work, is there an error in the syntax, did you forget the add action below the function? Just curious because I can not get it to work. I wish there was an easier way to do this because It would be awesome. Please help I am stuck and I have done just about everything I know to do to get this going!

    @bphelp

    Participant

    @modemlooper
    Still not working I added an echo “This Works” to the function and it prints it to the left of the header so why is the notifications not showing up? The function is being passed and called but no notifications? I’m baffled! Please help, thanks!

    @cassius123

    Participant

    I have been following this and I am having the same issues. I am very close to hiring a developer to do this and a couple other things because I just can’t get it to work in my theme.

    @naturalworldstm

    Participant

    @ggsalas

    Participant

    Excelent!! Thanks 😀

    @mattg123

    Participant

    @bphelp, @cassius123 the code works fine, you’ll probably find you have no notifications, if thats the case @modemlooper’s code won’t display anything, you also need to style it, so it acts like it does in the admin bar but the code works fine, place it in your functions.php or bp-custom.php and call bp_notification_badge() from where ever you want the notifications to show up.

    @shubh14

    Participant

    @modemlooper please upload the gist again..or share the code here.. thanks a ton

    @besing

    Participant

    +1

    Thanks!

Viewing 18 replies - 26 through 43 (of 43 total)
  • The topic ‘How to implement user notifications to template without admin bar’ is closed to new replies.
Skip to toolbar