FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > Site Promotion
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 04-19-2008, 07:35 PM   Postid: 167109
Tom E.
Site Owner
 
Tom E.'s Avatar

Forum Notability:
1175 pts: A True Crowd-pleaser!
[Post Feedback]
 
Join Date: Feb 2005
Location: Connecticut
Posts: 719
Re: Value of links in SEO

If you don't set the metadesc for all act codes, you're going to get that warning when you try to load a page with an undefined value.

Something like this should fix it:
PHP Code:
<?php
if (array_key_exists("metadesc"$act_values[$act]))
  {
  
$page_metadesc $act_values[$act]["metadesc"];
  }
?>
.
.
.
<?php  if (isset($page_metadesc)) { ?>
  <meta name="Description" content="<?php echo $page_metadesc;?>" />
<?php ?>
This will only output the meta tag if the description is defined.
Tom E. is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:24 AM.


Running on vBulletin®
Copyright © 2000 - 2019, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2019 FutureQuest, Inc.
FutureQuest, Inc.