MetaTags Modification Version 2.0.2

Started by Eclipse16V, June 07, 2009, 05:14:17 AM

Previous topic - Next topic

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 -

<meta name="description" content="In the middle of this there is "something" in quotes" />

Although this is very minor I thought I would mention. :)
1 on 1 SMF Help - Want 1 on 1 SMF Help? Post in Help Wanted or drop me a message!

Go Charter! - Please consider becoming a charter member to support SMF development.

Please do not PM me with general questions, posting in the appropriate board will ensure everyone benefits from the advice given.

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'

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.



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! :)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

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! :)
Any help on this please? ???
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

OCJ

I have 2 site languages and used a previous version of this before. The other day I reinstalled the site with new files and wondering if this mod is causing problems for me.

It only seems to happen when logged in but the site languages change sometimes when moving around -1 page Im on English then a couple of pages later all the forum is in Japanese.

The settings werent touched when I reinstalled. In the language options its always had:
Language : English,en,Japanese,ja

The help topic for this isnt so helpful:Die Sprache, in der der intellektuelle Inhalt der Webseite verfasst ist.

Beispiele:
de
en
Englisch


Whoa, just did it - when I logged in to check the settings it changed from English to Japanese without touching any language changer. My profile is set to preferred language=English, System is set to default English. But no settings were changed from over a year ago when the older version was installed.


DeroZ

¿D.C. Description must be identical to "Description"?

???

i don't know what is "D.C."

pittu

PRO version mod works for SMF 2.0.6?

Any adminpanel live demo?

thnx.

pittu

Anybody using this for smf 2.0.6?
Working ok?

Eclipse16V

I worked with:
SMF 2 in German

Shop:
SID Giessen

pittu

Is there any demo before I purchase it? Live demo?

Because I want to make sure it works like I want.

thnx.

swaggaderby

please how do i make this possible for the latest version of smf

Topman

Got this mod up and all the explanations are in German, yet rest is in English.
I don't know what each setting does!

I need it to do different meta descriptions for each topic/thread which it looks like it cannot!

Advertisement: