PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   exclude metatags (http://www.phpdig.net/forum/showthread.php?t=555)

tomas 02-20-2004 12:13 PM

exclude metatags
 
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 post that could be modified to exclude meta tags. There is also the below code in robot_functions.php that could be modified too:
PHP Code:

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

Quote:

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:

PHP Code:

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:
PHP Code:

define('APPEND_TITLE_META',false); 



All times are GMT -8. The time now is 11:02 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.