رفتن به مطلب

goldenfont

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

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

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

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

  1. سلام

    دوستان این صفحه آرشیویه که ساختم

    وقتی که یدونه مطلب داره دسته درسته ، ولی وقتی یه مطلب دیگه به دست اضافه میکنم بهم میریزه

    مشکلش چیه ؟


    <?php
    /**
    * @package WordPress
    * @subpackage Showcaser Theme
    */
    ?>
    <?php get_header(); ?>
    <!-- Start Service Nav -->
    <div class="bg_s bg_nav" id="nav3">
    <ul id="navigation">
    <li><a href="<?php bloginfo('url'); ?>">صفحه نخست</a></li>
    <?php wp_list_pages('exclude=17,38&title_li=' ); ?>
    </ul> </div>
    <div class="wrapper"></div>
    <!-- End Service Nav -->
    </div>


    <?php if (have_posts()) : ?>

    <!-- END page-heading -->
    <div class="page_body">
    <div class="news_col_1">
    <div class="scroll_height_right">
    <div class =ads style="display:block;">
    <div class="myads" style="margin-top:0px;margin-right: -6px;">
    <span style="color: #666666"><a target="_blank" title="تبلیغات" href="/">تبليغات</a></span> <br><br>
    <a href="<?php
    $options = get_option( 'showcaser_theme_settings' );
    echo $options['t_sid'];
    ?>" target="_blank"><img src="<?php echo $options['b-2']; ?>" style="width:120px;height:240px;border:0px;" alt="">
    <div class="LinkADS"><a title="قالب وبلاگ" target="_blank" href="http://hotskin.ir">قالب وبلاگ</a></div>
    </div>

    </div>
    <div style="width: 100%;">
    <div class="wrapper"></div>
    </div>
    </div>
    <div class="adv_g">

    </div>
    <div id="scrollingDivRight">
    <div class =ads style="display:none;">
    <div><a href="http://bartarinha.ir/fa/ads/redirect/a/492" target="_blank"><img alt="" style="width:130px;height:410px;border:0px;" src="/files/adv//1138_539.jpg"></a></div>
    </div>
    </div>
    </div>


    <div class="news_col_2">
    <div class="bg_s ser_t_bg_sar">
    <div class="dot_s ser_t_r_sar ser_right"></div>
    <div class="dot_s ser_t_l_sar ser_left"></div>
    <div class="wrapper"></div> </div>
    <div class="news_content_body">
    <div style="margin-top: 5px;margin-bottom:35px;">
    <div class="title" style="text-align:center;margin-bottom: 10px;margin-top: 4px;">
    <div class="titr-post">
    <h1 style="padding: 0px;margin: 0px" class="title"><a href="<?php the_permalink() ?>" title=" "><?php the_title(); ?></a></h1></div>
    </div>
    <div><div class="news_lead_bottom" style="margin-bottom: 8px;">
    <div class="news_bottom_right"></div>
    <div class="news_bottom_left"></div>
    <div class="wrapper"></div>
    </div> </div>
    <div class="body" style="text-align: justify;padding: 10px;">
    <div align="justify">
    <span style="font-family: Tahoma; font-size: 10pt;">
    <?php if(have_posts()) : ?>
    <?php while(have_posts()) : the_post(); ?>
    <a style="font-size: 10pt; color: #000000; text-decoration: none" title="مجله اینترنتی" href="">مجله اینترنتی رز:</a></span>
    <p><?php the_content_rss('', TRUE, '', 35); ?></p>
    </div> <div class="wrapper"></div> </div> </div>



    <?php comments_template(); ?>
    <?php endwhile; ?>
    <?php endif; ?>



    </div>
    <div style="margin-bottom: 8px;" class="bg_s ser_b_bg_sar">
    <div class="dot_s ser_b_r_sar ser_right"></div>
    <div class="dot_s ser_b_l_sar ser_left"></div>
    <div class="wrapper"></div> </div>
    </div>
    <div class="news_col_3">
    <div class="scroll_height_left">
    <div class ="ads style="display:block;">
    <div style="padding-bottom:5px;">
    <div class="myads" style="margin-top:-8px;margin-right: -5px;">
    <span style="color: #666666"><a target="_blank" title="تبلیغات" href="/">تبليغات</a></span> <br><br>


    <a href="<?php
    $options = get_option( 'showcaser_theme_settings' );
    echo $options['b-120-l'];
    ?>" target="_blank"><img alt="" style="width:120px;height:240px;border:0px;" src="<?php
    $options = get_option( 'showcaser_theme_settings' );
    echo $options['b_120'];
    ?>"></a>
    <a href="<?php
    $options = get_option( 'showcaser_theme_settings' );
    echo $options['b-120-l-2'];
    ?>" target="_blank"><img alt="" style="width:120px;height:240px;border:0px;" src="<?php
    $options = get_option( 'showcaser_theme_settings' );
    echo $options['b_120-2'];
    ?>"></a>


    <div class="LinkADS"><a title="قالب وبلاگ" target="_blank" href="http://hotskin.ir">قالب وبلاگ</a></div>
    </div></div>



    </div>
    <div style="width: 100%;">
    <div class="wrapper"></div>
    </div>
    </div>
    <div class="adv_g">
    </div> <div id="scrollingDivLeft"> <div class =ads style="display:none;"> <div><a href="http://bartarinha.ir/fa/ads/redirect/a/537" target="_blank"><img alt="" style="width:130px;height:410px;border:0px;" src="/files/adv//1118_285.jpg"></a></div> </div> <div class="wrapper"></div> </div> </div>

    </div>
    <div class="clear">
    <?php if (function_exists("pagination")) { pagination($additional_loop->max_num_pages); } ?>
    <!-- END post -->
    <?php endif; ?>
    <?php get_footer(' '); ?>

  2. سلام

    این پنل تنظیماتی هست که برای پوستم نوشتم

    رو یه سایت دیگم همین هست و آپلود میکنه

    ولی رو یه سایت دیگم کار نمیکنه

    رو اون سایت اول که بود دقیقا همونو منتقل کردم رو سایت دوم ها

    یعنی پوشه پوسته رو زیپ کردم و دانلود کردم و رو سایت جدید نصب کردم

    قبلا هم همین کارو میکردم مشکلی نداشت پنل تنظیماتش ولی حالا

    دکمه ذخیره رو میزنی هیچی رو سیو نگه نمیداره

    نه چیزی که زدی آپلود بشه و نه چیزی که تایپ کردی

    مشکلش چیه ؟


    <?php
    /**
    * @package WordPress
    * @subpackage Showcaser Theme
    */
    //register settings
    function showcaser_theme_settings_init(){
    register_setting( 'showcaser_theme_settings', 'showcaser_theme_settings' );
    }
    //menu
    function showcaser_add_settings_page() {
    add_menu_page( __( 'Showcaser' ), __( 'تنظيمات پوسته' ), 'manage_options', 'showcaser-settings', 'showcaser_theme_settings_page');
    }
    add_action( 'admin_init', 'showcaser_theme_settings_init' );
    add_action( 'admin_menu', 'showcaser_add_settings_page' );
    //start settings page
    function showcaser_theme_settings_page() {
    global $slider_effects;
    if ( ! isset( $_REQUEST['updated'] ) )
    $_REQUEST['updated'] = false;
    if(isset($_REQUEST['submit'])){


    if (is_uploaded_file($_FILES['favicon']['tmp_name'])) {
    $upload = wp_upload_bits($_FILES["favicon"]["name"], null, file_get_contents($_FILES["favicon"]["tmp_name"]));
    $_REQUEST['showcaser_theme_settings']['favicon']= $upload['url'];
    }

    if (is_uploaded_file($_FILES['logo']['tmp_name'])) {
    $upload = wp_upload_bits($_FILES["logo"]["name"], null, file_get_contents($_FILES["logo"]["tmp_name"]));
    $_REQUEST['showcaser_theme_settings']['logo']= $upload['url'];
    }

    $showcaser_theme_settings = $_REQUEST['showcaser_theme_settings'];
    $showcaser_theme_settings = $_REQUEST['showcaser_theme_settings'];
    $options = get_option( 'showcaser_theme_settings' );
    $showcaser_theme_settings = array_merge($options,$showcaser_theme_settings);
    update_option( 'showcaser_theme_settings' , $showcaser_theme_settings);
    }
    ?>
    <div class="wrap">
    <div id="icon-options-general" class="icon32"></div>
    <h2><?php _e( 'تنظيمات پوسته' ) ?></h2>

    <?php if ( false !== $_REQUEST['updated'] ) : ?>
    <div class="updated fade"><p><strong><?php _e( 'Options saved' ); ?></strong></p></div>
    <?php endif; ?>
    <form method="post" action="" enctype="multipart/form-data">
    <?php settings_fields( 'showcaser_theme_settings' ); ?>
    <?php $options = get_option( 'showcaser_theme_settings' ); ?>
    <table class="form-table">
    <tr valign="top">
    <th scope="row"><?php _e( ' (favicon)' ); ?></th>
    <td>
    <input id="showcaser_theme_settings[favicon]" class="regular-text" type="file" size="36" name="favicon" /> <?php esc_attr_e( $options['favicon'] ); ?>
    <br />
    <label class="description abouttxtdescription" for="showcaser_theme_settings[favicon]"><?php _e( 'آپلود کنید یا آدرس ایکون را وارد کنید.' ); ?></label>
    <br />
    <img src="<?php esc_attr_e( $options['favicon'] ); ?>" />
    </td>
    </tr>
    <tr valign="top">
    <th scope="row"><?php _e( 'Logo' ); ?></th>
    <td>
    <input id="showcaser_theme_settings[logo]" class="regular-text" type="file" size="36" name="logo" /> <?php esc_attr_e( $options['logo'] ); ?>
    <br />
    <label class="description abouttxtdescription" for="showcaser_theme_settings[logo]"><?php _e( 'آپلود کنید یا آدرس تصویر لوگو را وارد کنید.' ); ?></label>
    <br />
    <img src="<?php esc_attr_e( $options['logo'] ); ?>" />
    </td>
    </tr>
    <tr valign="top">
    <th scope="row">About-Me:</th>
    <td>
    <input id="showcaser_theme_settings[About-Me]" class="regular-text" type="text" size="36" name="showcaser_theme_settings[About-Me]" value="<?php esc_attr_e( $options['About-Me'] ); ?>" />
    </td>
    </tr>
    </table>
    <p class="submit-changes">
    <input name="submit" type="submit" class="button-primary" value="<?php _e( 'ذخیره تغییرات' ); ?>" />
    </p>
    </form>
    </div><!-- END wrap -->
    <?php
    }
    //sanitize and validate
    function showcaser_options_validate( $input ) {
    global $select_options, $radio_options;
    if ( ! isset( $input['option1'] ) )
    $input['option1'] = null;
    $input['option1'] = ( $input['option1'] == 1 ? 1 : 0 );
    $input['sometext'] = wp_filter_nohtml_kses( $input['sometext'] );
    if ( ! isset( $input['radioinput'] ) )
    $input['radioinput'] = null;
    if ( ! array_key_exists( $input['radioinput'], $radio_options ) )
    $input['radioinput'] = null;
    $input['sometextarea'] = wp_filter_post_kses( $input['sometextarea'] );
    return $input;
    }
    ?>

  3. این افزونه رو دارم

    با استفاده از همون تا اینجاش رو درست کردم

    تنها مشکلش الان اینه که یه تی اضافه بشه به box2 که وقتی متن زیاد میشه ارتفاعش زیاد بشه ارتفاع بادی هم زیاد بشه

    همین

    ممنون میشم کمک کنید تا این مشک رفع بشه

  4. درسته درستش کردم باید به بادی مارجین 0 میدادیم

    خب الان یه مشکل دیگه دارم :

    http://hotskin.xzn.ir/?p=93

    به باکس مشکی چه overflow ای بدم که وقتی متن زیاد میشه اسکرول بخوره صفه بره پایین ؟

    الان نصف متنی که داخلش هست رفته زیر فوتر

×
×
  • اضافه کردن...