انجمن


مشکل و سوال در قالب Mimbo  (۲۲ نوشته)

  • محمد

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۰۹
    تشکر شده: ۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۳۱ مرداد ۱۳۸۸ - ۰۱:۱۸

    سلام و خسته نباشید...
    من قالب میمبو رو روی لوکال نصب کردم ولی پست هایی که ارسال شده رو تو قسمت latest نشون نمی ده...؟
    ممنون می شم راهنمایی کنید @},-

  • khodemani

    آفلاین
    عضو
    تعداد نوشته‌ها: ۶۸
    تشکر شده: ۱۰ بار
    # نوشته شده: ۱۴ سال پیش
    ۳۱ مرداد ۱۳۸۸ - ۰۲:۰۱

    آیا تنظیمات پوسته را انجام داده اید که در هر بخش پوسته ، پستهای کدام دسته نشان داده شود؟

  • محمد

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۰۹
    تشکر شده: ۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۳۱ مرداد ۱۳۸۸ - ۰۲:۰۸

    نه دوست عزیز چطوری هست تنظیماتش لطفا راهنمایی کنید...
    ممنون

  • khodemani

    آفلاین
    عضو
    تعداد نوشته‌ها: ۶۸
    تشکر شده: ۱۰ بار
    # نوشته شده: ۱۴ سال پیش
    ۳۱ مرداد ۱۳۸۸ - ۰۲:۱۶

    به صفحه تنظیمات پوسته بروید و مطابق دلخواه خود آنرا شخصی سازی کنید و اینکه معین کنید در هر بخش پوسته مطالب کدام دسته نشان داده شود.

  • محمد

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۰۹
    تشکر شده: ۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۳۱ مرداد ۱۳۸۸ - ۰۲:۳۲

    ممنون این مشکل حل شد...
    حالا چطوری می تونم این قسمتی رو که توی تصویر زیر مشخص کردم کاری کنم که مثلا 10 ارسال آخر یک دسته رو به صورت عنوانشون نشون بده دقیقا مثل سایتم: http://www.iranday.net/

    تصویر: http://img2.tinypic.info/files/ty6r08v06kc13d69kn0p.jpg

  • سزار

    آفلاین
    عضو
    تعداد نوشته‌ها: ۶۷۸
    تشکر شده: ۱۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۳۱ مرداد ۱۳۸۸ - ۰۴:۱۶

    سلام دوست من ... ;-]

    مهربون من ، شما باید در قسمت کنترل پنل وردپرس در قسمت نمایش باید وارد پنل مدیریتی قالب میمو شوید و در اونجا تنظیمات خود را اعمال نمائید . خیلی سادست . :D

    شاد باشید. @},- ~O)

  • محمد

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۰۹
    تشکر شده: ۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۳۱ مرداد ۱۳۸۸ - ۱۷:۱۸

    3zar، جان بله اینو khodemani هم گفتن سوال من چیزه دیگه بود می خوام روی اون قسمتی که روی عکس مشخص کردم کاری کنم که آخرین ارسالی یک موضوع رو نشون بده مثل سایتم و بلد نیستم تغییرات رو چطوری اعمال کنم...

    می خوام این کد رو بزارم تا آخرین ارسالی موضوعات رو نمایش بده که این کد رو توی قالب رها توی سایتم اعمال کردم: http://www.iranday.net/

    <?php
     $myposts = get_posts('numberposts=10&offset=0&category=1');
     foreach($myposts as $post) :
     ?>
        <span class="Span">◊</span>
    	<a target="_blank" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></font>
        <br></span>
     <?php endforeach; ?>
  • سزار

    آفلاین
    عضو
    تعداد نوشته‌ها: ۶۷۸
    تشکر شده: ۱۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۳۱ مرداد ۱۳۸۸ - ۱۷:۲۹

    خیلی داری موضوع رو می پیچونی .

    قالب میمو اصلا همین کار رو میکنه یعنی آخرین مطالب رو نشون میده اما شما باید یه کاری بکنید و در کد قالب یه دستکاری بکنید .
    کد زیر همون چیزیه که شما دارید :

    <?php
    // this is where you enter the IDs of which categories you want to display
    foreach (explode(',', get_mimbo_option('blurbs')) as $category) { ?>
                  <div class="clearfloat">
                    <?php query_posts("showposts=2&cat=$category");
    	    $wp_query->is_category = false;
    		$wp_query->is_archive = false;
    		$wp_query->is_home = true;
    		 ?>

    حالا شما برای اینکه تعداد مطالب رو زیاد بکنید در کد بالا مقدار showposts=2 رو زیاد کنید .
    بقیه کارها در خود کنترل پنل قالب انجام میشه.
    اگه مشکلتون حل نشد index رو بدید تا براتون درستش بکنم.
    شاد باشید. @},- ~O)

    کاربران زیر به‌خاطر این نوشته تشکر کرده‌اند:
    biparva
  • محمد

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۰۹
    تشکر شده: ۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۳۱ مرداد ۱۳۸۸ - ۱۷:۳۱

    بله می دونم آخرین ها رو نشون می ده ولی قسمتی از محتوای پست رو هم نشون می ده من فقط می خوام عنوانشون رو و لینک به موضوع رو نشون بده...؟

  • سزار

    آفلاین
    عضو
    تعداد نوشته‌ها: ۶۷۸
    تشکر شده: ۱۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۳۱ مرداد ۱۳۸۸ - ۱۷:۴۸

    خوب خیلی ، کد زیر رو بردار از داخل حلقه :

    <?php the_content_rss('', TRUE, '', 30); ?>

    اگه نشد کد اینکس رو اینجا بزار ببینم چیکار کردی .

    شاد باشید. @},- ~O)

  • محمد

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۰۹
    تشکر شده: ۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۳۱ مرداد ۱۳۸۸ - ۱۷:۵۳

    باشه من قالبرو تو کامپیوتر خونه رو لوکال نصب کردم رفتم خونه انجام می دم فعلا ممنون... @},-
    لطفا می شه id یاهتون رو بزارید...؟

  • سزار

    آفلاین
    عضو
    تعداد نوشته‌ها: ۶۷۸
    تشکر شده: ۱۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۳۱ مرداد ۱۳۸۸ - ۲۰:۳۳

    من زیاد چت نمیکنم ولی خوب ایمیل کاریم :

    FARROKHI1928 [a] YAHOO [dat] COM

    شاد باشید. @},- ~O)

  • محمد

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۰۹
    تشکر شده: ۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۱ شهریور ۱۳۸۸ - ۰۱:۰۶

    ممنون سزار جان...
    دوست عزیز این کدی که دادید و گفتید از توی چرخه حذفش کنم اصلا توی فایل ایندکس نبود بفرماید این هم کدهای ایندکس:

    <?php get_header(); ?>
    <div id="content">
    
      <div class="feature clearfloat" id="lead">
    
       <?php
    // this is where the Lead Story module begins
       query_posts('showposts=1&cat=' . get_mimbo_option('leadstory')); ?>
        <?php while (have_posts()) : the_post(); ?>
        <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'mimbo'); ?> <?php the_title(); ?>">
        <?php
    // this is where the Lead Story image gets printed
       $image_url = get_mimbo_image_url(get_post_custom_values("Image"));
    // this checks to see if an image file exists
       if ($image_url) {
       ?>
       <img src="<?php echo $image_url; ?>" width="271" alt="" id="leadpic" />
       <?php } ?>
       </a>
        <h3>
    	<?php
    	// this is where the name of the Lead Story category gets printed
    	wp_list_categories('include=' . get_mimbo_option('leadstory') . '&title_li=&style=none'); ?></h3>
        <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'mimbo'); ?> <?php the_title(); ?>" class="title">
        <?php
    // this is where the title of the Lead Story gets printed
    	the_title(); ?>
        </a>
        <?php
    // this is where the excerpt of the Lead Story gets printed
    	the_excerpt(); ?>
        <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'mimbo'); ?> <?php the_title(); ?>"><?php _e('{More&raquo;}', 'mimbo'); ?></a>
        <?php endwhile; ?>
      </div><!--END FEATURE-->
    
      <div id="leftcol">
        <?php
    // this is where the Features module begins
    	query_posts('showposts=' . get_mimbo_option('features_count') . '&cat=' . get_mimbo_option('features')); ?>
        <h3><?php
    	// this is where the name of the Features category gets printed
    	wp_list_categories('include=' . get_mimbo_option('features') . '&title_li=&style=none'); ?></h3>
        <?php while (have_posts()) : the_post(); ?>
        <div class="feature"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'mimbo'); ?> <?php the_title(); ?>">
        <img src="<?php
    // this is where the custom field prints images for each Feature
    	  echo get_mimbo_image_url(get_post_custom_values("Image")); ?>" width="255" height="88" alt="" /></a><a href="<?php the_permalink() ?>" rel="bookmark" class="title">
        <?php
    // this is where title of the Feature gets printed
    	  the_title(); ?>&raquo;</a></div>
        <?php endwhile; ?>
      </div><!--END LEFTCOL-->
    
      <div id="rightcol">
        <?php
    // this is where you enter the IDs of which categories you want to display
    foreach (explode(',', get_mimbo_option('blurbs')) as $category) { ?>
        <div class="clearfloat">
          <?php query_posts("showposts=2&cat=$category");
    	    $wp_query->is_category = false;
    		$wp_query->is_archive = false;
    		$wp_query->is_home = true;
    		 ?>
          <h3><a href="<?php echo get_category_link($category);?>"><?php
    	// this is where the name of each category gets printed
    	  single_cat_title(); ?></a></h3>
          <?php while (have_posts()) : the_post(); ?>
          <?php
    // this grabs the image url
    	$image_url = get_mimbo_image_url(get_post_custom_values("Image"));
    // this checks to see if an image file exists
    	if ($image_url) {
    ?>
          <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'mimbo'); ?> <?php the_title(); ?>"><img src="<?php echo $image_url; ?>" width="51" height="51" alt="" /></a>
          <?php } ?>
          <a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php
    // this is where title of the article gets printed
    	  the_title(); ?>&raquo;</a>
          <?php the_excerpt(); ?>
          <?php endwhile; ?>
        </div>
        <?php } ?>
      </div><!--END RIGHTCOL-->
    </div><!--END CONTENT-->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    ممنون @},-

  • سزار

    آفلاین
    عضو
    تعداد نوشته‌ها: ۶۷۸
    تشکر شده: ۱۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۱ شهریور ۱۳۸۸ - ۰۸:۵۹

    عذر خواهم من کد رو از قالب خودم که سفارشی کرده بودم گفتم در حقیقت شما باید the_expert رو بر میداشتید.

    کد شما ویرایش شد :

    <?php get_header(); ?>
    
    <div id="content">
    
      <div class="feature clearfloat" id="lead">
    
       <?php
    // this is where the Lead Story module begins
       query_posts('showposts=1&cat=' . get_mimbo_option('leadstory')); ?>
        <?php while (have_posts()) : the_post(); ?>
        <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'mimbo'); ?> <?php the_title(); ?>">
        <?php
    // this is where the Lead Story image gets printed
       $image_url = get_mimbo_image_url(get_post_custom_values("Image"));
    // this checks to see if an image file exists
       if ($image_url) {
       ?>
       <img src="<?php echo $image_url; ?>" width="271" alt="" id="leadpic" />
       <?php } ?>
       </a>
        <h3>
    	<?php
    	// this is where the name of the Lead Story category gets printed
    	wp_list_categories('include=' . get_mimbo_option('leadstory') . '&title_li=&style=none'); ?></h3>
        <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'mimbo'); ?> <?php the_title(); ?>" class="title">
        <?php
    // this is where the title of the Lead Story gets printed
    	the_title(); ?>
        </a>
        <?php
    // this is where the excerpt of the Lead Story gets printed
    	the_excerpt(); ?>
        <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'mimbo'); ?> <?php the_title(); ?>"><?php _e('{More&raquo;}', 'mimbo'); ?></a>
        <?php endwhile; ?>
      </div><!--END FEATURE-->
    
      <div id="leftcol">
        <?php
    // this is where the Features module begins
    	query_posts('showposts=' . get_mimbo_option('features_count') . '&cat=' . get_mimbo_option('features')); ?>
        <h3><?php
    	// this is where the name of the Features category gets printed
    	wp_list_categories('include=' . get_mimbo_option('features') . '&title_li=&style=none'); ?></h3>
        <?php while (have_posts()) : the_post(); ?>
        <div class="feature"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'mimbo'); ?> <?php the_title(); ?>">
        <img src="<?php
    // this is where the custom field prints images for each Feature
    	  echo get_mimbo_image_url(get_post_custom_values("Image")); ?>" width="255" height="88" alt="" /></a><a href="<?php the_permalink() ?>" rel="bookmark" class="title">
        <?php
    // this is where title of the Feature gets printed
    	  the_title(); ?>&raquo;</a></div>
        <?php endwhile; ?>
      </div><!--END LEFTCOL-->
    
      <div id="rightcol">
        <?php
    // this is where you enter the IDs of which categories you want to display
    foreach (explode(',', get_mimbo_option('blurbs')) as $category) { ?>
        <div class="clearfloat">
          <?php query_posts("showposts=4&cat=$category");
    	    $wp_query->is_category = false;
    		$wp_query->is_archive = false;
    		$wp_query->is_home = true;
    		 ?>
         <h3><a href="<?php echo get_category_link($category);?>">
                      <?php
    	// this is where the name of each category gets printed
    	  single_cat_title(); ?>
                    </a></h3>
          <?php while (have_posts()) : the_post(); ?>
                      » <a href="<?php the_permalink() ?>" rel="bookmark" class="title">
                        <?php
    // this is where title of the article gets printed
    	  the_title(); ?></a><?php endwhile; ?>
        </div>
        <?php } ?>
      </div><!--END RIGHTCOL-->
    </div><!--END CONTENT-->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    شاد باشید دوست من . @},- ~O)

  • محمد

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۰۹
    تشکر شده: ۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۱ شهریور ۱۳۸۸ - ۱۸:۱۵

    ممنون سزار جان متن پست ها رو دیگه نمایش نمی ده فقط یه مشکل هست اونم اینه که عنوان ها رو کنار هم نمایش می ده زیر هم نیستن
    http://img2.tinypic.info/files/ibfconw4xpu26pymb56e.jpg
    و می شه کاری کرد که لینک ها در پنجره جدید باز بشن...؟
    ممنون و موفق باشید @},-

  • سزار

    آفلاین
    عضو
    تعداد نوشته‌ها: ۶۷۸
    تشکر شده: ۱۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۱ شهریور ۱۳۸۸ - ۲۱:۵۳

    برای این کار بید یک دستور
    <br>
    استفاده کنید تا کنار هم قرار نگیرند و برای اینکه لینک ها در صفحه جدید بازشود باید blank رو تعریف کنید اصلاح کد شما به این صورت است :

    <?php get_header(); ?>
    
    <div id="content">
    
      <div class="feature clearfloat" id="lead">
    
       <?php
    // this is where the Lead Story module begins
       query_posts('showposts=1&cat=' . get_mimbo_option('leadstory')); ?>
        <?php while (have_posts()) : the_post(); ?>
        <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'mimbo'); ?> <?php the_title(); ?>">
        <?php
    // this is where the Lead Story image gets printed
       $image_url = get_mimbo_image_url(get_post_custom_values("Image"));
    // this checks to see if an image file exists
       if ($image_url) {
       ?>
       <img src="<?php echo $image_url; ?>" width="271" alt="" id="leadpic" />
       <?php } ?>
       </a>
        <h3>
    	<?php
    	// this is where the name of the Lead Story category gets printed
    	wp_list_categories('include=' . get_mimbo_option('leadstory') . '&title_li=&style=none'); ?></h3>
        <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'mimbo'); ?> <?php the_title(); ?>" class="title">
        <?php
    // this is where the title of the Lead Story gets printed
    	the_title(); ?>
        </a>
        <?php
    // this is where the excerpt of the Lead Story gets printed
    	the_excerpt(); ?>
        <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'mimbo'); ?> <?php the_title(); ?>"><?php _e('{More&raquo;}', 'mimbo'); ?></a>
        <?php endwhile; ?>
      </div><!--END FEATURE-->
    
      <div id="leftcol">
        <?php
    // this is where the Features module begins
    	query_posts('showposts=' . get_mimbo_option('features_count') . '&cat=' . get_mimbo_option('features')); ?>
        <h3><?php
    	// this is where the name of the Features category gets printed
    	wp_list_categories('include=' . get_mimbo_option('features') . '&title_li=&style=none'); ?></h3>
        <?php while (have_posts()) : the_post(); ?>
        <div class="feature"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'mimbo'); ?> <?php the_title(); ?>">
        <img src="<?php
    // this is where the custom field prints images for each Feature
    	  echo get_mimbo_image_url(get_post_custom_values("Image")); ?>" width="255" height="88" alt="" /></a><a href="<?php the_permalink() ?>" rel="bookmark" class="title">
        <?php
    // this is where title of the Feature gets printed
    	  the_title(); ?>&raquo;</a></div>
        <?php endwhile; ?>
      </div><!--END LEFTCOL-->
    
      <div id="rightcol">
        <?php
    // this is where you enter the IDs of which categories you want to display
    foreach (explode(',', get_mimbo_option('blurbs')) as $category) { ?>
        <div class="clearfloat">
          <?php query_posts("showposts=4&cat=$category");
    	    $wp_query->is_category = false;
    		$wp_query->is_archive = false;
    		$wp_query->is_home = true;
    		 ?>
         <h3><a href="<?php echo get_category_link($category);?>">
                      <?php
    	// this is where the name of each category gets printed
    	  single_cat_title(); ?>
                    </a></h3>
          <?php while (have_posts()) : the_post(); ?>
                      » <a href="<?php the_permalink() ?>" rel="bookmark" class="title" target="_blank">
                        <?php
    // this is where title of the article gets printed
    	  the_title(); ?></a><br><?php endwhile; ?>
        </div>
        <?php } ?>
      </div><!--END RIGHTCOL-->
    </div><!--END CONTENT-->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    شاد باشید . @},- ~O)

  • محمد

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۰۹
    تشکر شده: ۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۱ شهریور ۱۳۸۸ - ۲۳:۲۷

    ممنونم سزار جان انشاالله موفق باشید...
    یا حق... @},-

  • محمد

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۰۹
    تشکر شده: ۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۲۷ شهریور ۱۳۸۸ - ۲۲:۱۶

    سلامی دوباره سزار جان می بخشید دباره تاپیک رو بالا آوردم یه چند تا سوال دیگه داشتم ممنون می شم کمکم کنید
    این قسمتی رو که شما زحمتش رو کشیدید تغییر کد دادید رو می خوام از حالت bold در بیارم و من خودم براش یه _normal تعریف کردم ولی نشد نمی دونم چطوری می شه این کار رو کرد؟
    و قسمت هدر رو چطوری می تونم جاش یه عکس بزارم به جای نوشته های عنوان و نوشته زیریش؟
    ممنون ;)

  • سزار

    آفلاین
    عضو
    تعداد نوشته‌ها: ۶۷۸
    تشکر شده: ۱۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۲۸ شهریور ۱۳۸۸ - ۰۱:۳۴

    سلام دوست من ...
    قالبتون رو ندارم برام ایمیل کنید تا اصلاحش کنم
    سایتتون هم بالا نمی امد.

    شاد باشید.

    کاربران زیر به‌خاطر این نوشته تشکر کرده‌اند:
    محمد
  • محمد

    آفلاین
    عضو
    تعداد نوشته‌ها: ۲۰۹
    تشکر شده: ۱۸ بار
    # نوشته شده: ۱۴ سال پیش
    ۱۰ مهر ۱۳۸۸ - ۲۳:۲۰

    سزار جان من قالب رو براتون ارسال کردم
    ممنون

  • biparva

    آفلاین
    عضو
    تعداد نوشته‌ها: ۳۸
    تشکر شده: ۵ بار
    # نوشته شده: ۱۴ سال پیش
    ۲۶ مهر ۱۳۸۸ - ۱۰:۰۲

    ممنون از راهنمایی شما فوق العاده بود

  • AndroidFa.IR

    آفلاین
    عضو
    تعداد نوشته‌ها: ۴۵
    تشکر شده: ۷ بار
    # نوشته شده: ۱۲ سال پیش
    ۳۱ تیر ۱۳۹۰ - ۱۹:۱۹

    دوستان من تو این قالب تصاویر مطالبم رو ندارم.
    لطف کنین بگین که افزونه ای چیزی میخواد؟

درباره‌ی این موضوع



برچسب‌ها

هیچ برچسبی نیست.