- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-forums/bp-forums-admin.php
r3186 r4068 12 12 <p><?php _e( 'Settings Saved.', 'buddypress' ) ?></p> 13 13 </div> 14 <?php endif; ?> 15 16 <?php 14 <?php endif; 17 15 18 16 if ( isset( $_REQUEST['reinstall'] ) || !bp_forums_is_installed_correctly() ) { 19 17 update_site_option( 'bb-config-location', false ); 20 18 bp_forums_bbpress_install_wizard(); 21 } else { ?> 22 <p><?php printf( __( 'bbPress forum integration in BuddyPress has been set up correctly. If you are having problems you can <a href="%s" title="Reinstall bbPress">re-install</a>', 'buddypress' ), site_url( 'wp-admin/admin.php?page=bb-forums-setup&reinstall=1' ) ); ?> 19 } else { 20 $reinstall = network_admin_url( 'admin.php?page=bb-forums-setup&reinstall=1' ); ?> 21 22 <p><?php printf( __( 'bbPress forum integration in BuddyPress has been set up correctly. If you are having problems you can <a href="%s" title="Reinstall bbPress">re-install</a>', 'buddypress' ), $reinstall ); ?> 23 23 <p><?php _e( 'NOTE: The forums directory will only work if your bbPress tables are in the same database as your WordPress tables. If you are not using an existing bbPress install you can ignore this message.', 'buddypress' ) ?></p> 24 24 25 <?php 25 26 } … … 30 31 31 32 function bp_forums_bbpress_install_wizard() { 32 $post_url = site_url( 'wp-admin/admin.php?page=bb-forums-setup' );33 $post_url = network_admin_url( 'admin.php?page=bb-forums-setup' ); 33 34 34 35 switch( $_REQUEST['step'] ) { … … 68 69 // Just write the contents to screen 69 70 _e( 'A configuration file could not be created. No problem, but you will need to save the text shown below into a file named <code>bb-config.php</code> in the root directory of your WordPress installation before you can start using the forum functionality.', 'buddypress' ); 70 ?>< code style="display:block; margin-top: 30px;"><pre><?php echo htmlspecialchars( $result ) ?></pre></code><?php71 ?><br /><textarea cols="110" rows="50" style="margin: 10px 0 50px 0;"><?php echo htmlspecialchars( $result ) ?></textarea><?php 71 72 break; 72 73 }
Note: See TracChangeset
for help on using the changeset viewer.