Customizing SMF > Modifications and Packages
MetaTags Modification Version 2.0.2
gamesmad:
Great mod, thanks for putting the time into developing it.
I just thought I would let you know that I noticed a small problem, in that the content for the meta tags will accept the " character, which could result in malformed HTML, for example -
--- Code: ---<meta name="description" content="In the middle of this there is "something" in quotes" />
--- End code ---
Although this is very minor I thought I would mention. :)
shubha:
This mod mess up my website. I lost each and every thing .WTF ,take the reverse gear , than also not possible .Everything mess up.
Remove this
--- Quote ---<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />';
if(!empty($modSettings['meta_data_description_on']))
{
echo'
<meta name="description" content="' , !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_data_description_text'], '" />';
}
if(!empty($modSettings['meta_data_keywords_on']))
{
echo'
<meta name="keywords" content="';
if (!empty($context['current_topic']))
{
$keystring = str_replace(' ', ',', trim($context['page_title_html_safe']));
echo '', $keystring, ',';
}
elseif (!empty($context['current_board']))
{
$keystring = str_replace(' ', ',', trim($context['page_title_html_safe']));
echo '', $keystring, ',';
}
else
{
echo '', $modSettings['meta_data_keywords_text'], ',';
}
echo '" />';
}
if(!empty($modSettings['meta_data_copyright_on']))
{
echo'
<meta name="copyright" content="' , !empty($modSettings['meta_data_copyright_text']) ? $modSettings['meta_data_copyright_text'] : $txt['meta_data_copyright_blank'], '" />';
}
if(!empty($modSettings['meta_data_author_on']))
{
echo'
<meta name="author" content="' , !empty($modSettings['meta_data_author_text']) ? $modSettings['meta_data_author_text'] : $txt['meta_data_author_blank'], '" />';
}
echo '
<meta name="generator" content="Simple Machines LLC" />
<meta name="title" content="', $context['page_title_html_safe'], '" />';
if(!empty($modSettings['meta_data_language_on']))
{
echo'
<meta http-equiv="Language" content="' , !empty($modSettings['meta_data_language_text']) ? $modSettings['meta_data_language_text'] : $txt['meta_data_language_blank'], '" />';
}
if(!empty($modSettings['meta_data_publisher_on']))
{
echo'
<meta name="publisher" content="' , !empty($modSettings['meta_data_publisher_text']) ? $modSettings['meta_data_publisher_text'] : $txt['meta_data_publisher_blank'], '" />';
}
if(!empty($modSettings['meta_data_revisit_after_on']))
{
echo'
<meta name="revisit-after" content="', $modSettings['meta_data_revisit_after_text'], '" />';
}
if(!empty($modSettings['meta_data_date_on']))
{
echo'
<meta name="date" content="' , !empty($modSettings['meta_data_date_text']) ? $modSettings['meta_data_date_text'] : $txt['meta_data_date_blank'], '" />';
}
if(!empty($modSettings['meta_data_page_topic_on']))
{
echo'
<meta name="page-topic" content="' , !empty($modSettings['meta_data_page_topic_text']) ? $modSettings['meta_data_page_topic_text'] : $txt['meta_data_page_topic_blank'], '" />';
}
if(!empty($modSettings['meta_data_page_type_on']))
{
echo'
<meta name="page-type" content="' , !empty($modSettings['meta_data_page_type_text']) ? $modSettings['meta_data_page_type_text'] : $txt['meta_data_page_type_blank'], '" />';
}
if(!empty($modSettings['meta_data_audience_on']))
{
echo'
<meta name="audience" content="' , !empty($modSettings['meta_data_audience_text']) ? $modSettings['meta_data_audience_text'] : $txt['meta_data_audience_blank'], '" />';
}
if(!empty($modSettings['meta_data_expires_on']))
{
echo'
<meta name="expires" content="' , !empty($modSettings['meta_data_expires_text']) ? $modSettings['meta_data_expires_text'] : $txt['meta_data_expires_blank'], '" />';
}
if(!empty($modSettings['meta_data_pagetopic_on']))
{
echo'
<meta name="pagetopic" content="' , !empty($modSettings['meta_data_page_topic_text']) ? $modSettings['meta_data_page_topic_text'] : $txt['meta_data_page_topic_blank'], '" />';
}
if(!empty($modSettings['meta_data_pagetype_on']))
{
echo'
<meta name="pagetype" content="' , !empty($modSettings['meta_data_page_type_text']) ? $modSettings['meta_data_page_type_text'] : $txt['meta_data_page_type_blank'], '" />';
}
if(!empty($modSettings['meta_data_imagetoolbar_on']))
{
echo'
<meta http-equiv="imagetoolbar" content="' , !empty($modSettings['meta_data_imagetoolbar_text']) ? $modSettings['meta_data_imagetoolbar_text'] : $txt['meta_data_imagetoolbar_blank'], '" />';
}
if(!empty($modSettings['meta_data_tweetmeme_title_on']))
{
echo'
<meta name="tweetmeme-title" content="' , !empty($modSettings['meta_data_tweetmeme_title_text']) ? $modSettings['meta_data_tweetmeme_title_text'] : $txt['meta_data_tweetmeme_title_blank'], '" />';
}
if(!empty($modSettings['meta_data_google_title_on']))
{
echo'
<meta name="google-site-verification" content="' , !empty($modSettings['meta_data_google_title_text']) ? $modSettings['meta_data_google_title_text'] : $txt['meta_data_google_title_blank'], '" />';
}
if(!empty($modSettings['meta_data_yahoo_title_on']))
{
echo'
<meta name="y_key" content="' , !empty($modSettings['meta_data_yahoo_title_text']) ? $modSettings['meta_data_yahoo_title_text'] : $txt['meta_data_yahoo_title_blank'], '" />';
}
if(!empty($modSettings['meta_data_alexa_title_on']))
{
echo'
<meta name="alexaVerifyID" content="' , !empty($modSettings['meta_data_alexa_title_text']) ? $modSettings['meta_data_alexa_title_text'] : $txt['meta_data_alexa_title_blank'], '" />';
}
echo'
--- End quote ---
Than also not problem solve in default theme. Well the problem solve in other theme. But now i am unable to verify the site using other mod also.
--- Quote ---There was a problem loading the /Themes/actualism_202/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
--- End quote ---
ibzsol:
can anyone help me out for this issue please
Fatal error: Call to undefined function activity_bar() in /home/ibzsol/public_html/ibzBoard/Sources/Display.php on line 1387
Shades.:
Everything seems to be working properly except the robots tag. I have it activated in amin and in the field I put "INDEX, FOLLOW" but when I run a meta tag analyzer script to check, it says "Found no robots meta tag." What am I doing wrong?
Go to http://www.submitshop.com/seo-tools/meta-tag-analyzer and enter my url http://www.petfetcher.com and you will see what I mean.
Thanks for any help! :)
Shades.:
--- Quote from: Shades. on January 10, 2013, 04:40:18 PM ---Everything seems to be working properly except the robots tag. I have it activated in amin and in the field I put "INDEX, FOLLOW" but when I run a meta tag analyzer script to check, it says "Found no robots meta tag." What am I doing wrong?
Go to http://www.submitshop.com/seo-tools/meta-tag-analyzer and enter my url http://www.petfetcher.com and you will see what I mean.
Thanks for any help! :)
--- End quote ---
Any help on this please? ???
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version