Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Meta Description tag for All Discussions page (continued)*

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

There was an error rendering this rich post.

Comments

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

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

    Ditto.

  • Options
    UnderDogUnderDog MVP
    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\" />");
       }
    }
    ?>

    There was an error rendering this rich post.

  • Options
    TurbolegoTurbolego New
    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.