Forums

Hiding the Flash Player: PodPress Plugin (5 posts)

  1. artslob
    Member
    Posted 2 years ago #

    Hi all.

    I'm using the PodPress Plugin for my blog, and I like the functionality. One thing driving me nuts is that I can't find out how to disable the player from showing at the bottom of each post.

    To see what I'm talking about go to.

    http://antiquity.tv

    How do I hide the players?

    Any help greatly appreciated!

    Cheers

  2. ntm
    Member
    Posted 2 years ago #

    At the "General Options"-page of podPress as part of the "Post Content"-options is an option which is called "Before <!- More -> tag:".

    It seems to me that this option should do exactly what you are looking for. But it works only for the option "yes" as described. The option "no" hides the player at the single post pages, too (at least in my test blogs).

    I'm going to create a proposition for patch, tomorrow.

    A solution might be:
    podpress_class.php line 673 (podPress v8.8.4)
    old:

    if($this->settings['contentBeforeMore'] == 'no') {
    	return $content;
    }

    new:

    if($this->settings['contentBeforeMore'] == 'no') {
    	if (is_home() or is_archive()) {
    		return $content;
    	}
    }
  3. ntm
    Member
    Posted 2 years ago #

    The correct line number for v8.8.4 is line 663 in podpress_class.php.

  4. ntm
    Member
    Posted 2 years ago #

    This is works more like the description suggests:

    new:

    if($this->settings['contentBeforeMore'] == 'no') {
    	if (is_home() or is_archive()) {
    		if (FALSE !== strpos($content, 'class="more-link">')) {
    			return $content;
    		}
    	}
    }

    The corresponding Trac Ticket is #1079.

  5. ntm
    Member
    Posted 2 years ago #

    Another method to prevent the podPress elements from appearing a page is with CSS.
    You may add a special CSS on the page where the podPress elements should not appear. The podPress elements are an DIV container of the class "podPress_content".

    The CSS:

    .podPress_content {
    	display:none;
    }

    would hide the podPress elements.

Topic Closed

This topic has been closed to new replies.

About this Topic