رفتن به مطلب

Mohammad

عضو سایت
  • تعداد ارسال‌ها

    647
  • تاریخ عضویت

  • آخرین بازدید

  • روز های برد

    1

نوشته‌ها ارسال شده توسط Mohammad

  1. اینو امتحان کنید:


    <object classid="clsid:D697CDE7E-AE6D-11cf-96B8-458453540000"
    codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"
    id="animation name" width="468" height="60">
    <param name="movie" value="animationname.swf">
    <param name="quality" value="high">
    <param name="bgcolor" value="#FFFFFF">

    <embed name="animationname" src="animationname.swf" quality="high" bgcolor="#FFFFFF"
    width="468" height="60"
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
    </embed>
    </object>

    • امتیاز 2
  2. دنبال این عبارت در فایل comments.php پوستتون بگردید.

    برای غیرفعال کردن html هم این کد رو به فایل function.php پوستتون اضافه کنید:


    // This will occur when the comment is posted
    function plc_comment_post( $incoming_comment ) {

    // convert everything in a comment to display literally
    $incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']);

    // the one exception is single quotes, which cannot be #039; because WordPress marks it as spam
    $incoming_comment['comment_content'] = str_replace( "'", ''', $incoming_comment['comment_content'] );

    return( $incoming_comment );
    }

    // This will occur before a comment is displayed
    function plc_comment_display( $comment_to_display ) {

    // Put the single quotes back in
    $comment_to_display = str_replace( ''', "'", $comment_to_display );

    return $comment_to_display;

    • امتیاز 1
  3. 1- عوض کردن لوگو:


    //hook the administrative header output
    add_action('admin_head', 'my_custom_logo');
    function my_custom_logo() {
    echo '
    <style type="text/css">
    #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/custom-logo.gif) !important; }
    </style>
    ';
    }

    2- اضاف کردن لینک:


    function my_admin_bar_link() {
    global $wp_admin_bar;
    if ( !is_super_admin() || !is_admin_bar_showing() )
    return;
    $wp_admin_bar->add_menu( array(
    'id' => 'diww',
    'parent' => 'my-blogs',
    'title' => __( 'Do It With WordPress'),
    'href' => admin_url( 'http://www.doitwithwp.com/wp-admin.php' )
    ) );
    }
    add_action('admin_bar_menu', 'my_admin_bar_link');

    3- اضافه کردن منوی بازشو:


    function my_admin_bar_menu() {
    global $wp_admin_bar;
    if ( !is_super_admin() || !is_admin_bar_showing() )
    return;
    $wp_admin_bar->add_menu( array(
    'id' => 'social_networks',
    'title' => __( 'Social Networks'),
    'href' => FALSE ) );
    $wp_admin_bar->add_menu( array(
    'parent' => 'social_networks',
    'title' => __( 'Facebook'),
    'href' => 'http://www.facebook.com/doitwithwp' ) );
    $wp_admin_bar->add_menu( array(
    'parent' => 'social_networks',
    'title' => __( 'Twitter'),
    'href' => 'http://www.twitter.com/daclements' ) );
    }
    add_action('admin_bar_menu', 'my_admin_bar_menu');

    و اینم راه راحتتر:


    http://wordpress.org/extend/plugins/wp-custom-admin-bar/

    درضمن همه کدها باید در function.php قرار بگیرند.

    • امتیاز 4
×
×
  • اضافه کردن...