Jump to content

sobrenome

Clients
  • Posts

    2,525
  • Joined

  • Last visited

 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 sobrenome

  1. On 9/4/2019 at 10:39 AM, bfarber said:

    Looks like Instagram supports OAuth2 logins.

    Is Instagram still accepting logins? I tried to update my Instagram Login Handler that was not working anymore and I saw this message on Facebook Developers:

    Quote

    Note that Basic View is not an authentication tool. The data returned by the API cannot be used to authenticate users of the application or log in to the application. If your app uses API data to authenticate users, it will be rejected during the review of the app. If you need an authentication solution, use Facebook Login instead.

     

  2. On 9/16/2017 at 10:16 AM, Adriano Faria said:

    One example I use:

    	/**
    	 * Send pm
    	 */      
    	public function messageMembersSend( $member, $subject, $content )
    	{
    		/* Setup pm title and msg */
    		$msgTitle = $subject;
    		$msgPost  = $content;
    		\IPS\Member::loggedIn()->language()->parseOutputForDisplay( $msgTitle );        
    		\IPS\Member::loggedIn()->language()->parseOutputForDisplay( $msgPost );  
    
    		/* Set the receiver */
    		try
    		{
    			$member = \IPS\Member::load( $member );
    		}
    		catch( \OutOfRangeException $ex )
    		{
    			return; 
    		}
    
    		/* Set pm sender */
    		try
    		{
    			$pmSender = \IPS\Member::loggedIn();
    		}
    		catch( \OutOfRangeException $ex )
    		{
    			return; 
    		} 
    
    		/* Valid sender? */
    		if( !$pmSender->member_id )
    		{
    			return;
    		}
    
    		/* Create conversation */        
    		$conversation = \IPS\core\Messenger\Conversation::createItem( $pmSender, $pmSender->ip_address, \IPS\DateTime::ts( time() ) );
    		$conversation->title 		= $msgTitle;
    		$conversation->to_member_id = $member->member_id;
    		$conversation->save();
            
    		/* Add message */ 
    		$message = \IPS\core\Messenger\Message::create( $conversation, $msgPost, TRUE, NULL, NULL, $pmSender );
    		$conversation->first_msg_id = $message->id;
    		$conversation->save(); 
    
    		/* Authorize everyone */       
    		$conversation->authorize( $member );
    		$conversation->authorize( $pmSender );
    
    		/* Send notification */ 
    		$notification = new \IPS\Notification( \IPS\Application::load('core'), 'private_message_added', $conversation, array( $conversation, $pmSender ) );
    		$notification->send();                      
    	}

     

    How could I set the $pmSender as the same as receiver $member?

    I have tried:

    public function messageMembersSend( $member, $subject, $content )
    	{
    		/* Setup pm title and msg */
    		$msgTitle = $subject;
    		$msgPost  = $content;
    		\IPS\Member::load( $member )->language()->parseOutputForDisplay( $msgTitle );        
    		\IPS\Member::load( $member )->language()->parseOutputForDisplay( $msgPost );  
    
    		/* Set the receiver */
    		try
    		{
    			$member = \IPS\Member::load( $member );
    		}
    		catch( \OutOfRangeException $ex )
    		{
    			return; 
    		}
    
    		/* Set pm sender */
    		try
    		{
    			$pmSender = \IPS\Member::load( $member );
    		}
    		catch( \OutOfRangeException $ex )
    		{
    			return; 
    		} 
    
    		/* Valid sender? */
    		if( !$pmSender->member_id )
    		{
    			return;
    		}
    
    		/* Create conversation */        
    		$conversation = \IPS\core\Messenger\Conversation::createItem( $pmSender, $pmSender->ip_address, \IPS\DateTime::ts( time() ) );
    		$conversation->title 		= $msgTitle;
    		$conversation->to_member_id = $member->member_id;
    		$conversation->save();
            
    		/* Add message */ 
    		$message = \IPS\core\Messenger\Message::create( $conversation, $msgPost, TRUE, NULL, NULL, $pmSender );
    		$conversation->first_msg_id = $message->id;
    		$conversation->save(); 
    
    		/* Authorize everyone */       
    		$conversation->authorize( $member );
    		$conversation->authorize( $pmSender );
    
    		/* Send notification */ 
    		$notification = new \IPS\Notification( \IPS\Application::load('core'), 'private_message_added', $conversation, array( $conversation, $pmSender ) );
    		$notification->send();                      
    	}

    But I get an error: 4C124/6 Illegal offset type in isset or empty

    I am trying to send an error message to myself on a plugin.

  3. On 6/5/2020 at 6:57 PM, The Old Man said:

    The way the newer variations of SVG and JS are implemented in FA5 offer faster, compressible resources, when you go into the FA5 Dashboard, it tells you which methods are better than others. They're saying FA6 will be improved again, I've no reason to not believe them and that's from the people creating it. 

    I like fast!!

    Go Dark Helmet GIF

    I have been begging for a faster IPS with less JavaScript and less CSS burden and maybe font awesome 6 could also be added to the light speed petition!

  4. 9 hours ago, opentype said:

    Firstly, please remove that larger chunk of code. That’s commercial software I sell. It should not be republished publicly.

    Sorry about that.

     

    9 hours ago, opentype said:

    And to answer your question: unfortunately not. IPS’ function to get topic images doesn’t give access to a thumbnail. Otherwise I would have already done that. 

    I will ask for it on feature suggestions.

    Thanks!

  5. For topic feed, superblocks are coded like this:

    removed

    Image thumbnail and actual image are the same:

    {{$items[$counter]['image']= $firstPhoto;}}
    {{$items[$counter]['image_thumb']= $firstPhoto;}}

    Is there a way to show the thumbnail on superblocks topic feed?

  6. 1 hour ago, stoo2000 said:

    You're more than welcome to submit a support ticket with access information and I'll take a look. I doubt it's related though. All the background task does is read data from one location and insert it into another.

    As soon as the background processes ended the errors were gone! Thanks!

  7. 5 hours ago, AlexWebsites said:

    Can't seem to update in 4.5 within the ACP and am getting:

     

    image.png.8f9c4f7ba9d26851b2e26bd3d4ca4162.png

     

    System log shows an entry:

    RuntimeException: {
        "errorCode": "2S303\/N",
        "errorMessage": "NO_PERMISSION"
    } (401)
    #0 /home/hhh/public_html/applications/core/modules/admin/marketplace/marketplace.php(207): IPS\core\modules\admin\marketplace\_marketplace->_api('downloads/files...', NULL, true)
    #1 /home/hhh/public_html/system/Dispatcher/Controller.php(90): IPS\core\modules\admin\marketplace\_marketplace->install()
    #2 /home/hhh/public_html/applications/core/modules/admin/marketplace/marketplace.php(40): IPS\Dispatcher\_Controller->execute()
    #3 /home/hhh/public_html/system/Dispatcher/Dispatcher.php(152): IPS\core\modules\admin\marketplace\_marketplace->execute()
    #4 /home/hhh/public_html/admin/index.php(14): IPS\_Dispatcher->run()
    #5 {main}

     

    Had the same issue. After renew could update. And while the background process was running, had 500 error on forums topics and error system logs on themes. 

  8. 24 minutes ago, bfarber said:

    This is for attachments and will not apply to things like Gallery images or Pages record images (but would apply to attachments in either application, e.g. to comments or the body of a Pages article).

    My translation is missing the link. I will look at the original English entry. Thanks.

     

    24 minutes ago, bfarber said:

    Changes to a Pages record image are not retroactive - there is no tool to rebuild the existing thumbnails.

    Any plans to add the rebuild tool on Pages?

  9. On 2/22/2021 at 11:23 AM, Rikki said:

    Also, in reality, if we were going to take the opportunity to redo our entire frontend codebase, we'd likely move to a reactive framework to build a better frontend

    It would be amazing to use IPS with Next.js. I did all that I could to meet google core web vitals standards, but my community is still ranked as poor. With the current IPS software design I suppose that is impossible to be ranked as fast by google. And for those that need Adsense, absolutely impossible.

×
×
  • Create New...