Jump to content

Daniel F

Invision Community Team
  • Posts

    6,545
  • Joined

  • Days Won

    36

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Everything posted by Daniel F

  1. Here's literally all the code you need to add rollbar support to IPS 😉
  2. Almost all form fields are handled via Form Helpers so if you need to change any of these fields, you'll have to search for the method which creates the form, then you can create a hook to change the form fields! There are few methods where above approach won't work, in this case you can create a hook on \IPS\Helpers\Form\FormAbstract to override the constructor to adjust the field data 🙂
  3. Yea, IPS\Dispatcher\Standard seems like a good spot! If you care about literally anything and if you want to log "everything" , you could even hook into IPS\Dispatcher! I'm doing something similar with rollbar: //<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { exit; } abstract class rollbar_hook_dispatcher_standard extends _HOOK_CLASS_ { public function init() { $this->initRollbar(); parent::init(); } protected function initRollbar() { if ( \IPS\Settings::i()->rollbarapikey ) { require_once \IPS\Application::getRootPath('rollbar') . '/sources/vendor/autoload.php'; $config = array( 'access_token' => \IPS\Settings::i()->rollbarapikey, 'environment' => \IPS\Settings::i()->base_url, 'root' => \IPS\ROOT_PATH ); \Rollbar\Rollbar::init($config); } } }
  4. You should mention that people could notice performance issues because of this! As mentioned in one of the tickets, it's not that smart to disable the widget cache. It's probably working on smaller boards but literally going to kill any medium & big boards with many topics or other items which the widget is trying to show!
  5. It won’t track any stats if you’re using the proper code from google ( window['ga-disable-UA-XXXXXX-Y'] = true; )
  6. Well, it's actually visible, but it's white on a white background. You should probably change the color or add a border 🙂
  7. I have filled a bug report for this.
  8. You could use custom variables to differ between logged in members and guests.
  9. Which sounds still suspicious because the test email wouldn't use any cron jobs ( mentioning it because of following OP sentence: )
  10. You wanna probably take a look at following file which is IMO the best enhancement here
  11. This could be a custom theme issue, or an issue with the htaccess or configuration file. Please submit a ticket so that we can take a look at this.
  12. Thanks, this seems to be a valid issue which is also affecting few other areas and apps. I have posted this to our internal bug tracker.
  13. That's a brilliant work around.
  14. Sounds like a hosting issue. I would suggest to contact your hosting company for further support.
  15. Why would you want to get a friendly url for http://ips.valacoding.com/index.php?app=core&module=system&controller=widgets&do=getBlock&blockID=app_nexus_latestProducts_tfxsn9iaq&pageApp=nexus&pageModule=store&pageController=product&pageArea=header&orientation=horizontal..... ? The page is meant to be shown in a modal and only to moderators with permissions to edit the sidebar, there's no point in having a friendly url here.
  16. Do you see any errors in the browsers JS console? Have you tried running the support tools in the ACP?
  17. It’s a comment feed widget ( xxxx::xxxx::IPS\Content\_WidgetComment::render and based on the query I guess the last 5 posts in your community
  18. Thanks, I have fixed this for an upcoming release.
  19. As @Morrigansaid, you could use blocks or use a rss widget like https://wordpress.org/plugins/wp-rss-retriever/ to show the RSS feed content generated by IPS on your blog.
  20. You could use live templates or snippets to automate this;) I have probably 50 snippets making my life easier:) https://www.jetbrains.com/help/pycharm/tutorial-creating-and-applying-live-templates-code-snippets.html Or, if it's only for your own usage, create some helper functions if(!function_exists('l')) { function l() { $args = \func_get_args(); return \IPS\Member::loggedIn()->language()->addToStack( ...$args ); } } if(!function_exists('lg')) { function lg($key) { return \IPS\Member::loggedIn()->language()->get( $key ); } }
  21. Sorry, it was the wrong constant! I have edited my post in the meanwhile. It's NOTIFICATIONS_PER_BATCH which handles this. Sorry again for the confusion.
  22. Yes, this is handled via the NOTIFICATIONS_PER_BATCH constant.
  23. Trust me, as the first in the IPS team from a none English speaking country I've brought up many ideas for the language system, but the language system in IPS 4.x is unfortunatly quite limited and requires a full rewrite, which is not feasible at the moment.
  24. You can control this via module permissions
×
×
  • Create New...