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
-
-
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:
QuoteTo 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
-
Thanks for the new 4.5 version @HeadStand much appreciated. Test email works fine.
-
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:
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.
-
I spoke too soon! I thought this would show the custom theme setting B to the Admin dependant on the setting of a preceding custom setting A but it doesn't work. The custom theme setting it applies to (B) seems to show no matter if it returns a true or false Boolean.
-
AdminCP > Commerce > Subscriptions > Subscribers
The info seems to break the response layout, you can't see the expiry dates when using an Safari iPad, the table goes off the page without scroll bars or wrapping. Happens in landscape and portrait modes.
-
This format with one set of curly double braces seems to work in the Conditional field:
<?php {{if ( theme.my_other_custom_setting == 'value' ) return FALSE;}}
-
Thanks, that's a good idea, I'll try next time I'm on my localhost. The info underneath that Condition field says to insert raw PHP. I've tried using the double curly brackets shown in the help guidance docs. There are a lot of examples of theme conditions but no example of what to use in this box.
-
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.
-
Sweet, thanks DawPi!
-
-
Thanks! 😀
-
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
-
Had to download the full zip and upgrade.
-
-
Hello @HeadStand
Any decisions on the future of this handy plugin?
Many thanks! -
Thanks for this. Just had a final notice email too!
-
Thanks Brandon, much appreciated.
-
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!
-
Great, thanks @bfarber
So aside from PHP SDKs, if I just wanted to use some 3rd party JS and CSS files within a plugin or app, they go inside plugins/myplugin/dev/js or css?
Thank you.
-
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.
-
Hello,
Does IPS suite have any preferred built-in classes and methods to allow plugins and apps to communicate with third party service REST API endpoints?
Thank you.
-
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.
-
Hi,
There is still no setting provided for this, but luckily Makoto's excellent plugin has options to reduce the places Gallery Lightbox is used. It is a huge improvement, the Lightbox is used more appropriately and it can improve the display of images too.
- Saurabh Jain and Makoto
- 2
-
IPS 4.5.3 to 4.5.4 Upgrader stuck
in Technical Problems
Posted
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.