Skočiť na hlavný obsah
Lubo's Tips and Tweaks to Open-Source CMS Systems.
All
Drupal
Wordpress
Tutorials
Modules
Articles
184 views
Any
Drupal 7
Drupal 8
Wordpress
Ethereum
Other (Crypto)
Apply
Tutorial
74
8.4.2023
Nyan Cat on OLED Display - Arduino Nano Sketch
This sketch is quite easy, I used Arduino Nano with OLED 0.96″ display 128×64 resolution to run this animation. I will not deep dive into…
Tutorial
Drupal 8
30.1.2023
How to have Nested Filter Groups in Drupal 8 / 9 / 10 Views
While working on a fairly complex website with very complex views setup, including tens of exposed filters I stumbled upon an issue where I…
Tutorial
Drupal 8
15.12.2022
EcoMail integration on User Register Event in Drupal 8 / 9
In this case we have two options, either we use hook_user_presave() or we can create new submit handler and use that.
Tutorial
Drupal 8
8.11.2022
Setting the Nice Name in emails sent through Swiftmailer
When using Swiftmailer under Drupal 8 / 9 it automatically sets the headers for sender to be Site Name (variable from site information…
Tutorial
Wordpress
3.11.2022
Wrong CSS in native IOS Mail App / Safari on iPhone? IOS is the new Internet Explorer. [FIX / RANT]
Yes, IOS / Safari is the new internet explorer. Amount of time I spend on debugging various IOS / Safari related bugs is incredible. It is…
Tutorial
Drupal 8
26.9.2022
Prevent scrolling back to top of the page when trigger('RefreshView') is called in Drupal 8
There is a very handy function in Drupal 8 / 9, allowing developers refresh view when needed from javascript. The syntax goes by: $('.…
Tutorial
Drupal 7
20.9.2022
Schema.org Metatags slowing your Drupal 7 site? Solution!
Often, when doing SEO checkups, SEO specialist come up with adding Schema.org functionality to website. Mostly e-shops of course, leading…
Tutorial
Ethereum
15.9.2022
Create custom USDC contract for testing on Ethereum Testnet / Polygon Mumbai network
I needed to test my contracts against USDC contract, specifically I needed ERC-721 mint being payable by USDC token, for which I needed to…
Tutorial
Drupal 8
24.8.2022
MYSQL swapping? Use this handy script to see why!
If you are a newbie like I am and struggling with setting the proper MYSQL my.cnf config, use this simple program to prevent swapping.…
Tutorial
Drupal 7
22.8.2022
Configuring Search API using Apache Solr for Drupal 7 under Ubuntu 20.04
I had trouble to set this up properly, because documentation is quite misleading or often not there at all. Basicly nowdays (2022) it is…
Tutorial
Ethereum
13.10.2021
How to send Ether between adresses with Web3.js and Node.js
This is (or should be) a working example of sending some Ether between two addresses. Requirements are:
Tutorial
Drupal 7
13.10.2021
Drupal 7 Recaptcha V2 / V3 still being bypassed by bots? Easy solution.
In the last months I am being pretty much bombarded by my clients with asking what happened to their sites. That the spam protection is not…
Tutorial
Drupal 7
23.3.2021
[SNIPPLET] Quick transliteration (removing accents) in code - PHP
So sometimes you just need to transliterate some kind of foreign (or local) language, and you need it to not have accents. I borrowed this…
Tutorial
Drupal 8
3.2.2021
The website encountered an unexpected error. Please try again later.
There is no error in logs, and your Drupal 8 website is writing a message: The website encountered an unexpected error. Please try again…
Tutorial
Drupal 7
28.1.2021
Google Viewer PDF embed loading only occasionally? FIX
Every modern browser supports displaying PDF in it's own way. But sometimes you stumble upon a client, which does not like, that every…
Tutorial
Drupal 7
28.1.2021
Drupal 7 - Automatic file upload (hiding upload button)
So, sometimes you just want to hide "upload" button and instead upload all the files people drop to website instantly. This handy snipplet…
Tutorial
Drupal 8
19.1.2021
How to create custom form in Drupal 8 and insert record into mysql database
In this tutorial I will show you how to create custom form in Drupal 8 , After that will insert the form data into our MYSQL database . I…
Tutorial
Drupal 8
16.11.2020
Better Kint() output in Devel? Here we go.
Of course, composer will tell you when installing Devel anyway. But in case you missed it, making Kint() output more pretty and handy is…
Tutorial
Drupal 8
11.11.2020
How to load current user cart in Drupal Commerce 2.x
Sometimes you need to make an adjustements to a cart, or just simply compare the order total or any other property of current user's cart.…
Tutorial
Wordpress
11.11.2020
Redirect Wordpress to HTTPS, non-www version via .htaccess file
Easy as it sounds, there are numerous different approaches. I like to keep my websites non-www and SSL secured. Just copy-paste the code…
Tutorial
Drupal 8
2.11.2020
How to show Billing information in Drupal Commerce order
I don't understand why some of the decisions were made in Drupal, nor in Drupal Commerce, but this one strikes me hard. For some reason,…
Tutorial
Drupal 8
2.11.2020
[FIX] TypeError: $(...).once is not a function
Getting TypeError: $(...).once is not a function in your Drupal 8 site? Easily fixed.
Tutorial
Drupal 8
24.10.2020
[FIX] Node Order module creating duplicates in a View?
So there is a very good and user friendly module called Node Order, but it has it's flaws. Each time I use it, it creates duplicates based…
Tutorial
Drupal 8
23.10.2020
How to remove translation from Drupal 8 website without actually removing the language itself.
In Drupal 7, there was a handy dandy option to just delete the translation from Admin UI. But in Drupal 8, there is no such an option. Also…
Tutorial
Drupal 8
21.10.2020
How to use Drupal Logger in your code.
Sometimes you find yourself in a position, where dpm(), kint() or print_r() is impossible. Like inside of controller or entity insert event…
Tutorial
Drupal 8
12.10.2020
Did your view get corrupted when editing? Easy fix!
Sometimes you unintentionally delete some relationship from Views, that your draft gets irreversibly corrupted. Not matter what you do, you…
Tutorial
Drupal 8
3.9.2020
Composer overriding .htaccess file on each run? Easy fix!
So you run Composer Install or Composer Update, and it overwrites your configuration each time it is run? Just place those lines in your…
Tutorial
Drupal 8
14.8.2020
How to add Taxonomy Vocabulary Machine Name in Body Class in Drupal 8
So you found out you need to style taxonomy vocabulary items differently than the rest of the site? But Drupal 8 does not add a bunch of…
Tutorial
Drupal 8
12.8.2020
How to add language CSS class to Body in Drupal 8
Sometimes you need to style certain elements differently when working across various language translations. This easy tutorial can help you…
Tutorial
Drupal 8
11.8.2020
How to push any new variable in any TWIG template file.
So you need to push a new variable to TWIG file and write it out somewhere? You can do so by following code. It is universal and fits…
Tutorial
Drupal 8
11.8.2020
How to override any Views Field output programatically in Drupal 8/9
In this tutorial we are going to override any Views Field in your View and populate it with a new data. You can do so by creating a module…
Tutorial
Drupal 7
28.7.2020
Superfish: sf-Touchscreen, Accordion, How to open parent link on second tap
A small bug in Superfish Drupal module causes it to open the submenus on mobile devices but in the same time open the parent link. Which is…
Tutorial
Drupal 8
21.7.2020
Writing custom Event Subscriber in Drupal 8 - Drupal Commerce
Drupal 8 is trying to get rid of usage of Hooks and is trying to replace them with Events. Is this change necessary? I do not think so, but…
Tutorial
Drupal 8
21.7.2020
Drupal 8 example .htaccess with HTTPS enabled redirect
Struggling with setting up HTTPS for Drupal 8? Just copy paste the following code to .htaccess file located in your root directory and you…
Tutorial
Drupal 8
19.7.2020
[FIX] BigPipe messing with your Javascript? Easy fix
In Drupal 8, BigPipe was introduced as an ajax renderer for our pages. While its presence is nice and good and it is making our pages super…
Tutorial
Wordpress
9.6.2020
[FIX] Contact form 7 AJAX not working?
I stumbled across the problem with Contact Form 7 module, when AJAX was not working at all. Official documentation was of no help so I…
Tutorial
Drupal 7
29.4.2020
AdvPoll module not taking HTML markup? Easy fix.
Tutorial
Drupal 8
26.3.2020
How to add Google Analytics to your theme in Drupal 8
This one is quick and works the same with any other code provided by third party.
Tutorial
Drupal 8
26.3.2020
How to make custom Bootstrap 3 subtheme in Drupal 8
Creating Bootstrap 3 sub-theme or child-theme under Drupal 8? Easy as that!
Tutorial
Drupal 7
9.3.2020
How to add a custom Action in Drupal 7 Rules and handle the variable from inside the module
Sometime you happen to find yourself in a situation, where you want to handle Rules inputs from your custom module. So in this short…
Tutorial
Wordpress
4.3.2020
[FIX] Contact form 7 - Xili-language plugin incompatibility
Does not your Contact Form 7 work properly anymore after plugin or theme update? Check your console to see any error messages. Today I…
Tutorial
Drupal 7
27.2.2020
How to Enable SSL (https) in Drupal 7
There are many ways how to do that, but easier and universal I use is this one.
Tutorial
Drupal 8
27.2.2020
How to apply patches with Composer
Ever wondered how to have a stable installation of Drupal 8 with a lot of modules and in need of applying a patch? If you apply it manually…
Tutorial
Drupal 8
27.2.2020
[FIX] Statistics Module does not count node views
So I happened to run into an issue, when Statistics module in Drupal 8 did not count any views and was always set to 0. In this super short…
Tutorial
Drupal 8
25.2.2020
How to print-out image URL's in field override in Drupal 8 Views
Sometimes template overrides does not work as expected. In this short tutorial we will try to print out Image URL's out in the views field…
Tutorial
Drupal 8
7.2.2020
How to Enable SSL (https) in Drupal 8
Universal way of adding HTTPS only solution to your Drupal 8 installation.
Search
Search
Grafeon.sk
Recommended
Article
32 views
Why is Solana so incredibly stupid to work with? [RANT]
For the past few days I am trying to comprehend why / how this blockchain even gained it'…
Tutorial
95 views
Nyan Cat on OLED Display - Arduino Nano Sketch
This sketch is quite easy, I used Arduino Nano with OLED 0.96″ display 128×64 resolution…
Tutorial
157 views
How to have Nested Filter Groups in Drupal 8 / 9 / 10 Views
While working on a fairly complex website with very complex views setup, including tens…
Tutorial
14 views
EcoMail integration on User Register Event in Drupal 8 / 9
In this case we have two options, either we use hook_user_presave() or we can create new…
Tutorial
15 views
Setting the Nice Name in emails sent through Swiftmailer
When using Swiftmailer under Drupal 8 / 9 it automatically sets the headers for sender to…
Tutorial
7 views
Wrong CSS in native IOS Mail App / Safari on iPhone? IOS is the new Internet Explorer. [FIX / RANT]
Yes, IOS / Safari is the new internet explorer. Amount of time I spend on debugging…
Tutorial
43 views
Prevent scrolling back to top of the page when trigger('RefreshView') is called in Drupal 8
There is a very handy function in Drupal 8 / 9, allowing developers refresh view when…
Tutorial
22 views
Schema.org Metatags slowing your Drupal 7 site? Solution!
Often, when doing SEO checkups, SEO specialist come up with adding Schema.org…
Tutorial
174 views
Create custom USDC contract for testing on Ethereum Testnet / Polygon Mumbai network
I needed to test my contracts against USDC contract, specifically I needed ERC-721 mint…
Tutorial
85 views
MYSQL swapping? Use this handy script to see why!
If you are a newbie like I am and struggling with setting the proper MYSQL my.cnf config…
Tutorial
25 views
Configuring Search API using Apache Solr for Drupal 7 under Ubuntu 20.04
I had trouble to set this up properly, because documentation is quite misleading or often…
Article
72 views
[SECURITY] Do NOT install any Bitcoin Price Ticker Extension - You are at RISK
As the title says, DO NOT in any circumstances install ANY bitcoin price extension to ANY…
Tutorial
278 views
How to send Ether between adresses with Web3.js and Node.js
This is (or should be) a working example of sending some Ether between two addresses.…
Module
45 views
List of ~2400 Ethereum Token Adresses and ~400 Binance Smart Chain Token adresses in SQL's ready to import to your Database
This list was fetched from Zapper, with their /v1/token-list endpoint. Which you can…
Tutorial
143 views
Drupal 7 Recaptcha V2 / V3 still being bypassed by bots? Easy solution.
In the last months I am being pretty much bombarded by my clients with asking what…