Please upgrade here. These earlier versions are no longer being updated and have security issues.

Meta Description tag for All Discussions page (continued)*

UnderDogUnderDog Moderator
edited December 2011 in Vanilla 2.0 - 2.8
This discussion was created from comments split from: Meta Description tag for All Discussions page?.

Since a topic from 2005 (!!) was kicked, I just split those 2 comments into this topic.

The code is in my next post. The users wonder where to put that code.

Comments

  • Where would i put this? I try to change the meta description, too.
    Thanks for your help!
  • stephanhahne said:
    Where would i put this? I try to change the meta description, too.
    Thanks for your help!

    Ditto.

  • UnderDogUnderDog Moderator
    edited December 2011
    <?php
    /*
    Extension Name: My Custom Meta Info
    Extension Url: http://www.yourdomain.com/
    Description: Adds my custom meta information to the header of my forum
    Version: 1.0
    Author: Your Name
    Author Url: N/A
    */
    
    if (in_array($Context->SelfUrl, array("index.php","signin.php","apply.php","passwordreset.php","passwordrequest.php","account.php","search.php"))) {
       if (@$Head) {
          $Head->Addstring("<meta name=\"description\" content=\"Stuff about my forum\" />");
       }
    }
    ?>
  • edited December 2011

    And where, which document, would i paste this code into?
    Thanks for the help so far! :)

    I need to get the following code in my header:

    < meta name="title" content="FINN VEGG.NO" /> < meta name="description" content="Hvor vegger og grafittikunstnere møtes." /> < link rel="image_src" href="http://turbolego.com/finnvegg-facebook-logo.jpg" />

    Btw. please delete the following duplicate thread for this question:

    http://vanillaforums.org/discussion/18484/facebook-preview-thumbnail-with-information

Sign In or Register to comment.