<?php else : ?> <div id="message" class="info"> <p><?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not <a href='%s'>create a new group</a>? Once you have joined or created the group you can post your topic in that group's forum.", 'buddypress' ), site_url( BP_GROUPS_SLUG . '/create/' ) ) ?></p> </div> <?php endif; ?> <?php endif; ?> </div><!-- #new-topic-post --> <form action="" method="post" id="forums-directory-form" class="dir-form"> <div class="item-list-tabs"> <ul> <li class="selected" id="forums-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Topics (%s)', 'buddypress' ), bp_get_forum_topic_count() ) ?></a></li> <?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?> <li id="forums-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/' ?>"><?php printf( __( 'My Topics (%s)', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> <?php endif; ?> <?php do_action( 'bp_forums_directory_group_types' ) ?> <li id="forums-order-select" class="last filter"> <?php _e( 'Order By:', 'buddypress' ) ?> <select> <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option> <option value="popular"><?php _e( 'Most Posts', 'buddypress' ) ?></option> <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ) ?></option>
<?php do_action('bp_before_directory_blogs_content'); ?> <div id="blog-dir-search" class="dir-search" role="search"> <?php bp_directory_blogs_search_form(); ?> </div><!-- #blog-dir-search --> <div class="item-list-tabs" role="navigation"> <ul> <li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?> /<?php bp_blogs_root_slug(); ?> "><?php printf(__('All Sites <span>%s</span>', 'buddypress'), bp_get_total_blog_count()); ?> </a></li> <?php if (is_user_logged_in() && bp_get_total_blog_count_for_user(bp_loggedin_user_id())) { ?> <li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_blogs_slug();
function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', empty($instance['title']) ? 'Blogs' : $instance['title']); ?> <?php echo $before_widget; echo $before_title . $title . $after_title; ?> <form action="" method="post" id="blogs-directory-form" class="dir-form"> <?php do_action('bp_before_directory_blogs_content'); ?> <div class="item-list-tabs"> <ul> <li class="selected menulist" id="blogs-all"><a href="<?php bp_root_domain(); ?> "><?php printf(__('All Blogs (%s)', 'buddypress'), bp_get_total_blog_count()); ?> </a></li> <?php if (is_user_logged_in() && bp_get_total_blog_count_for_user(bp_loggedin_user_id())) { ?> <li class="menulist" id="blogs-personal"> | <a href="<?php echo bp_loggedin_user_domain() . BP_BLOGS_SLUG . '/my-blogs/'; ?> "><?php printf(__('My Blogs (%s)', 'buddypress'), bp_get_total_blog_count_for_user(bp_loggedin_user_id())); ?> </a> </li> <?php } ?> <?php do_action('bp_blogs_directory_blog_types'); ?> <li id="blogs-order-select" class="last filter"> <?php _e('Order By:', 'buddypress'); ?> <select> <option value="active"><?php _e('Last Active', 'buddypress'); ?> </option> <option value="newest"><?php _e('Newest', 'buddypress'); ?> </option> <option value="alphabetical"><?php _e('Alphabetical', 'buddypress'); ?> </option> <?php do_action('bp_blogs_directory_order_options'); ?> </select> </li> </ul> </div> <div id="blogs-dir-list" class="blogs dir-list"> <?php locate_template(array('blogs/blogs-loop.php'), true); ?> </div> <?php do_action('bp_after_directory_blogs_content'); ?> <?php wp_nonce_field('directory_blogs', '_wpnonce-blogs-filter'); ?> </form> <?php echo $after_widget; }
"/> <?php if (bp_get_signup_allowed()) { ?> <input type="button" name="signup-submit" id="signup-submit" value="<?php _e('Sign Up', TEMPLATE_DOMAIN); ?> " onclick="location.href='<?php echo bp_signup_page(); ?> '" /> <?php } ?> <input type="hidden" name="redirect_to" value="<?php echo bp_root_domain(); ?> " /> <input type="hidden" name="testcookie" value="1" /> <?php do_action('bp_login_bar_logged_out'); ?> </form> <?php } else { ?> <div id="logout-link"> <?php bp_loggedin_user_avatar('width=30&height=30'); ?> <?php
<input type="hidden" name="redirect_to" value="<?php echo bp_root_domain(); ?> "/> <input type="hidden" name="testcookie" value="1" /> <small><a href="<?php echo bp_root_domain(); ?> /wp-login.php?action=lostpassword"><?php _e('Lost your password?', TEMPLATE_DOMAIN); ?> </a> | <a href="<?php echo bp_root_domain() . '/' . bp_get_root_slug('register') . '/'; ?> "><?php _e('Create a new account', TEMPLATE_DOMAIN); ?> </a></small> <?php do_action('bp_sidebar_login_form'); ?> </form> <?php do_action('bp_after_sidebar_login_form'); ?> <?php
<div id="content"> <div class="padder"> <form action="" method="post" id="galleries-directory-form" class="dir-form"> <h3><?php _e( 'Gallery Directory', 'bp-gallery' ) ?></h3> <?php do_action( 'bp_before_directory_gallery_content' ) ?> <div id="members-dir-search" class="dir-search"> <?php bp_directory_members_search_form() ?> </div><!-- #members-dir-search --> <div class="item-list-tabs"> <ul> <li class="selected" id="gallery-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Galleries (%s)', 'bp-gallery' ), bp_get_total_gallery_count_for_dir() ) ?></a></li> <?php if ( is_user_logged_in() && function_exists( 'gallery_total_gallery_for_user' ) ) : ?> <li id="gallery-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GALLERY_SLUG . '/my-galleries/' ?>"><?php printf( __( 'My Galleries (%s)', 'bp-gallery' ), gallery_total_gallery_for_user(bp_loggedin_user_id()) ) ?></a></li> <li id="gallery-groups"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/group-galleries/' ?>"><?php printf( __( 'My Group Galleries', 'bp-gallery' ) ) ?></a></li> <?php endif; ?> <?php do_action( 'bp_gallery_directory_member_types' ) ?> <li id="gallery-order-select" class="last filter"> <?php _e( 'Filter By:', 'bp-gallery' ) ?> <select><option value=""><?php _e( 'All Galleries', 'bp-gallery' ) ?></option> <option value="photo"><?php _e( 'Photo Gallery', 'bp-gallery' ) ?></option> <option value="audio"><?php _e( 'Audio Gallery', 'bp-gallery' ) ?></option> <option value="video"><?php _e( 'Video Gallery', 'bp-gallery' ) ?></option>
function bp_ning_import_finished_markup() { update_option('bp_ning_import_finished', 1); $already_sent = get_option('bp_ning_emails_sent'); $users = get_option('bp_ning_import_users'); $siteurl = get_option('siteurl'); $blogname = get_option('blogname'); $subject = "{$blogname} has a new home"; $emailtext = "Dear {$blogname} member,\n\nWe've moved!\n\nThe content of our old Ning community has been transferred to {$siteurl}. The new site is built on cool software called BuddyPress and WordPress, which is free and open source (unlike Ning!).\n\nA user name and password have been automatically created for you:\nUser name: %USERNAME%\nPassword: %PASSWORD%\n\nHead over to {$siteurl} and log in using this information. The first thing you'll want to do after logging in is to change your password to something more memorable. Go to My Account > Settings in the navigation bar at the top of the screen.\n\nEnjoy using the new {$blogname}!\n\nSincerely,\n\nThe folks at {$blogname}"; ?> <?php bp_ning_import_donate_message(); ?> <h3><?php _e('Notify your users', 'bp-ning-import'); ?> </h3> <?php if ($already_sent) { ?> <div id="message" class="updated fade below-h2"> <p><strong>Hey!</strong> It looks like you've already sent out an email notification to your new members. Click Continue at the bottom of the screen only if you're sure that you want to send it again.</p> </div> <?php } ?> <form method="post" action=""> <p>Your Ning content has been successfully imported into BuddyPress. Now it's time to let your community members know about the new site.</p> <p><strong>Don't want to send out an email yet?</strong> Want to take a minute to look around the site first? No problem - just visit the Dashboard > BuddyPress > Import from Ning page at any time in the future. The plugin will remember that you've already imported your content and bring you directly to this screen, so that you can send the notification email to your members.</p> <p>In the box below, you'll find some suggested text for the email. Feel free to modify it to suit your needs, but <strong>make sure you include %USERNAME% and %PASSWORD% somewhere in the text</strong>. The plugin will replace <strong>%USERNAME%</strong> and <strong>%PASSWORD%</strong> with the username and password of the recipient. Without this information, new users won't be able to log in.</p> <table class="form-table"> <tr> <th scope="row">Subject:</th> <td><input type="text" name="email-subject" id="email-subject" size="95" value="<?php echo $subject; ?> " /></td> </tr> <tr> <th scope="row">Email text:</th> <td><textarea rows=20 cols=60 id="email-text" name="email-text"><?php echo $emailtext; ?> </textarea></td> </tr> </table> <p>When you click on Send Emails, emails will be sent to the addresses listed below. <strong>Warning:</strong> Sending thousands of emails at the same time might get you marked as spam by some ISPs. If you've got many hundreds of members, you might consider letting them know manually. They can get their login name and password by using the "Forgot your password?" link on <a href="<?php echo bp_root_domain(); ?> /wp-login.php?action=lostpassword">the Lost Password</a> page.</p> <div class="submit"> <input class="button primary-button" type="submit" id='submit' name='submit' value="<?php _e('Send Emails'); ?> "> <input type="hidden" id="current_step" name="current_step" value="send_email" /> </div> <ul> <?php foreach ((array) $users['success'] as $user) { ?> <li><?php echo $user['user_name'] . " · " . $user['user_email']; ?> </li> <?php } ?> </ul> </form> <?php }