رفتن به مطلب

themento

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

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

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

  • روز های برد

    6

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

  1. ببخشید متوجه نشدم. یعنی یه سرور مجازی و یه هاست برای میزبانی باید بگیرم؟ نمیشه تو سرور مجازی وردپرس نصب کرد و میزبانی بشه؟

    و دراصل سرور مجازی جای هاست دانلود رو میگیره؟

    بعد سیستم دانلود و اپلودش چطوره . راحت لینک میده؟ و متوجه نشدم چیو باید کانفینگ کنیم، ساب دامین یا چیز دیگه. بازم ممنون

     

     

     

     

     

  2. سلام یه سایت موزیک رپ دارم که قبلا از نت افراز سرویس گرفته بودم و الان میخوام سرویسم رو عوض کنم. و چند تا سوال و راهنمایی نیاز داشتم

    اول اینکه دو تا هاست (هاست میزبانی کم حجم و هاست دانلود) تهیه کنم یا سرور مجازی؟

    بعد سایت من ممکنه ف*ی*لتر بشه کدوم یکی بهتره که مسدود نشه؟

    اگه از سرور مجازی استفاده کنم به هاست دانلود نیازه یا نه؟ میشه چند تا دامین (چند تا سایت) اضافه کرد؟ بعد برا وردپرس لینوکس بهتره یا ویندوز؟

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

  3. اگه منظورتون فایل های قالب هست که میتونید کم حجم کنید عکس هارو و فایل های css, js رو فشرده کنید(js & css comprosor). و قالب حجم زیادی نداره که به ادرس دیگه ای منتقل بشه. اگه هم حجم بالایی داره باید بهینه و سئو کنید با انتقال اون هیچی درست نمیشه. و اگه منظورتون فایل های آپلودی در وردپرس هست میتونید یه ساب دامین ایجاد کنید و اونو به یه هاست دانلود وصل کنید. به یه آدرس جدید منتقال نکنید از نظر سئو خوب نیست بهترین راه انتقال به ساب دامینه که میتونید از آموزش زیر استفاده کنید:
    hamyarwp.com/آپلود-رسانه-وردپرس-بر-روی-ftp-سرور-دیگر/

    • امتیاز 2
  4. سلام. من میخام شورد کد بسازم اگه میشه کمک کنید.

    این آموزش هم دیدم ولی زیاد php بلد نیستم: http://wp-parsi.com/article/shortcodes-101-first/

    این کد های html و php رو میخام شورد کد کنم:


    <div id="login-register-password">
    <?php global $user_ID, $user_identity; get_currentuserinfo(); if (!$user_ID) { ?>
    <ul class="tabs_login">
    <li class="active_login"><a href="#tab1_login">Login</a></li>
    <li><a href="#tab2_login">Register</a></li>
    <li><a href="#tab3_login">Forgot?</a></li>
    </ul>
    <div class="tab_container_login">
    <div id="tab1_login" class="tab_content_login">
    <?php $register = $_GET['register']; $reset = $_GET['reset']; if ($register == true) { ?>
    <h3>Success!</h3>
    <p>Check your email for the password and then return to log in.</p>
    <?php } elseif ($reset == true) { ?>
    <h3>Success!</h3>
    <p>Check your email to reset your password.</p>
    <?php } else { ?>
    <h3>Have an account?</h3>
    <p>Log in or sign up! It’s fast & <em>free!</em></p>
    <?php } ?>
    <form method="post" action="<?php bloginfo('url') ?>/wp-login.php" class="wp-user-form">
    <div class="username">
    <label for="user_login"><?php _e('Username'); ?>: </label>
    <input type="text" name="log" value="<?php echo esc_attr(stripslashes($user_login)); ?>" size="20" id="user_login" tabindex="11" />
    </div>
    <div class="password">
    <label for="user_pass"><?php _e('Password'); ?>: </label>
    <input type="password" name="pwd" value="" size="20" id="user_pass" tabindex="12" />
    </div>
    <div class="login_fields">
    <div class="rememberme">
    <label for="rememberme">
    <input type="checkbox" name="rememberme" value="forever" checked="checked" id="rememberme" tabindex="13" /> Remember me
    </label>
    </div>
    <?php do_action('login_form'); ?>
    <input type="submit" name="user-submit" value="<?php _e('Login'); ?>" tabindex="14" class="user-submit" />
    <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
    <input type="hidden" name="user-cookie" value="1" />
    </div>
    </form>
    </div>
    <div id="tab2_login" class="tab_content_login" style="display:none;">
    <h3>Register for this site!</h3>
    <p>Sign up now for the good stuff.</p>
    <form method="post" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" class="wp-user-form">
    <div class="username">
    <label for="user_login"><?php _e('Username'); ?>: </label>
    <input type="text" name="user_login" value="<?php echo esc_attr(stripslashes($user_login)); ?>" size="20" id="user_login" tabindex="101" />
    </div>
    <div class="password">
    <label for="user_email"><?php _e('Your Email'); ?>: </label>
    <input type="text" name="user_email" value="<?php echo esc_attr(stripslashes($user_email)); ?>" size="25" id="user_email" tabindex="102" />
    </div>
    <div class="login_fields">
    <?php do_action('register_form'); ?>
    <input type="submit" name="user-submit" value="<?php _e('Sign up!'); ?>" class="user-submit" tabindex="103" />
    <?php $register = $_GET['register']; if($register == true) { echo '<p>Check your email for the password!</p>'; } ?>
    <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>?register=true" />
    <input type="hidden" name="user-cookie" value="1" />
    </div>
    </form>
    </div>
    <div id="tab3_login" class="tab_content_login" style="display:none;">
    <h3>Lose something?</h3>
    <p>Enter your username or email to reset your password.</p>
    <form method="post" action="<?php echo site_url('wp-login.php?action=lostpassword', 'login_post') ?>" class="wp-user-form">
    <div class="username">
    <label for="user_login" class="hide"><?php _e('Username or Email'); ?>: </label>
    <input type="text" name="user_login" value="" size="20" id="user_login" tabindex="1001" />
    </div>
    <div class="login_fields">
    <?php do_action('login_form', 'resetpass'); ?>
    <input type="submit" name="user-submit" value="<?php _e('Reset my password'); ?>" class="user-submit" tabindex="1002" />
    <?php $reset = $_GET['reset']; if($reset == true) { echo '<p>A message will be sent to your email address.</p>'; } ?>
    <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>?reset=true" />
    <input type="hidden" name="user-cookie" value="1" />
    </div>
    </form>
    </div>
    </div>
    <?php } else { // is logged in ?>
    <div class="sidebox">
    <h3>Welcome, <?php echo $user_identity; ?></h3>
    <div class="usericon">
    <?php global $userdata; get_currentuserinfo(); echo get_avatar($userdata->ID, 60); ?>
    </div>
    <div class="userinfo">
    <p>You’re logged in as <strong><?php echo $user_identity; ?></strong></p>
    <p>
    <a href="<?php echo wp_logout_url('index.php'); ?>">Log out</a> |
    <?php if (current_user_can('manage_options')) {
    echo '<a href="' . admin_url() . '">' . __('Admin') . '</a>'; } else {
    echo '<a href="' . admin_url() . 'profile.php">' . __('Profile') . '</a>'; } ?>
    </p>
    </div>
    </div>
    <?php } ?>
    </div>

  5. سلام دوستان سایتم تو موتور های جستجو مثل بینگ یاهو و ... اصلا ثبت نمیشه حدود شش ماهی هست که سایتم بالا اومده و فقط تو گوگل خوب ثبت شده. و بازدید ها از گوگل هستن.

    کلا حتی ادرس سایت هم ایندکس نمیشه:

    گوگل

    بینگ

    یاهو

    کسی اگه میدونه مشکل کجاس بگه لطفا

    سایت مپ: http://sarzaminrap.com/sitemap.xml

    فایل روبوت: http://sarzaminrap.com/robots.txt

  6. تست کنید:


    <?php wp_reset_query(); ?>
    <div class="zt_boxArea_12 ">
    <div class="single_ADS_B1">
    <?php zt_get_element('ADS_B1'); ?>
    </div>
    <div class="clear"></div>
    <div class="zt_content">
    <div class="zt_widgetHead">
    <div class="zt_widgetHeadTitle">
    <h2>
    <?php wp_reset_query();?>
    <?php the_title(); ?>
    </h2>
    </div>
    <div class="zt_widgetHeadArchive">
    <!--<a href="">
    ليست کامل
    <i class=""></i></a>-->
    </div>
    <div class="clear"></div>
    </div>
    <div class="zt_widgetBody zt_tour">
    <?php
    wp_reset_query();
    while (have_posts()) {
    the_post();
    zt_tour_check_expire(get_the_ID());
    $views = get_post_meta(get_the_ID(), 'views', TRUE);
    $views = intval($views)+1;
    add_post_meta(get_the_ID(), 'views', $views, TRUE)
    OR update_post_meta(get_the_ID(), 'views', $views);
    $is_feature = get_post_meta(get_the_ID(), 'zttour_is_feature', true);
    $is_active = get_post_meta(get_the_ID(), 'zttour_is_active', true);
    $is_last_tiem = get_post_meta(get_the_ID(), 'zttour_is_last_time', true);
    $is_nowruz = get_post_meta(get_the_ID(), 'zttour_is_nowruz', true);
    ?>
    <div class="single_tour <?php echo ($is_feature == 1) ? 'zttour_featured' : ''; ?> <?php echo ($is_last_tiem == 1) ? 'zttour_last_time' : ''; ?> <?php echo ($is_nowruz == 1) ? 'zttour_nowruz' : ''; ?>">
    <div class="tour_content">
    <?php
    if ($is_active == 0) {
    echo '<div class="zttour_expired">' . __('اين تور منقضي شده است', 'ztframe_tour') . '</div>';
    }
    ?>
    <div class="tabletitle"><h4>اطلاعات تور</h4></div>
    <table class="table" cellpadding="0" cellspacing="0" width="100%">
    <tbody>
    <tr>
    <td class="rightcolumn tour_vert_title">از</td>
    <td class="tour_vert_value" align="right"><?php echo get_post_meta(get_the_ID(), 'zttour_source', TRUE); ?><br></td>
    </tr>
    <tr>
    <td class="rightcolumn tour_vert_title">نوع سفر</td>
    <?php
    $trans = get_post_meta(get_the_ID(), 'zttour_transport', TRUE);
    $trans_name = array('1' => 'هوايي', '2' => 'دريايي', '3' => 'زميني با قطار', '4' => 'زميني با اتوبوس');
    $transer = get_post_meta(get_the_ID(), 'zttour_transporter', TRUE);
    ?>
    <td class="tour_vert_value" align="right"><?php echo $trans_name[$trans] . ' - ' . $transer; ?></td>
    </tr>
    <tr>
    <td class="rightcolumn tour_vert_title">قيمت از</td>
    <?php
    $price_from = get_post_meta(get_the_ID(), 'zttour_price_from', TRUE);
    $price_dolar = get_post_meta(get_the_ID(), 'zttour_price_by_dolar', TRUE);
    ?>
    <td class="tour_vert_value" align="right">
    <?php
    $price_from_ech = (is_numeric($price_from))?number_format($price_from):$price_from;
    echo '<span class="number">'.$price_from_ech .'</span> تومان';
    if (!empty($price_dolar)) {
    echo ' + <span class="number">' . $price_dolar . '</span>';
    }
    ?>
    </td>
    </tr>
    <tr>
    <td class="rightcolumn tour_vert_title">تاريخ</td>
    <td class="tour_vert_value" align="right">
    <span class="tour_start_date">
    <?php
    $from_date=get_post_meta(get_the_ID(), 'zttour_start_date', TRUE);
    $from_date=jdate('j F Y',zt_strtotime($from_date));
    echo 'تاريخ شروع تور : <span class="date">' . $from_date . '</span>';
    ?>
    </span>
    <span class="tour_end_date">
    <?php
    $to_date=get_post_meta(get_the_ID(), 'zttour_end_date', TRUE);
    $to_date=jdate('j F Y',zt_strtotime($to_date));
    echo ' ، تاريخ پايان تور : <span class="date">' . $to_date . '</span>'; ?>
    </span>
    </td>
    </tr>
    <tr>
    <td class="rightcolumn tour_vert_title">مدارک لازم</td>
    <td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_docs', TRUE)); ?><br>
    </td>
    </tr>
    <tr>
    <td class="rightcolumn tour_vert_title">خدمات آژانس</td>
    <td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_service', TRUE)); ?></td>
    </tr>
    <tr>
    <td class="rightcolumn tour_vert_title">توضيحات</td>
    <td class="tour_vert_value" align="right"><?php echo nl2br(get_post_meta(get_the_ID(), 'zttour_description', TRUE)); ?></td>
    </tr>
    <?php if (function_exists('wprp')) { ?>
    <tr>
    <td class="rightcolumn tour_vert_title">گزارش تخلف</td>
    <td class="tour_vert_value" align="right"><?php wprp(true); ?></td>
    </tr>
    <?php } ?>
    </tbody>
    </table>
    <?php
    wp_reset_query();
    while (have_posts()) {
    the_post();
    ?>
    <?php the_content(); ?>
    <?php if ($is_active == 1) { ?>
    <div class="tabletitle"><h4>اطلاعات تماس</h4></div>
    <table class="table " cellpadding="0" cellspacing="0" width="100%">
    <tbody>
    <tr>
    <td class="rightcolumn tour_vert_title">نام آژانس</td>
    <td class="tour_vert_value" align="right">
    <?php /* * * /?>
    <a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_the_author(); ?></a>
    <?php /* * */ ?>
    <a href="<?php echo get_author_posts_url(get_the_author_ID()); ?>"><?php echo get_user_meta(get_the_author_ID(), 'agency_name', true); ?></a>
    </td>
    </tr>
    <tr>
    <td class="rightcolumn tour_vert_title">تلفن</td>
    <td class="tour_vert_value" align="right"><?php the_author_meta('tel'); ?></td>
    </tr>
    <?php /**/?>
    <tr>
    <td class="rightcolumn tour_vert_title">ايميل</td>
    <td class="tour_vert_value" align="right"><a href="mailto:<?php the_author_email(); ?>" target="_blank"><?php the_author_email(); ?></a></td>
    </tr>
    <?php /**/?>
    <tr>
    <td class="rightcolumn tour_vert_title">وب سايت</td>
    <td class="tour_vert_value" align="right"><a href="<?php the_author_meta('url'); ?>" target="_blank"><?php the_author_meta('url'); ?></a></td>
    </tr>
    </tbody>
    </table>
    <?php } ?>
    <div class="tabletitle"><h4>به</h4></div>
    <table class="table tour_table tour_destination" cellpadding="0" cellspacing="0" width="100%">
    <tbody>
    <tr class="tablerow">
    <td class="horis_title">نام</td>
    <td class="horis_title">مدت اقامت</td>
    <td class="horis_title">توضيحات</td>
    </tr>
    <?php
    $destination = get_post_meta(get_the_ID(), 'zttour_destination', TRUE);
    $stay = get_post_meta(get_the_ID(), 'zttour_stay', TRUE);
    $dest_description = get_post_meta(get_the_ID(), 'zttour_dest_description', TRUE);
    if(is_array($destination))
    foreach ($destination as $dk => $dst) {
    ?>
    <tr>
    <td><?php echo $dst; ?></td>
    <td><?php echo $stay[$dk]; ?> شب</td>
    <td><?php echo $dest_description[$dk]; ?></td>
    </tr>
    <?php
    }
    ?>
    </tbody>
    </table>
    <div class="tabletitle"><h4>هتل‌ها</h4></div>
    <table class="table tour_table tour_hotel" cellpadding="0" cellspacing="0" width="100%">
    <tbody>
    <?php
    $h_name = get_post_meta(get_the_ID(), 'zttour_hotel_name', TRUE);
    $h_rate = get_post_meta(get_the_ID(), 'zttour_hotel_rate', TRUE);
    $h_service = get_post_meta(get_the_ID(), 'zttour_hotel_service', TRUE);
    $h_link = get_post_meta(get_the_ID(), 'zttour_hotel_link', TRUE);
    $h_description = get_post_meta(get_the_ID(), 'zttour_hotel_description', TRUE);
    $hotel_title_1 = get_post_meta(get_the_ID(), 'zttour_hotel_title_1', TRUE);
    $hotel_price_1 = get_post_meta(get_the_ID(), 'zttour_hotel_price_1', TRUE);
    $hotel_title_2 = get_post_meta(get_the_ID(), 'zttour_hotel_title_2', TRUE);
    $hotel_price_2 = get_post_meta(get_the_ID(), 'zttour_hotel_price_2', TRUE);
    $hotel_title_3 = get_post_meta(get_the_ID(), 'zttour_hotel_title_3', TRUE);
    $hotel_price_3 = get_post_meta(get_the_ID(), 'zttour_hotel_price_3', TRUE);
    $hotel_title_4 = get_post_meta(get_the_ID(), 'zttour_hotel_title_4', TRUE);
    $hotel_price_4 = get_post_meta(get_the_ID(), 'zttour_hotel_price_4', TRUE);
    $hotel_title_5 = get_post_meta(get_the_ID(), 'zttour_hotel_title_5', TRUE);
    $hotel_price_5 = get_post_meta(get_the_ID(), 'zttour_hotel_price_5', TRUE);
    $title_array = array_filter(array($hotel_title_1[0], $hotel_title_2[0], $hotel_title_3[0], $hotel_title_4[0], $hotel_title_5[0]));
    $price_array = array($hotel_price_1, $hotel_price_2, $hotel_price_3, $hotel_price_4, $hotel_price_5);
    ?>
    <tr class="tablerow">
    <td class="horis_title hotel_name">نام هتل</td>
    <td class="horis_title">خدمات هتل</td>
    <?php
    if(is_array($title_array))
    foreach ($title_array as $title) {
    echo '<td class="horis_title">' . $title . '</td>';
    }
    ?>
    <td class="horis_title">توضيحات</td>
    </tr>
    <?php
    if(is_array($h_name))
    foreach ($h_name as $hk => $hotel_name) {
    ?>
    <tr>
    <td class="hotel_names">
    <?php foreach ($hotel_name as $k => $v) { ?>
    <p class="a_hotel">
    <?php
    $temp_link = $h_link[$hk][$k];
    if(empty($temp_link)){
    $temp_link='#';
    }elseif(strpos($temp_link, 'http://')===FALSE AND strpos($temp_link, 'https://')===FALSE ){
    $temp_link='http://'.$temp_link;
    }
    ?>
    <a href="<?php echo $temp_link; ?>" target="_blank"><?php echo $v; ?></a>
    <br/>
    <span class="hotel_stars">
    <?php
    if (!is_numeric($h_rate[$hk][$k])) {
    echo '<span class="h_n_type">' . $h_rate[$hk][$k] . '</span>';
    } else {
    ?>
    <?php for ($s = 1; $s <= $h_rate[$hk][$k]; $s++) { ?>
    <i class="fa fa-star"></i>
    <?php
    }
    }
    ?>
    </span>
    </p>
    <?php } ?>
    </td>
    <td class="hotel_services">
    <?php foreach ($hotel_name as $k => $v) { ?>
    <p class="a_hotel hotel_service">
    <?php echo $h_service[$hk][$k]; ?>
    </p>
    <?php } ?>
    </td>
    <?php
    foreach ($title_array as $tk => $title) {
    $price = (is_numeric($price_array[$tk][$hk]))? number_format($price_array[$tk][$hk]):$price_array[$tk][$hk];
    echo '<td class="hotel_price">';
    echo '<span class="number">'.$price.' تومان </span>';
    echo '</td>';
    }
    ?>
    <td class="hotel_desc"><?php echo $h_description[$hk]; ?></td>
    </tr>
    <?php } ?>
    </tbody>
    </table>
    </div>
    </div>
    <?php } ?>
    <div class="tour_relateds">
    <?php zt_get_element('tour_related'); ?>
    <?php zt_get_element('tour_latest'); ?>
    </div>
    <div class="single_ADS_B2">
    <?php zt_get_element('ADS_B2'); ?>
    </div>
    <div class="clear"></div>

    <div class="clear"></div>
    <div class="tour_tags">
    <div class="comment_title"><h4>برچسب ها</h4></div>
    <div class="tour_tag">
    <?php the_tags('','','') ?>
    </div>
    </div>
    <div class="clear"></div>
    <div class="tour_comments">
    <div class="comment_title"><h4>نظرات</h4></div>
    <div class="comment_title">
    <?php zt_get_comment() ?>
    </div>
    </div>
    <?php } ?>
    </div>
    <div class="zt_widgetFoot"></div>
    <div class="clear"></div>
    </div>
    </div>

    • امتیاز 2
  7. بله توسط این افزونه در اصل دوتا سایت جدا(دو آدرس مختلف) برای شما ایجاد میکنه و ترجمه هر پست یه صورت دستی باید گزاشته شده طبق چیزی که گفتین این افزونه به کارتون میاد. نمونه سایتی که با این پلاگین درست کردم: http://pasteurclinic.com/

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