All RPGs and Storygames by Tod Foley are now available at DrivethruRPG and RPGnow. Bring these games to your table!
Pitfalls of making fast multiplayer games on mobile with Unity's uNet - by Ashkan Saeedi Mazdeh
With phone in hand, laptop in bag and earbuds in place, the typical user quickly scans multiple sites. If your site takes too long to load, your visitor is gone. If your site isn’t mobile friendly, you’ve lost precious traffic. That’s why it’s essential to build well organized, mobile ready sites.
But how do you get good results?
- Understand whom you’re building for
- Employ the right frameworks
- Organize your codebase
- Make your life a lot easier with a CSS preprocessor
Let’s look at each of these points.Design For Mobile
When you look at usage statistics, the trend is clear. This chart shows how mobile device usage has increased each year.
Drupal Modules: The One Percent: Drupal Modules: The One Percent — Dynamic Entity Reference (video tutorial)
Here is where we bring awareness to Drupal modules running on less than 1% of reporting sites. Today we'll look R Dynamic Entity Reference, a module which permits you to reference multiple types of entities from a single reference field.
Allows to link to current user actions without the explicit user id:
Provides user ID (UID) neutral user action paths ("user/current/*") and redirects to the current user path by replacing current with the UID. Also adds an "Edit my account" link (new "user/edit" path) to the user menu for logged in users.
Drupal 8.6 has shipped with the Media Library! It’s just one part of the latest round of improvements from the Media Initiative, but what a great improvement! Being brand new it’s still in the “experimental” module state but we’ve set it up on this website to test it out and are feeling pretty comfortable with its stability.by Rikki Bochow / 25 September 2018
That said, I highly encourage you test it thoroughly on your own site before enabling any experimental module on a production site. Don’t just take my word for it :)What it adds
The Media Library has two main parts to it...Grid Listing
There’s the Grid Listing at /admin/content/media, which takes precedence over the usual table of media items (which is still available under the “Table” tab). The grid renders a new Media Library view mode showing the thumbnail and compact title, as well as the bulk edit checkbox.
Then there’s the field widget! The field widget can be set on the “Manage Form Display” page of any entity with a Media Reference Field. Once enabled, an editor can either browse existing media (by accessing the Grid Listing in a modal) or create a new media item (utilising the new Media Library form mode - which is easy to customise).
The widget is very similar to what the ‘Inline Entity Form’ module gave you, especially when paired with the Entity Browsers IEF submodule. But the final result is a much nicer display and in general feels like a nicer UX. Plus it’s in core so you don’t need to add extra modules!
The widget also supports bulk upload which is fantastic. It respects the Media Reference Fields cardinality, so limit it to one - and only file can be uploaded or selected from the browser. Allow more than one and upload or select up to that exact number. The field even tells you how many you can add and how many you have left. And yes, the field supports drag and drop :)What is doesn’t add WYSIWYG embedding
WYSIWYG embed support is now being worked on for a future release of Drupal 8 core, you can follow this Meta issue to keep track of the progress. It sounds like some version of Entity Embed (possibly limited to Media) will make it’s way in and some form of CKEditor plugin or button will be available to achieve something similar to what the Media Entity Browser, Entity Browser, Entity Embed and Embed module set provides currently.
Until then though, we’ve been working on integrating the Media Libraries Grid Listing into a submodule of Media Entity Browser to provide editors with the UX improvements that came with Media Library but keeping the same WYSIWYG embed process (and the contrib modules behind it) they’re currently used to (assuming they’re already using Media Entity Browser, of course). More on this submodule below.
This is essentially a temporary solution until the Media Initiative team and those who help out on their issue queue (all the way from UX through to dev) have the time and mental space to get it into core. It should hopefully have all same the bulk upload features the field widget has, it might even be able to support bulk embedding too!View mode or image style selectors for editors
Site builders can set the view mode of the rendered media entity from the manage display page, which in turn allows you to set an image style for that view mode, but editors can’t change this per image (without needing multiple different Media reference fields).
There is work on supporting this idea for images uploaded via CKEditor directly, which has nothing to do with Media, but I think it would be a nice feature for Media embedding via WYSIWYG as well. Potentially also for Media Reference Fields. But by no means a deal breaker.Advanced cropping
From what I can gather there are no plans to add any more advanced cropping capabilities into core. This is probably a good thing since cropping requirements can differ greatly and we don’t want core to get too big. So contrib will still be your goto for this. Image Widget Crop is my favourite for this, but there’s also the simpler Focal Point.Testing out the Media Entity Browser submodule
You can test out the submodule from the patch on this issue and let us know what you think! Once the patch is added, enable the submodule then edit your existing Entity Browsers and swap the View widget over to the “Media Entity Browser (Media Library)” view.
It shouldn’t matter if you’ve customised your entity browser. If you’ve added something like Dropzone for drag-and-drop support it *should* still work (if not, check the Dropzone or Entity Browser issue queues). If you’ve customised the view it uses however, you might need to redo those customisations on the new view.
I also like updating the Form Mode of the Entity Browsers IEF widget to use the new Media Library form display, which I always pair back to just the essential fields (who really needs to manually set the author and created time of uploaded media?).
You still can’t embed more than one media item at a time. But at least now you also can’t select more than one item when browsing so that’s definitely an improvement.
Plus editors will experience a fairly consistent UX between browsing and uploading media on fields as they do via the WYSIWYG.
Once setup and tested (ensuring you’ve updated any Media Reference Fields to use the new Media Library widget too) you can safely disable the base Media Entity Browser module and delete any unused configuration - it should just be the old “Media Entity Browser” view.
Please post any feedback on the issue itself so we can make sure it’s at its best before rolling another release of the module.Happy days!
I hope you have as much fun setting up the Media Library as I did. If you want to contribute to the Media Initiative I’m sure they’ll be more than happy for the help! They’ve done a fantastic job so far but there’s still plenty left to do.Tagged Media in Core, CKEditor
Paybear is Paypal for cryptocurrencies. Can accept multiple currencies like ETH, BTC, LTC etc. This module is in active development and integrates with drupal commerce.
I moved over to DDEV for my local development stack back in February. One of my favorite things is the ease of using Xdebug. You can configure Xdebug to always be enabled, or turn it on and off as needed (my preferred method.) When you have Xdebug enabled, it also enables it for any PHP scripts executed over the command line. That means you can debug your Drush or Drupal Console scripts like a breeze!
This article is based on using Xdebug within PhpStorm, as it is my primary IDE.
This module allows configuring content to be automatically synchronized with another Drupal site on Cron runs. It works with the Entity Share module, by allowing the user to select the Remotes and Channels that should be automatically synchronized with Cron.Required modules
This module depends just on the Entity Share Client module from the Entity Share project.
Gambit aims to merge the mostly-separate player-vs-player and player-vs-everything sides of Destiny 2, but its creation didn't come without its fair share of struggles. ...
Overall, the top six countries, including the US, Germany, France, the UK, Brazil, and Russia, only represent around 62 percent of the titleâ€ s total registered PS4 players for week one. ...
Feature that provides 16:9 image styles definitions.
- 270 x 480 16:9 HVGA Portrait
- 360 x 640 16:9 nHD Portrait
- 480 x 270 16:9 HVGA Landscape
- 540 x 960 16:9 qHD Portrait
- 640 x 360 16:9 nHD Landscape
- 960 x 540 16:9 qHD Landscape
- 1024 x 576 16:9 WSVGA Landscape
- 1280 x 720 16:9 HD Landscape
- 1600 x 900 16:9 HD+ Landscape
- 1920 x 1080 16:9 Full HD Landscape