Jump to content

Daniel F

Invision Community Team
  • Posts

    6,573
  • Joined

  • Days Won

    37

 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. 5 minutes ago, bosss said:

    That is not ok - we lose all settings and edits - because we must uninstall first and after that we can install latest version (update is mission impossible) - why You make like that?

    Also i get messages (update available) on my 4.4.10 board - but update is for 4.5 board -what i can not use on my 4.4.10 - ypu really made that very complicated - should be simple - that we can download and upgrade with files what we need.

    Why would you need to uninstall the app/plugin?

  2. 35 minutes ago, RocketStang said:

    Why isn't there a custom widget block for adding random things to your sidebar like HTML and text?  I was able to add a plugin to do it but I really think this should be a core feature.  I don't have Pages so I am not able to use page builder widgets either.

    There’s one as part of the IP. Pages application. 

  3. We have removed the session id from the ACP urls, meaning that you have to make sure to use CSRF protections in all your methods which change a state!
    We also advice to use \IPS\Request::i()->confirmedDelete() in all your methods where you're deleting data!

     

    One of the few examples from the MP reviews is this code:

        protected function approve()
        {
            if ( !\IPS\Request::i()->id )
            {
                \IPS\Output::i()->error( 'node_error', '2myApp', 404, '' );
            }
    
            $a = \IPS\myApp\Item::load( \IPS\Request::i()->id );
    
            $a->open		= 1;
            $a->save();
    
            /* Log History */
            \IPS\myApp\History::addEntry( 'foo', x, \IPS\Member::loggedIn()->name );
            \IPS\Output::i()->redirect( \IPS\Http\Url::internal( '.' ));
        }

     

    Once an administrator with a valid ACP session calls the url, he would automatically approve the advert, meaning that any member could post an encoded URL (or use one of the other methods which I'm not going to mention here ) to lead the admin into the trap!

     

    To prevent that this happens, you have to utilise the CSRF key and to check in your method if the key is valid, before anything else is done!

     

  4. Your cron task is quite confusing and introducing unncessary overhead.

    foreach ( \IPS\Db::i()->select( '*', 'contenthistory_visits' ) as $row )
    {
    	\IPS\Db::i()->delete( 'contenthistory_visits', array( 'ch_date<?', \IPS\DateTime::create()->sub( new \DateInterval( 'P' . \IPS\Settings::i()->ch_prune_logs_days . 'D' ) )->getTimestamp() ) );
    }

    What's the point of the foreach loop? There's really no need to iterate over all the rows in contenthistory_visits, you can just run the query which you have inside the loop.

  5. 5 minutes ago, Afrodude said:

    Added ability for Forums created within Clubs to be set so that users can only see the topics they posted (e.g. for a support forum).

    Just to clarify.

    You were already able to accomplish this within forums since IPS 4.0 (probably even before)

    The change in 4.5 covers now also club forums. So, as Club Owner, when creating a new forum feature, you see now a new setting for this

    clubform.png

  6. 6 minutes ago, annadaa said:

     

    I don't see anything, it brings me back to the home page.

    I have well if not the support provided with commerce, but my wish is to also be able to use forum for private exchanges between a moderator and a member

     

    and if it were also possible then to display this private category of forum on any page with widget it would be even better

     

     

     

     

    Hi,

    that's possible with the forum application:)

    When creating or editing a forum in the ACP, you have following setting under the "Forum Settings" tab, which controls this

     

    perm.png

×
×
  • Create New...