PDA

View Full Version : exclude metatags


tomas
02-20-2004, 12:13 PM
hello list,

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

<!-- phpdigExclude -->
<meta name="description" content="testcontent">
<!-- phpdigInclude -->

any ideas welcome
tomas

Charter
02-20-2004, 04:20 PM
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']);
}
}

tomas
02-20-2004, 06:09 PM
hi charter,

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

tomas

jthiggins
08-13-2004, 08:39 AM
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

tomas
08-13-2004, 01:25 PM
hi jthiggins,

yep - that will work.


kind regards
tomas

Charter
08-15-2004, 03:22 PM
Yep, that or upgrade to the latest version and set the following in the config file:

define('APPEND_TITLE_META',false);