Forums

Problems with code (7 posts)

  1. BScheuert
    Member
    Posted 4 years ago #

    Hi, in Germany we say Moin - Moin.

    I'm new and now I've a question. I've tryed to add some code like the code of the comments-template, near the textbox, to the header of my site, because I want to show from the beginning that a user is logged in or not.
    Look at my Blog, on top you see logged in as: "and nothing is there". My Handycap is PHP and MySQL, I dont know what I'm doing.

    If I take the code 1:1 from the comment-template it shows not the onlinefunction, why?

    Can anyone help?

    Sorry for my stupid English, but I'm an old and unteachable Kraut. :)

  2. podz
    Support Maven
    Posted 4 years ago #

    Did you know about http://wordpress.de ?

  3. macmanx
    Member
    Posted 4 years ago #

    If German is your native language, you may feel more comfortable asking the German WordPress support team: http://wordpress.de/

  4. BScheuert
    Member
    Posted 4 years ago #

    Ups, and I thought here would be better the service than in German forum. Man should look probably only on the service and then on the product. ;)

  5. podz
    Support Maven
    Posted 4 years ago #

    We only indicate the .de forum because some visitors here are unaware :)

    This code, at http://wordpress.org/support/topic/46315#post-256645, should work.

  6. BScheuert
    Member
    Posted 4 years ago #

    It was a stupid JOKE. ;)

    Thanks for the Link, that's what I'm searching for. :)

    Cheers.

  7. BScheuert
    Member
    Posted 4 years ago #

    Now I've tryed some versions, but nothing helps.

    I've tryed this code:

    <?php if (!$user_ID) { ?>
    Angemeldet als /wp-admin/profile.php"><?php echo $user_identity; ?> <strong class="blue">| /wp-login.php?action=logout" title="<?php _e('Diesen Benutzer abmelden') ?>">Abmelden
    <?php } else { ?>
    <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    /wp-login.php?redirect_to=<?php the_permalink(); ?>">Anmelden
    <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.