رفتن به مطلب

masood1111

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

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

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

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

  1. من مشکل را داشتم. مشکل وقتی ایجاد شد تو سایت من که افزونه yosat را نصب کردم. قبلش هیچ مشکلی نبود. ایندکس شدنها هم رندم یا https بود یا نبود هیچ الگوریتمی من توش پیدا نکردم. تا اینکه ترجیح دادم یه ssl گرفتم و کلا سایت را روی https بردم.

    • امتیاز 1
  2. سلام

    وقت همگی بخیر

    دوستان بهترین راه برای فیلتر کردن مطالب بر اساس تگ چی پیشنهاد می دید؟

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

    ممنون از همگی

  3. درود

    در ادیتور ادمین گزینه word count وجود داره که تعداد کلمات محتوای در حالت تایپ را شمارش میکنه. من یه ادیتور front end در وب سایت دارم که همون ادیتور وردپرس هست اما با هر روشی امتحان کردم نتونستم شمارش کلمات را بهش اضافه کنم.

    پیشنهادی دارید دوستان عزیزم؟

  4. بذارید اینجوری بگم، هر جا فراخونی آیتم ها در حلقه foreach انجام میشه، عناوین ناقص چاپ میشه. بعنوان مثال:


    <div class="templates">
    <?php foreach($this->items as $item) { ?>
    <?php echo $item; ?>
    <?php } ?>
    </div>

    اما تو صفحات single هر آیتم که فراخوانی عنوان بصورت تکی صورت می گیره کامل چاپ میشه.

  5. عرض ادب

    سخت هست بخوام بگم مشکل چیه چون خودم اصلا نمی دونم مشکل کی بوجود می آد، اما کلیات به این صورت هست.

    این اسکریپت را ببینید:

    http://cloneforest.com/themeclone-v-2-0-demo-page

    ساختار برنامه نویسی mvc هست. وقتی مطلبی ارسال میشه و در صفحه اصلی قرار می گیره، عنوان ناقص ظاهر میشه، بخصوص برای فارسی که خیلی بدجور میشه اکثر مواقع یک کلمه، بعضی جملات دو سه کلمه بیشتر ظاهر نمیشه، به تنظیمات title length اینا هم بر نمی گرده چون همون جمله ای که ناقص چاپ شده بعضی موارد اگر یکی دو حرف ازش کم بشه یهو نصف دیگه جمله ظاهر میشه. این مورد فقط در صفحه اول هست. در صفحات single عناوین بصورت کامل ظاهر میشه. بررسی کردم کدی که هر دو عنوان را لود می کنه در صفحه ایندکس و سینگل هر دو دقیقا یکی هست. حالا چه تداخلی تو صفحه اول بوجود می آید که این مورد پیش میاد نمی دونم.

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

    منتظر تجزیه تحلیل های اساتید هستم.

    فراخوانی عنوان در صفحات سینگل (سالم و بدون مشکل)


    <h2 class="title-3"><?php echo $this->item['name']; ?></h2>

    سورس کامل:


    <?php echo $this->header_part; ?>

    <div id="content">
    <div class="breadcrumb">
    <p><?php
    $output = array();
    foreach($this->crumbs as $crumb) {
    if(isset($crumb['href']))
    $output[] = '<a href="'. $crumb['href'] .'">'. $crumb['name'] .'</a>';
    else
    $output[] = $crumb['name'];
    }

    echo implode('  ›  ', $output);
    ?></p>
    </div>
    <div class="titlehead inner">
    <h2 class="title-3"><?php echo $this->item['name']; ?></h2>
    <div class="clear"></div>
    </div>
    <div class="stats nomemberbox">
    <p><a href="<?php echo $this->item_link; ?>" class="active"><?php echo $this->translate('Item Details'); ?></a>
    <?php if($this->faq_link) { ?>
    <a href="<?php echo $this->faq_link; ?>"><?php echo $this->translate('Faq'); ?></a>
    <?php } ?>
    <a href="<?php echo $this->comment_link; ?>"><?php echo $this->translate('Comments'); ?></a>
    <?php if($this->edit_link) { ?>
    <a href="<?php echo $this->edit_link; ?>"><?php echo $this->translate('Edit'); ?></a>
    <?php } ?>
    <?php if($this->delete_link) { ?>
    <a href="#" onclick="javascript: if(confirm('<?php echo $this->translate('Are you sure you want to delete the item? Once deleted it can not ne restored again!'); ?>')){ window.location.href='<?php echo $this->delete_link; ?>';} return false;"><?php echo $this->translate('Delete'); ?></a>
    <?php } ?>
    </p>
    <div class="clear"></div>
    </div>
    <?php if(JO_Session::get('user_id')) { ?>
    <div id="item_pay">
    <form action="" method="post" id="pay_form">
    <p class="hide"><input type="hidden" value="<?php echo $this->item['id']; ?>" name="item_id" /></p>
    <p class="hide"><input type="hidden" value="" id="licence" name="licence" /></p>
    </form>
    <?php if($this->membership_link) { ?>
    <p class="payment_method" id="id3">
    <a href="<?php echo $this->membership_pay_link; ?>" class="button-blue" id="pay_member" rel="<?php echo $this->translate('
    Please review the item attributes to ensure this item suits your needs. We can only issue a refund if the item does not work as described on the item page. By clicking okay you will immediately purchase this item.'); ?>"><?php echo $this->translate('Membership'); ?></a>
    <span class="pd"><?php echo $this->translate('Buy a pre-paid package for a limited number of downloads and receive great discounts.'); ?></span>
    <a href="<?php echo $this->membership_link; ?>"><?php echo $this->translate('Become member'); ?></a>
    </p>
    <?php } ?>
    <p class="payment_method" id="id2">
    <a href="<?php echo $this->deposit_link; ?>" class="button-blue" id="pay_deposit" rel="<?php echo $this->translate('
    Please review the item attributes to ensure this item suits your needs. We can only issue a refund if the item does not work as described on the item page. By clicking okay you will immediately purchase this item.'); ?>"><?php echo sprintf($this->translate('Use Pre-paid Deposits (Save %s)'), $this->your_profit); ?></a>
    <span class="pd"><?php echo $this->translate('Pay'); ?> <?php echo $this->prepaid_price; ?> <?php echo $this->translate('from your account ballance'); ?>: <?php echo $this->usertotal; ?></span>
    <a href="<?php echo $this->deposit; ?>"><?php echo $this->translate('Make deposit'); ?></a>
    </p>
    <p class="payment_method" id="id1">
    <a href="<?php echo $this->payment_link; ?>" class="button-blue" id="pay_payment"><?php echo $this->translate('Buy Now'); ?></a>
    <?php echo $this->translate('You will be redirected to the choice of payment method for') .' '. $this->item['price']; ?><br />
    <?php if($this->payments) { ?>
    <?php foreach($this->payments as $payment) { ?>
    <img src="<?php echo $payment['logo']; ?>" alt="<?php echo $payment['name']; ?>" />
    <?php } ?>
    <?php } ?>
    </p>
    <a href="#" id="close_payment" class="delete"></a>
    </div>
    <div class="clear"></div>
    <?php } ?>
    <div id="main" class="withhead">
    <?php if(isset($this->msg_success)) { ?>
    <p id="msg" class="item_msg box-success"><?php echo $this->msg_success; ?></p>
    <?php } ?>
    <?php if(isset($this->msg_error)) { ?>
    <p id="msg" class="item_msg box-error"><?php echo $this->msg_error; ?></p>
    <?php } ?>
    <div class="product">
    <p class="thumb">
    <img src="<?php echo $this->item['big_image']; ?>" alt="<?php echo $this->item['name']; ?>" />
    <?php if(!empty($this->item['demo_url'])) { ?>
    <a href="<?php echo $this->item['demo_url']?>" class="labellink viewdemo" rel="external"><?php echo $this->translate('View Demo'); ?></a>
    <?php } ?>
    <a href="<?php echo $this->screenshots; ?>" class="labellink gallery" rel="external"><?php echo $this->translate('Gallery'); ?></a>
    </p>
    <div class="textbox">
    <?php echo $this->item['description']; ?>
    </div>
    </div>
    </div>
    <?php echo $this->rightside; ?>
    <div class="clear"></div>
    <?php if($this->otherItems) {?>
    <div class="titlehead titleheadproduct">
    <h2 class="title-5"><?php echo $this->translate('More Items by this author'); ?></h2>
    <div class="clear"></div>
    </div>
    <div class="items">
    <div class="row rowfirst">
    <?php $cnt = count($this->otherItems); ?>
    <?php for($i = 0; $i < $cnt; $i++) { ?>
    <div class="box<?php echo $i == ($cnt - 1) ? ' last' : ''; ?>">
    <?php echo $this->otherItems[$i]; ?>
    </div>
    <?php } ?>
    <div class="clear"></div>
    <span class="pad"><span class="bg"><span class="end"></span></span></span>
    </div>
    <div class="clear"></div>
    </div>
    <p class="viewall"><a href="<?php echo $this->user['userhref']; ?>"><?php echo $this->translate('View all items'); ?></a></p>
    <?php } ?>
    </div>
    <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
    <?php echo $this->footer_part; ?>

    فراخوانی هر آیتم در صفحه اول (عنوان ناقص چاپ میشه):


    <h3 class="title-1"><a href="<?php echo $this->item['href']; ?>"><?php echo $this->item['name']; ?></a></h3>

    سورس کامل:


    <div class="flip"><img src="<?php echo $this->item['thumbnail']; ?>" alt="<?php echo $this->item['name']; ?>" class="thumb" /></div>
    <?php if(!isset($this->item['no_items'])) { ?>
    <div class="data">
    <h3 class="title-1"><a href="<?php echo $this->item['href']; ?>"><?php echo $this->item['name']; ?></a></h3>
    <p class="meta"><?php echo $this->translate('by'); ?> <a href="<?php echo $this->item['userhref']?>"><?php echo $this->item['username']; ?></a></p>
    <div class="sales">
    <p class="total">
    <?php if(($this->item['free_file']=='false')) { ?>
    <?php echo $this->item['sales']; ?> <?php echo $this->item['sales'] == 1 ? $this->translate('sale') : $this->translate('sales'); ?>, <?php echo $this->item['price']; ?>
    <?php } else { ?>
    <?php echo $this->item['sales']; ?> <?php echo $this->item['sales'] == 1 ? $this->translate('download') : $this->translate('downloads'); ?>, <?php echo $this->translate('free'); ?>
    <?php } ?></p>
    <p class="stars"><?php echo $this->item['rating'] > 0 ? str_repeat('<img src="data/themes/images/star.png" alt="Star" />', $this->item['rating']) : ''?></p>
    </div>
    <p class="buttons"><a href="<?php echo $this->item['href']; ?>" class="button-blue"><?php echo $this->translate('Buy Now'); ?></a> <?php if(!empty($this->item['demo_url'])) { ?><a href="<?php echo $this->item['demo_url']; ?>" class="button-silver" rel="external"><?php echo $this->translate('View Demo'); ?></a><?php } ?></p>
    </div>
    <?php } ?>

    عزیزان میشه بفرماید بجای

    <?php echo $this->item['name']; ?>

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

    ممنون

  6. عرض ادب

    اگر inspect element بگیرم قسمت متن به این صورت است:


    <article id="post-12925" class="post-12925 post type-post status-publish format-status hentry category-blog-category-01 tag-art tag-dream-theme tag-wordpress">
    <p>test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test </p>
    <div class="......

    مطالبی که بین تگ p قرار دارند اگر بصورت انگلیسی باشد مشکلی بوجود نمی اید اما در حالتی که بجای text جملات فارسی باشد، کل کلمات در یک خط قرار می گیرند و از هیچ موردی خاصیت width نمی گیرند (ادامش از صفحه می زنه بیرون). حتی براش کلاس هم تعریف می کنم هر مورد css را قبول می کنه بجز width. به هیچ صراطی مستقیم نیست و اینتر نمی خوره.

    چه کنیم؟

    تشکر

  7. $item را باید چی تعریف کنم.

    چون الان خطای زیر را میده:

    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\test\users.php on line 2

    اینم محتوای user.php


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Users</title>
    <?php
    include('index.php');
    include("db.php");
    ?>
    </head>
    <body>
    <table border="1">
    <tr>
    <td>ID</td>
    <td>Name</td>
    <td>Family</td>
    <td>Edit</td>
    </tr>
    <?php $result = mysql_query("SELECT * FROM usersystem") or die(mysql_error()); ?>
    <?php foreach($result as $items) : ?>
    <tr>
    <td><?php echo $item->ID; ?></td>
    <td><?php echo $item->name; ?></td>
    <td><?php echo $item->family; ?></td>
    <td><a href="?action=edit&id=<?php echo $item->ID; ?>">Edit</a></td>
    </tr>
    <?php endforeach; ?>
    </table>
    <?php
    if($_GET['action'] == 'edit') {
    include_once('edit.php');
    } else {
    include_once('show.php');
    }
    ?>
    </body>
    </html>

  8. تشکر.

    الان فرض کنید ما یه همچین جدولی داریم.

    post-317-0-00011600-1393431505_thumb.png

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

    چطوری باید باشه که اطلاعات مختص هر فرد لود بشه یعنی لینک گزینه edit چی باید باشه و همچنین فرم edit ی که قرار جزئیات از دیتابیس برای ویرایش توش لود بشه از کجا بفهمه روی کدوم edit کلیک شده تا اطلاعات اون کاربر را لود کنه؟ :)

    مرسی

  9. سلام. وقت همگی بخیر

    لازمه یه سیستم ویکی داشته باشیم. سیستم هایی که هست چنگی به دل نمی زنه مثلا ویکی مدیا یا دوکو ویکی خیلی ساده طراحی شده اند. (البته مشکل اونجاست که ما وردپرس کاریم و از همه چیز مثل وردپرس انتظار داریم ;) )

    بزرگواران CMS ویکی شیک و قدرتمند یا CMS های دیگه با پلاگین ویکی سراغ ندارید که خوب کار شده باشه؟ پیشنهادی ندارید؟

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