Jump to content

virap1

Clients
  • Posts

    110
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Projects

Release Notes v5

Forums

Events

Store

Gallery

Posts posted by virap1

  1. Hello, this morning there is some major spam attack so I set "allow new registrations?" in admin control panel to no.

    But somehow the spammers are able to register and post. The forum does a good job flagging most of them through word filters but how do they manage to join when registration should be closed?

     

  2. Hello. I set up zapier to post a tweet every time a new record is created in a database. 

    When a new database record is published but I set it hidden, edit it, add photo and then remove the hidden checkmakr only 1-2 tweets will appear in the tweeter daily.

    But if I publish the database record and set it to be immediately visible, public then tweeter zapier behaves as expected and instantly publishes a new tweet. 

    Is this how it should behave? Is it possible to change it so zapier is triggered when the record becomes visible? 

  3. Thank you @Adlago. I use auto-ads, so the ads are dynamically placed by adsense. I don't know how to apply individual divs with auto-ads. Is it possible.

    @Jim M, @Matt thank you for your feedback. I am glad the next major release will improve on this. To be fair, I think invision is a great investment and excellent software and service. Especially, after migrating to the cloud hosted environment I am very happy with the invision. 

  4. 2 minutes ago, Matt said:

    I've taken a look at your site.

    A topic is always going to perform sluggishly compared to Google's averages it compares against. That topic page in particular has a lot of images, lots of text, Google ads, and so on.

    If we look at the community index page: https://pagespeed.web.dev/analysis/https-www-enotalone-com/jsqtfp0dcy?form_factor=mobile we see that the reason it performs poorly is because of the Google Ads which takes 500ms to execute and holds up page rendering while it does so.

    Compare it to our forum index (same software, same cloud network).

    Could contain: Page, Text, File

    Once again, we disabled the ads, run the test and ended up with very similar miserable results. 

  5. 1 minute ago, Jim M said:

    What is performing horribly? What are your users having issues loading? Do you have an example outside of this tool? Often people get bogged down by these tools and get obsessed with them. Your site itself is really loading extremely quickly for an actual user.

    With that said, there are things at a code level in our software that we are going to improve for V5. If that is more-so what you are concerned about, I would invite you to read up on some of the conversations that have happened on the community here about CSS and Javascript. 

    The question and concern is about the page speed. 

    I don't know what other people are assessed about. That also was irrelevant. 

    What javascript, css conversations? I have not really seen much on the topic. Do you have a guide or something on this topic?

  6. 46 minutes ago, Jim M said:

    Please note that the "Failing report" at the top is an overall average from various browsers overtime. As the page you inserted there is actually for your overall origin due to lack of data they have.

    And? The page/website is still performing horribly.

    Additionally, your suggestion that it is due to ads definitely was not the case.

    8 minutes ago, Adlago said:

    Try this, add in your Custom CSS

    @media screen and (max-width:767px) {
    .google-auto-placed{height:340px !important}
    }

    When an ad block is height :auto, as created in your ad code, a browser slows down while it recalculates your page. So try this code.

    Thank you very much @Adlago. I will try it.

    Since the invision performance on the cloud so bad on the cloud (it was also the case with a dedicated server) is there anything else that can be done to improve the performance and pagespeed results?

  7. @opentype I can't figure out how to use the rest api to add a record image to new entries. Maybe this is not supported by the API?

    setting it as 

    $image['article']=file_get_contents($img_url)
    $fields['record_image']=$image;
    
    or 
    
    $image['article']=file_get_contents($img_url)
    $fields['image']=$image;

    does not appear to work. But I think we can create a new custom field and upload images there or even maybe set a url field and use that as a record image url. So, is there a way to set that new custom field as the default record image field in a way so the images would appear within the records/articles, in meta data, rss etc.?

    Thank you.

  8. If currently there is no way to upload an image to record_image, can IPB please consider adding this to the API?

    Also, if the image is already in the media can we update the url of the record's image and set it to the existing file within a media folder?

    If that also is impossible, is there a way to create a custom field and set that as the default image field for the database so the image will appear within the record, meta data, feeds etc. and replace the default record image?

    Thank you.

  9. 30 minutes ago, JustinHawk said:

    2. Modified the API file and added a code to update function that accept base64 version of image with filename. Code example would be in Gallery API file. Would have shared but currently on mobile. 

    Thank you so much. I would be grateful if could send me the code for this.

  10. I must be missing something because I can't upload a picture along with the database record. 

    This code works as expected, but fails to add the picture to the featured image field. 

    Any ideas what I am doing wrong? Thank you.

    $zimg="https://content.invisioncic.com/e322713/pages_media/3_1.jpg";
    $image = array();
    $image['article']=file_get_contents($zimg);
    
    $fields = array();
    $fields['18']="title test";
    $fields['19']="desc test";
    $fields['image']=$image;
    
    $data = array(
    	"title" => "title test1",
    	"content" => "content test1",
        "status" => "published", // Or "draft" 
    	"category" => 19,
    	"author" => 191972,
    	"fields" => $fields,
    );
    
          $communityUrl = 'https://www.communityUrl.com/';
          $apiKey = 'apiKey';
    
          $curl = curl_init( $communityUrl . 'api/cms/records/7' );
    	  
          curl_setopt_array( $curl, array(
              CURLOPT_RETURNTRANSFER	=> TRUE,
              CURLOPT_HTTPAUTH	=> CURLAUTH_BASIC,
              CURLOPT_USERPWD		=> "{$apiKey}:",
              CURLOPT_USERAGENT		=> "MyUserAgent/1.0",
    		  CURLOPT_POST	=> 1,
    		  CURLOPT_POSTFIELDS => http_build_query($data),
    		
          ) );
         
    	 $response = curl_exec( $curl );

     

×
×
  • Create New...