• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • As we have now upgraded the main XenForo community, this forum is now being retired. It will remain open in a mostly read only state. Any further feedback, suggestions or bug reports should be posted on the main forum. We will still process the existing bug reports from this forum.

    When we approach a stable release, this forum will become inaccessible. If there is any content you wish to save, please do so before then.
Chris D
Joined
Likes
3,468

Profile posts Latest activity Postings About

  • What's the reasoning behind using telephone input type instead of number?
    Chris D
    Chris D
    I like that approach, thanks; and it makes sense. Number inputs (on iOS) can support decimal numbers, and you only get the decimal point on the standard numeric+symbols keyboard (in iOS), so it makes sense for that to be the default. Seems like Android doesn't have this problem because it supports the dot character on the keyboard: https://i.stack.imgur.com/2S84K.png
    CyberAP
    CyberAP
    I liked this article about numeric inputs on phones: https://www.filamentgroup.com/lab/type-number.html
    It's seems a design issue on iOS that it doesn't have a specific keyboard for HTML 5 numeric input. Also, some implementations on Android suffer from not having a minus sign. Text type input seems to be the safest one, unfortunately, if there's a need for negative or float numbers.
    Chris D
    Chris D
    Implemented the pattern attribute for number boxes that have a whole number step value and a min value provided >= 0. Thanks for the hints!
    CyberAP
    CyberAP
    Could be just limited to 100vh?
    Chris D
    Chris D
    Honestly, it really isn't that simple. It's a bug in iOS which still listens and reacts to touchmove events even if the element has "overflow: hidden" set (e.g. we set that on body.is-modalOpen) and this works for all browsers except iOS to prevent the body being scrollable when a modal is open.
    Chris D
    Chris D
    So the actual solution (I hope; it seems to work at least) is some JS which explicitly ignores touchmove events on the document but allows them on the overlay container.
    I assume you are a partner in Xen with the dedication you show, am I correct in thinking that
    RossEvaske
    RossEvaske
    But XenForo is built of a team of Ex-vB staff, so I assume they all partnered up... - Which I could just look into shares and see if he has any. But instead I am asking...
    Chris D
    Chris D
    I am not ex-VB staff. My first proper development job was with XenForo. Just an employee.
    RossEvaske
    RossEvaske
    Oh damn, I thought the whole bunch was ex vB!
    Are you always working on XenForo's time when you're on here, or are you doing some 'work' in your own time as well...? Just something I've wondering, seeing as you seem to be here most of the night ;)
    Chris D
    Chris D
    Definitely doing a lot of XF stuff when I should be doing other things. That said, I'm doing it in bursts in between doing other things like having my feet up and watching the TV 🙂
    As a small continuation to our emoji conversation since its not worth bumping the thread, I decided to look into it once you pointed out to me that emojione had stuff to auto replace emoji. They have a firefox addon and gosh its so nice to have uniformity across all the sites I visit including social media.
    Chris D
    Chris D
    Yes, that's true. There's one for Chrome, too. Eventually we'll do something server side or client side in the software itself, hopefully.
    Likes: Bread
    Bread
    Bread
    I look forward to seeing what is done in the future, but in the mean time, I love how uniform it is across the internet and I wouldn't have thought about it had it been for you.

    So thanks!
    At first I thought your status message was showing in the staff online widget but then realized it's your user title :p
    You're up either very late or very early... Have you been to bed yet? I mean, I'm doing the same, but...
    Chris D
    Chris D
    I was up very late, though I think I was asleep by the time you posted this!
    Likes: maszd
    Have you done anything in particular to remove the 'namespace is not bound' error for the template files in PHPStorm? Or do you just ignore the red?
    Chris D
    Chris D
    It's an inspection that you can disable. Just search preferences for unbound namespace and uncheck the only result under "Inspections": http://i.imgur.com/BHL9IWP.png
    L
    Liam W
    I thought I should be able to, but I couldn't find it. Probably has something to do with the time at the time.
    Was just reading your (or Mike's?) documentation about how to fool an IDE into knowing what proxy classes should be referenced as. Muchos gracias for that.
    Chris D
    Chris D
    <?php

    // ################## THIS IS A GENERATED FILE ##################
    // DO NOT EDIT DIRECTLY. EDIT THE CLASS EXTENSIONS IN THE CONTROL PANEL.

    namespace AddOn\XF\Entity
    {
    class XFCP_User extends \XF\Entity\User {}
    }

    namespace AddOn\XF\Pub\Controller
    {
    class XFCP_GotoPage extends \XF\Pub\Controller\GotoPage {}
    }
    Jeremy P
    Jeremy P
    Beautiful. I didn't get the chance to test it yesterday, but I had the same thought to see about generating them automatically if it did work.
    L
    Liam W
    I always used the fake class proxy in XF1 (although I only started bounding it in an impossible if when I got annoyed at forgetting to comment them out before release). Love the new system, makes it so I have to type less (although for XF1 I had PHPStorm add it automatically anyway).
    EMAIL TM? :D
    Mike
    Mike
    You could do those in XF1 too. :)
    Dadparvar
    Dadparvar
    No I meant the separate tab :D otherwise we currently have custom appearance in emails (please don't say that the tab also was in xf1, cause if so, I will kill myself :| )
  • Loading…
  • Loading…
  • Loading…