Support » Plugin: Events Manager - Calendar, Bookings, Tickets, and more! » [Plugin: Events Manager] Changing layout of the profile tabs w/ buddypress

  • Resolved LindsayMac

    (@lindsaybsc)


    I thought that this would be a relatively easy fix because I am fully capable of making wordpress themes from scratch but new to buddypress and events manager.

    I have a custom buddypress theme and in the profile view there is tabbed panels for activity, profile, messages, friends, and events.. For some reason the events tab is breaking the layout.

    I know exactly what is causing it.. It is missing a wrapping div container that holds both the tab content AND the sidebar. I just can not, for the life of me, figure out where to add this content. I assume that there would be some type of template file of the profile version where I would see the sidebar being called so I can wrap the whole chunk of code and be done, but it’s not there!!!

    Can someone guide me in the right direction as to where to change the layout of how the event manager shows in the profile on buddypress??

    Thanks in advance!

    http://wordpress.org/extend/plugins/events-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
  • hi,

    please check the template files at /templates/buddypress

    to use templates – http://wp-events-plugin.com/documentation/using-template-files/

    Thread Starter LindsayMac

    (@lindsaybsc)

    That was the first place I looked but I could not find either any reference of the sidebar to include it in the proper containing div, nor could I find the HTML structure for containing the tabs.

    It seems as though those template files contain structure for the interior content but not a complete page template.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    all the buddypress stuff runs from within the buddypress folders.

    specific places of interest would be the bp-em-core.php file in BP_EM_Component::setup_nav()

    and also the corresponding files/callbacks in the screens folder.

    Thread Starter LindsayMac

    (@lindsaybsc)

    I’ve looked there as well..

    Basically the setup_nav is getting all of the details to input the links and information and forms in to the tabs and tabbed content areas.. The issue for me is with the outlying structure.

    I also had a look in the screens folder assuming maybe profile.php would be where I might find where the core structure is, but again, no go.

    Looking at what file it is calling for the template “members/single/plugins” that folder does not exist in my theme. Is this the cause of the problem??? Do I need to make it? Or point it to a different template file?

    Thread Starter LindsayMac

    (@lindsaybsc)

    AHHHHH hah!!! I GOT IT!!!!

    Thanks so much.. if it wasn’t for you, I wouldn’t have made it in the right direction!!

    It was the fact, obviously, that my theme (frisco) doesn’t have a plugin.php file and therefor was using the default, which didn’t have the lovely styling of frisco.

    All i did was copy the default theme plugin.php over to the frisco theme and plugged in the html that I knew I wanted.. VIOLA!

    THANKS AGAIN

    I think I’m having the same problem. Could you tell me which plugin.php file you copied over and what kind of changes you made? Thanks.

    I think I worked it out, thanks to the information you’ve already provided. I copied wp-content/plugins/buddypress/bp-themes/bp-default/members/single/plugins.php to wp-content/themes/frisco-for-buddypress/members/single. In that, I added the first two and last three lines below:

    <div id="sidebar-squeeze">
    	<div id="main-column">
    
    			<div id="item-body" role="main">
    				<?php do_action( 'bp_before_member_body' ); ?>
    				<div class="item-list-tabs no-ajax" id="subnav">
    					<ul>
    						<?php bp_get_options_nav(); ?>
    						<?php do_action( 'bp_member_plugin_options_nav' ); ?>
    					</ul>
    				</div><!-- .item-list-tabs -->
    				<h3><?php do_action( 'bp_template_title' ); ?></h3>
    				<?php do_action( 'bp_template_content' ); ?>
    				<?php do_action( 'bp_after_member_body' ); ?>
    			</div><!-- #item-body -->
    			<?php do_action( 'bp_after_member_plugin_template' ); ?>
    
    	</div><!-- #main-column -->
    	<?php get_sidebar( 'buddypress' ); ?>
    </div><!-- #sidebar-squeeze -->

    Hope this helps others with the same issue.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Events Manager] Changing layout of the profile tabs w/ buddypress’ is closed to new replies.