[Résolu] validator.w3.org validation

Entraide pour l'installation et l'exécution des forums en version
3.3.x

Règles du forum
Pensez à faire une recherche, afin de savoir si votre problème n'a pas déjà été traité.
[IMPORTANT] N’oubliez pas que pour demander de l’aide, vous devez fournir les détails d’assistance appropriés, s’il vous plaît, lisez le règlement de l'entraide, cela nous aidera à vous donner le meilleur soutien.

Une fois le problème résolu, merci de passer votre sujet en [Résolu] en sélectionnant l'attribut en conséquence en bas de page.
Avatar du membre
dbrewood dbrewood
Membre
Messages: []
Enregistré depuis: 1 an 1 mois
Prénom: Daron
Forum phpBB: https://forum.t3kk.com/index.php
Intérêt: IT / Technology
Emploi: Retired

validator.w3.org validation

Message par dbrewood »

Hi Fred, could you consider sharing the HTML code you have to show the 'validator.w3.org' approval badge on your site? No worries if you are unable to share.....
Modifié en dernier par MariePop's le 11 déc. 2024, 19:58, modifié 1 fois. (Journal des éditions)
Raison: Déplacé dans le forum idoine - Moved to the appropriate forum
Avatar du membre
Fred Fred
Fondateur
Messages: []
Enregistré depuis: 5 ans
Identité: Fred Rimbert
Forum phpBB: https://rimbertweb.fr
Localisation: Le Lude - Pays de la Loire
Intérêt: GitHub

Re: validator.w3.org validation

Message par Fred »

Yes off course

In the template directory of the style Zeina edits the file overall_footer.html, find

Code: Tout sélectionner

                  <!-- EVENT overall_footer_timezone_after -->

Add after on a new ligne

Code: Tout sélectionner

                <a href="https://validator.w3.org/nu/?doc=w3c_link" target="_blank"> 
                  <div class="w3c"><img src="{ROOT_PATH}images/w3c/validate.png" width="80" height="35" alt="Check the markup (HTML, XHTML, etc.) of web documents" title="Check the markup (HTML, XHTML, etc.) of web documents"></div>
                </a>               
Add your w3c url here: https://validator.w3.org/nu/?doc=w3c_link


Add the image in FTP to the server in ./images/w3c/

validate.png


This gives this to the footer

Capture d’écran 2024-12-11 à 20.18.40.png
Vous n’avez pas les permissions nécessaires pour voir les fichiers joints à ce message.
Avatar du membre
dbrewood dbrewood
Membre
Messages: []
Enregistré depuis: 1 an 1 mois
Prénom: Daron
Forum phpBB: https://forum.t3kk.com/index.php
Intérêt: IT / Technology
Emploi: Retired

Re: validator.w3.org validation

Message par dbrewood »

Hi Fred, thanks. I put in code:

Code: Tout sélectionner

<a href="https://validator.w3.org/nu/?doc=https://forum.t3kk.com/index.php" target="_blank"> <div class="w3c"><img src="{ROOT_PATH}images/w3c/validate.png" width="80" height="35" alt="Check the markup (HTML, XHTML, etc.) of web documents" title="Check the markup (HTML, XHTML, etc.) of web documents"></div></a>    
                </p>
              </div>
            </div>
          </div>
        </div>
      </footer>
Which gives me:

Image

However I must have done something wrong as it breaks the validator adding the following errors:

Image
Avatar du membre
Fred Fred
Fondateur
Messages: []
Enregistré depuis: 5 ans
Identité: Fred Rimbert
Forum phpBB: https://rimbertweb.fr
Localisation: Le Lude - Pays de la Loire
Intérêt: GitHub

Re: validator.w3.org validation

Message par Fred »

Here is your URL

Code: Tout sélectionner

https://validator.w3.org/nu/?doc=https%3A%2F%2Fforum.t3kk.com%2F
Ajouté 3 minutes 18 secondes après :
So add this in the template

Code: Tout sélectionner

                <a href="https://validator.w3.org/nu/?doc=https%3A%2F%2Fforum.t3kk.com%2F" target="_blank"> 
                  <div class="w3c"><img src="{ROOT_PATH}images/w3c/validate.png" width="80" height="35" alt="Check the markup (HTML, XHTML, etc.) of web documents" title="Check the markup (HTML, XHTML, etc.) of web documents"></div>
                </a>               
Avatar du membre
dbrewood dbrewood
Membre
Messages: []
Enregistré depuis: 1 an 1 mois
Prénom: Daron
Forum phpBB: https://forum.t3kk.com/index.php
Intérêt: IT / Technology
Emploi: Retired

Re: validator.w3.org validation

Message par dbrewood »

Thanks, that is now in place (and I've left it there for now), but you can see I still get errors if you check the validator here.
Avatar du membre
Fred Fred
Fondateur
Messages: []
Enregistré depuis: 5 ans
Identité: Fred Rimbert
Forum phpBB: https://rimbertweb.fr
Localisation: Le Lude - Pays de la Loire
Intérêt: GitHub

Re: validator.w3.org validation

Message par Fred »

It's still less error than with the phpbb.com demo board
Avatar du membre
dbrewood dbrewood
Membre
Messages: []
Enregistré depuis: 1 an 1 mois
Prénom: Daron
Forum phpBB: https://forum.t3kk.com/index.php
Intérêt: IT / Technology
Emploi: Retired

Re: validator.w3.org validation

Message par dbrewood »

LOL I see what you mean!