•  

How to: Make tab not show up if there is no content.

This thread is over 4 months old
The content and issues discussed here maybe out of date or inaccurate.

Check you are running the latest version of your PremiumPress theme then look for a more recent forum post or submit a support ticket.
  1. u 13070
    offline
    Michael
    Posted 9 months ago

    I see that if a profile does not have a picture uploaded, then the tab does not show up.

    I would like to apply this to my custom tabs as well.
    Im sure in the _single.php code, Im staring right at it, but i just cannot recognize the code.

    Can someone point it out so that i can apply it to other tabs?

    This way i wont have to find the code for an iframe message displaying:

    " this user does not have a video or playlist"

    Any help pointing out the code would be Great=D

    My Website Link:
    My Theme Version: Latest v7

  2. u 13579
    offline
    Deen
    Posted 9 months ago

    I'm no expert, but I believe in this tutorial it applies it.

    http://www.simonswiss.com/tutorials/directorypress-custom-tab-in-listing-page

  3. u 13070
    offline
    Michael
    Posted 9 months ago

    Thanks for the reply. I just realized that i left a whole line out of the initial post.

    I have created "Video" and "Playlist" Tabs using Iframes.
    They work great with content, but when there is no content, there is a large box where they content would be.

    Your reference works great for stopping dp from duplicating information throughout tabs, but Im looking for a way to either:

    -hide the entire tab if there is no video or playlist uploaded
    or,
    -Create a default message that like " this user has no video" or " this user has no playlist"
    I know this is possible with the more traditional way to have a video tab, as seen in this post:

    http://www.premiumpress.com/forums/topic/help-needed-in-showing-youtube-video-tab-in-single-page/page/3

    But i could not get the video to work using this method.
    so i would like to stick with what is working for me with this implemented with the Iframe code.=)

    Attached is the code for both the video tab and playlist tab.

  4. u 13070
    offline
    Michael
    Posted 9 months ago

    here is the code:

    Attachments

    1. Screen_shot_2012-08-08_at_8.01.25_PM.png (89.5 KB, 5 downloads) 9 months old