شاطی رودخانه ای به سوی دنیای متن باز

پروژه ها و برنامه ها و سمینار های اینجانب به صورت آزاد در این سایت قرار می گیرد

شاطی رودخانه ای به سوی دنیای متن باز

پروژه ها و برنامه ها و سمینار های اینجانب به صورت آزاد در این سایت قرار می گیرد

پروژه ها و برنامه ها و سمینار های اینجانب به صورت آزاد در این سایت قرار می گیرد. امیدوارم با این کار سرآغازی برای آزادی در مرز های دانش باشم .

طبقه بندی موضوعی
کلمات کلیدی
آخرین مطالب

۵۱ مطلب در شهریور ۱۳۹۴ ثبت شده است

۳۱
شهریور ۹۴

برخی از توابع jquery بعد از Ajax  از کار می افتند که راه حلش به شرح زیر است :

 

        var myStylesLocation = "jquery.countdown.min.js";
        $.get(myStylesLocation, function (js) {
            $('<script></script>').html(js).appendTo("head");
        });

۰ نظر موافقین ۰ مخالفین ۰ ۳۱ شهریور ۹۴ ، ۱۲:۵۵
مبین
۳۰
شهریور ۹۴

 


        $(".star").click(function () {
            $(".rate").addClass('bounceOut');
            setTimeout(function () {
                $(".rateresult").css('display', 'block');
                $(".rateresult").addClass('bounceIn');
            }, 500);
        });
 

 

use this code

 

 


    $(document).on('click', ".star", function () {
        $(".rate").addClass('bounceOut');
        setTimeout(function () {
            $(".rateresult").css('display', 'block');
            $(".rateresult").addClass('bounceIn');
        }, 500);
    });

 

 

 

when addclass and remove class not work

 

            $("#star1").attr('class', 'star animated pulse');

۰ نظر موافقین ۰ مخالفین ۰ ۳۰ شهریور ۹۴ ، ۱۷:۴۲
مبین
۲۹
شهریور ۹۴

http://stackoverflow.com/questions/905416/add-a-custom-file-extension-to-netbeans

 

 

از bracket هم میشه استفاده کرد.

۰ نظر موافقین ۰ مخالفین ۰ ۲۹ شهریور ۹۴ ، ۱۶:۵۱
مبین
۲۹
شهریور ۹۴

http://threejs.org/

 

http://zufallsgenerator.github.io/firesimulation/realistic.html

 

http://zufallsgenerator.github.io/firesimulation/realistic.html

canves

۰ نظر موافقین ۰ مخالفین ۰ ۲۹ شهریور ۹۴ ، ۱۶:۰۸
مبین
۲۷
شهریور ۹۴

می شود به جای گوگل مپ که ابزاری انحصاری است و بعضا مشکلات تحریم و عدم دسترسی به ایرانیان را ایجاد می کند

از ابزار متن باز زیر استفاده نمود.

https://www.openstreetmap.org

۱ نظر موافقین ۰ مخالفین ۰ ۲۷ شهریور ۹۴ ، ۲۲:۵۷
مبین
۲۶
شهریور ۹۴

    public function hookHeader($params) {

        $rand = mt_rand(1, 1000);
        $namefile = "dycss" . $rand . ".css";
        $myfile = fopen("modules/lmslideshow/css/" . $namefile, "w");
        $txt = "
        h1 {
            color: maroon;
            margin-left: 40px;
        }
        ";
        fwrite($myfile, $txt);
        fclose($myfile);

        $this -> context -> controller -> addCSS(($this -> _path) . 'css/' . $namefile, 'all');
        $this -> context -> controller -> addCSS(($this -> _path) . 'css/boom.css', 'all');
        $this -> context -> controller -> addJS(($this -> _path) . 'js/boom.js');
    }

۰ نظر موافقین ۰ مخالفین ۰ ۲۶ شهریور ۹۴ ، ۱۵:۳۵
مبین
۲۶
شهریور ۹۴

این کار روش های مختلفی دارد ولی یک روش آن به شرح زیر است :

 

اضافه کردن hook header  در هنگام install

!$this -> registerHook('home')

 

اضافه کردن به هوک header

 

    public function hookHeader($params)
    {
        $this->context->controller->addCSS(($this->_path).'boom.css', 'all');
        $this->context->controller->addJS(($this->_path).'js/boom.js');
    }

 

توجه کنید که فایل های boom باید وجود داشته باشند و خالی نباشند.

۰ نظر موافقین ۰ مخالفین ۰ ۲۶ شهریور ۹۴ ، ۱۲:۲۹
مبین
۲۵
شهریور ۹۴

http://blog.belvg.com/prestashop-modules-stylization.html

۰ نظر موافقین ۰ مخالفین ۰ ۲۵ شهریور ۹۴ ، ۱۹:۴۵
مبین
۲۵
شهریور ۹۴

در پرستاشاپ می توان مدل برای ارتباط با دیتابیس به طور کلی نوشت و مبحث چند زبانی را کاملا با  lang , multilang= true _ حل کرد

و برای ارتباط های چند گانه و نمایش در فرم ادمین باید جداگانه کوئری زد .

 


        $this->_select = '  cl.* ';
        $this->_join .=
          'LEFT JOIN `ps_category_lang`  as cl ON (a.`id_category` = cl.`id_category` )
          ';    
        
        // add action on list   
        $this->addRowAction('edit');
        $this->addRowAction('delete');
        $this->addRowAction('details');
        // create list
        $this->fields_list = array(
            'id_lmslideshow' => array(
                'title' => $this->l('ID'),
                'align' => 'center',
                'width' => 25
            ),
            'name' => array(
                'title' => $this->l('ID Category'),
                'width' => 25,
                'filter_key' => 'a!name',
            )
        );

 

 

و برای قسمت ویرایش از option استفاده نمود

 


        $this->_select = '  cl.* ';
        $this->_join .=
          'LEFT JOIN `ps_category_lang`  as cl ON (a.`id_category` = cl.`id_category` )
          ';    
        
        // add action on list   
        $this->addRowAction('edit');
        $this->addRowAction('delete');
        $this->addRowAction('details');
        // create list
        $this->fields_list = array(
            'id_lmslideshow' => array(
                'title' => $this->l('ID'),
                'align' => 'center',
                'width' => 25
            ),
            'name' => array(
                'title' => $this->l('ID Category'),
                'width' => 25,
                'filter_key' => 'a!name',
            )
        );

۰ نظر موافقین ۰ مخالفین ۰ ۲۵ شهریور ۹۴ ، ۱۶:۳۰
مبین
۲۴
شهریور ۹۴

https://books.google.com/books?id=BsSiBQAAQBAJ&pg=PT178&lpg=PT178&dq=prestashop+_join%28%29&source=bl&ots=JCdV6nBcjq&sig=5jTC4Xeeu1WvfhMJOEMStG3TYrk&hl=en&sa=X&ved=0CDMQ6AEwAmoVChMIl_D6msP5xwIVw9YaCh3o5wD6#v=snippet&q=ObjectModel&f=false

 

 

http://www.amazon.com/PrestaShop-Module-Development-Fabien-Serny-ebook/dp/B00QFBNXIO
 

 

https://www.packtpub.com/web-development/prestashop-module-development

 

 

Prestashop MVC Developer Guide

 

 

http://www.amazon.com/gp/search?index=books&linkCode=qs&keywords=9781326399085

 

https://books.google.com/books?id=0hx7CgAAQBAJ&pg=PA127&lpg=PA127&dq=fields_list+filter_key&source=bl&ots=dETGKy0mZM&sig=RicAKHDjjUT4doEIqdKq__FsgGI&hl=en&sa=X&ved=0CFsQ6AEwCWoVChMIiI-e1rn7xwIVgZwsCh1jvAdW#v=onepage&q=fields_list%20filter_key&f=false

۰ نظر موافقین ۰ مخالفین ۰ ۲۴ شهریور ۹۴ ، ۲۲:۱۰
مبین
۲۴
شهریور ۹۴

  global $smarty, $cookie, $link;
 
  $id_customer = (int)$params['cookie']->id_customer;
  $id_group = $id_customer ? Customer::getDefaultGroupId($id_customer) : _PS_DEFAULT_CUSTOMER_GROUP_;
  $id_lang = (int)$params['cookie']->id_lang;
  $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('
  SELECT c.*, cl.*
  FROM `'._DB_PREFIX_.'category` c
  LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = '.$id_lang.')
  LEFT JOIN `'._DB_PREFIX_.'category_group` cg ON (cg.`id_category` = c.`id_category`)
  WHERE level_depth > 1 And level_depth < 3
  AND c.`active` = 1
  AND cg.`id_group` = '.$id_group.'
  ORDER BY `level_depth` ASC, c.`position` ASC');
  $category = new Category(1);
  $nb = intval(Configuration::get('HOME_categories_NBR'));
 
    global $link;
                 $this->context->smarty->assign(array(
                 'categories' => $result, Category::getRootCategories(intval($params['cookie']->id_lang), true),
                 'link' => $link));

۰ نظر موافقین ۰ مخالفین ۰ ۲۴ شهریور ۹۴ ، ۲۰:۰۶
مبین
۲۴
شهریور ۹۴


{foreach $categorys as $category}
   {$category.name}
   <img  src="{$link->getCatImageLink($category.link_rewrite, $category.id_category )|escape:'html':'UTF-8'}"  />
{/foreach}

۰ نظر موافقین ۰ مخالفین ۰ ۲۴ شهریور ۹۴ ، ۱۸:۳۵
مبین
۲۴
شهریور ۹۴
<ul>
{foreach $myPeople as $value}
   <li>{$value@key}: {$value}</li>
{/foreach}
</ul>
۰ نظر موافقین ۰ مخالفین ۰ ۲۴ شهریور ۹۴ ، ۱۷:۴۶
مبین
۲۴
شهریور ۹۴

http://blog.belvg.com/objectmodel-activerecord-in-prestashop.html

۰ نظر موافقین ۰ مخالفین ۰ ۲۴ شهریور ۹۴ ، ۱۷:۰۶
مبین
۲۴
شهریور ۹۴

http://flowcoding.com/hook-list

۱ نظر موافقین ۰ مخالفین ۰ ۲۴ شهریور ۹۴ ، ۱۷:۰۶
مبین
۲۳
شهریور ۹۴
Configuration::get('PS_LANG_DEFAULT')

 

   $parent_id = Configuration::get('PS_HOME_CATEGORY');
۰ نظر موافقین ۰ مخالفین ۰ ۲۳ شهریور ۹۴ ، ۱۹:۴۷
مبین
۲۳
شهریور ۹۴

http://doc.prestashop.com/display/PS16/Using+the+HelperForm+class

۰ نظر موافقین ۰ مخالفین ۰ ۲۳ شهریور ۹۴ ، ۱۸:۴۱
مبین
۲۳
شهریور ۹۴

http://nemops.com/prestashop-categories-second-image/#.VfbOs7MabCJ

۰ نظر موافقین ۰ مخالفین ۰ ۲۳ شهریور ۹۴ ، ۱۸:۳۷
مبین
۲۳
شهریور ۹۴

http://stackoverflow.com/questions/26582252/display-all-categories-on-product-page-prestashop

۰ نظر موافقین ۰ مخالفین ۰ ۲۳ شهریور ۹۴ ، ۱۸:۰۵
مبین
۲۳
شهریور ۹۴

https://www.prestashop.com/forums/topic/278116-tutorial-displaying-list-of-categories-and-products-in-any-tpl/

۰ نظر موافقین ۰ مخالفین ۰ ۲۳ شهریور ۹۴ ، ۱۷:۰۹
مبین
۲۲
شهریور ۹۴
$product = new Product($id);
$categories = $product->getCategories();


To set them:
 

$product = new Product($id);
$success = $product->updateCategories(array('1','3','4'))
$product->id_category_default = '3';
$product->update();

 

https://www.prestashop.com/forums/topic/247361-solved-altering-products-categories-in-database/

 

۰ نظر موافقین ۰ مخالفین ۰ ۲۲ شهریور ۹۴ ، ۱۹:۱۹
مبین
۲۱
شهریور ۹۴

http://flowcoding.com/prestashop-create-first-module

 

http://www.technoreply.com/how-to-create-a-prestashop-1-5-module/

https://github.com/jevin/Prestashop-Module-Skeleton

۰ نظر موافقین ۰ مخالفین ۰ ۲۱ شهریور ۹۴ ، ۲۰:۵۲
مبین
۱۸
شهریور ۹۴

خرید آنلاین موسیقی ایرانی

 

http://beeptunes.com

۰ نظر موافقین ۰ مخالفین ۰ ۱۸ شهریور ۹۴ ، ۱۷:۲۴
مبین
۱۷
شهریور ۹۴

http://viewdns.info

۰ نظر موافقین ۰ مخالفین ۰ ۱۷ شهریور ۹۴ ، ۱۸:۲۷
مبین
۱۷
شهریور ۹۴

http://itouchmap.com/latlong.html

۰ نظر موافقین ۰ مخالفین ۰ ۱۷ شهریور ۹۴ ، ۰۶:۱۷
مبین
۱۶
شهریور ۹۴

comment

{* One-line comment. *}

 

 

{* Displaying the content of the variable in lowercase. *}
{$foo|lower}

http://doc.prestashop.com/display/PS16/Theme+templates+and+Smarty

 

 

 

http://www.smarty.net/docs/en/language.modifiers.tpl

۰ نظر موافقین ۰ مخالفین ۰ ۱۶ شهریور ۹۴ ، ۱۷:۴۱
مبین
۱۶
شهریور ۹۴

svg font to use in website

http://fontawesome.io/

۰ نظر موافقین ۰ مخالفین ۰ ۱۶ شهریور ۹۴ ، ۱۷:۰۴
مبین
۱۶
شهریور ۹۴

Web Developer

را در add one fire fox  جستجو کنید

 

http://chrispederick.com/work/web-developer/

۰ نظر موافقین ۰ مخالفین ۰ ۱۶ شهریور ۹۴ ، ۱۵:۳۴
مبین
۱۵
شهریور ۹۴

http://ndever.net/articles/linux/installing-sass-and-compass-ubuntu-1210-1304

 

 

نصب sass  بر روی سرور اوبونتو لینوکس

۰ نظر موافقین ۰ مخالفین ۰ ۱۵ شهریور ۹۴ ، ۲۰:۰۸
مبین
۱۵
شهریور ۹۴

list of smarty command

http://www.smarty.net/docs/en/smarty.for.designers.tpl

۰ نظر موافقین ۰ مخالفین ۰ ۱۵ شهریور ۹۴ ، ۱۹:۰۹
مبین
۱۵
شهریور ۹۴

مقاله  بازی شطرنج با قواعد منچ رو برای روز جشن روز آزادی اماده کردم .

 

pdf

http://bayanbox.ir/download/3790667285452511969/shatranj2.odt

 

فایل تکس

http://bayanbox.ir/download/3790667285452511969/shatranj2.odt

 

 

 

۰ نظر موافقین ۰ مخالفین ۰ ۱۵ شهریور ۹۴ ، ۱۳:۱۷
مبین
۱۴
شهریور ۹۴

            if ($this -> Name -> save($data)) {
                $this -> Flash -> success(__('The log has been saved.'));
                return $this -> redirect(array('action' => 'index'));
            } else {
                $this -> Flash -> error(__('The log could not be saved. Please, try again.'));
            }
            debug($this->Name

۰ نظر موافقین ۰ مخالفین ۰ ۱۴ شهریور ۹۴ ، ۲۰:۲۱
مبین
۱۳
شهریور ۹۴

http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6922267&queryText=survey%20detect%20breast%20cancer&newsearch=true

 

این مقاله در مورد سرطان سینه و مغز و ریه است تمام مطالب را جمع اوری کرده است.

 

۰ نظر موافقین ۰ مخالفین ۰ ۱۳ شهریور ۹۴ ، ۱۲:۳۹
مبین
۱۲
شهریور ۹۴

http://www.transformicons.com/

 

http://tympanus.net/Development/AnimatedSVGIcons/

۱ نظر موافقین ۰ مخالفین ۰ ۱۲ شهریور ۹۴ ، ۱۷:۳۹
مبین
۱۰
شهریور ۹۴

http://forum.ubuntu.ir/index.php?topic=7106.0

۰ نظر موافقین ۰ مخالفین ۰ ۱۰ شهریور ۹۴ ، ۱۰:۰۰
مبین
۰۹
شهریور ۹۴

p() is the main method, and d() works the same way, except that it calls the die() method instead of returning the variable:

 

of that, PrestaShop defines the ppp() and ddd() methods, which are respectively the aliases of p() and d(). They work exactly the same, but are often easier to search and find in a huge block of code.

 

ppp()

ddd()

 

These debug methods are not activated by default. To activate them, you must enable the Debug mode, by setting _PS_MODE_DEV_ to true (see above).

 

http://doc.prestashop.com/display/PS16/Setting+Up+Your+Local+Development+Environment

۰ نظر موافقین ۰ مخالفین ۰ ۰۹ شهریور ۹۴ ، ۱۶:۱۴
مبین
۰۹
شهریور ۹۴

Displaying error messages

PrestaShop's default settings prevent the customer to see any server error message or any debugging code.

You, on the other hand, need this information in order to correct any potential mistake in your code. To that end, open the /config/defines.inc.php file, and edit it to set _PS_MODE_DEV_ to true:

/* Debug only */
define('_PS_MODE_DEV_', true);
 
 
http://doc.prestashop.com/display/PS16/Setting+Up+Your+Local+Development+Environment
 
 
۰ نظر موافقین ۰ مخالفین ۰ ۰۹ شهریور ۹۴ ، ۱۶:۰۸
مبین
۰۹
شهریور ۹۴

Go to the "Performances" page under the "Advanced parameters" menu to change the following Smarty settings:

  • Template cache: switch it to "Force compilation".
  • Cache: disable it.

 

http://doc.prestashop.com/display/PS16/Setting+Up+Your+Local+Development+Environment

 

 

۰ نظر موافقین ۰ مخالفین ۰ ۰۹ شهریور ۹۴ ، ۱۶:۰۷
مبین
۰۹
شهریور ۹۴

you can find php.ini in

sudo gedit /etc/php5/apache2/php.ini

http://ubuntuforums.org/showthread.php?t=1097306

۰ نظر موافقین ۰ مخالفین ۰ ۰۹ شهریور ۹۴ ، ۱۵:۳۹
مبین
۰۸
شهریور ۹۴

Sass (stylesheet language)

 

https://en.wikipedia.org/wiki/Sass_%28stylesheet_language%29

 

http://sass-lang.com/

۰ نظر موافقین ۰ مخالفین ۰ ۰۸ شهریور ۹۴ ، ۲۰:۱۳
مبین