Posts

PrestaShop : Add a “Disponible dans X jours” Label ( Étiquette personnalisée )

EN: In this post, I’ll show how I modified my Angar theme on PrestaShop 8 to display an automatic label like “Disponible dans 5 jours” (“Available in 5 days”) when a product is out of stock but has an available_date set. This change was made by editing the product miniature template file: FR : Dans cet article, j’explique comment j’ai personnalisé le thème Angar sous PrestaShop 8 pour afficher une étiquette automatique du type “Disponible dans 5 jours” lorsque le produit est en rupture de stock mais possède une date de disponibilité . La modification a été faite dans le fichier suivant : /themes/angar/templates/catalog/_partials/miniatures/product.tpl Remarque : j’ai d’abord essayé de modifier /themes/angar/templates/catalog/_partials/product-flags.tpl , mais cela ne fonctionne pas avec ce thème Code modification EN: The code below adds a custom block to calculate the number of days between today and the product’s available_date . If the difference i...

Add Highlighted Code Blocks with Copy Button in Blogger (Highlight.js + Custom Style)

Blogger’s default post editor doesn’t provide a proper code box for displaying programming code. If you often share snippets or tutorials, you might want syntax highlighting and a convenient “Copy” button. In this tutorial, you’ll learn how to add a beautiful, dark-themed code block with syntax highlighting (using Highlight.js) and a copy-to-clipboard button, by simply editing your Blogger theme. Step 1: Open Your Blogger Theme Editor Go to your Blogger Dashboard Click Theme → Edit HTML Scroll down to the end of the <head> section (before </head> ) Step 2: Paste the Following Code Copy and paste the full block below exactly as it is. It includes Highlight.js setup, custom styles for your code boxes, and the automatic “Copy” button script. <!-- Highlight.js stylesheet --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" /> <!-- Highlight.js core scri...

Two Methods to Crack Encrypted VBA Code

  Two Methods to Crack Encrypted VBA Code source :  https://www.cnblogs.com/vbashuo/p/15638693.html Method 1 Sub VBAPassword1() 'Path of the Excel file you want to unprotect Filename = Application.GetOpenFilename("Excel files (*.xls & *.xla & *.xlt),*.xls;*.xla;*.xlt", , "VBA Crack") If Dir(Filename) = "" Then MsgBox "File not found, please reselect." Exit Sub Else FileCopy Filename, Filename & ".bak" 'Backup file. End If Dim GetData As String * 5 Open Filename For Binary As #1 Dim CMGs As Long Dim DPBo As Long For i = 1 To LOF(1) Get #1, i, GetData If GetData = "CMG=""" Then CMGs = i If GetData = "[Host" Then DPBo = i - 2: Exit For Next If CMGs = 0 Then MsgBox "Please set a protection password for the VBA project first...", 32, "Notice" Exit Sub End If ...

My Blog

After buying servers many times and losing them, I finally decided to use Blogger and focus on writing instead. To me, an easy start can make things feel much less stressful and easier to continue. So, what do I want to share on my blog? AI: I’m starting a project about using AI to create videos (films or series). I want to explore what we can do with AI and what its limits are. As we know, those who create weapons are not always the ones who know best how to use them — so let’s see what we can do. Computer Science: As a self-taught beginner aiming to become a full-stack developer, I’ll share my latest progress and projects here. Communication and Marketing: I’ll share what I learn about com & mkt. (Most of these posts will be written in French.) Learning Projects: There are so many things I want to learn, but it’s impossible to be a polymath like Da Vinci. So I’ll set a new theme each month to explore something I’m curious about. Life & Other: Sentimental people alw...