Jump to content

Adriano Faria

Clients
  • Posts

    31,588
  • Joined

  • Days Won

    473

 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 Adriano Faria

  1. Since you mentioned me here, I will reply as I replied on my board.

    This is the only DELETE it has:

    					try
    					{
    						$follow = \IPS\followspecificcontent\Follow::load( \IPS\Member::loggedIn()->member_id, 'cfe_member_id' );
    						$follow->delete();
    					}
    					catch ( \UnderflowException $e )
    					{
    						parent::unfollow();
    					}

    The \IPS\followspecificcontent\Follow model is:

    <?php
    
    namespace IPS\followspecificcontent;
    
    if( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
    {
    	header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
    	exit;
    }
    
    class _Follow extends \IPS\Patterns\ActiveRecord
    {
        protected static $multitons;
        public static $databaseTable = 'followspecificcontent_data';

    It doesn't delete records from core_follow and most importantly: the delete in my app happens when the member UNFOLLOWS the member.

    Well, it would be very funny if a delete in my table could delete data from core_follow too.

    As I truly believe it doesn't do that, it's not my app problem.

  2. 4 minutes ago, Square Wheels said:

    but I don't see how.

    The only way is to UPLOAD A NEW VERSION:

    Could contain: Page, Text

     

    You don't need to provide a new .doc or .xls, etc. Just upload the screenshot and save it.

    Note: this is an old request, by the way.

  3. 52 minutes ago, Square Wheels said:

    Let's say a Word, or Excel image or ma maybe a pdf logo.

    That's not a feature in Downloads. It will show this "blank" screenshot if the user didn't upload one.

  4. 1 minute ago, Marc Stridgen said:

    Forum - Edit forum. go to posting settings, select the options for "Posts must be approved?"

    Member - Edit a member, click edit under warnings & restrictions, change the "Require approval before content shows?" settings

    …and if you want to moderate specific member in specific forums: https://www.sosinvision.com.br/index.php?/file/163-moderate-content-per-forum/

  5. 3 minutes ago, Jyoti Rani said:

    But how to create it?

    Could contain: Text, Page

     

    3 minutes ago, Jyoti Rani said:

    How to upload it to sever from developer's mode at local?

    Not sure I follolw your question. Do you want to upload your own hook to the dev install?

    Make sure you make a copy and keep the dev folder of your app/plugin. You will need to work in your app/plugin in the future.

×
×
  • Create New...