انجمن


مشکل در تگها  (۱۰ نوشته)

  • ahangha88

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

    سلام
    من وقتی روی ابر تگهای سایتم کلیک میکنم این ارور رو میده
    Parse error: syntax error, unexpected ';' in /home/bxtfiune/public_html/wordpress/wp-content/themes/miniblog/tag.php on line 57
    چگونه باید رفعش کرد؟

  • Moeini

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

    همانطور كه در ارور نوشته فايل tag.php لاين 57 (يا 56) از نظر سينتكس اشكال داره؛ كدهاش رو قرار بده تا آن رو اصلاح كنم

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

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

    <?php get_header(); ?>

    <div class="post-announcement2">
    <h3><?php single_cat_title( _e('Results > Posts Tagged With > ','miniblog'),'TRUE'); ?></h3>
    </div>

    <!--For Theme Options-->
    <?php
    global $options;
    foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
    }
    ?>
    <!--End of For Theme Options-->

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    <div class="post-container" id="post-<?php the_ID(); ?>">
    <div class="post-left">
    <div class="post-tab">
    <span class="tab-big">
    <?php the_time('M'); ?>
    </span>
    <?php the_time('j'); ?>
    </div>
    <?php if(is_sticky()) {?>
    <div class="post-tab">
    <span class="tab-big">
    Sticky
    </span>
    Post
    </div>
    <?php } ?>
    </div>
    <div class="post-right">
    <div class="post-content-left">
    <?php $thereisimage = get_post_meta($post->ID, $mb_image_key, true);
    if($thereisimage){ ?>
    "><?php image_attachment($mb_image_key, 98, 98); ?>
    <?php }else{?>
    "><img src="<?php bloginfo('template_url');?>/images/post-default.gif" alt="Post Image" height="98" width="98" />
    <?php }?>
    <?php _e('Posted by','miniblog'); ?> "><?php the_author();?>.
    </div>
    <div class="post-content-right">
    <div class="post-header">
    <div class="post-header-title">
    <h1>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></h1>
    </div>
    <div class="post-comments">
    <?php comments_popup_link('0', '1', '%'); ?>
    </div>
    </div>
    <div class="post-content">
    <?php the_excerpt(); ?>
    <p class="post-more"><?php edit_post_link( __('(Edit) ', ''); ?>">Read on »</p>
    </div>
    </div>
    </div>
    <div class="clear"></div>
    </div>

    <!--Comments Template Here-->

    <?php endwhile; ?>

    <div class="below-post go-center">
    <?php
    include('wp-pagenavi.php');
    if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    ?>
    </div>

    <?php else : ?>
    <div style="padding:0px 0px 0px 90px; direction: rtl; text-align: right;">
    <h2 class="center"><?php _e('Not Found','miniblog'); ?></h2>
    <p class="center"><?php _e('Sorry, but you are looking for something that is not here.','miniblog'); ?></p>
    </div>
    <?php endif; ?>

    </div>
    <!--End of Tag.php-->

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

  • Moeini

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

    <?php get_header(); ?>
    
    <div class="post-announcement2">
    <h3><?php single_cat_title( _e('Results > Posts Tagged With > ','miniblog'),'TRUE'); ?></h3>
    </div>
    
    <!--For Theme Options-->
    <?php
    global $options;
    foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
    }
    ?>
    <!--End of For Theme Options-->
    
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
    <div class="post-container" id="post-<?php the_ID(); ?>">
    <div class="post-left">
    <div class="post-tab">
    <span class="tab-big">
    <?php the_time('M'); ?>
    </span>
    <?php the_time('j'); ?>
    </div>
    <?php if(is_sticky()) {?>
    <div class="post-tab">
    <span class="tab-big">
    Sticky
    </span>
    Post
    </div>
    <?php } ?>
    </div>
    <div class="post-right">
    <div class="post-content-left">
    <?php $thereisimage = get_post_meta($post->ID, $mb_image_key, true);
    if($thereisimage){ ?>
    "><?php image_attachment($mb_image_key, 98, 98); ?>
    <?php }else{?>
    "><img src="<?php bloginfo('template_url');?>/images/post-default.gif" alt="Post Image" height="98" width="98" />
    <?php }?>
    <?php _e('Posted by','miniblog'); ?> "><?php the_author();?>.
    </div>
    <div class="post-content-right">
    <div class="post-header">
    <div class="post-header-title">
    <h1>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></h1>
    </div>
    <div class="post-comments">
    <?php comments_popup_link('0', '1', '%'); ?>
    </div>
    </div>
    <div class="post-content">
    <?php the_excerpt(); ?>
    <p class="post-more"><?php edit_post_link( __('(Edit) '), ''); ?></p>
    </div>
    </div>
    </div>
    <div class="clear"></div>
    </div>
    
    <!--Comments Template Here-->
    
    <?php endwhile; ?>
    
    <div class="below-post go-center">
    <?php
    include('wp-pagenavi.php');
    if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    ?>
    </div>
    
    <?php else : ?>
    <div style="padding:0px 0px 0px 90px; direction: rtl; text-align: right;">
    <h2 class="center"><?php _e('Not Found','miniblog'); ?></h2>
    <p class="center"><?php _e('Sorry, but you are looking for something that is not here.','miniblog'); ?></p>
    </div>
    <?php endif; ?>
    
    </div>
    <!--End of Tag.php-->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    کاربران زیر به‌خاطر این نوشته تشکر کرده‌اند:
    ahangha88 - Mostafa
  • ahangha88

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

    سلام
    ممنون از اینکه کدها رو بررسی کردید اما دو مشکل یکی اینکه وقتی روی تگها کلیک میکنم به صفحه مورد نظر که میره تیترها رو اینجوری زده
    " rel="bookmark" title="عکس از ازدواج یک فوتبالیست برزیلی با یک زن ایرانی">عکس از ازدواج یک فوتبالیست برزیلی با یک زن ایرانی
    ...
    ادامه مطلب هم غیب شده!!!
    .....
    مشکل دوم اصلا ربطی به این کد نداره انتهای صفحه سایتم بعد از اضافه کردن چند افزونه این پیام اومده
    Fatal error: Call to undefined method wpdb::get_blog_prefix() in /home/bxtfiune/public_html/wordpress/wp-includes/user.php on line 345
    این در انتهای تمام صفحات و حتی کادرهای کنترل پنل هست گطور باید حذف بشه برای نصب چه افزونه ای میتونه باشه؟

  • ahangha88

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

    سلام کسی پاسخ نمیده؟
    حالا دیگه یه ارور دیگه هم اضافه شده
    Warning: implode() [function.implode]: Invalid arguments passed in /home/bxtfiune/public_html/wordpress/wp-includes/taxonomy.php on line 2461
    بالا صفحه چندین خط از این رو میزنه لطفا کمک کنید

  • Mostafa

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

    سلام, این یکی رو بررسی کنید ببینید چی می شه:

    <?php get_header(); ?>
    
    <div class="post-announcement2">
    <h3><?php single_cat_title( _e('Results > Posts Tagged With > ','miniblog'),'TRUE'); ?></h3>
    </div>
    
    <!--For Theme Options-->
    <?php
    global $options;
    foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
    }
    ?>
    <!--End of For Theme Options-->
    
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
    <div class="post-container" id="post-<?php the_ID(); ?>">
    <div class="post-left">
    <div class="post-tab">
    <span class="tab-big">
    <?php the_time('M'); ?>
    </span>
    <?php the_time('j'); ?>
    </div>
    <?php if(is_sticky()) {?>
    <div class="post-tab">
    <span class="tab-big">
    Sticky
    </span>
    Post
    </div>
    <?php } ?>
    </div>
    <div class="post-right">
    <div class="post-content-left">
    <?php $thereisimage = get_post_meta($post->ID, $mb_image_key, true);
    if($thereisimage){ ?>
    "><?php image_attachment($mb_image_key, 98, 98); ?>
    <?php }else{?>
    "><img src="<?php bloginfo('template_url');?>/images/post-default.gif" alt="Post Image" height="98" width="98" />
    <?php }?>
    <?php _e('Posted by','miniblog'); ?> "><?php the_author();?>.
    </div>
    <div class="post-content-right">
    <div class="post-header">
    <div class="post-header-title">
    <h1>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></h1>
    </div>
    <div class="post-comments">
    <?php comments_popup_link('0', '1', '%'); ?>
    </div>
    </div>
    <div class="post-content">
    <?php the_excerpt(); ?>
    <p class="post-more"><?php edit_post_link( __('(Edit) ', '')); ?>">Read on »</p>
    </div>
    </div>
    </div>
    <div class="clear"></div>
    </div>
    
    <!--Comments Template Here-->
    
    <?php endwhile; ?>
    
    <div class="below-post go-center">
    <?php
    include('wp-pagenavi.php');
    if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    ?>
    </div>
    
    <?php else : ?>
    <div style="padding:0px 0px 0px 90px; direction: rtl; text-align: right;">
    <h2 class="center"><?php _e('Not Found','miniblog'); ?></h2>
    <p class="center"><?php _e('Sorry, but you are looking for something that is not here.','miniblog'); ?></p>
    </div>
    <?php endif; ?>
    
    </div>
    <!--End of Tag.php-->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
  • ahangha88

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

    دوست عزیز این رو هم امتحان کردم اما باز هم وقتی وارد تگها میشه تیترها " rel="bookmark" title="دانلود مداحی حلالی در عاشورای ۸۹">دانلود مداحی حلالی در عاشورای
    مثل بالاست!!!
    درضمن به تازگی این خطا هم در انتهای تمام صفحاتم میاد:
    Fatal error: Call to undefined method wpdb::get_blog_prefix() in /home/bxtfiune/public_html/wordpress/wp-includes/user.php on line 345
    راستی من به تازگی افزونه فید خوان هم نصب کردم اما نمیدونم چرا به سرعت داره فضای هاستم پر میشه!!! میشه بگید مطالب رو کجا میریزه که اینجوری هاست من پر میشه؟ چاره ای داره؟

  • Mostafa

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

    اینو بررسی کنید

    <?php get_header(); ?>
    
    <div class="post-announcement2">
    <h3><?php single_cat_title( _e('Results > Posts Tagged With > ','miniblog'),'TRUE'); ?></h3>
    </div>
    
    <!--For Theme Options-->
    <?php
    global $options;
    foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
    }
    ?>
    <!--End of For Theme Options-->
    
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
    <div class="post-container" id="post-<?php the_ID(); ?>">
    <div class="post-left">
    <div class="post-tab">
    <span class="tab-big">
    <?php the_time('M'); ?>
    </span>
    <?php the_time('j'); ?>
    </div>
    <?php if(is_sticky()) {?>
    <div class="post-tab">
    <span class="tab-big">
    Sticky
    </span>
    Post
    </div>
    <?php } ?>
    </div>
    <div class="post-right">
    <div class="post-content-left">
    <?php $thereisimage = get_post_meta($post->ID, $mb_image_key, true);
    if($thereisimage){ ?>
    "><?php image_attachment($mb_image_key, 98, 98); ?>
    <?php }else{?>
    <a href="<?php the_permalink(); ?>" alt="Post Image" height="98" width="98" /><img src="<?php bloginfo('template_url');?>/images/post-default.gif" /></a>
    <?php }?>
    <?php _e('Posted by','miniblog'); ?><?php the_author();?>.
    </div>
    <div class="post-content-right">
    <div class="post-header">
    <div class="post-header-title">
    <h1> <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></h1>
    </div>
    <div class="post-comments">
    <?php comments_popup_link('0', '1', '%'); ?>
    </div>
    </div>
    <div class="post-content">
    <?php the_excerpt(); ?>
    <p class="post-more"><?php edit_post_link( __('(Edit) ', '')); ?>">Read on »</p>
    </div>
    </div>
    </div>
    <div class="clear"></div>
    </div>
    
    <!--Comments Template Here-->
    
    <?php endwhile; ?>
    
    <div class="below-post go-center">
    <?php
    include('wp-pagenavi.php');
    if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    ?>
    </div>
    
    <?php else : ?>
    <div style="padding:0px 0px 0px 90px; direction: rtl; text-align: right;">
    <h2 class="center"><?php _e('Not Found','miniblog'); ?></h2>
    <p class="center"><?php _e('Sorry, but you are looking for something that is not here.','miniblog'); ?></p>
    </div>
    <?php endif; ?>
    
    </div>
    <!--End of Tag.php-->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    اون یکی مشکل رو اگر میشه در جای دیگر مطرح کنید

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

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

    آقا فعلا نصفه شفا پیدا کرده اینجوری نمایش میده
    پاسخ دستیار ارشد رییس‌جمهوری به اظهارات متکی
    آفتاب: دستیار ارشد رییس‌جمهوری در حاشیه اجلاس وزرای زن کشورهای اسلامی، در پاسخ به این سوال که گفته می‌شود آقای متکی در جریان تغییر خود نبوده است، گفت: شنبه هفته گذشته با آقای متکی درخصوص تغییر صحبت ‌شد و ایشان نیز آمادگی خود را اعلام ‌کرد. مجتبی ثمره هاشمی، با بیان این مطلب، افزود: ایشان [...]
    (Edit) ">Read on »
    یعنی وقتی روی متن خلاصه کلیک میکنی میره ادامه مطلب ولی در پایین مطلب لینکی با این تیتر وجود نداره ولی فعلا اینجوری بهتر از قبله اگه بشه کامل درستش کرد که عالیه
    ......
    درضمن گاهی اوقات پوسته ارور میده که در پستهای قبل هم اشاره کردم البته با پاک کردن بعضی افزونه ها از جمله کش دیتابیس مورد تا حدود زیادی حل شد اما باز گاها" مشابه این ارور ها برای صفحه classic.php نمایش داده میشه
    کسی میدونه دلیلش چیه؟

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



برچسب‌ها

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