exclude metatags

Filed under: nnxj.com — cfz @ March 16, 2010 edit
  • hello list,

    does anybody know how to exclude metatags -
    this way does not work:





    any ideas welcome
    tomas


  • Originally posted by tomas
    hi charter,

    thanks again for your fast response - setting both vars to = ""
    works fine :-)

    tomas I've got the same situation and wanted to clarify which vars you set to "".

    Was it like this:

    if (is_array($tags)) {
    if (isset($tags['description'])) {
    $page_desc = "";
    }
    if (isset($tags['keywords'])) {
    $page_keywords = "";
    }
    }

    I appreciate your help


  • hi charter,

    thanks again for your fast response - setting both vars to = ""
    works fine :-)

    tomas


  • Yep, that or upgrade to the latest version and set the following in the config file:

    define('APPEND_TITLE_META',false);


  • hi jthiggins,

    yep - that will work.


    kind regards
    tomas


  • Hi. There is some code in this (http://www.phpdig.net/showthread.php?postid=1058#post1058) post that could be modified to exclude meta tags. There is also the below code in robot_functions.php that could be modified too:

    if (is_array($tags)) {
    if (isset($tags['description'])) {
    $page_desc = phpdigCleanHtml($tags['description']);
    }
    if (isset($tags['keywords'])) {
    $page_keywords = phpdigCleanHtml($tags['keywords']);
    }
    }







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about exclude metatags , Please add it free.