Jump to content

Daniel F

Invision Community Team
  • Posts

    6,569
  • 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. The "Member Edited" trigger is fired when literally anything except when one of these values changes (         'last_visit','last_activity',  'profilesync_lastsync' )

    So yea, your observation is correct. It is also fired when somebody replies because his "total posts" count, last post timestamp, and probably also his achievement points value changed.

    We thought that people would use Zapier Conditions once they need more control over the data, that said, we may improve this in the future and include a few filters into the "Member Edited" trigger.

     

    Also, something to keep in mind, is that the webhooks aren't fired immediately.

    We have a webhook queue, which collects the data and which is then fired via a separate request ( https://zapier.com/engineering/webhook-design/ leaving this link here for people who are interested in this)
    Since you're on a demo that has probably not really that many visitors, the queue is also not running as often as it would on a live board!

     


     

  2. There's no way to hide them!

    The group setting controls only if the group name will be exposed in the public, but it doesn't control if the members are shown or not.

     

    Edit: I think I misunderstood your question.

    Is this a 3rd party widget? Our widget doesn't include the groups

    Screenshot_20230314_084904_Chrome.jpg.16

  3. 2 hours ago, Schaken said:

    Can anyone verify that the uploading for API actually works? I want to verify it is not a bug in Invision.

    Yes, it's working.

    Here's my php version of a quick test:

     

    // LEt's do it step by step to make it easier for others to see what's going on
           $img = __DIR__.'/applications/core/interface/giphy/logo.png';
    	   // get the contents of the image
    	   $content = file_get_contents( $img);
    	   // encode it
    	   $content = base64_encode( $content);
    	  
    var_dump(
    	\IPS\Http\Url::external( $communityUrl . "api/index.php?gallery/images" )->request()->login( $key, "" )->post(
    		array(
    			'category'		=> 1,
    			'author'	=> 1,
    			'caption'		=> '<p>Testing API</p>',
    			'filename' => "my_img.png",
    			'image' => $content
    			)
    		)->decodeJson()
    	);

    You could upload it to your community root directory after adjusting the URL,API Key and category variable to test it on your installation.

  4. This would be the code but I'm not sure what you mean with postID. There's no separate page with a post, only topics, so I assumed you mean the topic id which I used in my code.

    {{if !isset( \IPS\Output::i()->metaTags['og:image'] )}}
    	{{$shareLogos = \IPS\Settings::i()->icons_sharer_logo ? json_decode( \IPS\Settings::i()->icons_sharer_logo, true ) : array();}}
    	{{foreach $shareLogos as $logo}}
    		<meta property="og:image" content="{file="$logo" extension="core_Icons" scheme="full"}">
    	{{endforeach}}
    {{elseif \IPS\Request::i()->app == 'forums' AND    \IPS\Request::i()->controller == 'topic'}}
    {{$id  = \IPS\Request::i()->id;}}
    <meta property='og:image' content='https://www.domain.tld/img/{$id}.jpg'/>
    {{else}}
    <meta property='og:image' content='https://www.domain.tld/standardimage.jpg'/>
    {{endif}}

     

    That said, I'm also not sure if it will work at all, the condition looks weird and will probably always return the first part for topics.

     

     

  5. 18 minutes ago, Ocean West said:

    I've queried this before but have not got adequate answer as to when we can restrict what bits get issued in the payload. 

    As far as I remember we said that we won't change this in the 4.x lifetime.

    By the way, not sure if you noticed this, but PII data are only included in the response when authorization happened with a generic API KEY.
    If you use the REST API and GraphQL with oAuth authentication, all sensible data are stripped.

×
×
  • Create New...