
نوشته اصلی توسط
kouroshDesigner
مشکل از فایل page.php قالب شماست برای حل مشکل روی اون سایت دیگه محتویات این فایل رو با محتویات زیر جایگزین کنید
کد:
<?php get_header(); ?>
<?php include (TEMPLATEPATH . "/sidebar-right.php"); ?>
<div class="main-index-content">
<div class="two-box-content">
<div class="post-box-content">
<?php if ( !function_exists( 'dynamic_sidebar') || !dynamic_sidebar( 'top-post') ) : ?>
<?php endif; ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post">
<div id="post-title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div id="post-info">
<ul>
<li class="view">
<?php echo the_views( get_the_ID(), 'display' ) ; ?>
</li>
<li class="date">
<?php the_time( 'j F Y'); ?>
</li>
<li class="categry">
<?php the_category( ', ') ?>
</li>
<?php if ( is_user_logged_in() && current_user_can( 'administrator' ) ) { ?>
<?php edit_post_link(__( ' ویرایش این پست ', ''), '<li class="edit">', '</li>'); ?>
<?php } ?>
</ul>
<div class="clear"></div>
</div>
</div>
<div id="content" class="contentbox">
<?php include (TEMPLATEPATH . "/single-content.php"); ?>
</div>
<div class="clear"></div>
<div id="post-footer"></div>
</div>
<?php echo the_views( get_the_ID(), 'count' ); ?>
<?php include (TEMPLATEPATH . "/ads-center.php"); ?>
<?php endwhile; endif; ?>
</div></div></div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
موفق باشید
با سلام
همان قالب که شما ویرایش کردید را از هاست دانلود و در سایت جدید بارگزاری کردم
ولی متاسفانه باز مشکل داشت
http://www.movie4dl.org/contact-us/
مشاهده نمایید
- - - Updated - - -
با سلام
مشکل در این فایل می باشد
کد:
<?php/*
Template Name: Contact me
*/
if($_POST[sent]){
$error = "";
if(!trim($_POST[your_name])){
$error .= "<p>لطفا نام خود را وارد کنید ";
}
if(!filter_var(trim($_POST[your_email]),FILTER_VALIDATE_EMAIL)){
$error .= "<p>لطفا آدرس ایمیل معتبری را وارد کنید </p>";
}
if(!trim($_POST[your_message])){
$error .= "<p>لطفا متن خود را وارد کنید </p>";
}
if(!$error){
$email = mail(get_option("admin_email"),trim($_POST[your_name])." این ایمیل ارسال شده از ".get_option("blogname"),stripslashes(trim($_POST[your_message])),"From: ".trim($_POST[your_name])." < ".trim($_POST[your_email]).">\r\nReply-To:".trim($_POST[your_email]));
}
}
?>
<?php get_header(); ?>
<div class="main-index-content">
<div class="two-box-content">
<div class="post-box-content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?><div class="post">
<div id="post-title">
<h1><a href="<?php the_permalink(); ?>/#more" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
<div id="post-info">
<div class="clear"></div>
</div>
</div>
<div id="content" class="contactus-txt">
<div class="txtbbb">
<?php if($email){ ?>
<p><strong>پیغام شما با موفقیت ارسال شد. منتظر پاسخ باشید </strong></p>
<?php } else { if($error) { ?>
<?php the_content(); ?>
<div class="error-box2">
<p><strong>پیغام شما نمی تواند ارسال شود </strong></p><p>
</div>
<div class="error-box">
<?php echo $error; ?>
</div>
<?php } else { the_content(); } ?>
<form action="<?php the_permalink(); ?>" id="contact_me" method="post">
<input type="hidden" name="sent" id="sent" value="1" />
<table class="contactbox" border="0">
<tr>
<td><?php (_e('Name')); ?>:</td>
<td><input class="cont-input" type="text" name="your_name" id="your_name" value="<?php echo $_POST[your_name];?>" /></td>
</tr>
<tr>
<td><label for="label"><?php (_e('Email')); ?>:</label></td>
<td><input class="cont-input" type="text" name="your_email" id="your_email" value="<?php echo $_POST[your_email];?>" /></td>
</tr>
<tr>
<td><label for="label"><?php (_e('Text')); ?>:</label></td>
<td><textarea class="cont-txtr" name="your_message" class="txt-msg" id="your_message"><?php echo stripslashes($_POST[your_message]); ?></textarea></td>
</tr>
<tr>
<td colspan="2"><input class="cont-submit" type="submit" name = "send" value = "<?php (_e('Submit')); ?>" /></td>
</tr>
</table>
</form>
<?php } ?>
<?php echo the_views( get_the_ID(), 'count' ); ?>
</div>
</div>
<div class="clear"></div>
<div id="post-footer"></div>
</div>
<?php echo the_views( get_the_ID(), 'count' ); ?>
<?php endwhile; endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
- - - Updated - - -
مشکل حل شد
لطفا تاپیک بسته شود