Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'events template'

Viewing 25 results - 76 through 100 (of 102 total)
  • Author
    Search Results
  • #60189
    David Lewis
    Participant

    Well… the new default theme is pretty different from the old default theme. The templates are structured in a completely new (and better) way. I had built a child theme off the old default… and it took a fair bit of work to get the same child theme working with the new default. I imagine that any plugin which relied on you adding a folder full of template to your theme (like bp-events for instance) will have some issues with BP1.2 and the default theme. Unless the compatibility thing Andy is talking about will address that too.

    #59966

    In reply to: h-mag.com

    Simon Dabkowski
    Participant

    @redyor tx! I build the Classifieds plugin by doing some heavy modification to the BP Events plugin.

    @Ted Tx again :) The JQuery for the filter effect is based off of http://www.newmediacampaigns.com/page/a-jquery-plugin-to-create-an-interactive-filterable-portfolio-like-ours

    @Michael Berra Because every plugin is custom build for the h-mag template, I can’t release any of the plugins.

    The calendar for BP Events plugin is based off of http://arshaw.com/fullcalendar/

    #59916
    David Lewis
    Participant

    I’m aware of that plugin. But bp-events is the only events plugin that integrates with BuddyPress. With bp-events you can invite friends, associate events with groups, etc. Very different animal.

    Anyway… I haven’t quite given up… but I’m close to it. The new default theme is structured very differently from the old. I understand how it’s organized… such that the main template folder for your component just houses the directory and single views… while the templates for member’s stuff (i.e. your groups, your events, your blogs, etc.) are in “/member/single/…” … and there is only one loop which is loaded below the tabbed navigation via AJAX. I get all that. But trying to re-factor the old bp-events templates to work that way is causing me great pain. LOL. By the time I figure it out… Erwin may have resurfaced and released an update.

    All I know is… my site cannot launch without this component. So at the moment anyway… I’m stuck with trying to hack the old bp-events or launching a 1.1 site with the old bp-events. Ergh :(

    #59805
    David Lewis
    Participant

    @dre Well… I’m not really much of a programmer. I’m more of a designer / frontend coder. But if I can get the templates for bp-events working with 1.2… I’ll share.

    #59765
    David Lewis
    Participant

    bp-events will work with 1.2 with some template modifications. I’ve been hacking it to work with the 1.2 default theme. I’m about 30% done. I’m starting to lose hope that it will be kept up to date however. The last commit was back in November… and the Trac site is down again. Of course… it’s the holidays right now… so if could just be that. But it seems to me like Erwin is either busy with other things (that probably pay better… LOL) or simply losing interest. Either way, it would be good to know so that perhaps someone else could take over the code. Events is a desperately needed feature of any community site.

    #59586
    javicarrasco
    Participant

    I have been doing some debugging. I have modified plugin.php to record how much time takes (using microtime) to execute every do_action() call.

    Look at the results following, it doesn’t look like a code performance problem of any plugin, or at least, it doesn’t happen every time.

    muplugins_loaded: 1.2E-5,

    plugins_loaded,

    _auth_cookie_malformed: 1.5E-5,

    _auth_cookie_valid: 1.4E-5,

    _set_current_user: 0.000413,

    _xprofile_setup_globals: 1.4E-5,

    _bp_core_setup_globals: 1.4E-5,

    _bp_activity_setup_globals: 1.2E-5,

    _bp_blogs_setup_globals: 1.3E-5,

    _bp_forums_setup: 1.4E-5,

    _friends_setup_globals: 1.3E-5,

    _groups_setup_globals: 1.4E-5,

    _messages_setup_globals: 1.4E-5,

    _bp_wire_setup_globals: 1.3E-5,

    _xprofile_setup_globals: 1.3E-5,

    _bp_status_setup_globals: 1.3E-5,

    _events_setup_globals: 1.7E-5,

    _bp_activity_setup_nav: 1.8E-5,

    _bp_blogs_setup_nav: 1.9E-5,

    _bp_blogs_register_activity_actions: 1.7E-5,

    _friends_register_activity_actions: 1.7E-5,

    _groups_setup_nav: 1.8E-5,

    _groups_register_activity_actions: 1.6E-5,

    _messages_setup_nav: 1.7E-5,

    _bp_wire_setup_nav: 1.6E-5,

    _xprofile_setup_nav: 1.7E-5,

    _xprofile_register_activity_actions: 1.6E-5,

    _bp_status_register_activity_actions: 1.6E-5,

    _events_setup_nav: 1.8E-5

    : -0.674134,

    sanitize_comment_cookies: 0.000702,

    setup_theme: 6.4E-5,

    init,

    _widgets_init: 0.013721,

    _wp_ajax_: 2.3E-5

    : 0.137118,

    posts_selection: 2.0E-5,

    friends_setup_nav: 2.20000000001E-5,

    xprofile_screen_display_profile: 3.99999999999E-5,

    template_redirect,

    _switch_blog: 2.3E-5,

    _switch_blog: 2.0E-5

    : 0.00442,

    get_header: 2.89999999999E-5,

    wp_head,

    _wp_enqueue_scripts: 0.002232,

    _wp_print_styles: 0.001407,

    _wp_print_scripts: 0.000719,

    _wp_print_scripts: 0.000699,

    _wp_print_scripts: 0.000655,

    _signup_header: 5.5E-5,

    _wp_print_styles: 0.001295,

    _wp_print_styles: 0.001268

    : 0.0585,

    posts_selection: 2.49999999999E-5,

    posts_selection: 3.1E-5,

    get_sidebar: 3.6E-5,

    get_footer: 3.0E-5,

    wp_footer,

    _bp_adminbar_logo: 0.000711,

    _bp_adminbar_menus,

    __switch_blog: 3.29999999999E-5,

    __switch_blog: 3.30000000001E-5,

    __bp_adminbar_random_menu: 3.00000000001E-5

    _: 0.031586,

    _wp_print_footer_scripts: 2.6E-5

    : 0.068475

    Mariusooms
    Participant

    bp-invitefriends is not activated yet, I still need to style it to match bp-defaut…I ported it over on a different theme. I probably just use the templates from the original and see how well they hold up.

    As far as bp-events, I would suggest wp repository, that’s what I have installed on the Sandbox. I had set up a trac for it on my Dreamhost account, but they completely destroyed it while they “Upgraded” their services. I upgraded too and moved to HostGator, what a headache that was. In any case Erwin has setup a trac on his site I believe and he is continuing development.

    My time is very limited, so I have to pick carefully what I do and not do. The basic strucure for bp-events works great and that was my intent to develop. With a bit of help from the community that plugin should reach a greater height.

    By the way…I stopped by jobsee.kr. Great play on words and a nice design. I like the logo as well. So thumbs up.

    #57653

    In reply to: h-mag.com

    David Lewis
    Participant

    p.s. re: my custom template tag above to show the start dates in the directory view… I just clued in and realized that I should be doing this in the functions.php file rather than hacking Erwin’s plugin. So here’s the function to add to the functions.php file of your theme.

    function bp_the_site_event_date_start() {
    echo bp_get_the_site_event_date_start();
    }
    function bp_get_the_site_event_date_start() {
    global $site_events_template;

    return apply_filters( 'bp_get_the_site_event_date_start', date( ('l M j - Y'), $site_events_template->event->date_start ) );
    }
    add_action( 'plugins_loaded', 'bp_the_site_event_date_start');

    Then in the event directory loop template in your theme, just call it like this

    <?php p_get_the_site_event_date_start() ?>

    #56882

    In reply to: h-mag.com

    David Lewis
    Participant

    @simoncreative: Just to clarify… I am NOT part of the bp-events team. I just made up that little template tag function on my own. So I don’t know for sure if it will make it into the trunk or not. Keep that in mind when updating bp-events. This is my own personal little “hack”. When I mentioned it to Erwin, he seemed to think that such a template tag function already exists. But I checked and double-checked and said function does not exist.

    #56802

    In reply to: h-mag.com

    David Lewis
    Participant

    Nice. Good to see someone do some real theme work (not just colors).

    Are you using bp-events? The latest trunk lists the directory view by date. Much better than by active. I also added a tiny function to bp-events-templatetags.php to display event dates in the directory. I imagine this will show up in the trunk eventually. Probably just an oversight not to have a site event start date function.

    function bp_the_site_event_date_start() {
    echo bp_get_the_site_event_date_start();
    }
    function bp_get_the_site_event_date_start() {
    global $site_events_template;

    return apply_filters('bp_get_the_site_event_date_start',
    date(('l M j - Y'), $site_events_template->event->date_start));
    }

    Of course, you could use whatever date format you like. I happen to like “l M j – Y”.

    In your directory loop you’d just use this to display:

    <?php bp_the_site_event_date_start() ?>

    #56389
    Sven Lehnert
    Participant

    @ John James Jacoby,

    I had a look in the bp-events-avatar.php to understand more what’s going on there.

    I’m thinking the avatar part could be like it is now.

    It would be enough, if the original resized image would be available.

    I did some changes to the bp-events-avatar.php and make a plugin from it.

    For the moment, I will use the modified functions in custom components until you offer a better way to do it. I think it would be really great if the original resized image would be saved by the core.

    Be careful!

    This Plugin is just a play around on a fun buddypress installation.

    <?php
    /*
    Plugin Name:bp-events-avatar
    Description: This plugin add a template tag bp_event_flyer() to display the event flyer
    Version: 0.0.1
    License: GPL
    */

    function bp_event_flyer( $args = '' ) {
    echo bp_get_event_flyer( $args );
    }
    function bp_get_event_flyer( $args = '' ) {
    global $bp, $events_template;

    $defaults = array(
    'type' => 'org',
    'width' => 'auto',
    'height' => 'auto',
    'class' => 'avatar',
    'id' => false,
    'alt' => __( 'Event avatar', 'bp-events' )
    );

    $r = wp_parse_args( $args, $defaults );
    extract( $r, EXTR_SKIP );

    /* Fetch the avatar from the folder, if not provide backwards compat. */
    if ( !$avatar = bp_event_fetch_avatar( array( 'item_id' => $events_template->event->id, 'object' => 'event', 'type' => $type, 'avatar_dir' => 'event-avatars', 'alt' => $alt, 'css_id' => $id, 'class' => $class, 'width' => $width, 'height' => $height ) ) )
    $avatar = '<img src="' . attribute_escape( $events_template->event->avatar_thumb ) . '" class="avatar" alt="' . attribute_escape( $events_template->event->name ) . '" />';

    return apply_filters( 'bp_get_event_flyer', $avatar );
    }

    /*
    Based on contributions from: Beau Lebens - http://www.dentedreality.com.au/
    Modified for BuddyPress by: Andy Peatling - http://apeatling.wordpress.com/
    */

    /***
    * Set up the constants we need for avatar support
    */

    if ( !defined( 'BP_AVATAR_THUMB_WIDTH' ) )
    define( 'BP_AVATAR_THUMB_WIDTH', 50 );

    if ( !defined( 'BP_AVATAR_THUMB_HEIGHT' ) )
    define( 'BP_AVATAR_THUMB_HEIGHT', 50 );

    if ( !defined( 'BP_AVATAR_FULL_WIDTH' ) )
    define( 'BP_AVATAR_FULL_WIDTH', 150 );

    if ( !defined( 'BP_AVATAR_FULL_HEIGHT' ) )
    define( 'BP_AVATAR_FULL_HEIGHT', 150 );

    if ( !defined( 'BP_AVATAR_ORIGINAL_MAX_WIDTH' ) )
    define( 'BP_AVATAR_ORIGINAL_MAX_WIDTH', 450 );

    if ( !defined( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE' ) )
    define( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', get_site_option( 'fileupload_maxk' ) * 1024 );

    if ( !defined( 'BP_AVATAR_DEFAULT' ) )
    define( 'BP_AVATAR_DEFAULT', BP_PLUGIN_URL . '/bp-xprofile/images/none.gif' );

    if ( !defined( 'BP_AVATAR_DEFAULT_THUMB' ) )
    define( 'BP_AVATAR_DEFAULT_THUMB', BP_PLUGIN_URL . '/bp-xprofile/images/none-thumbnail.gif' );

    function bp_event_fetch_avatar( $args = '' ) {
    global $bp, $current_blog;

    $defaults = array(
    'item_id' => false,
    'object' => 'user', // user OR group OR blog OR custom type (if you use filters)
    'type' => 'thumb',
    'avatar_dir' => false,
    'width' => false,
    'height' => false,
    'class' => 'avatar',
    'css_id' => false,
    'alt' => __( 'Avatar Image', 'buddypress' ),
    'no_grav' => false // If there is no avatar found, return false instead of a grav?
    );

    $params = wp_parse_args( $args, $defaults );
    extract( $params, EXTR_SKIP );

    if ( !$item_id ) {
    if ( 'user' == $object )
    $item_id = $bp->displayed_user->id;
    else if ( 'group' == $object )
    $item_id = $bp->groups->current_group->id;
    else if ( 'blog' == $object )
    $item_id = $current_blog->id;

    $item_id = apply_filters( 'bp_core_avatar_item_id', $item_id, $object );

    if ( !$item_id ) return false;
    }

    if ( !$avatar_dir ) {
    if ( 'user' == $object )
    $avatar_dir = 'avatars';
    else if ( 'group' == $object )
    $avatar_dir = 'group-avatars';
    else if ( 'blog' == $object )
    $avatar_dir = 'blog-avatars';

    $avatar_dir = apply_filters( 'bp_core_avatar_dir', $avatar_dir, $object );

    if ( !$avatar_dir ) return false;
    }

    if ( !$css_id )
    $css_id = $object . '-' . $item_id . '-avatar';

    if ( $width )
    $html_width = " width='{$width}'";
    else
    $html_width = ( 'thumb' == $type ) ? ' width="' . BP_AVATAR_THUMB_WIDTH . '"' : ' width="' . BP_AVATAR_FULL_WIDTH . '"';

    if ( $height )
    $html_height = " height='{$height}'";
    else
    $html_height = ( 'thumb' == $type ) ? ' height="' . BP_AVATAR_THUMB_HEIGHT . '"' : ' height="' . BP_AVATAR_FULL_HEIGHT . '"';

    $avatar_folder_url = apply_filters( 'bp_core_avatar_folder_url', get_blog_option( BP_ROOT_BLOG, 'siteurl' ) . '/' . basename( WP_CONTENT_DIR ) . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );
    $avatar_folder_dir = apply_filters( 'bp_core_avatar_folder_dir', WP_CONTENT_DIR . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );

    /* If no avatars have been uploaded for this item, display a gravatar */
    if ( !file_exists( $avatar_folder_dir ) && !$no_grav ) {

    if ( empty( $bp->grav_default->{$object} ) )
    $default_grav = 'wavatar';
    else if ( 'mystery' == $bp->grav_default->{$object} )
    $default_grav = BP_PLUGIN_URL . '/bp-core/images/mystery-man.jpg';
    else
    $default_grav = $bp->grav_default->{$object};

    if ( $width ) $grav_size = $width;
    else if ( 'full' == $type ) $grav_size = BP_AVATAR_FULL_WIDTH;
    else if ( 'thumb' == $type ) $grav_size = BP_AVATAR_THUMB_WIDTH;

    if ( 'user' == $object ) {
    $ud = get_userdata( $item_id );
    $grav_email = $ud->user_email;
    } else if ( 'group' == $object || 'blog' == $object ) {
    $grav_email = "{$item_id}-{$object}@{$bp->root_domain}";
    }

    $grav_email = apply_filters( 'bp_core_gravatar_email', $grav_email, $item_id, $object );
    $gravatar = apply_filters( 'bp_gravatar_url', 'https://secure.gravatar.com/avatar/' ) . md5( $grav_email ) . '?d=' . $default_grav . '&s=' . $grav_size;

    return apply_filters( 'bp_core_fetch_avatar', "<img src='{$gravatar}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params );

    } else if ( !file_exists( $avatar_folder_dir ) && $no_grav )
    return false;

    /* Set the file names to search for to select the full size or thumbnail image. */
    $avatar_name = ( 'org' == $type ) ? '-bporg' : '-bpthumb';
    $avatar_name = ( 'full' == $type ) ? '-bpfull' : $avatar_name;
    $legacy_user_avatar_name = ( 'full' == $type ) ? '-avatar2' : '-avatar1';
    $legacy_group_avatar_name = ( 'full' == $type ) ? '-groupavatar-full' : '-groupavatar-thumb';

    if ( $av_dir = opendir( $avatar_folder_dir ) ) {
    while ( false !== ( $avatar_file = readdir($av_dir) ) ) {
    if ( preg_match( "/{$avatar_name}/", $avatar_file ) || preg_match( "/{$legacy_user_avatar_name}/", $avatar_file ) || preg_match( "/{$legacy_group_avatar_name}/", $avatar_file ) )
    $avatar_url = $avatar_folder_url . '/' . $avatar_file;
    }
    }
    closedir($av_dir);

    return apply_filters( 'bp_core_fetch_avatar', "<img src='{$avatar_url}' alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height} />", $params );
    }

    function bp_events_delete_existing_avatar( $args = '' ) {
    global $bp;

    $defaults = array(
    'item_id' => false,
    'object' => 'user', // user OR group OR blog OR custom type (if you use filters)
    'avatar_dir' => false
    );

    $args = wp_parse_args( $args, $defaults );
    extract( $args, EXTR_SKIP );

    if ( !$item_id ) {
    if ( 'user' == $object )
    $item_id = $bp->displayed_user->id;
    else if ( 'group' == $object )
    $item_id = $bp->groups->current_group->id;
    else if ( 'blog' == $object )
    $item_id = $current_blog->id;

    $item_id = apply_filters( 'bp_core_avatar_item_id', $item_id, $object );

    if ( !$item_id ) return false;
    }

    if ( !$avatar_dir ) {
    if ( 'user' == $object )
    $avatar_dir = 'avatars';
    else if ( 'group' == $object )
    $avatar_dir = 'group-avatars';
    else if ( 'blog' == $object )
    $avatar_dir = 'blog-avatars';

    $avatar_dir = apply_filters( 'bp_core_avatar_dir', $avatar_dir, $object );

    if ( !$avatar_dir ) return false;
    }

    if ( 'user' == $object ) {
    /* Delete any legacy meta entries if this is a user avatar */
    delete_usermeta( $item_id, 'bp_core_avatar_v1_path' );
    delete_usermeta( $item_id, 'bp_core_avatar_v1' );
    delete_usermeta( $item_id, 'bp_core_avatar_v2_path' );
    delete_usermeta( $item_id, 'bp_core_avatar_v2' );
    }

    $avatar_folder_dir = apply_filters( 'bp_core_avatar_folder_dir', WP_CONTENT_DIR . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );

    if ( !file_exists( $avatar_folder_dir ) )
    return false;

    if ( $av_dir = opendir( $avatar_folder_dir ) ) {
    while ( false !== ( $avatar_file = readdir($av_dir) ) ) {
    if ( ( preg_match( "/-bpfull/", $avatar_file ) || preg_match( "/-bpthumb/", $avatar_file ) || preg_match( "/-bporg/", $avatar_file ) ) && '.' != $avatar_file && '..' != $avatar_file )
    @unlink( $avatar_folder_dir . '/' . $avatar_file );
    }
    }
    closedir($av_dir);

    @rmdir( $avatar_folder_dir );

    do_action( 'bp_core_delete_existing_avatar', $args );

    return true;
    }

    function bp_events_avatar_handle_crop( $args = '' ) {
    global $bp;
    $defaults = array(
    'object' => 'user',
    'avatar_dir' => 'avatars',
    'item_id' => false,
    'original_file' => false,
    'crop_w' => BP_AVATAR_FULL_WIDTH,
    'crop_h' => BP_AVATAR_FULL_HEIGHT,
    'crop_x' => 0,
    'crop_y' => 0
    );

    $r = wp_parse_args( $args, $defaults );
    extract( $r, EXTR_SKIP );

    if ( !$original_file )
    return false;

    if ( !file_exists( WP_CONTENT_DIR . '/' . $original_file ) )
    return false;

    if ( !$item_id )
    $avatar_folder_dir = apply_filters( 'bp_core_avatar_folder_dir', WP_CONTENT_DIR . dirname( $original_file ), $item_id, $object, $avatar_dir );
    else
    $avatar_folder_dir = apply_filters( 'bp_core_avatar_folder_dir', WP_CONTENT_DIR . '/blogs.dir/' . BP_ROOT_BLOG . '/files/' . $avatar_dir . '/' . $item_id, $item_id, $object, $avatar_dir );

    if ( !file_exists( $avatar_folder_dir ) )
    return false;

    require_once( ABSPATH . '/wp-admin/includes/image.php' );
    require_once( ABSPATH . '/wp-admin/includes/file.php' );

    /* Delete the existing avatar files for the object */
    bp_core_delete_existing_avatar( array( 'object' => $object, 'avatar_path' => $avatar_folder_dir ) );

    /* Make sure we at least have a width and height for cropping */
    if ( !(int)$crop_w )
    $crop_w = BP_AVATAR_FULL_WIDTH;

    if ( !(int)$crop_h )
    $crop_h = BP_AVATAR_FULL_HEIGHT;

    /* Set the full and thumb filenames */
    $full_filename = wp_hash( $original_file . time() ) . '-bpfull.jpg';
    $thumb_filename = wp_hash( $original_file . time() ) . '-bpthumb.jpg';
    $org_filename = wp_hash( $original_file . time() ) . '-bporg.jpg';

    /* Crop the image */
    $full_cropped = wp_crop_image( WP_CONTENT_DIR . $original_file, (int)$crop_x, (int)$crop_y, (int)$crop_w, (int)$crop_h, BP_AVATAR_FULL_WIDTH, BP_AVATAR_FULL_HEIGHT, false, $avatar_folder_dir . '/' . $full_filename );
    $thumb_cropped = wp_crop_image( WP_CONTENT_DIR . $original_file, (int)$crop_x, (int)$crop_y, (int)$crop_w, (int)$crop_h, BP_AVATAR_THUMB_WIDTH, BP_AVATAR_THUMB_HEIGHT, false, $avatar_folder_dir . '/' . $thumb_filename );
    rename (WP_CONTENT_DIR . $original_file, $avatar_folder_dir . '/' . $org_filename );
    /* Remove the original */
    @unlink( WP_CONTENT_DIR . $original_file );

    return true;
    }
    ?>

    #52993

    In reply to: New Groupblog Plugin

    Mariusooms
    Participant

    As promised…for now it means changing the code inside the plugin as follows:

    * Find this function groupblog_screen_blog() in bp-events.php (somewhere towards the bottom)

    * Uncomment that whole function.

    * Replace it with the following function:

    function groupblog_screen_blog() {
    global $bp;

    if ( $bp->current_component == $bp->groups->slug && 'blog' == $bp->current_action ) {

    bp_core_load_template( apply_filters( 'groupblog_screen_blog', 'groupblog/blog' ) );
    }
    }
    add_action( 'wp', 'groupblog_screen_blog', 4 );

    * Create a folder in your active theme directory named ‘groupblog’.

    * Then create your template file (in this case ‘blog.php’) in the groupblog folder.

    Send me a message if you run into problems :)

    The basic difference is that in this function we use bp_core_load_template to load our template file and fire an add_action to register this function.

    #52054
    Matt Kern
    Participant

    Well, actually. No… haha

    Its good info and it will definitely be used but my actual question here was how to make that main page without having to add it to the themes folder.

    Like how the events plugin adds all its files to the bp-themes folder.

    I guess it doesn’t matter which directory we add the files to but all the plugins I have seen are adding the files to the bp-themes directory so I guess I am just wanting to be a sheeple on this topic.

    After reading your last post, it seems like I am looking for something like this:

    bp_member_load_template( ‘fun’, true );

    does anything like that exist? I am looking thru the event code but there is quite a lot of it so its slow going.

    r-a-y
    Keymaster

    – Understanding how these 3 pages works in general. Do they belong to the bp-member or bp-home theme or both.

    They are styled in the bpmember theme, which is a BuddyPress theme.

    The bphome theme is a WordPress theme.

    – Figuring out how I create a copy of lets say the Member page, then give that page an entire new name/slug.

    Not sure about creating interior BP pages… I know certain BP plugins create their own slug and pages (eg. bpEvents, bpContents).

    But depending on what type of page you are planning on creating, I would just create a new page in WP and assign a WP page template that is setup almost identical to the bpmember component in question. This would be the easiest route if you want total control of the page.

    However, before you do, you might want to consult with a mod who has more experience with BP than I do! :)

    #48993
    Erwin Gerrits
    Participant

    Also, upgrade to latest trunk version of bp-events if you’re running BP 1.0.2… some template file constants have changed…

    #48992
    Erwin Gerrits
    Participant

    Are your theme files in wp-content/bp-themes/bpmember? It sounds like they are in some other place. These are template related errors, usually the template files are in the wrong directory (they have to be OUT of buddypress dir), or the permissions are set wrong.

    #48964
    Burt Adsit
    Participant

    Did you move the plugin theme templates to your active theme?

    #47358
    3138633
    Inactive

    I follow all the steps but I have this error:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6 bytes) in /home/web/universita.ws/home/b/wp-admin/includes/template.php on line 2963

    #46587
    David Lewis
    Participant

    I just did a quick test. In the home theme at least (wp-content/themes/bphome/header.php) the global nav at the top is already hardcoded. So it’s dead easy to hide the groups and members links simply by wrapping it with this:

    <?php if(is_user_logged_in()): ?>

    [ links for logged in users only go here ]

    <?php endif; ?>

    In my template, the “groups” and “members” links appear on lines 48-53.

    Note that the last item in the navigation is:

    <?php do_action( 'bp_nav_items' ); ?>This function could pulling in more navigation links if you are using any plugins… like bp-events for instance.

    That said… I like the solution in this thread much better.

    https://buddypress.org/forums/topic.php?id=1651&page=2

    The “solution” above is very “low tech” and in fact, isn’t really a solution since it doesn’t actually restrict access… it just hides some links. Probably not a good way to go. You could probably still get into a group by… let’s say… clicking on someone’s profile link and then clicking on a link to a group they are a member of.

    #43810
    Roy McKenzie
    Participant

    Also, not using All-in-One SEO. Should I create a different header include?

    The events page…that might be a bug in the version of the plug-in I’m using. It’s not meant for live sites but works ok enough at this point.

    The TubePress plug-in is available site-wide. All I had to do was activate it site-wide.

    #43807
    enlightenmental1
    Participant

    that’s weird… any other WP pages using that template? like the blog page?

    try throwing this into the page

    <?php the_title(); ?>

    see what it returns

    using all-in-one-SEO ? all filled in?

    I notice your events page has no title… only “ModestoBuzz — “

    tubepress: is this just for admin, or have you modified to work sitewide for all users?

    looks interesting

    #43139
    auwagner
    Participant

    Jeff, thanks for responding…

    1) Fairly vanilla means i have only buddypress, plus 2 other plugins. I’m running the latest WPMU (2.7)

    2) Trunk is 1324

    3) bp-events and eg-twitter

    4) This was a fresh install of the trunk, so no upgrade. It’s an environment that I created to test things. I have moved over activate, register, plugin-sidebar and plugin-template to my new theme’s home directory, plus the 3 functions in functions.php. Is there anything else I should do for a customized HOME theme?

    5) I’ve read them a ridiculous amount of times :) changes to htaccess, bp-core-avatars haven’t worked unfortunately

    Permissions are 755 on the blogs.dir folders. I’m just combing through to see if I missed anything. I have deactivated all the plugins and i’m still looking around.

    #42109
    Erwin Gerrits
    Participant

    @zeitweise

    Make sure the “description” field is filled in when editing existing events — I haven’t found out yet why the description field is not filled in with whatever was in that field when editing an event — it’ll be blank, and so being a required field, will give an error trying to save it with a blank value. Can someone figure out WHY the description isn’t being put into the edit-settings screen? (That’s in events-admin.php in the members template folder — calls bp_event_description() which SHOULD work returning the description….)

    #41613
    Simon
    Participant

    @Timothy, I believe Erwin is currently battling with the recently updated group template directory structure changes and thus 0.54 does not work fully with the trunk version of BuddyPress. 0.55 will work with trunk build but there is no eta yet.

    #39481
    Erwin Gerrits
    Participant

    @burkie,

    make sure you have the latest trunk version of buddypress (or at least 1164 I believe) installed, particularly bp-core-templatetags.php.

Viewing 25 results - 76 through 100 (of 102 total)
Skip to toolbar