Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter bayboran

    (@bayboran)

    sorry for this. i’m new here… 😉

    Thread Starter bayboran

    (@bayboran)

    <?php $authors = get_users_of_blog(); ?>

    <?php
    $latest_posts = array();
    foreach ( $authors as $author ) {
    $user = new WP_User( $author->ID );
    if ($user->has_cap(‘level_10’))
    continue;
    $ps = get_posts(‘numberposts=1&post_type=post&author=’ . $author->ID);
    foreach ($ps as $p) {
    $latest_posts[$p->post_date] = $p;
    }
    }
    krsort($latest_posts);
    ?>

    <?php
    $counter =0;
    foreach ($latest_posts as $post) {
    $counter++;
    if ($counter > 3)
    break;
    setup_postdata($post);
    ?>

    <div class=”yazar_alan”>
    <div style=”float:left; padding-right:10px;”>
    <?php userphoto_the_author_thumbnail(); ?>
    </div>
    <div style=”float:left;”>
    <div class=”yazi_baslik”>” class=”siyah_renk”><?php the_title(); ?></div>
    <div class=”yazar_adi”>” class=”siyah_renk ver11″><?php the_author_meta(‘first_name’); ?> <?php the_author_meta(‘last_name’); ?></div>
    </div>
    </div>
    <?php } ?>

    this is the solution… you can get last 3 author posts with these codes.

    Thread Starter bayboran

    (@bayboran)

    and sorry for all.

    NOT : $ps = get_posts(‘numberposts=3&post_type=post&author=’ . $author->ID);

    TRUE: $ps = get_posts(‘numberposts=1&post_type=post&author=’ . $author->ID);

    why those codes doesn’t run?

    Thread Starter bayboran

    (@bayboran)

    thanks all and this is the answer.

    <?php $son_mac = $wpdb->get_row(“SELECT * FROM $wpdb->leaguemanager_matches WHERE winner_id<>0 and (home_team = “.$takim.” or away_team = “.$takim.”) order by date desc limit 1″);

    echo ‘<h2>Son Oynanan Maç</h2>’;

    echo ‘<div class=”logo_sonuc”>’;
    $son_mac_ev_sahibi = $wpdb->get_row(“SELECT * FROM $wpdb->leaguemanager_teams WHERE id ='”.$son_mac->home_team.”‘”);
    echo “<img src='”.$son_mac_ev_sahibi->logo.”‘ class=\”ev_sahibi_logo\” />”;
    echo ‘<div class=”mac_sonuc”>’.$son_mac->home_points.’ – ‘.$son_mac->away_points.'</div>’;
    $son_mac_misafir = $wpdb->get_row(“SELECT * FROM $wpdb->leaguemanager_teams WHERE id ='”.$son_mac->away_team.”‘”);
    echo “<img src='”.$son_mac_misafir->logo.”‘ class=\”misafir_logo\”/>”;
    echo ‘</div>’;
    echo ‘<div class=”mac_bilgileri”>’;
    echo $son_mac_ev_sahibi->title.” – “.$son_mac_misafir->title.”
    “;
    echo ‘Stad:’.$son_mac->location.’
    ‘;
    echo ‘Tarih:’.$son_mac->date.’
    ‘;
    echo ‘</div>’;

    Thread Starter bayboran

    (@bayboran)

    i fixed the problem with;

    the hidden text files were not same as default register form.

    i changed the hidden text file as default register form like

    signup_form_id
    stage
    _signup_form

    there must be 3 hidden text file. but i had 4 and with different values.

    tnx esmi 😉

    Thread Starter bayboran

    (@bayboran)

    sure the issue will be fixed if i’ll re upload the default theme. but i wnat to use my own theme.

    if i use this link to register; http://sporblogger.com/wp-signup.php its ok there is no prob.

    but i want that my visitors can register on home page. so i edit html codes at home.php of default theme.

    at wp-login.php page i see this code.
    // WPMU doesn’t use this
    wp_redirect( apply_filters( ‘wp_signup_location’, get_bloginfo(‘wpurl’) . ‘/wp-signup.php’ ) );
    exit;

    at register case of action swtich. “wpmu doesn’t use this”. !!!

    wpmu doesn’t use what? i didn’t get this point. i think my prob point here.

Viewing 6 replies - 1 through 6 (of 6 total)