Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/21/2011 01:05:56 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Bring the sitewide search back to life. Code clean up. Trap instances where catchuri would return incomplete matches. Use home_url instead of site_url in some places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-update.php

    r3777 r3796  
    232232            $blogs_slug = constant( 'BP_BLOGS_SLUG' );
    233233        else
    234             $blogs_slug = __( 'blogs', 'buddypress' );
     234            $blogs_slug = 'blogs';
    235235
    236236        if ( !defined( 'BP_ENABLE_MULTIBLOG' ) && is_multisite() )
     
    615615
    616616                    <?php if ( !$template_pack_installed ) : ?>
     617
    617618                        <p><label><input type="radio" name="theme" value="manual_wp" disabled="disabled" /> <?php _e( 'You must first install the BuddyPress template pack before choosing this option', 'buddypress' ) ?></label></p>
    618619                        <p><a id="bp-template-pack" class="thickbox onclick button" href="http://buddypressorg.dev/wp-admin/plugin-install.php?tab=plugin-information&plugin=bp-template-pack&TB_iframe=true&width=640&height=500">+ <?php _e( 'Install Now', 'buddypress' ) ?></a></p>
     620
    619621                    <?php else : ?>
     622
    620623                        <p><label><input type="radio" name="theme" value="manual_wp" /> <?php _e( 'Choose this option (go to Appearance &rarr; BP Compatibility after setup is complete)', 'buddypress' ) ?></label></p>
    621624                        <p><a id="bp-template-pack" class="button installed disabled" href="javascript:void();"><span></span><?php _e( 'Plugin Installed', 'buddypress' ) ?></a></p>
     625
    622626                    <?php endif; ?>
     627
    623628                </td>
    624629            </tr>
     
    649654                </td>
    650655            </tr>
     656
     657            <tr>
     658                <th>
     659                    <h5><?php _e( 'Do Not Change Theme', 'buddypress' ) ?></h5>
     660                    <img src="<?php echo plugins_url( '/buddypress/bp-core/images/existing.jpg' ) ?>" alt="bp-default" />
     661                </th>
     662                <td>
     663                    <p><?php _e( "You are happy with your current theme and plan on changing it later.", 'buddypress' ) ?></p>
     664                    <p><strong><?php _e( 'This is the best choice if you have a highly customized theme on your site already, and want to manually integrate BuddyPress into your site over time.', 'buddypress' ) ?></strong></p>
     665
     666                    <p><label><input type="radio" name="theme" value="do_not_change" /><?php _e( 'Choose this option', 'buddypress' ) ?></label></p>
     667
     668                </td>
     669            </tr>
    651670        </table>
    652671
     
    868887                    <div id="message" class="updated fade"><p>
    869888
    870                     <?php
    871                         _e( 'Oops, there was a problem creating a configuration file. ', 'buddypress' );
    872 
    873                         if ( $iis7_permalinks ) {
    874                             if ( $permalink_structure && ! $usingpi && ! $writable ) {
    875                                 _e( 'If your <code>web.config</code> file were <a href="http://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn&#8217;t so this is the url rewrite rule you should have in your <code>web.config</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all. Then insert this rule inside of the <code>/&lt;configuration&gt;/&lt;system.webServer&gt;/&lt;rewrite&gt;/&lt;rules&gt;</code> element in <code>web.config</code> file.' )
    876                                 ?><br /><br /><textarea rows="9" class="large-text readonly" style="background: #fff;" name="rules" id="rules" readonly="readonly"><?php echo esc_html($wp_rewrite->iis7_url_rewrite_rules()); ?></textarea></p><?php
    877                             } else if ( $permalink_structure && ! $usingpi && $writable )
    878                                 _e( 'Permalink structure updated. Remove write access on web.config file now!' );
    879                         } else {
    880                             _e( 'If your <code>.htaccess</code> file were <a href="http://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn&#8217;t so these are the mod_rewrite rules you should have in your <code>.htaccess</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all.' );
    881                             ?><br /><br /><textarea rows="6" class="large-text readonly" style="background: #fff;" name="rules" id="rules" readonly="readonly"><?php echo esc_html($wp_rewrite->mod_rewrite_rules()); ?></textarea><?php
    882                         }
    883                     ?>
    884 
    885                     <br /><br />
    886 
    887                     <?php
    888                         if ( empty( $iis7_permalinks ) )
    889                             _e( 'Paste all these rules into a new <code>.htaccess</code> file in the root of your WordPress installation and save the file. Once you\'re done, please hit the "Save and Next" button to continue.', 'buddypress' );
    890                     ?>
     889                        <?php
     890                            _e( 'Oops, there was a problem creating a configuration file. ', 'buddypress' );
     891
     892                            if ( $iis7_permalinks ) {
     893
     894                                if ( $permalink_structure && ! $usingpi && ! $writable ) {
     895
     896                                    _e( 'If your <code>web.config</code> file were <a href="http://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn&#8217;t so this is the url rewrite rule you should have in your <code>web.config</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all. Then insert this rule inside of the <code>/&lt;configuration&gt;/&lt;system.webServer&gt;/&lt;rewrite&gt;/&lt;rules&gt;</code> element in <code>web.config</code> file.' ); ?>
     897
     898                                    <br /><br />
     899                               
     900                                    <textarea rows="9" class="large-text readonly" style="background: #fff;" name="rules" id="rules" readonly="readonly"><?php echo esc_html( $wp_rewrite->iis7_url_rewrite_rules() ); ?></textarea>
     901                               
     902                                <?php
     903
     904                                } else if ( $permalink_structure && ! $usingpi && $writable ); {
     905
     906                                        _e( 'Permalink structure updated. Remove write access on web.config file now!' );
     907                                }
     908
     909                            } else {
     910
     911                                _e( 'If your <code>.htaccess</code> file were <a href="http://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn&#8217;t so these are the mod_rewrite rules you should have in your <code>.htaccess</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all.' ); ?>
     912
     913                                <br /><br />
     914                               
     915                                <textarea rows="6" class="large-text readonly" style="background: #fff;" name="rules" id="rules" readonly="readonly"><?php echo esc_html( $wp_rewrite->mod_rewrite_rules() ); ?></textarea>
     916
     917                            <?php } ?>
     918
     919                        <br /><br />
     920
     921                        <?php
     922                            if ( empty( $iis7_permalinks ) )
     923                                _e( 'Paste all these rules into a new <code>.htaccess</code> file in the root of your WordPress installation and save the file. Once you\'re done, please hit the "Save and Next" button to continue.', 'buddypress' );
     924                        ?>
    891925
    892926                    </p></div>
Note: See TracChangeset for help on using the changeset viewer.