Jump to content

The Old Man

Clients
  • Posts

    3,958
  • Joined

  • Last visited

  • Days Won

    11

 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 The Old Man

  1. If anyone comes across this issue in the future, opening the page a new window as suggested by the browser doesn't work, it hammered my server until I got a Cloudflare 524 error. However I managed to bypass this issue by selecting the X-frame option as the update completed normally. I usually have it set to none, because I set it up on the server via an HTTP.conf that was recently updated.

  2. I've found a little more about this, using my PC I can see there is actually a security message that can't be seen on an iPad:

    Quote

    To protect your security, mysite.com will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window.

    which leads you to:

    https://support.mozilla.org/en-US/kb/xframe-neterror-page?as=u&utm_source=inproduct

    image.thumb.png.234d73d748325fd9b866312d2463108c.png

  3. 13 minutes ago, bfarber said:

    I see you have an opening <?php tag there...are you doing this in an actual PHP file somewhere, instead of in a template?

    Thanks Brandon, I'm trying to use the Condition field here, it inserts an opening PHP tag for you and says its for raw PHP, I didn't use a closing PHP tag:

    image.thumb.png.a74f66d9dbfb7882ecb6267ed638d91a.png

    At the bottom it says you can make it (this custom setting) condition. I tried so many variations yesterday for over 8 hrs, I actually dreamt about it overnight!

    Basically, I just want to this custom setting to be displayed in the theme settings form depending upon the previous setting which is a select box containing line-gradient and radial-gradient. This field (site_title_color_gradient_direction) has no relevance if the user chooses the radial-gradient option in the first gradient-type setting site_title_color_gradient_type in my styles.css file and I have got it working on the front end with this:

    #elSiteTitle {     
       background-image: {theme="site_title_color_gradient_type"}( {{if theme.site_title_color_gradient_type === 'linear-gradient'}}
        {theme="site_title_color_gradient_direction"}
    {{endif}} {hextorgb="site_title_color_gradient_start" opacity="1"}, {hextorgb="site_title_color_gradient_finish" opacity="1"});  
      -webkit-text-fill-color: transparent;  
      background-clip: text;
      -webkit-background-clip: text;
      font: 400 {theme="site_title_font_size"}px Creepster, Helvetica, sans-serif;
      color: #fff;
      transition: all 300ms ease;
    }

    So for now, because I can't get the Condition field working, I've just added a note to this custom theme setting that says its ignored for radial gradients.

    Hope this makes sense!

    PS.

    16 minutes ago, bfarber said:

    if( \IPS\Theme::i()->settings['setting_key'] == 'value' )

    Does this apply to custom theme settings as well as default? Thanks.

  4. Hi,

    I have a custom theme setting that works and I want to use the Condition field to only display if a previous custom (select type) theme setting isn't set to one of its key values, but I can't seem to get the right syntax:

    <?php
    if ( theme.my_other_custom_setting == 'value' )
    
        return FALSE;

    I've tried with double curly brackets too. Also an ELSE returning TRUE.

    Many thanks.

  5. I was getting a lot of these with previous releases but now also with 4.5.4:

    [22-Oct-2020 22:00:34 UTC] PHP Deprecated:  Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /home/username/public_html/ forumname/applications/calendar/widgets/upcomingEvents.php on line 153

     

  6. Please can you add, fix or restore the autosaving capability within the editor in 4.5? I'm sure we used to have this. I just spent an hour editing and creating new content inside a custom Pages block within the AdminCP and when I clicked Save and Reload it asked me to log in, then my new content was gone, back to the old content. Aaargh!

    kill me now how i met your mother GIF

  7. Thank you both, really appreciate the responses.

    On 10/5/2020 at 5:29 PM, Daniel F said:

    Could you clarify what you're trying to achieve?

    Sure, I'm looking to communicate with Cloudflare, AWS REST API, and a couple of other 3rd party services to utilise data in widgets etc.  They usually give examples as Curl commands, but I wasn't sure how best to intergrate into IPS.

    https://api.cloudflare.com/#getting-started-endpoints

  8. Hello,

    Please can you confirm from a newbie perspective whether it is possible to use a 3rd party PHP SDK such as Amazon SDK within a Marketplace acceptable plug-in?

    If so, if you have multiple plugins or apps that use it, does it get stored in one 'shared place' to avoid unnecessary duplicates? Or would namespacing it be advisable. What would be the preferred best practice?

    Many thanks.

     

×
×
  • Create New...