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

Everything posted by The Old Man

  1. I've got nothing against the cloud offering, personally its not for me due to the other reasons already mentioned, cost, sluggish speed, other uses etc. We self-hosters have just got a nice Gallery update as well, it wasn't restricted to Cloud. Just saying though, that if I sold apples for 10 years and then introduced a second product line oranges, ten years later I would expect to see sales of apples decline and sale of oranges grow. PS. Don't forget the devtools for 4.7.7 please!
  2. There are two logins, so I believe that’s why there are 2 session cookies. You can be logged into just the AdminCP without being logged into the front end as a Member, or be logged into both. From what I’ve read in the past, session cookies where originally supposed to last just the duration of a session, but a few years back the Google devs decided to retain them after the session ends so that you could reopen existing tabs/sessions (a new feature). I’ve seen bug reports for Chrome and Firefox covering this and hence they were marked as intentional. I think there is a browser setting at least in Firefox, on whether to enable or disable this feature I’ll have another look tomorrow. I think this is something just to bear in mind if you are testing a page caching setup, it only effects Admins, but it explains why after I re-enabled the guest page caching that I was seeing dynamic despite the cache control header also being present. Yeah, probably easier than using a Transform Rule but that works too. I use one for the non-IPS parts of a site with 1000’s of pages.
  3. I just noticed this part of the CF Rule was causing me problems: If you are logged in as an Admin and then log out, and are not logged in as a Member, you won't get the cached page becasue the IPSSessionAdmin cookie is still in the browser. I deleted the cookie via browser tools and immediately the page cache was working for me.
  4. Sorry @marklcfc I missed your post. I had to disable the guest cache on my main sites because I have more than 1 theme available, but am using it on others. I had to refresh my memory but yes I agree, the cache value is a constant, meaning it shouldn't change by design and overides any existing previous value. As they mentioned, IPS sets it (in the .init file) as 900 secs/15 mins, so having this line in the constants.php file acts as an overide. The issue we had, was that that this overide line was there but we didn't know about it and it was set to 0, so nothing was being cached by Cloudflare even though we had set up the suggested Rules (we also had them set to respect the origin's TTL setting and not overide it but remember it was 0 for some reason). After removing it completely it would have the effect of letting IPS' init 900 seconds prevail. So you can indeed set the constant to cache for just 30 seconds if you prefer and Cloudflare allow it that low, personally I think there's no harm in at least a couple of minutes, it would take up to a further 3x-4x the max page load off your server and people sort of know a forum isn't a live instant chat per se. If guests sign in they get to see the latest posts instantly and you get new members. Its win/win. I know though 15 mins might be too long for a live footie match discussion site, but as the others said, you have to accept a compromise, switch to Chatbox or similar, or get it working with revalidation/stale content headers. I noticed that CF have added a section to the Caching Rules where you can optionally overide TTL based on status codes received from the origin server, which could be useful.
  5. Great job Nathan, thanks for the updates. Would be great to be able to contribute by reporting these numpties in some way to the various block lists, I know it’s not allowed to do via IPS Spam directly.
  6. Hi IPS, I've been looking at the RSS Feeds (with the aim of importing Blogs into Pages) and I noticed there are variations in the formatting of the feeds created from various places in the suite. Is there any particular reasoning behind this? I see it here on your offical site, so I'm assuming its by design or something to do with extracts vs full content. For example, if I click on your RSS icon at the bottom of the page, select Invision Community News, the feed contains no HTML, its been stripped and no optional GUIDs. Any images are missing except for the feature image which is in an enclosure, they are valid but more like XML than RSS: https://invisioncommunity.com/rss/1-invision-community-news.xml If I look at an Activity Stream feed, its the same structure. There is no HTML formatting, just solid chunks of text. https://invisioncommunity.com/discover/all.xml/ However from a real Blog feed, the HTML formatting and images are present within the actual entry, there are GUIDs and items contain no enclosures: <item> <title>A Realization...</title> <link> https://example.com/blogs/entry/455-a-realization/ </link> <description> <p>I watched a DVD of the movie "Seabiscut" tonight.... </p><p> Words cannot express what learning things I never knew about one of the greatest racehorses who ever lived and his jocky did to me.</p><p> </p><p> This horse was manipulated by his first owner and forced to be a looser, because they did not like his attitude, and wanted to use him to teach others to win. He was held back for the first few years of his life. </p><p> </p><p> His rider was a guy who'd gotten the short end of the stick his whole life, since this was during the time of the stock market crash. Also, according to the movie, he had lost the sight in one of his eyes, due to a head injury he got while boxing to try to make a little money. The two came together, battered, broken, angry....and healed each other. They began to win....</p> </description> <guid isPermaLink="false">455</guid> <pubDate>Thu, 26 Apr 2007 09:43:00 +0100</pubDate> </item> From my particular goal, the problem is that none of the options include any tags from the original Blog entry, and the comments/replies are only available if you create a custom activity stream RSS feed, but then it makes the comments into individual entries and of course, the original formatting is lost.
  7. I noticed that in the profile tabs for Blogs that Guests (possibly other member groups too) can see details of Blogs they don't have access to see. Aside from meta, only the Blog Title and Entry is revealed. Clicking on the Blog title takes the guest to the blog...
  8. Thanks Senior, I never realised that before. Doesn't seem the most elegant way of loading JS/CSS that are already loaded but what do I know!
  9. Like many folks on here judging from related topics, I have been experiencing the rather pesky message when trying to log in and/or change theme... Hopefully this helps someone else... In my case, it was on localhost but ONLY in Chrome and Edge browsers (Windows 10). Normally I use Firefox, which worked fine. I found a clue in Chrome's devtools mentioning the domain attribute being invalid: In my install I have a constants.php with cookie constants, this one was was set to: define( 'COOKIE_DOMAIN', '.localhost' ); I removed the . from before the domain define( 'COOKIE_DOMAIN', 'localhost' ); and it immediately logged me in using Chrome as soon as I refreshed the log-in page. I checked Firefox and that still worked after the change. I test Edge, and again, as soon as I refreshed the log-in page it let me in. Same on other localdev installs on my PC. So if you are also having trouble or users are reporting problems and getting this error code, it may be worth checking if you have a . in front of your domain in your configuration which Edge and Chrome don't like, or adding a new constant for COOKIE_DOMAIN with no . if not. Take a copy or screenshot of your existing constants.php first.
  10. Hi, I just noticed on my own site, but I think its a bug. If you look at the html source code of the page associated say for example with the Status Update widget enabled, inside the vicinity of the IPSDialog/CKEditor sections it seems to be duplicating all of the site's meta and Font Awesome preload code normally included in the page head. Also happens inside Chatbox Free which makes use of ipsDialog so I think its likely coming from IPS.
  11. Hi, I'm experiencing a responsive layout issue using an iPad tablet, in the AdminCP on pages that display more than short lines of text when the content is displayed as tabular. Examples Advanced Configuration > FURLs: Even with the menu bar closed, as you can see in the more obvious Furl page example above, you can't see or access the content or other columns that are off the page. Also in the Downloads Stats section: Thank you.
  12. Hi @Nathan Explosion, I found this issue elsewhere in the AdminCP so I think this a bug in the actual ACP's responsive layout. I found it in Advanced Configuration > Friendly URLs which also uses a table layout and as you can see the content overflows the container and there is no way to access it or anything beyond it... Also in Stat Reports Downloads when switching to table view.
  13. Hi, I noticed it's possible to set a smaller time in Cloudflare using the Transform Response Header options, no need for any IPS modification it can be done on the fly to overwrite the default 900 values. By using the same regular expression (Jim's) as before to configure the Transform Response Header, then set the TTL to whatever you want for the Browser max-age and Edge s-maxage values, like 60 seconds or whatever you wanted. ... So after a few weeks of trying, I still can't find a reliable method to get the guest page cache to work with themes like it used to. Yes, on the free Cloudflare accounts thanks to the new improved Cache & Transform Rules and IPS now setting different headers, we can use their CDN to provide a guest page cache. Another positive is it requires almost no resources/there's no overhead server-side no matter how short you might cache the pages for, because it's taken over by the CDN and it's not a traditional push CDN. Guests however can't view more than the 1 default theme anymore unless they go to uncached page a page (such as a product page within the Commerce store), then they will see their selected theme but it's gone again when they go back to say the forums. Now I know that it's actually the same with Wordpress, only 1 theme in use at a time, but forums and apps within Invision Community are more, and have supported different themes for guests as well as members since day 1. It's a nice to have, and I want to keep it! I think it would actually be be possible right now with the new Cache & Transform Rules, but when you start looking in more depth at the docs, CF have gone and move the goal posts on us again by not allowing free accounts access to the necessary functionality:- AFAIK for the 2 people people including me wanting guest theme caching (I jest), I think we need to set the theme cookie with a value in the response to match the current value of the theme cookie (say '43') sent in the client's request header. I think something like setting a cookie in the HTTP Response Header Modification section to return a matching value would do it. For that, unless CFlare give us access to the set the http.request.cookies dynamically, we would still need to write Worker code, use the API or use the URI path to include the theme id, not nice, or Vary on the IPS4_theme Cookie. I'd like a working solution to this caveat. It's a shame to have to pay extra for Pro just for the ability for guests to use more than the current default theme or a dark mode. I know IPS view list as an acceptable loss, but for me it's not ideal.
  14. Thanks Ryan. If you cast your mind back to when GDPR was coming out and IPS had a fairly large update. It was changed in order to be compliant. I never noticed until now that it had somehow got reverted back at some point in the updates since to being ticked by default, hence undoing the compliance change previously made. (Since GDPR day, its been considered unlawful in the EU, UK plus any other regions who have instituted similar legislation to have the box already ticked (known as Opt Out). It has to be unticked by default (so you have to clearly OPTed IN which the software records) because newsletters are not transactional emails.) Update: It was changed in 4.2.7, the GDPR release, and documented here:
  15. I noticed on my own site and also here, that the Newsletter checkbox is now back to pre-ticked, like before GDPR. This site seemed a bit confused about when I was signed in or out! "Just when I was Signed Out, they Signed me back in."
  16. Hi @Nathan Explosion On the history tracker page when using a tablet, the results in the table extend beyond the width of the page so you can't get to them, there's no scroll bars.. Toggling the side menu closed obviously helps but not enough to access the overflowed text or sort fields. Is this an IPS bug with the AdminCP responsiveness, do you think? G.
  17. Hi, Please can you address some Commerce related HTML/CSS issues: 1) Commerce product carousel images (featured products) are missing alt text which presumably would usually be the product name for SEO: <li class="ipsGrid_span3 ipsCarousel_item cNexusWidgetProduct cNexusProduct_mini ipsPad_half ipsClearfix "> <a href="https://example.com/store/product/6-giant-furry-underpants-mucus-green/" class="cNexusProduct_image"> <img src="https://example.com/uploads/monthly_2021_12/6-giant-furry-underpants-mucus-green.webp" data-src="https://example.com/uploads/monthly_2021_12/6-giant-furry-underpants-mucus-green.webp" class="ipsImage" alt="" style="height: auto;" data-loaded="true"> </a> ... 2) There is no width attribute leading to a increased CLS penalty (content layout shift). https://web.dev/optimize-cls/?utm_source=lighthouse&utm_medium=lr#images-without-dimensions 3) The thumbnails are still using the actual full size product images instead of a thumbnail, e.g. 2048x1461 image being displayed at 176x125, which I think has been reported many times. Many thanks!
  18. Frak, I missed it! I thought you'd forgotten to change the price or the 48hrs hadn't started yet, because the price in the description text was different to the price in the MP! My bad!
×
×
  • Create New...