Jump to content

Morgin

Members
  • Posts

    797
  • Joined

  • Last visited

  • Days Won

    3

 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 Morgin

  1. @Jordan InvisionCan I propose a brainstorm session over how to store and easily highlight these extremely helpful and long running posts in a way that pinning doesn't always fit perfectly for? 

    I'm wondering if maybe a subforum called "Community Guides" or something where only long running and extremely helpful community generated guides could live. There used to be a whole lot more of those pinned in the server and self hosted topics forum, but some of that has gotten lost in the consolidation and forums refresh.

    Pinning is not great for mobile especially with a lot of pinned posts because it pushes new content below the first page fold, but I do appreciate how @Woodsmanis able to quick reference this thread to alleviate all the e-mail traffic.

    Anyway, just a thought! There's so much great community content on these sort of (now) niche topics, and having a one stop shop to see some of the great long running threads might be helpful.

  2. Currently on 4.4 with upgrade planned for next week, so forgive me if this issue is resolved already.

    I have a section of my forums that requires a minimum content count to see or access (the "off-topic" section). 

    Every few months, I'll get a member who will randomly start a topic in our support area asking how they get access to these "hidden" topics. Usually some variation of "I see a bunch of topics in the "Recent Updates" block that I can't access and get error code 2S136/V. How do I access them?". 

    I've checked every time to see if somehow "honor permissions" on the block setting got turned off, and it's always fine. The user can't see the topics (or even the forum itself). Settings on the forums are:

    •       Minimum content count to see forum: 10 approved items of content (posts, comments, etc.) 
    •       Users without read permission can open forum? (UNCHECKED)

    I'm assuming this is perhaps some sort of caching issue? Strangely, if I login as that user, I can't ever see these topics in the sidebar block. Apparently they don't consistently see them either - they just pop into the block from time to time.

    Is there any possibility the block caching is somehow bypassing the permissions system? Alternatively, is there some possibility that because the user is a member of a group that CAN access once the requisite content has been contributed, the block permissions is ignoring that and focusing on whether the member group as a whole has permission?

    I also use cloudflare, but it doesn't cache any dynamic content so shouldn't be interfering with my block permissions.

    At a bit of a loss on what's going on. Any advice appreciated!

  3. The only reason I would say this is redundant is that both iOS and Android have built in capability to do a quick scroll to top. In iOS it’s universally just tapping the top of the screen. Android has a few different implementations but you can set it up with a gesture in any event. I understand that a button is super easy, but in this case it does seem like replication of native OS behavior. 

  4. I had a user note that they had spent a good deal of part of a day working on a post before submitting, and discovered that after submitting they were unable to take advantage of the 60 minute edit window we provide. They “tested” and seem to suggest that perhaps the window is being calculated from when the post draft is first started, and not when posted. I can’t seem to reproduce, but wanted to check with the community here to see if anyone has more specific technical knowledge of how the edit time is calculated and what triggers it. 

  5. On 1/7/2021 at 1:03 PM, NightGame said:

    What benkchmark did you use? I can see at least x2 speed improvment on the latest version.

    Latest version of IPS? I haven’t personally benchmarked, but I’m going off what most the trusted PHP experts (and the PHP development team) have said about 8. Expect performance gains from JIT in certain specific calculation tasks and long running php apps. Most web apps (which aren’t either of those things) aren’t not expected to specifically benefit from the initial release of 8. If IPS is seeing a x2 performance gain, I would be shocked and that goes against everything written about the purpose and expectations for 8, but would obviously be a welcome surprise. 

  6. PHP 8 is not faster than PHP 7.4 for the vast majority of web applications. There are many great new features and language improvements, but speed improvements for web apps was not the focus of PHP 8. There will be limited reasons for IPS to officially support PHP 8 until it's baked a few versions, minimum.

  7. 5 hours ago, Gabriel Torres said:

    Really? What do you mean by "breaks IPS" exactly? Could you be more specific? Because we are using Rocket Loader for quite some time now and haven't seen any issues with it.

    Yeah sorry! Horrible reply on my part. @Ryan Ashbrook covered one of the big issues I had which was that ckeditor would randomly fail to load or would load improperly so certain functions were disabled. I don’t know how to characterize it other than very weird and annoying bugs that didn’t happen every time so were hard to replicate, but always related to JavaScript. There were also times the entire site would just stop loading about halfway through initial paint so you were left with broken stylesheets etc. As soon as rocket loader was disabled, all of that went away

  8. On 12/17/2020 at 3:44 AM, bearback said:

    not sure on my other users but mine is 9.3.5 which i know is old but worked fine before the update.

    just summited a support ticket

    Going to be an issue if iOS9 is the latest the device supports. Your users are on nearly decade old hardware at this point

     

  9. 2 hours ago, Marquinhos said:

    Take a look at https://firebase.google.com/ its provide a full solution for native/apps/web in one place, and the best Cloud Messaging (FCM) is no-cost and it can be handled by php with a simple http 1.1 API:

    
    <?php
    
    $request = new HttpRequest();
    $request->setUrl('https://fcm.googleapis.com/fcm/send');
    $request->setMethod(HTTP_METH_POST);
    
    $request->setHeaders(array(
        'content-type' => 'application/json',
      'authorization' => 'key=<CONFIG_SERVER_KEY>'
    ));
    
    $body = [
        "to" => "<user-firebase-token>",
        "time_to_live" => 259200,
        "data" => [ //Some custom stuff
        	"update"=> true, //you can tell the service worker to self update
        	"actions"=> [["action"=> "ok", "title"=> "OK"],["action"=>"link", "title"=>"Acces","link"=>"https://forum.com"]],  //Send somo actions to compose buttons
        	"actionsUrl"=> {"link"=>"https://google.com"}, //and ask to open another url
        ],
         "notification": [
               "body" => "Fancy Notification",
               "title" =>"Small Tittle",
               "image"=> "https://cdn.forum.com/monthly_2020_09/log.png.c10d6f024b155b08ab5f46d029749b42.png", //think on send topic first image
               "click_action"=> "https://invisioncommunity.com/forums/topic/451842-why-not-offer-push-notifications-solution/" //
           ],
          "fcm_options"=> [
           	 "analytics_label"=> "forum-push"
           ]
       ];
    $request->setBody(json_encode($body));
    
    try {
      $response = $request->send();
    
      echo $response->getBody();
    } catch (HttpException $ex) {
      echo $ex;
    }

    At front-end with service worker (supported by all modern browsers) 

    
    // If you would like to customize notifications that are received in the
    // background (Web app is closed or not in browser focus) then you should
    // implement this optional method.
    messaging.onBackgroundMessage(function(payload) {
      console.log('[firebase-messaging-sw.js] Received background message ', payload);
         // Customize notification here
          const {notification} = payload;
          const {data} = payload;
          data.click_action = notification.click_action;	  
    	  const {title} = notification;
    	  const notificationOptions = {
    		  requireInteraction: true, //Some default options
    		  data: data,
    		  ...notification
    		  };
    	
    	  console.log(notificationOptions);
    	  //Show notification
    	  return self.registration.showNotification(title,
    		notificationOptions);
    });

     

    More details: https://github.com/firebase/quickstart-js/tree/master/messaging


    All you need to do is handle the token from firebase to user, and then in the service queue send notifications to user when needed.

    When the user has the focus on the web page you can handle the notifications in the UI.

     

    It will work on all top users and technologies.

     

     

     

    The comment Matt made was in reference to push via web, which isn't supported in iOS without using native apps. They now have a native app.

  10. On 9/12/2020 at 4:08 PM, AlexJ said:

    Just use your own mail server like Postfix. I do same when Amazon SES gives trouble. Switching takes only 2 minutes. 

    It’s easy, but man, I would never recommend to anyone who values their time and having a secure server to run their own mailserver. It is not low maintenance. 

  11. Hey friends. This may have been asked before but I’m not finding this in search at all (although I do recall it being talked about!) 

    Long ago when I was young and naive and using phpbb I installed my community into domain.com/forums thinking I would develop this great front end. Almost 16 years later after conversion to invision and having never actually done anything beyond the community itself, it’s time to bite the bullet, buy Pages, and take on some work I’ve wanted to do for literally a decade+. This means it’s time to migrate from /forums to root and deal with the headache that will come with that. 

    Is anyone familiar with a recent guide or post covering doing this type of move? Anyone have any pointers on things I’m not thinking of (like updating Google search console tools, etc). 

  12. What’s the need for plug-in toggles or specific settings for when to enable/disable? Shouldn't this be as simple as the ACP specifying the default dark theme and then just relying on @media prefers-color-scheme? If no dark theme set as default, nothing happens? I’m not exactly in the running for developer of the year but even to me this seems like a pretty easy solution that utilizes OS features re night/dark mode and not have to reinvent the wheel in Invision. 

  13. 26 minutes ago, Paul E. said:

    Perhaps something with RSS feeds?

    I saw this:

    but it seems to suggest the content would be pulled in from the feed and duplicated as content on that community. I wonder if there is a way to essentially show the rss feed from another Invision site in such a way that it looks like a typical block (i.e. "Popular Topics From The Network") but clicking the posts takes you to the other community directly. 

  14. Is it possible out of the box, with no plugins, to set up a page in Pages that would pull content from the feeds of multiple Invision Community sites? Say for example you ran a sport focused network of communities that didn't make sense to run as individual clubs on a single install (and you want each on their own domain with own theme and own install), but you wanted to show popular posts from "across the network" to cross promote other communities in that network of sites. I appreciate you can set one of them as the server and the rest as clients for purposes of sharing a login across the network, but wasn't sure if there is any sort of extensibility of that concept when it comes to cross sharing content across sites through the widgets or using Pages. Thanks!

  15. 23 hours ago, christopher-w said:

    So how about we get together, put our hands in our pockets and see if we can find a designer come dev to create a configurable theme for us - and I mean a theme, not a (wanit in green, blue, red?) skinning exercise. It could include all sorts of presets including spacing, fonts, menu positions and so on, including specifics for desktop and mobile. Won't be cheap, but at least at the end of it we will have something we can use to give us what we want, rather than assuming Invision can pull a theme styling rabbit out of the hat which is going to miraculously please us all. I just don't see it.

    Could open source this with a git repository that anyone inclined to assist could contribute to. I have none of the skills required to do anything technical and all I can do is cheerlead. Frankly I also like the default skin save for some decisions about how big text and other elements are on mobile/tablet which is why I run at 75% zoom on mobile, so not a huge vested interest either. But clearly there are a lot of people who want a default skin that is far more flexible for their needs, and there is absolutely the talent here to help. Doesn’t seem like a candidate for a paid exercise, but something the community will need to figure out on its own. Ultimately, maybe providing a working framework that can be compared to what Invision provides and makes the case for certain changes. Would love to see that sort of collaboration. Can also happily assist with any grunt work lower skilled tasks if they are needed. 

  16. 10 hours ago, InfinityRazz said:

    (but let's be real, that is their money maker!)

    I don’t pay IPS nearly enough for what I get from this software and the support. I suspect self hosting is not exactly a profit centre, per say! 

  17. 16 hours ago, Rikki said:

    If I remember correctly, this is the sort of thing I suggested:

    
    body {
      zoom: 0.9;
    }

     

    That’s right - I think you also had directed me how to use the media query or viewport check or whatever to ensure this was only applicable if it was a phone size device, as I was trying to do it by targeting the responsive classes which was the wrong approach. 

  18. Hey @Rikki - you had provided me the css to insert into custom.css to achieve this. Unfortunately, I had asked this on the invisionalpha site and I neglectfully didn’t copy your answer to somewhere safe in case I ever lost it. I reset my custom.css in anticipation of 4.5 upgrade, and have subsequently lost it. When you have time, obviously not urgent, any chance if you still have access to that board you could repost here, or alternatively if you know this off the top of your head you could retype it here? Thanks!

×
×
  • Create New...