Jump to content

Daniel F

Invision Community Team
  • Posts

    6,543
  • 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

Posts posted by Daniel F

  1. Correct:)
     

    We've actually located and fixed few bugs while looking at the above bug:)

    Quote

    - Fixed orphaned files being left over when deleting fields, records and databases in the AdminCP.
    - Fixed orphaned files being left over when deleting custom fields throughout the Suite.
    - Fixed orphaned files being left over in some cases when uninstalling applications.

     

  2. On 3/26/2021 at 4:43 PM, rllmukforum said:

    However, it's not terribly obvious how I go about making the message required before "Submit Report" will function. I've spent quite a bit of time reading the dev docs and searching this whole community for "required field" and other terms, to no avail.

    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. 27 minutes ago, ReyDev said:

    the new version released and has an option to show the widget for specific user group.

    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. 43 minutes ago, CoffeeCake said:

    You may want to run them as a cronjob instead to make sure that they run every minute.

    Which sounds still suspicious because the test email wouldn't use any cron jobs ( mentioning it because of following OP sentence: ) 

    On 12/29/2020 at 8:43 AM, livegames.co.il said:

    I tried to send a test mail from the Email setting, and indeed I got the test mail a few hours after I send it.

     

  6. 3 minutes ago, Sonya* said:

    You can do it if you have Pages. Just create a database, that is only visible to moderators. Create your posts in a database as articles, connect the database to a forum, where the posts should be post and set the future publish date. No extra feature is needed to accomplish it. Unless you do not have Pages.

     

    That's a brilliant work around.

  7. 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.

×
×
  • Create New...