Skip to:
Content
Pages
Categories
Search
Top
Bottom

Since BP 1.9 plugins don't use plugins.php file

  • @m1000

    Participant

    Hi,

    I have noticed that plugins which used members/single/plugins.php file since BP 1.9 don’t use it anymore. For example rtMedia plugin loads own content inside index.php file (inside blog posts) instead of members/single/plugins.php. What can be the reason of it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • @m1000

    Participant

    The same thing happens when wp-content/themes/bp-default/ theme is active.

    @marialka

    Participant

    Hi, thanks @m1000, interresting for a newbie 😉 like me

    rtMedia plugin loads own content inside index.php file (inside blog posts)

    please, are you speaking about index.php from themes/twentytwelve/index.php, not page.php ?

    I can’t see any change (related to rtMedia “page”) when I use this index.php, but may be 😉 I made something wrong!

    @mdpane

    Participant

    This is the same exact problem I was facing a couple days ago. I temporarily fixed it by adding some conditional tags, but I’d rather not muck up index.php for things like this.

    Here’s an example of some of the code I added:

    <div class="<? if ( is_rtmedia_gallery() OR is_rtmedia_single() OR is_rtmedia_album_gallery() OR is_rtmedia_album() ) : ?>MediaGallery<? else : ?>page<? endif; ?>" id="blog-latest" role="main">

    This changes the div class from ‘page’ to ‘MediaGallery’ for rtMedia pages.

    <?php if ( have_posts() && !is_rtmedia_gallery() && !is_rtmedia_single() && !is_rtmedia_album_gallery() && !is_rtmedia_album() ) : ?>

    This says if isn’t rtMedia related, continue loading index.php as usual.

    <?php elseif ( is_rtmedia_gallery() OR is_rtmedia_single() OR is_rtmedia_album_gallery() OR is_rtmedia_album() ) : ?>
    				<?php bp_dtheme_content_nav( 'nav-above' ); ?>
    					<?php the_content( __( '', 'buddypress' ) ); ?>
    					
    				<?php bp_dtheme_content_nav( 'nav-below' ); ?>
    				
    			<?php else : ?>
    
    				<h2 class="center"><?php _e( 'Not Found', 'buddypress' ); ?></h2>
    				<p class="center"><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'buddypress' ); ?></p>
    
    				<?php get_search_form(); ?>
    
    			<?php endif; ?>

    This says if it is rtMedia related, load that instead.

    Hopefully a fix comes out soon.

    @oken

    Participant

    @mdpane

    Thanks a lot for figuring out a solution to this issue. I could not find any info on it at all, until I stumbled upon this thread. Not even any information on this error from rtmedia. Implemented the code and worked like a charm. 🙂

    I’m also hoping for a fix to this is in the works as well.

    @mdpane

    Participant

    @Oken There actually has been! What I wrote up there was just a quick workaround, I would disregard it now. This is their solution:

    https://rtcamp.com/rtmedia/docs/developer/templating-system/theme-media-tab/

    I have to applaud rtCamp, they’ve been updating rtMedia and rtMedia Pro with new features and bug fixes nearly every other day. And if you go on their own forum, they’re incredibly quick to reply.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Since BP 1.9 plugins don't use plugins.php file’ is closed to new replies.
Skip to toolbar