Ondersteuning » Code oplossingen gezocht » [b]Edit[/b] link openen in nieuwe venster

  • Hoi, ik wil graag de EDIT knop aanpassen zodat ik hem in een nieuw venster kan openen.

    Het gaat om de edit knop bij de posts die je gemaakt hebt.
    deze knop zie je alleen als je als admin hebt ingelogd.

    http://img240.imageshack.us/my.php?image=screenshot113mc3.jpg

    Nu ben ik wel al bezig geweest in post.php maar er zijn twee versies

    Een in de include map en een in de admin map.

    in de include map heb ik het volgende aangepast in post.php

    function &get_children($args = ”, $output = OBJECT) {
    global $post_cache, $wpdb, $blog_id;

    if ( empty( $args ) ) {
    if ( isset( $GLOBALS[‘post’] ) ) {
    $args = ‘post_blank=’ . (int) $GLOBALS[‘post’]->post_blank;
    } else {
    return false;
    }
    } elseif ( is_object( $args ) ) {
    $args = ‘post_blank=’ . (int) $args->post_blank;
    } elseif ( is_numeric( $args ) ) {
    $args = ‘post_blank=’ . (int) $args;
    }

    $defaults = array(
    ‘numberposts’ => -1, ‘post_type’ => ”,
    ‘post_status’ => ”, ‘post_blank’ => 0
    );

    $r = wp_parse_args( $args, $defaults );

    $children = get_posts( $r );

    if ( $children ) {
    foreach ( $children as $key => $child ) {
    $post_cache[$blog_id][$child->ID] =& $children[$key];
    $kids[$child->ID] =& $children[$key];
    }
    } else {
    return false;
    }

    if ( $output == OBJECT ) {
    return $kids;
    } elseif ( $output == ARRAY_A ) {
    foreach ( $kids as $kid )
    $weeuns[$kid->ID] = get_object_vars($kids[$kid->ID]);
    return $weeuns;
    } elseif ( $output == ARRAY_N ) {
    foreach ( $kids as $kid )
    $babes[$kid->ID] = array_values(get_object_vars($kids[$kid->ID]));
    return $babes;
    } else {
    return $kids;
    }
    }

    van alle post_parent heb ik post_blank gemaakt..
    Dit werkte alleen helaas niet..

    Zat ik op de goede weg?

  • Het onderwerp ‘[b]Edit[/b] link openen in nieuwe venster’ is gesloten voor nieuwe reacties.