Recent content by asprin

  1. asprin

    XF 2.2 Conditional delete from database with entity framework

    Try with this (not tested obviously) $rows = \XF::finder('myaddon:myentity')->where('timestamp', '>', $timestamp); foreach($rows as $singleRow){ $singleRow->delete(); }
  2. asprin

    XF 2.2 Is there a way to know which public route matched with a URL?

    Forgot the add, I've a development mode on. So I was hoping it would tell how the route with the "Common" controller was picked.
  3. asprin

    XF 2.2 Is there a way to know which public route matched with a URL?

    If I'm hitting https://mysite.com/index.php?fantasybyte/teams I'm getting the following message: The requested page could not be found. (Code: invalid_action, controller: Asprin\FB:Common, action: Teams) I've the route set up correct as follows: So ideally, I was hoping to have the "Teams"...
  4. asprin

    BookieByte - Place wagers on real world events

    It's a manual process. You get the odds from the source of your choice and put that in.
  5. asprin

    XF 2.2 Registered days conditional

    Shouldn't your whole condition check be inside the curly braces instead of ending at 86400) part? <xf:if is="{{ number(($xf.time - $xf.visitor.register_date) / 86400) <= 3 }}">
  6. asprin

    XF 2.1 [SOLVED] setResponseType() json data not coming through controller reply

    I'll defer to experts to answer that. I hope it is.
  7. asprin

    BookieByte - Place wagers on real world events

    Do you mean add funds to a user's balance?
  8. asprin

    XF 2.2 Display a variable as a 'simple' number

    How about {{ $cost ? $cost|number : phrase('free') : }}
  9. asprin

    Poll Byte

    Open to suggestions if any.
  10. asprin

    XF 2.2 Get Config Values in Templates?

    Everyday is a new learning.
  11. asprin

    XF 2.2 Applying default permissions in Setup.php file

    I'll try this out and let you know. Thanks. Oh okay. Then it's not something I would prefer to do.
  12. asprin

    XF 2.2 Applying default permissions in Setup.php file

    Yep, I'm aware of that. Like I mentioned in the title, I'm aiming to do this in the Setup.php file itself.
  13. asprin

    XF 2.2 Applying default permissions in Setup.php file

    I would rather not have any dependency with other add-ons. Is the applyGlobalPermissionByGroup() function native to XF or is it a part of SV's addon? I'm guessing it's the latter since I do not find that function in XF\AddOn\AbstractSetup class
  14. asprin

    Poll Byte 1.0.1

    Want to have a poll without the need to have a thread associated with it? Look no further. Seamlessly create polls and allow visitors to voice their thoughts. It can be used for anything, any topic that exists in the world. A perfect use would be to have some sort of annual awards to nominate...
  15. asprin

    Poll Byte

    asprin submitted a new resource: Poll Byte - Create fun polls to engage your site visitors and enable them to share their opinions Read more about this resource...
Top Bottom