Posts

Showing posts from November, 2025

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 ...