Hey,
ich würde gerne in folgenden Code ein paar Wörter einfügen, da ich auf meine AGBs verweisen will.
Jedoch funktioniert es nicht, da die Seite nach der Änderung nach wie vor genauso (unverändert) erscheint. Hab es auch schon mit dem echo Befehl probiert.
Wo muss ich genau hinschreiben, damit die PHP-Datei etwas ausgibt?
Alles anzeigen
ich würde gerne in folgenden Code ein paar Wörter einfügen, da ich auf meine AGBs verweisen will.
Jedoch funktioniert es nicht, da die Seite nach der Änderung nach wie vor genauso (unverändert) erscheint. Hab es auch schon mit dem echo Befehl probiert.
Wo muss ich genau hinschreiben, damit die PHP-Datei etwas ausgibt?
PHP-Quellcode
- <?php
- /** Sets up the WordPress Environment. */
- require( dirname(__FILE__) . '/wp-load.php' );
- add_action( 'wp_head', 'signuppageheaders' ) ;
- require( 'wp-blog-header.php' );
- require_once( ABSPATH . WPINC . '/registration.php' );
- if( is_array( get_site_option( 'illegal_names' )) && $_GET[ 'new' ] != '' && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
- wp_redirect( "http://{$current_site->domain}{$current_site->path}" );
- die();
- }
- function do_signup_header() {
- do_action("signup_header");
- }
- add_action( 'wp_head', 'do_signup_header' );
- function signuppageheaders() {
- echo "<meta name='robots' content='noindex,nofollow' />\n";
- }
- if( $current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path ) {
- wp_redirect( "http://" . $current_site->domain . $current_site->path . "wp-signup.php" );
- die();
- }
- function wpmu_signup_stylesheet() {
- ?>
- <style type="text/css">
- .mu_register { width: 90%; margin:0 auto; }
- .mu_register form { margin-top: 2em; }
- .mu_register .error { font-weight:700; padding:10px; color:#333333; background:#FFEBE8; border:1px solid #CC0000; }
- .mu_register #submit,
- .mu_register #blog_title,
- .mu_register #user_email,
- .mu_register #blogname,
- .mu_register #user_name { width:100%; font-size: 24px; margin:5px 0; }
- .mu_register .prefix_address,
- .mu_register .suffix_address {font-size: 18px;display:inline; }
- .mu_register label { font-weight:700; font-size:15px; display:block; margin:10px 0; }
- .mu_register label.checkbox { display:inline; }
- .mu_register .mu_alert { font-weight:700; padding:10px; color:#333333; background:#ffffe0; border:1px solid #e6db55; }
- </style>
- <?php
- }
- add_action( 'wp_head', 'wpmu_signup_stylesheet' );
- get_header();
- ?>
- <div id="content" class="widecolumn">
- <div class="mu_register">
- <?php
- function show_blog_form($blogname = '', $blog_title = '', $errors = '') {
- global $current_site;
- // Blog name
- if( constant( "VHOST" ) == 'no' )
- echo '<label for="blogname">' . __('Blog Name:') . '</label>';
- else
- echo '<label for="blogname">' . __('Blog Domain:') . '</label>';
- if ( $errmsg = $errors->get_error_message('blogname') ) { ?>
- <p class="error"><?php echo $errmsg ?></p>
- <?php }
- if( constant( "VHOST" ) == 'no' ) {
- echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span><input name="blogname" type="text" id="blogname" value="'.$blogname.'" maxlength="50" /><br />';
- } else {
- echo '<input name="blogname" type="text" id="blogname" value="'.$blogname.'" maxlength="50" /><span class="suffix_address">.' . $current_site->domain . $current_site->path . '</span><br />';
- }
- if ( !is_user_logged_in() ) {
- print '(<strong>' . __( 'Your address will be ' );
- if( constant( "VHOST" ) == 'no' ) {
- print $current_site->domain . $current_site->path . __( 'blogname' );
- } else {
- print __( 'domain.' ) . $current_site->domain . $current_site->path;
- }
- echo '.</strong> ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed so choose carefully!)' ) . '</p>';
- }
- // Blog Title
- ?>
- <label for="blog_title"><?php _e('Blog Title:') ?></label>
- <?php if ( $errmsg = $errors->get_error_message('blog_title') ) { ?>
- <p class="error"><?php echo $errmsg ?></p>
- <?php }
- echo '<input name="blog_title" type="text" id="blog_title" value="'.wp_specialchars($blog_title, 1).'" /></p>';
- ?>
- <p>
- <label for="blog_public_on"><?php _e('Privacy:') ?></label>
- <?php _e('I would like my blog to appear in search engines like Google and Technorati, and in public listings around this site.'); ?>
- <div style="clear:both;"></div>
- <label class="checkbox" for="blog_public_on">
- <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php if( !isset( $_POST['blog_public'] ) || $_POST['blog_public'] == '1' ) { ?>checked="checked"<?php } ?> />
- <strong><?php _e( 'Yes' ); ?></strong>
- </label>
- <label class="checkbox" for="blog_public_off">
- <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php if( isset( $_POST['blog_public'] ) && $_POST['blog_public'] == '0' ) { ?>checked="checked"<?php } ?> />
- <strong><?php _e( 'No' ); ?></strong>
- </label>
- </p>
- <?php
- do_action('signup_blogform', $errors);
- }
- function validate_blog_form() {
- $user = '';
- if ( is_user_logged_in() )
- $user = wp_get_current_user();
- ...