Recent content by Rayman

  1. R

    XF 2.0 Query a remote database

    Hi, One of my addons is dependent on a remote database. I would like the Setup.php, Entries, Finder...etc for this addon to run all the queries on a specific remote database instead of the localhost (website) database. In XF1, I would normally use $db = XenForo_Application::get('db2'); and...
  2. R

    [bd] Mails

    I'd also like to see this added for XF2, even if it's paid.
  3. R

    XF 2.0 Add content between xf:title & xf:sidenav

    Hi, I'd like to be able to add some content (e.g. a block row) between the p-body-header and p-body-sideNav. I currently use xf:sidenav and xf:title/xf:description, and it places the remaining content to the right of the sidebar. Is there a way around this? Edit: For the screenshot, I...
  4. R

    XF 2.0 Route doesn't work without trailing slash

    I agree with this, although that there are sometimes 'quirks' in code, this shouldn't really be an acceptable one imo. I will have to see if there is a way around this through htaccess for any addons that use a route, but I am still curious as to how default XF2 routes add the trailing slash...
  5. R

    XF 2.0 Route doesn't work without trailing slash

    Thanks Chris, although I'm still wondering, is there a way to add the trailing slash automatically, just like when you when try to remove it from /threads/1/ it will add it back (same for /forums/, /forums/nodename/ ...etc).
  6. R

    XF 2.0 Route doesn't work without trailing slash

    Hi, I am not sure if this is a bug or not. When I go to /myroute/slughere/ it works fine (displays the page), but when I remove the trailing slash, it doesn't work (e.g. /myroute/slughere), it says "The requested page could not be found. (Code: invalid_action, controller: My\Addon:MyPage...
  7. R

    XF 2.0 Missing Phrases - how'd you ensure you don't?

    @Chris D Any news on XFDT? I've just run into missing phrases that I either renamed or forgot to add :p
  8. R

    XF 2.0 Using finder to get users with permission

    Thanks LPH, but unfortunately that doesn't really fit what I'm trying to accomplish. I was really hoping for there to be something like "hasPermission", but instead of it being for a single user, it would return all users that have the permission. I ended up with the following to return a list...
  9. R

    XF 2.0 Using finder to get users with permission

    I want to return a list of all the users that have a specific permission. The list will be on a selectrow so that I can select which user I will assign this 'support ticket' to.
  10. R

    XF 2.0 Using finder to get users with permission

    im thinking of... first get the groups that have permission and then fi\nd all users that are in those groups. All via a query. would this be the best approach? or is there an existing function I can use?
  11. R

    XF 2.0 Using finder to get users with permission

    Hi, I'm looking to use Finder to return all users that have a specific permission (the permission is set for some usergroups only). What would be the best way to achieve this?
  12. R

    XF 2.0 Creating a function in another file

    The repo file. <?php namespace My\AddOn\Repository; use XF\Mvc\Entity\Repository; class SimiliarThreads extends Repository { public function myFunction($var) { if ($var== 'xyz') { return true; } return false; } } And then you can call the function from the repo like this...
  13. R

    XF 2.0 XFRM Avatar Code for Header

    Hi, Unfortunately I don't own XFRM since I don't have a use-case for it, but I would like to know how I can achieve the same page header layout. I currently use <xf:h1> and then <xf:description meta="false">, but I'm unsure how & where to place <xf:avatar> so I can have it line up alongside...
  14. R

    Account activation reminder: email new member x days after registration to remind them to activate

    I support this since it can increase user retention rates but worry about handling emails that have bounced because the email address doesn't exist (which can explain why they didn't activate). It wouldn't be wise to send the email again since it just racks up a higher bounce rate.
  15. R

    List-Unsubscribe Email Header

    Suggestion: Add the Unsubscribe email header for all emails sent out via Xenforo (including Bulk Emails via AdminCP for newsletter blasts). Reason: For better email deliverability and user convienance.
Top Bottom