Jump to content

Mike Mc

Clients
  • Posts

    141
  • 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 Mike Mc

  1. When I turn on PHP 8.x I get this error on my server...

    [Wed Mar 15 07:05:10.048045 2023] [proxy_fcgi:error] [pid 1175:tid 139770013333248] [client XX.XX.XXX.XXX:0] AH01071: Got error 'PHP message: PHP Fatal error:  
    Declaration of 
    IPS\\cms\\customlinks_hook_cCmsFields::displayValue($value = null, $showSensitiveInformation = false) must be compatible with 
    IPS\\cms\\_Fields::displayValue($value = null, $showSensitiveInformation = false, $separator = null) in /path/is/redacted/init.php(913) : 
    eval()'d code on line 20', referer: https://www.redacted.com/index.php?app=core&module=system&controller=serviceworker&v=f22dd72eef1678863875&type=front&loggedIn=false

    On my version of IPS, 4.6.12.1, I am unable to update your plugin because it only is available for 4.7.

  2. I am having Issues with the API...

    1. If I try to use the endpoint to create a new tutorial I get the following error.
      Uncaught_Exception
      Error: Call to a member function save() on null (0)
      #0 /home/runcloud/webapps/redacted/system/Api/Controller.php(180): IPS\tutorials\api\_tutorials->POSTindex()
      #1 /home/runcloud/webapps/redacted/system/Dispatcher/Api.php(329): IPS\Api\_Controller->execute()
      #2 /home/runcloud/webapps/redacted/api/index.php(11): IPS\Dispatcher\_Api->run()
      #3 {main}

      Along with this error that is triggered at the same time.

      template_store_missing

      Template store key: template_1_1df892f7e87cbbe0876e716b8455a748_global missing (core, api, global)

       

    2. If I change to an update API, call it will update and work.
    3. I am unable to add to the 'a_content' field of the Tutorial through the API, i can only add a 'a_desc' - is this intended?

    Thank you!

  3. On 4/8/2022 at 4:47 PM, Makoto said:

    Doing this will likely mean adding a database entry for every file, which is probably exactly what you want, but just something to keep in mind if you're wanting to enforce download limits on uses with bulk download permissions.

    Yes! Its pretty important for my community as we sort by file popularity, and some of our larger downloads contain dozens of files. So they get "down-ranked" only because people prefer the zip download option and they do not get a download count increment.

    Are you able to give me a rough estimate on the ETA of the changes?

    I'd be willing to test a pre-release version if you need to test. 

    Thank you!

  4. I did ask the user this and got some more information...

    "Google Pixel 4a 5G camera. JPG. Reduced in size using Windows 10 image resizer (right clicking the file from Windows Explorer). Selected Large size. The first is the original image out of the camera. The second the resized image."

    @Marc Stridgen - Thanks for the initial feedback. Any chance this could be related to the Win-10 image resizer (both of the images work for me when uploading here, and on my community)

    PXL_20220218_044822757.MP.jpg

    PXL_20220218_044822757.MP (Large).jpg

  5. This add-on has been fantastic for my community. THANK YOU!

    I have a few items i would really like to see included in future updates, which I think have all been discussed before:

    1. Include "Hit Tracking" - track how many times a replace link has been clicked, i only need total count really, as I can track where it came from using Google Analytics.
    2. Include the ability to parse multiple inputs. IE one custom link entry for multiple words. I frequently create 3-4 custom links for a phrase, like "Phrase A", "PhraseA", "PhrasesA" but they all point to the same Custom URL.
    3. Exclude a certain page/url from having custom links replaced.

    If I can pool together with others to help pay for this development and upgrades I would be willing to do that!

     

  6. Thank you for creating this, wonderful for my site. I have no idea why this is NOT built into IPS.

    I have a few "requests" for future implementation...

    1. Log 404's on the site and list them for easy and quick fixes.
      1. Page the 404 came from
      2. The link that is a 404.
    2. Import a csv/xls of redirects to more quickly enter the redirects.

    Thank you!

  7. I have 2 custom fields created for my downloads files, i see that the database is saving the records in the 'downloads_ccontent' table. Using the API is there way to post new values for these fields when creating a new download through the REST API?

    I have tried a few variations of passing extra fields in the post data, and they do not seem to work.

    IE: the "Fields" array below

    $curl_post_data = array(
    		'category' => 2,
            'author' => 1,    
    		'title' => 'Test File Upload',
            'description' => $file_desc,
      		'files' => array(
              	$filename => urlencode(file_get_contents($file_url)), 
                $filename2 => urlencode(file_get_contents($file_url2))
                ),
            'version' => '2021.02.06',
            'screenshots' => array( 
                'testname.jpg' => urlencode(file_get_contents('/local/directory/')),
                'testname2.jpg' => urlencode(file_get_contents('/local/directory/'))
            ),
            'fields' => array (
                'field_1' => 'HERE IS THE DATA FOR FIELD 1',
                'field_2' => 'HERE IS THE DATA FOR FIELD 2'
            ),
            'prefix' => NULL,
            'tags' => 'tag1, tag2, tag3',
            'date' => NULL,
            'ip_address' => NULL,
            'locked' => 0,
            'hidden' => 1,
            'pinned' => 0,
            'featured' => 0
      );


    Thanks!

    @Adriano Faria or @IPCommerceFan or @bfarber you all seem to have good API knowledge so i tagged you 😃 

×
×
  • Create New...