Support » Plugin: WP Photo Album Plus » Css to Hide Album Title " Default photo album for" text

  • Resolved Jenny

    (@enigma666666)


    Hi there,
    I need to hide all Album titles, as I have already added a h3 title heading to all user albums, above the albums. This h3 title heading is identical for all user albums, so I do not want WP photo Album plus, album titles to display on the front end of the website.

    Ideally I would like to hide it with css. I have used firebug, but the css classes I have tried, have no effect.

    I also need to hide the text below Album title on the front end of the website, ideally also with css.

    So if you can please give me the class names for Album title + also for the text below that which states: “Default photo album for..(the username)”, it will be a great help.

    The albums I am using are default thumbnail albums. I have already managed to remove the top breadcrumbs section of the albums, via css. So basically I just want the album content displayed, with the upload link at the bottom of the album, without album title and additional text appearing at bottom of album.

    Also, please advise what I must add to shortcode or which setting I must change, in order to have pagination on default thumbnail albums?

    https://wordpress.org/plugins/wp-photo-album-plus/

Viewing 15 replies - 16 through 30 (of 36 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I do not know much about the internals of buddypress, but if $bp->displayed_user is the right guy, this will work:

    <?php
    echo do_shortcode( '[wppa type="cover" album="#owner,'.$bp->displayed_user->userdata->user_login.'"][/wppa]' );
    ?>

    In the next version ( end of this week ) i will add an option to force the display of empty album content, so you will see a thumbnail display area with only the upload link when the album does not contain photos yet.
    Then you can change type="cover" into type="album" or type="thumbs" if you do not want any sub album covers to be displayed there.

    Thread Starter Jenny

    (@enigma666666)

    Hi there,

    Thank you for the code, but it still gives me the error: [WPPA+ dbg msg: Missing owner in #owner album spec: #owner]

    This is so frustrating, as your plugin is the only plugin that has the functionality that I need for this project that I am working on. I am sorry to give you so much extra work in trying to resolve this issue and I really appreciate all the help so far. I have made a small donation today, to show my appreciation for your help.

    Im going to try different buddypress code inside the echo and see if I can get it to work. Will post here if I get it to work.

    And thank you for the planned update to the plugin, regarding thumbnails and empty albums, much appreciated as I prefer the default thumbnail layout as it looks much neater than cover layout.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    It looks like $bp->displayed_user->userdata->user_login is empty.
    To make sure do :

    echo 'BP_user_login='.$bp->displayed_user->userdata->user_login;

    You may need this (!!) :

    global $bp;

    See if you can find a way to initialize this, or do a

    var_dump( $bp->displayed_user );

    Thread Starter Jenny

    (@enigma666666)

    Thank you, I tried the following code now:

    <?php global $bp;
    $user_id = $bp->displayed_user->id;
    echo do_shortcode('[wppa type="cover" album="user=' .$user_id .'"][/wppa]' ); ?>

    I got a syntax error displayed on the profile album page of:
    BP_user_login=Syntax error in album specification. Unrecognized Album identification found: user=2

    So although I get this error, at least it shows the user, so I think I’m close to getting the solution.

    I also tried the following:

    global $bp;
    $user_id = $bp->displayed_user->id;
    echo do_shortcode('[wppa type="cover" album="#owner' .$user_id .'"][/wppa]' ); ?>
     <?php

    This one gave me error code: BP_user_login=[WPPA+ dbg msg: Unrecognized album keyword found: #owner2]

    Thread Starter Jenny

    (@enigma666666)

    When I do:

    <?php
    global $bp;
    echo 'BP_user_login='.$bp->displayed_user->userdata->user_login; ?>

    It correctly returns the profile name of the test user page that I am viewing: BP_user_login=peter
    And when I view my profile page, it correctly returns : BP_user_login=admin

    Thread Starter Jenny

    (@enigma666666)

    EUREKA!!!!!

    This code works:

    <?php
    global $bp;
    echo do_shortcode( '[wppa type="cover" album="#owner,'.$bp->displayed_user->userdata->user_login.'"][/wppa]' );
    ?>

    Thank you so very much for helping me sort this out! My deadline for this project is within the next 24 hours, so you really saved my bacon with all your assistance!

    Thread Starter Jenny

    (@enigma666666)

    I spoke a little bit too soon…The code works, in that I can view anybody’s albums on their profiles, but I added a new test user now and when I go to the granted album on the new test user’s profile page, it shows this text: No albums or photos found matching your search criteria. with no upload or editalbuminfo link.

    BUT at least I’m making progress. Now just to get that pesky upload link and edit link to appear on new test user page.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    This one gave me error code: BP_user_login=[WPPA+ dbg msg: Unrecognized album keyword found: #owner2]

    this is because you forgot the comma ( , ) between #owner and ‘,$bp->…

    Is your test user logged in at least once, so the granted album has been created already? This happens when he logs in, so if you look there befor, its not there yet.

    You will get the mod tomorrow, i have it working, so that you can display the empty thumbnail area.

    Thanx for your donation.

    Thread Starter Jenny

    (@enigma666666)

    Hi there,

    Thank you, regarding the thumbnail update.

    Yes I created the user, then logged in as the user. When viewing test user profile, the newly granted album with upload link does not appear, instead it says : No albums or photos found matching your search criteria. with no upload or editalbuminfo link

    However, the new test user can view all other user’s albums on their profile pages, so at least that is fixed now with this code:

    <?php
    global $bp;
    echo do_shortcode( '[wppa type="cover" album="#owner,'.$bp->displayed_user->userdata->user_login.'"][/wppa]' );
    ?>

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    What happens when you – as admin – uploads one photo to it?

    Thread Starter Jenny

    (@enigma666666)

    Do you mean from wp admin side?

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    No matter, as long as there is at least one photo in the album.
    Also set Table I-A4 ( Photocount treshold ) to 0

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I will release 6.1.15 now, its ready. But i have to stop ( its 18.00 ), but then you have more time.

    You will see an update available in a few minutes. check the Updates menu on the wp admin menu.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    from the Changelog:

    Table II-D18: Show empty thumbnail area. Check this to see the thumbnail area of empty albums for the upload link in it.
    Thread Starter Jenny

    (@enigma666666)

    This is weird, I logged out as the new user and then logged back in as new user and now album upload link appears on the user profile page!

    I am going to test it again now, by creating another new user, to see if upload link appears this when I login as new user

Viewing 15 replies - 16 through 30 (of 36 total)
  • The topic ‘Css to Hide Album Title " Default photo album for" text’ is closed to new replies.