Latest News: (loading..)

foxp2

♥Ambassador
  • Content count

    270
  • Joined

  • Last visited

  • Days Won

    2

foxp2 last won the day on April 2 2013

foxp2 had the most liked content!

3 Followers

About foxp2

  • Rank
    strong as a Twig
  • Birthday 11/06/1971

Profile Information

Recent Profile Visitors

49,434 profile views
  1. yep, for php, i'm using it, for .net development, i'm using Visual Studio. in any cases, i can't imagine to build an application without an IDE.
  2. when i see the number of answers on this subject , i get the feeling that no one is using an IDE. :wacko: But it seems to me that harald is using Netbeans.
  3. @@Pierre069 a new pack for osCommerce 2.3.3 has been uploaded : http://addons.oscommerce.com/info/7634/v,23 Regards.
  4. only oscommerce france team members can upload a new package. two reasons for that : - we are agile : only modifications after validating are pushed on your github repositerie - to avoid this kind of crap : http://addons.oscommerce.com/info/7624/v,23 Pierre can get in touch with one of us on official oscommerce support forum.
  5. @@Harald Ponce de Leon I think you did not understand with a tool like Redmine, each developer can register and be able to assign himself one or several task to help in development of oscommerce 2.4 it avoids to do something twice. it permits to know who does what ... see examples : overview : http://github.fr.nf/projects/oscommerce24 calendar : http://github.fr.nf/projects/oscommerce24/issues/calendar issues : http://github.fr.nf/projects/oscommerce24/issues issue detail : http://github.fr.nf/projects/oscommerce24/issues i'm very surprised that you've not install this type of application to manage your project. Redmine is like Confluence and is a must-have.(i'm sure you can install a ruby app on your server :- ) that was an idea ...
  6. @@Harald Ponce de Leon may be it's time to use the right tool to manage a project : it takes me one hour to install and configure redmine (and link with your repo on github) : http://github.fr.nf/projects/oscommerce24/repository
  7. which type of backports ? one year later, have you decided to implement this improvement ? :arrow_forward: http://forums.oscommerce.com/topic/383731-configuration-modules/#entry1623144 since two years ago i'm following your work, i've noticed that you have embarked on several process, but too many are half doing. it sounds you have an annoying tendency to scatter yourself.... :unsure:
  8. a work on performance : a new Cache Control class is used to reduce each size of cached file.(commit : https://github.com/foxp2/github-application/commit/07af596cfb2fd50be97e6dff64a01b8097f3345e ) each file size was divided by at least ten, or even 100. i'm not really yet satisfied, but progress is well underway ...
  9. included : new mecanic for organizations. added : osCommerce, PrestaShop, Magento, Jquery, Twitter, Github, Symfony because sometime, there is no pagnination for result, i've added a virtual pagination. example : Members of the crew : http://foxp2.alwaysdata.net/index.php?Github&Organisation&github Contributors for repositerie : http://foxp2.alwaysdata.net/index.php?Github&Repositeriecontributors&cassandra&twitter
  10. the latest version includes an intelligent cache management and helps to maintain data real-time with the github servers. it uses headers responses (304) and a specific GithubCache class. the next version will include the possibilty to add your own account (with an authentication between Github server and your account on osCommerce Website , via an OAuth2 Token [doc : http://developer.github.com/v3/#authentication]). stay tuned.
  11. based on organization, you can easily change for your, like in this live sample : http://foxp2.alwaysdata.net/index.php?Github latest despaghettization & bug fixes have been published : https://github.com/foxp2/github-application/commits/master it's put an end to the proof of concept.
  12. Hi all, i'm just publishing my first Application for the new osCommerce 3 Website : https://github.com/foxp2/github-application. Installation : :one: download this repo and dezip it where your osCommerce 3 [branch Template] & osCommerce Website are installed. :two: Register on Github.com this application to generate OAuth tokens : https://github.com/settings/profile https://github.com/settings/applications https://github.com/settings/applications/new :three: open \osCommerce\OM\Config\settings.ini and add in [Website] section this three lines : github_client_id = "52c4f4b3270d339eca76" github_client_secret = "bce0d0861756fa144b1bdf0c1e848bb4d12303ca" github_organization = "osCommerce" be aware these client id & client secret will not work ! (they have created for this tutorial and have been reseted) :four: open \oscommerce_website\osCommerce\OM\Custom\Site\Website\Template\Amy\Content\base.html and this line ( before </head> ) : <!-- added for github --> <link rel="stylesheet" type="text/css" href="{publiclink}templates/default/stylesheets/github.css{publiclink}" /> :five: Enjoy ! if you like this App, don't forget to click on Like This button. Thanks !
  13. hi, i've coded a new {tag} for our Template Engine. code : <?php /** * osCommerce Website * * @[member='copyright'] Copyright (c) 2012 osCommerce; http://www.oscommerce.com * @[member='copyright'] Copyright (c) 2012 FoxP2; http://www.oscommerce.fr * @[member='licensed2kill'] BSD License; http://www.oscommerce.com/bsdlicense.txt */ namespace osCommerce\OM\Core\Site\Website\Module\Template\Tag; use osCommerce\OM\Core\OSCOM; use osCommerce\OM\Core\Registry; class pagination extends \osCommerce\OM\Core\Template\TagAbstract { static public function execute($string) { $OSCOM_Template = Registry::get('Template'); $list = explode('|', $string); $link = trim($list[0]); $page = trim($list[1]); $total_result = trim($list[2]); $limit = trim($list[3]); $step = trim($list[4]); $paginationSize = trim($list[5]); $paginationPosition = trim($list[6]); if ( isset($paginationSize) ) { switch($paginationSize) { case 'large': $size = "pagination-large"; break; case 'mini': $size = "pagination-mini"; break; case 'small': $size = "pagination-small"; break; case 'normal': $size = ""; break; } } if ( isset($paginationPosition) ) { switch($paginationPosition) { case 'right': $position = "pagination-right"; break; case 'center': $position = "pagination-centered"; break; case 'left': $position = ""; break; } } // Initial paging if ( $page == 0 ){ $page = 1; } $prev = $page - 1; $next = $page + 1; $last_page = ceil( $total_result / $limit ); $latest_page = $last_page - 1; $pagination = ''; if( $last_page > 1 ) { $pagination .= "<div class='pagination $size $position'>\n"; $pagination .= " <ul>\n"; // Previous button if ( $page > (int)1 ){ $pagination .= " <li class='active'><a href='$link&page=$prev'>" . OSCOM::getDef('previous') . "</a></li>\n"; }else{ $pagination .= " <li class='disabled'><span>" . OSCOM::getDef('previous') . "</span></li>\n"; } // Pages if ($last_page < (int)7 + ($step * (int)2)) { for ($count_page = (int)1; $count_page <= $last_page; $count_page++ ) { if ( $count_page == $page ) { $pagination .= " <li class='disabled'><span>" . $count_page ."</span></li>\n"; }else{ $pagination .= " <li class='active'><a href='$link&page=$count_page'>" . $count_page . "</a></li>\n"; } } }elseif( $last_page > (int)5 + ( $step * (int)2 ) ) { if( $page < (int)1 + ($step * (int)2) ) { for ( $count_page = (int)1; $count_page < (int)4 + ($step * (int)2); $count_page++ ) { if ( $count_page == $page ){ $pagination .= " <li class='disabled'><span>$count_page</span></li>\n"; }else{ $pagination .= " <li class='active'><a href='$link&page=$count_page'>$count_page</a></li>\n"; } } $pagination .= " <li class='disabled'><span>...</span></li>\n"; $pagination .= " <li class='active'><a href='$link&page=$latest_page'>$latest_page</a></li>\n"; $pagination .= " <li class='active'><a href='$link&page=$last_page'>$last_page</a></li>\n"; } elseif( $last_page - ($step * (int)2) > $page && $page > ($step * (int)2) ) { $pagination .= " <li class='active'><a href='$link&page=1'>1</a></li>\n"; $pagination .= " <li class='active'><a href='$link&page=2'>2</a></li>\n"; $pagination .= " <li class='disabled'><span>...</span></li>\n"; for ( $count_page = $page - $step; $count_page <= $page + $step; $count_page++ ) { if ( $count_page == $page ) { $pagination .= " <li class='disabled'><span>$count_page</span></li>\n"; }else{ $pagination .= " <li class='active'><a href='$link&page=$count_page'>$count_page</a></li>\n"; } } $pagination .= " <li class='disabled'><span>...</span></li>\n"; $pagination .= " <li class='active'><a href='$link&page=$latest_page'>$latest_page</a></li>\n"; $pagination .= " <li class='active'><a href='$link&page=$last_page'>$last_page</a></li>\n"; } else { $pagination .= " <li class='active'><a href='$link&page=1'>1</a></li>\n"; $pagination .= " <li class='active'><a href='$link&page=2'>2</a></li>\n"; $pagination .= " <li class='disabled'><span>...</span></li>\n"; for ( $count_page = $last_page - ((int)2 + ($step * (int)2)); $count_page <= $last_page; $count_page++ ) { if ( $count_page == $page ){ $pagination .= " <li class='disabled'><span>$count_page</span></li>\n"; }else{ $pagination .= " <li class='active'><a href='$link&page=$count_page'>$count_page</a></li>\n"; } } } } // Next button if ( $page < $last_page ) { $pagination .= " <li class='active'><a href='$link&page=$next'>" . OSCOM::getDef('next') . "</a></li>\n"; }else{ $pagination .= " <li class='disabled'><span>" . OSCOM::getDef('next') . "</span></li>\n"; } $pagination .= " </ul>\n"; $pagination .= " </div>\n"; } return $pagination; } } ?> how to use it : in View : {pagination}{link}{link} | {value}page{value} | {value}total_result{value} | {value}result_per_page{value} | {value}nb_of_result_to_be_display{value} | small | center{pagination}
  14. <_< please, clean trolls. thanks.
  15. solution in template class : https://github.com/haraldpdl/oscommerce/commit/b398c74dcecf1639bd8fea3e5c185b7261587bf6 :thumbsup: