• Welcome to Simple Machines Community Forum. Please login or sign up.
January 27, 2022, 04:14:04 AM

News:

Wondering if this will always be free?  See why free is better.


Easy Edit Meta Data

Started by JumpmasterRT, May 27, 2008, 09:19:07 PM

Previous topic - Next topic

JumpmasterRT

May 27, 2008, 09:19:07 PM Last Edit: May 27, 2008, 09:42:10 PM by JumpmasterRT
EASY EDIT META DATA V1.0
Originally authored By Karl Benson, now supported by JumpmasterRT



Introduction
Enables you to edit the meta data which appears in your pages including description, keywords, author and copyright meta tags via a new tab in the features and options menu.

Installation
Installs automatically on Default, Classic and Babylon skin.

NOTE: Its ONLY necessary to install this mod on the skin viewed by guests and robots as only robots for searchengines find meta data useful.

It requires two quick manual edits to install on most skins.

FIND this
<meta name="description" content="', $context['page_title'], '" />

REPLACE with
';
echo (!empty($modSettings['meta_description'])) ? ' <meta name="description" content="'. $modSettings['meta_description'] .'" />' : '<meta name="description" content="'. $context['page_title'] .'" />


AND FIND this
, '
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />


REPLACE with
;
echo (!empty($modSettings['meta_keywords'])) ? '
<meta name="keywords" content="'. $modSettings['meta_keywords'] .'" />' : '';
echo (!empty($modSettings['meta_copyright'])) ? '
<meta name="copyright" content="'. $modSettings['meta_copyright'] .'" />' : '';
echo (!empty($modSettings['meta_author'])) ? '
<meta name="author" content="'. $modSettings['meta_author'] .'" />' : '';
echo '

Apllicmz

Good Work
translate portuguese and brazilian

Quote<!-- // MODSETTINGS.PORTUGUESE.PHP  //-->
<file name="$languagedir/ModSettings.portuguese.php" error="skip">
<operation>
   <search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['mods_cat_meta'] = 'Meta';
$txt['meta_mod'] = 'F&aacute;cil editar Meta dados';
$txt['meta_description'] = 'Meta Descrição';
$txt['meta_keywords'] = 'Meta palavras-chave';
$txt['meta_author'] = 'Meta Autor';
$txt['meta_copyright'] = 'Meta Copyright';
]]></add>
</operation>
</file>
<file name="$languagedir/ModSettings.brazilian.php" error="skip">
<operation>
   <search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['mods_cat_meta'] = 'Meta';
$txt['meta_mod'] = 'F&aacute;cil editar Meta dados';
$txt['meta_description'] = 'Meta Descrição';
$txt['meta_keywords'] = 'Meta palavras-chave';
$txt['meta_author'] = 'Meta Autor';
$txt['meta_copyright'] = 'Meta Copyright';
]]></add>
</operation>
</file>

<!-- // HELP.PORTUGUESE.PHP  //-->
<file name="$languagedir/Help.portuguese.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$helptxt['meta_description'] = 'Voc&ecirc; pode digitar uma descri&ccedil;&atilde;o do seu quadro. Se voc&ecirc; deix&aacute;-lO em branco, o t&iacute;tulo de sua p&aacute;gina ir&aacute; aparecer na descri&ccedil;&atilde;o. <br/> Recomenda-se a mant&ecirc;-lo para menos de 200 caracteres.';
$helptxt['meta_keywords'] = 'Digite as palavras-chave separadas por v&iacute;rgulas, por exemplo casa, carro. <br/> Recomenda-se a mant&ecirc;-lo para menos de 200 caracteres.';
$helptxt['meta_author'] = 'Coloque seu nome na p&aacute;gina. Nem todos os motores de busca reconhecer essa tag.';
$helptxt['meta_copyright'] = 'Coloque as suas informa&ccedil;ões sobre direitos autorais na meta dados, usar &amp;copiar; o símbolo de direitos autorais.';
]]></add>
</operation>
</file>
<file name="$languagedir/Help.brazilian.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$helptxt['meta_description'] = 'Voc&ecirc; pode digitar uma descri&ccedil;&atilde;o do seu quadro. Se voc&ecirc; deix&aacute;-lO em branco, o t&iacute;tulo de sua p&aacute;gina ir&aacute; aparecer na descri&ccedil;&atilde;o. <br/> Recomenda-se a mant&ecirc;-lo para menos de 200 caracteres.';
$helptxt['meta_keywords'] = 'Digite as palavras-chave separadas por v&iacute;rgulas, por exemplo casa, carro. <br/> Recomenda-se a mant&ecirc;-lo para menos de 200 caracteres.';
$helptxt['meta_author'] = 'Coloque seu nome na p&aacute;gina. Nem todos os motores de busca reconhecer essa tag.';
$helptxt['meta_copyright'] = 'Coloque as suas informa&ccedil;ões sobre direitos autorais na meta dados, usar &amp;copiar; o símbolo de direitos autorais.';
]]></add>
</operation>
</file>



neil h

One quick question;

I installed the mod last night. i've made the edits to my theme. Now the mod is installed, if I look at the code via my browser's 'view page source' feature, I can't see any sign of most of the meta tags. Does this mean the mod moves the meta tags somewhere else?

i'm just checking I've installed the mod properly. Any advice appreciated.

aishaweb

Got a link to your forum?

aishaweb

May 28, 2008, 06:18:11 AM #4 Last Edit: May 28, 2008, 06:23:42 AM by aishaweb
Nevermind, i found it, you will need to do it manually as the mod only installs to the standard themes SMF comes with, not to addon themes.

This is due to the fact that there is no absolute standard way of coding addon themes.

I think this is being addressed in SMF 2.xx.

aishaweb

Oh, and BTW, is this a new, updated release? Or is the the last release Karl B made?

Triple posting FTW!

neil h

I think it is the Last Karl B version. I made the manual edits to the theme I'm on. I checked the default file template against the theme I'm using and copied the changes via my file comparison app. Everything seems to have been done, but no sign of meta codes in the source. scratching my head here!

aishaweb

Quote from: neil h on May 28, 2008, 06:50:12 AM
I think it is the Last Karl B version. I made the manual edits to the theme I'm on. I checked the default file template against the theme I'm using and copied the changes via my file comparison app. Everything seems to have been done, but no sign of meta codes in the source. scratching my head here!

No idea then, although you have all the meta tags you need on your portal page.

Jumpmasterrt

It's the same release that karlbenson made.

neil, link to your site?

aishaweb

Quote from: JumpmasterRT on May 28, 2008, 11:11:22 AM
It's the same release that karlbenson made.

neil, link to your site?

Quote from: aishaweb on May 28, 2008, 06:18:11 AM
Nevermind, i found it, you will need to do it manually as the mod only installs to the standard themes SMF comes with, not to addon themes.

This is due to the fact that there is no absolute standard way of coding addon themes.

I think this is being addressed in SMF 2.xx.

4Kstore

i just install it !!! is perfect thx!!

screen:




Thanks !!

¡¡NEW MOD: Sparkles User Names!!!

rfresh

May 30, 2008, 01:39:16 PM #11 Last Edit: May 30, 2008, 01:42:52 PM by rfresh
@4kstore

Where is that screen shot that you are showing? I did an install but can't find where the meta tag screen is to do my edits!!

I'm using SMF 1.1.5

rfresh

I did an install (it said successful) but can't find where the meta tag screen is to do my edits!!

I'm using SMF 1.1.5

Can anyone help me?

rfresh

No activity on this board??? Guess I'll uninstall this mod since I can't seem to get it to work and this board has been quiet for a couple of days now...

aishaweb

June 01, 2008, 05:00:51 AM #14 Last Edit: June 01, 2008, 05:09:22 AM by aishaweb
Quote from: rfresh on May 31, 2008, 01:17:52 AM
I did an install (it said successful) but can't find where the meta tag screen is to do my edits!!

I'm using SMF 1.1.5

Can anyone help me?

Goto your server settings in the admin panel, report back here as to which language you are using, tell us exactly what it says in the language box.

See screenie:
http://i29.tinypic.com/2zoaqdy.jpg

Jumpmasterrt

That and are you using the DEFAULT theme?

rfresh

English-utf8

Yes, I am using the default theme.

Jumpmasterrt

rfresh, do you have a screenshot of your admin toolbar where it SHOULD be?

rfresh

I can post one yes...where *should* it be? I'm not even sure where it is susposed to show up...tell me and I'll take a screen shot and post it...thanks...

Jumpmasterrt

It should show up in Admin > Configuration > Features and Options section in the tool bar with Basic Features | Layouts and Options | Karma.

Advertisement: