ukyo

Members
  • Content count

    153
  • Joined

  • Last visited

Community Reputation

175 Excellent

About ukyo

  • Rank
    Sr. Member
  • Birthday 06/08/1983

Contact Methods

  • Website URL
    http://altivebir.com

Profile Information

  • Gender
    Male
  • Location
    Turkey
  • Interests
    PHP, FRAMEWORKS, CMS

Recent Profile Visitors

2,421 profile views
  1. You can use strpos() function
  2. After @ryan broke my hearth here i added uikit icon support to my font icon picker module v.0.1.6 Fix FieldtypeFontIconPicker sanitizeValue() v.0.1.5 Added uikit icon select support (required AdminThemeUikit), because uikit icons not working standalone.
  3. module

    You have an option, don't call getScriptMulti(); function. <?php if(modules()->isInstalled('MarkupGoogleRecaptcha')) { echo modules()->MarkupGoogleRecaptcha->getScriptMulti(); }; ?> Write your own javascript by referencing getScriptMulti(); function. public function getScriptMulti() { $return = "<script type=\"text/javascript\"> var onloadReCaptchaCallback = function(){ jQuery('.g-recaptcha').each(function() { var _this = jQuery(this); var recaptchaID = _this.data('id'), hl = _this.data('hl'), sitekey = _this.data('sitekey'), theme = _this.data('theme'), type = _this.data('type'), size = _this.data('size'), index = _this.data('index'); if(recaptchaID !== undefined) { var recaptchaWidget = grecaptcha.render(recaptchaID, { 'hl' : hl, 'sitekey' : sitekey, 'theme' : theme, 'type' : type, 'size' : size, 'index' : index }); grecaptcha.getResponse(recaptchaWidget); // grecaptcha.reset(recaptchaWidget); } }); }; </script>"; $return .= "<script src='".self::SITE_RECAPTCHA_API_URL."?onload=onloadReCaptchaCallback&render=explicit' async defer></script>"; return $return; }
  4. You can get language value for each language field by using $page->getLanguageValue(language, field); foreach($languages as $language) echo $language->name, " : " , $page->getLanguageValue($language, 'title') , "<br/>"
  5. * translations updated to ProcessWire 3.0.55-dev-286
  6. Module

    * updated : PhpMailer 5.2.23
  7. I don't want to convert this topic to codekit or not question. With npm + gulp + bower its easier than codekit on my side. I have a skeleton gulpfile.js `gulp dev` and `gulp production` or `gulp watch` command is enough for compile files and run prepared tasks. Here is an example of gulp file : https://github.com/gulpjs/gulp#sample-gulpfilejs prepare your source and destination folder and run tasks. My development folder structure : Destination point is : site/templates/dist Anyway, every developer has different work structure. This is mine
  8. Codekit is a good tool for web development and i was an old codekit user. I started to use npm + gulp + bower, now this is better solution for me.
  9. module

    I have a pull-request for this module, pull-request adding multi language support to reCAPTCHA and multiple usage on one page. You can see usage on screenshot. For set reCAPTCHA language, (reCAPTCHA Language Codes) : <?php if(modules()->isInstalled('MarkupGoogleRecaptcha')) { echo modules()->MarkupGoogleRecaptcha->render($lang = "en"); }; ?> For multiple reCAPTCHA usage, after all form render, call multiple usage script : <?php if(modules()->isInstalled('MarkupGoogleRecaptcha')) { echo modules()->MarkupGoogleRecaptcha->getScriptMulti(); }; ?>
  10. Great to see uikit framework with processwire admin panel. Great job @ryan ! I have a question for you. Do you think to write a (uikit) icon picker admin panel, like font-awesome icon picker ? if your answer is yes for this question, can you make it compatible to use this icon picker with page editor also ?
  11. For caching children or paginated pages you can use a solution like this. <?php $children = $page->children("limit=10"); $cacheName = 'MyCache_children' . (string) $page . (string) $children; // If you have multilanguage website you can add (string) $user->language to your cache name // $cacheName = 'MyCache_children' . (string) $page . (string) $user->language . (string) $children; $cacheExpire = "parend_id|id=" . (string) $children . "|" . (string) $page; cache($cacheName, $cacheExpire, function() use($children) { $output = ""; foreach($children as $item) $output .= "<h2>$item->title</h2>"; return $output; });
  12. v.0.1.4 : Fix issue FontIconPicker inside repeater
  13. v.0.1.3 : FontAwesome updated to 4.7.0
  14. Module

    * updated : PhpMailer 5.2.22
  15. Module

    * updated : PhpMailer 5.2.21