Skip to content

Instantly share code, notes, and snippets.

View simbus82's full-sized avatar
I'm making some good Web Marketing Projects

Simone Bussoni simbus82

I'm making some good Web Marketing Projects
View GitHub Profile
@simbus82
simbus82 / webmcp-joomla-convertform.md
Last active March 13, 2026 11:32
Integrare WebMCP nativo (W3C Draft) in Joomla con Convert Forms

Integrare WebMCP nativo (W3C Draft) in Joomla con Convert Forms

Questo Gist mostra come trasformare un normale form di contatto Joomla (creato con Convert Forms) in uno strumento ("Tool") utilizzabile direttamente da un'Intelligenza Artificiale, sfruttando le nuove specifiche sperimentali del Draft W3C per WebMCP (Model Context Protocol).

Tramite questa implementazione, un Agente AI (es. Claude o Gemini) può leggere la pagina, compilare i campi del form, spuntare la privacy e cliccare su "Invia" in totale autonomia, agendo per conto dell'utente.

⚠️ Prerequisiti

  • Joomla 4/5/6 con l'estensione Convert Forms.
  • Un browser con l'API nativa sperimentale navigator.modelContext abilitata (vedi sezione test).
  • Consiglio importante: Disabilitate Google reCAPTCHA v3 sul form se volete farlo usare all'AI (Google bloccherà l'invio perché l'AI non muove il mouse). Usate i campi Honeypot integrati di Convert Forms.
@simbus82
simbus82 / .htaccess
Created July 19, 2019 16:59
.htaccess for cookie-less image domain
AddDefaultCharset UTF-8
ServerSignature Off
Options -Indexes
FileETag none
<IfModule mod_headers.c>
Header unset ETag
Header unset Cookie
Header unset Set-Cookie
</IfModule>
@simbus82
simbus82 / robots.txt
Created January 14, 2019 14:17
Good Robots.txt for Joomla 3.x
# If the Joomla site is installed within a folder
# eg www.example.com/joomla/ then the robots.txt file
# MUST be moved to the site root
# eg www.example.com/robots.txt
# AND the joomla folder name MUST be prefixed to all of the
# paths.
# eg the Disallow rule for the /administrator/ folder MUST
# be changed to read
# Disallow: /joomla/administrator/
#
@simbus82
simbus82 / test.html
Last active July 6, 2018 09:07 — forked from CannonballSkippy/test.html
Basic markup test content for typography
<h1>Testing display of HTML elements</h1>
<h2>This is 2nd level heading</h2>
<p>This is a test paragraph.</p>
<h3>This is 3rd level heading</h3>
<p>This is a test paragraph.</p>
<h4>This is 4th level heading</h4>
<p>This is a test paragraph.</p>
<h5>This is 5th level heading</h5>
<p>This is a test paragraph.</p>
@simbus82
simbus82 / robots.txt
Last active May 23, 2018 13:28 — forked from petskratt/robots.txt
Magento 1.9.x - robots.txt
# robots.txt for Magento 1.9.x / v0.1 2018-05-23 / Simone Bussoni / inspired by Peeter Marvet
# # based on:
# https://gist.github.com/petskratt/016c9dbf159a81b9d6aa
# http://inchoo.net/ecommerce/ultimate-magento-robots-txt-file-examples/
# http://www.byte.nl/blog/magento-robots-txt/
# https://astrio.net/blog/optimize-robots-txt-for-magento/
#
# comment and clone at https://gist.github.com/petskratt/016c9dbf159a81b9d6aa
# Keep in mind that by standard robots.txt should NOT contain empty lines, except between UA blocks!
#
@simbus82
simbus82 / Filter.php
Created April 27, 2018 07:55
Roksprocket K2 Tag
If you look at line 29 in /components/com_roksprocket/lib/RokSprocket/Provider/K2/Filter.php you should see the following:
$this->query->select('CONCAT_WS(",", t.id) AS tag_ids, CONCAT_WS(",", t.name) AS tag_names');
If you change this line to the following
$this->query->select('CONCAT_WS(",", t.id) AS tag_ids, CONCAT_WS(",", t.name) AS tags');
@simbus82
simbus82 / local.xml
Created April 10, 2018 15:40
REDIS local.xml magento
<?xml version="1.0"?>
<!--
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
@simbus82
simbus82 / gist:a49ff537b1cda1fe9f87b0df17574c59
Created April 10, 2018 15:39
local.xml magento 1.9.3.x originale
<?xml version="1.0"?>
<!--
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
<IfModule mime_module>
AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
@simbus82
simbus82 / jimage_resize.php
Last active May 7, 2018 15:32
Codice per resize immagini Joomla con Jimage + salvataggio in cache
<?php
if (!is_dir(JPATH_SITE .'/cache/Qcache/')) {
mkdir(JPATH_SITE .'/cache/Qcache/', 0755, true);
}
$imgPath = JPATH_SITE . '/cache/Qcache/' . basename($immagineURL);
$imgURL = '/cache/Qcache/' . basename($immagineURL);
if (!file_exists($imgPath)) {
// Create our image object