Meta description and meta keyword not show in source

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

Meta description and meta keyword not show in source

Postby jajabur » Fri Jan 10, 2014 3:21 pm

sorry for poor English.
i have a forum http://www.impayl.com. i instal phpbb seo premod advance mod but having problem.

overall_header show {META_TAG} {META} but i does not show meta description and keyword in source. i am using prosilver style.
jajabur
 
Posts: 4
Joined: Fri Jan 10, 2014 3:10 pm

Advertisement

Re: Meta description and meta keyword not show in source

Postby HB » Fri Jan 10, 2014 3:36 pm

Are you sure it's being called in function.php? Look for this excerpt:

Code: Select all
function page_header($page_title = '', $display_online_list = true, $item_id = 0, $item = 'forum')

<snip snip>

   // www.phpBB-SEO.com SEO TOOLKIT END
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN  - META
   global $seo_meta;
   if (!empty($seo_meta)) {
      $seo_meta->build_meta($page_title);
   }
   // www.phpBB-SEO.com SEO TOOLKIT END  - META
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN - GYM LINKS

My guess is that $seo_meta isn't defined, but look in phpbb_seo_meta.php method build_meta to be sure. That's where the assignment is done:

Code: Select all
      // deal with titles, assign the tag if a default is set
      if (empty($this->meta['title']) && !empty($this->meta_def['title'])) {
         $this->meta['title'] = $page_title;
      }
      $meta_code = '';
      foreach ($this->tpl as $key => $value) {
         if (isset($this->meta[$key])) {
            // do like this so we can deactivate one particular tag on a given page,
            // by just setting the meta to an empty string
            if (trim($this->meta[$key])) {
               $this->meta[$key] = isset($this->filters[$key]) ? $this->{$this->filters[$key]}($this->meta[$key]) : $this->meta[$key];
                }
         } else if (!empty($this->meta_def[$key])) {
            $this->meta[$key] = isset($this->filters[$key]) ? $this->{$this->filters[$key]}($this->meta_def[$key]) : $this->meta_def[$key];
         }
         if (trim($this->meta[$key])) {
            $meta_code .= sprintf($value, utf8_htmlspecialchars($this->meta[$key])) . "\n";
         }
      }
      if (!$return) {
         $template->assign_var('META_TAG', $meta_code);
      } else {
         return $meta_code;
      }

I recommend Setting up a local server using xampp and adding echo's to debug the problem. Usually it's a missed change.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1509
Joined: Mon Oct 16, 2006 2:25 am

Re: Meta description and meta keyword not show in source

Postby jajabur » Fri Jan 10, 2014 8:13 pm

thanks to reply

i check both file.. its ok.. where is the problem.. also my title tag not working and its show in source two times..
jajabur
 
Posts: 4
Joined: Fri Jan 10, 2014 3:10 pm

Re: Meta description and meta keyword not show in source

Postby jajabur » Fri Jan 10, 2014 9:57 pm

my overall_header.html code is here

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
<link rel="shortcut icon" href="http://www.impayl.com/favicon.png" />
{SEO_BASE_HREF}
<!-- IF SEO_CANONICAL_URL --><link rel="canonical" href="{SEO_CANONICAL_URL}" /><!-- ENDIF -->
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<title>{PAGE_TITLE}<!-- IF S_IN_MCP --> &bull; {L_MCP}<!-- ELSEIF S_IN_UCP --> &bull; {L_UCP}<!-- ENDIF --></title>

<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
{META_TAG}
{META}
<!-- BEGIN gym_rsslinks -->
<link rel="alternate" type="application/rss+xml" title="{gym_rsslinks.TITLE}" href="{gym_rsslinks.URL}" />
<!-- END gym_rsslinks -->


but source code does not show meta keyword and description.. also title tag is twice.. source code is here



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb">
<head>
<link rel="shortcut icon" href="http://www.impayl.com/favicon.png" />


<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Portal</title>
<title>Portal</title>
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="en-gb" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="content-language" content="en" />
<meta name="title" content="Portal" />
<meta name="category" content="general" />
<meta name="robots" content="index,follow" />
<meta name="distribution" content="global" />
<meta name="resource-type" content="document" />
<meta name="copyright" content="impayl.com" />



<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="http://impayl.com/gymrss.php?news" />

<link rel="alternate" type="application/rss+xml" title="Channel list" href="http://impayl.com/gymrss.php?channels&amp;news" />
<link rel="alternate" type="application/atom+xml" title="Feed - Impayl.com-Learn, owned and shares the power of latest technology." href="http://impayl.com/feed.php" /><link rel="alternate" type="application/atom+xml" title="Feed - All forums" href="http://impayl.com/feed.php?mode=forums" /><link rel="alternate" type="application/atom+xml" title="Feed - New Topics" href="http://impayl.com/feed.php?mode=topics" />



plz help me
jajabur
 
Posts: 4
Joined: Fri Jan 10, 2014 3:10 pm


Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 22 guests