Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: karlbenson on May 12, 2007, 06:14:10 AM

Title: Easy Edit Meta Data
Post by: karlbenson on May 12, 2007, 06:14:10 AM
This mod has now been taken over by JumpmasterRT
See the new version http://custom.simplemachines.org/mods/index.php?mod=1211

Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=761)

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.

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 '

Title: Re: Easy Edit Meta Data
Post by: Daniel15 on May 12, 2007, 06:17:31 AM
Nice mod... Simple, but effective :)
One thing I noticed is in the install.php file, you do two queries per setting added. Checking if the setting already exists is redundant, as INSERT IGNORE will insert the setting only if it doesn't already exist. In fact, that can all be converted into a single query (see the installScript.php file from SMFBlog (http://dev.dansoftaustralia.net/svn/smfblog/trunk/installScript.php), for example - Not the fields bit, the settings bit).
Title: Re: Easy Edit Meta Data
Post by: karlbenson on May 14, 2007, 08:38:53 AM
cheers daniel.

I hadn't noticed.  I generally copy my code from my other mods when writing install scripts.
Title: Re: Easy Edit Meta Data
Post by: Harro on May 14, 2007, 08:44:12 AM
This is a mod I planned to make as well (but never found the time to do it) :P
Nice work!
Title: Re: Easy Edit Meta Data
Post by: dxdonline on May 24, 2007, 10:19:37 PM
when i want to save snything on meta iget this error

http://www.....com/index.php?action=featuresettings2;save;sa=meta
Apply Filter: Only show the errors with the same message
8: Undefined index: pm_posts_per_hour
File: /.../.../.../Sources/ModSettings.php
Line: 300


any help??? plz
Title: Re: Easy Edit Meta Data
Post by: keith021773 on May 24, 2007, 10:25:05 PM
Will this mod help with google adsence?  I mean will it help get ads that are more realistic and closer to the content of your site?
Title: Re: Easy Edit Meta Data
Post by: Harro on May 25, 2007, 03:14:44 AM
Could help.
but the content on your pages is still the most important.
Title: Re: Easy Edit Meta Data
Post by: glennk on May 25, 2007, 08:15:53 AM
I get the error below. If you could help me with this it would be appreciated as its a mod I would like to try out.

1.     Execute Code     install.php     
2.    Execute Modification    ./Sources/ModSettings.php    Test successful
3.    Execute Modification    ./Themes/default/../babylon/index.template.php    Test successful
4.    Execute Modification    ./Themes/default/../classic/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/index.template.php    Test failed
6.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
Title: Re: Easy Edit Meta Data
Post by: karlbenson on May 25, 2007, 08:34:46 AM
its probably classing with another mod which you have installed.

What mods do you have installed?
Title: Re: Easy Edit Meta Data
Post by: glennk on May 25, 2007, 11:16:15 AM
    Mod Name     Version     
1.    Tagging System    1.0.3    [ Uninstall ] [ List Files ] [ Delete ]
2.    Member Awards    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
3.    Pretty URLs - Extention: none    0.4    [ Uninstall ] [ List Files ] [ Delete ]
4.    Board Viewers Mod    1.1    [ Apply Mod ] [ List Files ] [ Delete ]
5.    Welcome Topic Mod    1.0    [ Uninstall ] [ List Files ] [ Delete ]
6.    Ad Managment    2.3    [ Uninstall ] [ List Files ] [ Delete ]
7.    SMF Arcade    2.0.8    [ Uninstall ] [ List Files ] [ Delete ]
8.    Enhanced Quick Reply    TBA    [ Uninstall ] [ List Files ] [ Delete ]
9.    Seo 4 SMF    0.2.9.8    [ Apply Mod ] [ List Files ] [ Delete ]
10.    YouTube BBC Tag (XHTML Compliant)    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
11.    Easy Edit Meta Data    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
12.    Personal Message Auto Responder    0.2    [ Apply Mod ] [ List Files ] [ Delete ]
13.    YouTube BBC Tag (XHTML Compliant)    1.2    [ Uninstall ] [ List Files ] [ Delete ]
14.    Topic description    1.1    [ Apply Mod ] [ List Files ] [ Delete ]
15.    Pretty URLs - Base    0.4    [ Uninstall ] [ List Files ] [ Delete ]
16.    Registered Links    1.0    [ List Files ] [ Delete ]
17.    SMF 1.1.2 Update Package    1.1.2    [ Uninstall ] [ List Files ] [ Delete ]
18.    cbi, 1.0    1.0    [ Uninstall ] [ List Files ] [ Delete ]
19.    Googlebot & Spiders Mod    1.0.5    [ List Files ] [ Delete ]
Title: Re: Easy Edit Meta Data
Post by: karlbenson on May 25, 2007, 08:41:14 PM
I think its one of a couple of mods

Ad Managment    2.3
Pretty URLs - Base
Seo 4 SMF   

The only thing i can suggest is either not installing or performing that edit manually.
Title: Re: Easy Edit Meta Data
Post by: Harro on May 26, 2007, 07:30:49 AM
Seo4SMF already changes the meta information.
Title: Re: Easy Edit Meta Data
Post by: karlbenson on May 26, 2007, 12:45:59 PM
that would be why.
Title: Re: Easy Edit Meta Data
Post by: Chantal Matar on August 03, 2007, 05:42:24 PM
I've been looking for something like this.  Thanks!

Title: Re: Easy Edit Meta Data
Post by: glennk on August 06, 2007, 07:26:37 AM
Does this mod allow edit of  the title tag ?
Title: Re: Easy Edit Meta Data
Post by: karlbenson on August 06, 2007, 07:39:53 AM
It does NOT allow you to edit the title tag since that is modified by smf on a per-page basis to include the name of the topic, area/page you are visiting.

It does allow you to change description, keywords, author and copyright
Title: Re: Easy Edit Meta Data
Post by: glennk on August 06, 2007, 11:40:18 AM
ok Thanks mate
Title: Re: Easy Edit Meta Data
Post by: Neelay on August 25, 2007, 10:25:46 AM
Will the description and keywords be global i.e same for all the pages, or it can be changed depending on the forum ?
Title: Re: Easy Edit Meta Data
Post by: karlbenson on August 25, 2007, 10:59:16 AM
same for all pages.
Title: Re: Easy Edit Meta Data
Post by: Cool999 on August 29, 2007, 05:26:29 AM
I go this error in SMF 1.1.3

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Please Help

Thanks
Title: Re: Easy Edit Meta Data
Post by: Coldfx on September 02, 2007, 10:27:31 AM
Karl, would you consider completing something that the SEO4SMF (http://custom.simplemachines.org/mods/index.php?mod=518) mod accomplishes with meta data?  The fact this helps SEO bumped a bunch, but SEO takes it a step further by changing meta description if you're inside a board (The description is something like: "Viewing the BOARD NAME HERE board" and keywords are the a mixture of the description) and topics (Usually first post is the description, and the keywords are a mixture taken from the description).

Just something I hope you'll consider when you get the time~
Title: Re: Easy Edit Meta Data
Post by: karlbenson on September 02, 2007, 03:50:39 PM
I plan on updating this mod around the time 2.0 goes public with the functonality as you describe above.

Until then (for the considerable future) I'm tied up with existing projects.
Title: Re: Easy Edit Meta Data
Post by: Coldfx on September 02, 2007, 05:57:52 PM
Quote from: karlbenson on September 02, 2007, 03:50:39 PM
I plan on updating this mod around the time 2.0 goes public with the functonality as you describe above.

Until then (for the considerable future) I'm tied up with existing projects.

Oh okay, sounds great! Can't wait until :P
Title: Re: Easy Edit Meta Data
Post by: karlbenson on September 02, 2007, 06:05:51 PM
You can be sure it will happen, because I want to add the functionality for my own forums.

I wanted the functionality when i last upgraded my forum.  But I planned to use the seo4smf mod, but when I tested the mod it produced thousands of errors on a clean/fresh installed test forum.  So I definately will have to add it to this mod.
Title: Re: Easy Edit Meta Data
Post by: Klabautermann on September 04, 2007, 02:22:35 AM
When I edit the index.template.php from the "day of defeat" theme I use i get the error when reloading my website:

Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.

How can I solve the problem?
Title: Re: Easy Edit Meta Data
Post by: karlbenson on September 04, 2007, 10:05:37 AM
there is a php error.

Paste the code, a couple of lines above and a couple of lines below around the bit you edited.
Title: Re: Easy Edit Meta Data
Post by: Klabautermann on September 06, 2007, 07:39:32 AM
As you wished master, here is the code ;)

// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
';
echo (!empty($modSettings['meta_description'])) ? ' <meta name="description" content="'. $modSettings['meta_description'] .'" />' : '<meta name="description" content="'. $context['page_title'] .'" />
;
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 '
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc2p"></script>

<script language="javascript" type="text/javascript">
<!--
function popitup(url)
{
newwindow=window.open(url,\'name\',\'height=145,width=205\');
if (window.focus) {newwindow.focus()}
return false;
}
Title: Re: Easy Edit Meta Data
Post by: karlbenson on September 06, 2007, 10:17:40 AM
hmmm.

I can't see any error with that code.

Have you made other alterations to the theme?
What line of what file does it say the error is on?
Title: Re: Easy Edit Meta Data
Post by: Klabautermann on September 06, 2007, 10:24:58 AM
Here is what I got when i change the code:

Template Parse Error!
There was a problem loading the /Themes/TP_day-of-defeat_1/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.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/TP_day-of-defeat_1/index.template.php on line 71

62: global $context, $settings, $options, $scripturl, $txt, $modSettings;
63:
64: // Show right to left and the character set for ease of translating.
65: echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
66: <html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
67: <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
68: ';
69: echo (!empty($modSettings['meta_description'])) ? ' <meta name="description" content="'. $modSettings['meta_description'] .'" />' : '<meta name="description" content="'. $context['page_title'] .'" />
70: ;

71: echo (!empty($modSettings['meta_keywords'])) ? '

72: <meta name="keywords" content="'. $modSettings['meta_keywords'] .'" />' : '';
73: echo (!empty($modSettings['meta_copyright'])) ? '
74: <meta name="copyright" content="'. $modSettings['meta_copyright'] .'" />' : '';
75: echo (!empty($modSettings['meta_author'])) ? '
Title: Re: Easy Edit Meta Data
Post by: karlbenson on September 06, 2007, 10:44:04 AM
try removing the gap between 71 and 72

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

Like so
Title: Re: Easy Edit Meta Data
Post by: Klabautermann on September 06, 2007, 02:48:39 PM
rmoved the gap, now code looks like:

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
';
echo (!empty($modSettings['meta_description'])) ? ' <meta name="description" content="'. $modSettings['meta_description'] .'" />' : '<meta name="description" content="'. $context['page_title'] .'" />;
echo (!empty($modSettings['meta_copyright'])) ? '<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 '
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc2p"></script>

<script language="javascript" type="text/javascript">
<!--
function popitup(url)
{
newwindow=window.open(url,\'name\',\'height=145,width=205\');
if (window.focus) {newwindow.focus()}
return false;
}


and error like this


Template Parse Error!
There was a problem loading the /Themes/TP_day-of-defeat_1/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.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/TP_day-of-defeat_1/index.template.php on line 69

60: {
61: global $context, $settings, $options, $scripturl, $txt, $modSettings;
62:
63: // Show right to left and the character set for ease of translating.
64: echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
65: <html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
66: <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
67: ';
68: echo (!empty($modSettings['meta_description'])) ? ' <meta name="description" content="'. $modSettings['meta_description'] .'" />' : '<meta name="description" content="'. $context['page_title'] .'" />;

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

70: echo (!empty($modSettings['meta_copyright'])) ? '<meta name="copyright" content="'. $modSettings['meta_copyright'] .'" />' : '';
71: echo (!empty($modSettings['meta_author'])) ? '
72: <meta name="author" content="'. $modSettings['meta_author'] .'" />' : '';
73: echo '
Title: Re: Easy Edit Meta Data
Post by: karlbenson on September 06, 2007, 05:03:17 PM
at the end of line 68 your missing a single quote

Eg it ends " />;
when it should finish " />';
Title: Re: Easy Edit Meta Data
Post by: Klabautermann on September 07, 2007, 02:43:20 AM
Ey Caramba karlbenson that was it, many thanks to you!
Title: Re: Easy Edit Meta Data
Post by: karlbenson on September 07, 2007, 01:12:22 PM
no worries.

Glad we got it sorted in the end. ;)
Title: Re: Easy Edit Meta Data
Post by: Chadrew on December 13, 2007, 01:11:48 PM
Sorry but before installing I want to ask, what kind of meta descriptions does it add? Do you write them manually or does it take them from somewhere (topics, etc)?
Title: Re: Easy Edit Meta Data
Post by: goldenboy48 on December 22, 2007, 11:18:08 PM
I get this when I do custom theme edits.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg144.imageshack.us%2Fimg144%2F2586%2F79496740ez9.png&hash=73fa168ba99d3f51a79efcafdf1f7c6d9c0feb02)

http://img144.imageshack.us/img144/2586/79496740ez9.png
Title: Re: Easy Edit Meta Data
Post by: goldenboy48 on December 22, 2007, 11:23:29 PM
Can I not go into index.template.php and JUST

replace this - PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum

with

my own meta info?
Title: Re: Easy Edit Meta Data
Post by: karlbenson on December 23, 2007, 04:41:08 AM
Indeed you can do do that if you want.
Title: Re: Easy Edit Meta Data
Post by: goldenboy48 on December 23, 2007, 03:20:59 PM
Quote from: karlbenson on December 23, 2007, 04:41:08 AM
Indeed you can do do that if you want.

cool...its much easier.......then we don't require the mod right?
Title: Re: Easy Edit Meta Data
Post by: karlbenson on December 24, 2007, 04:34:15 AM
If you can do it that way, you are welcome to.

its just that some people don't feel comfortable at editing the files and would rather have an area to edit the information.
Title: Re: Easy Edit Meta Data
Post by: Ambasador on December 24, 2007, 04:41:50 AM
Nice mod, but why not changing it manually? I've changed it in default/index.template.php, dunno if there is any use for it, but I suppose there is as smf added their meta there.
Title: Re: Easy Edit Meta Data
Post by: karlbenson on December 24, 2007, 04:56:36 AM
^ not everyone feels comfortable editing index.template.php everytime.
Title: Re: Easy Edit Meta Data
Post by: TEOC2 on December 24, 2007, 05:11:57 AM
Quote from: karlbenson on December 24, 2007, 04:56:36 AM
^ not everyone feels comfortable editing index.template.php everytime.

^true

I broke my 1st forum doing exactly that, then i discovered this mod.
Title: Re: Easy Edit Meta Data
Post by: karlbenson on December 24, 2007, 05:13:54 AM
Indeed, even though I can easily edit it.

I still have my mod installed so I can do it in 2 clicks ;)
Title: Re: Easy Edit Meta Data
Post by: goldenboy48 on December 24, 2007, 05:04:35 PM
Quote from: karlbenson on December 24, 2007, 04:34:15 AM
If you can do it that way, you are welcome to.

its just that some people don't feel comfortable at editing the files and would rather have an area to edit the information.

Agree with you.
Title: Re: Easy Edit Meta Data
Post by: TigerRR on December 31, 2007, 03:13:19 PM
It can be useful if you put the translation into Italian



<file name="$languagedir/ModSettings.italian.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['mods_cat_meta'] = 'Meta';
$txt['meta_mod'] = 'Semplice Modifica Meta Data';
$txt['meta_description'] = 'Meta Description';
$txt['meta_keywords'] = 'Meta Keywords';
$txt['meta_author'] = 'Meta Author';
$txt['meta_copyright'] = 'Meta Copyright';
]]></add>
</operation>
</file>

<file name="$languagedir/Help.italian.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$helptxt['meta_description'] = '&Egrave; possibile inserire una descrizione della vostra board. Se si lascia in bianco, il vostro titolo di pagina apparir&agrave; nella descrizione. <br/> Si raccomanda di restare sotto i 200 caratteri.';
$helptxt['meta_keywords'] = 'Inserire le parole chiave distanziati da virgole, ad esempio casa, auto. <br/> Si raccomanda di restare sotto i 200 caratteri.';
$helptxt['meta_author'] = 'Mettete il vostro nome nella pagina. Non tutti i motori di ricerca riconoscono questo tag.';
$helptxt['meta_copyright'] = 'Mettete le vostre informazioni di copyright nel meta dati, utilizzare &amp;copy; per il simbolo di copyright.';
]]></add>
</operation>
</file>



;)
Title: Re: Easy Edit Meta Data
Post by: karlbenson on January 18, 2008, 11:36:44 PM
I have reuploaded this mod and screenshots for it.

I am in the process of doing it for ALL my other mods aswell.  Please bear with me.
Title: Re: Easy Edit Meta Data
Post by: dumblonde on February 23, 2008, 02:53:43 PM
Probably a stupid question  :P but after installing this mod where do I go to change my metatags?
Title: Re: Easy Edit Meta Data
Post by: karlbenson on February 23, 2008, 03:32:24 PM
via a new tab in the features and options menu.

Admin > Features & Options
Title: Re: Easy Edit Meta Data
Post by: dumblonde on February 23, 2008, 05:27:26 PM
Ahhh, thank you I knew it was right under my nose  :P

Do you recommend deleting all the keywords that are in there now  (PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum) since my site's content has nothing to do with any of them.
Title: Re: Easy Edit Meta Data
Post by: karlbenson on February 23, 2008, 06:20:29 PM
yeah.
Title: Re: Easy Edit Meta Data
Post by: Stephen5588 on March 05, 2008, 08:58:43 PM
I installed the mod through my admin area but i dont see the mod anywhere, is there suppose to be a new link somewhere in my admin area so I can change my meta tags etc?
Title: Re: Easy Edit Meta Data
Post by: JimM on March 05, 2008, 10:04:44 PM
Yep

Quote from: karlbenson on February 23, 2008, 03:32:24 PM
via a new tab in the features and options menu.

Admin > Features & Options

And it works great.  I had been meaning to get around to editing these and this mod made it so easy.
Title: Re: Easy Edit Meta Data
Post by: lonrot on March 08, 2008, 11:14:07 AM
Hi guys the mod installed fine for me, but the modsettings.php wasn't working well.
So I edited manually the file, and the index.template.php.

In the Features and Options Tab, there is an empty space and no link, any ideas?
Title: Re: Easy Edit Meta Data
Post by: TEOC2 on March 08, 2008, 12:48:16 PM
Quote from: lonrot on March 08, 2008, 11:14:07 AM
Hi guys the mod installed fine for me, but the modsettings.php wasn't working well.
So I edited manually the file, and the index.template.php.

In the Features and Options Tab, there is an empty space and no link, any ideas?

Which theme and language are you using?
Title: Re: Easy Edit Meta Data
Post by: karlbenson on March 08, 2008, 02:46:43 PM
Your missing the language strings.

Are you using utf8?
If so you need to copy the language strings of the mod to Modifications.english-utf8.php
If your using a language other than english you'll also need to copy the language strings (and translate as necessary) into your Modifications.{language}.php
Title: Re: Easy Edit Meta Data
Post by: lonrot on March 08, 2008, 03:31:02 PM
I´m using the default english pack that came with SMF.
And my mod is SoftMC Blue.
Title: Re: Easy Edit Meta Data
Post by: shadowravenhawk on March 24, 2008, 12:11:29 AM
I didn't change the install.php page when I uploaded. I go some bad advice. Can I upload this now? If so how do I change this? Where is this mod located?
Title: Re: Easy Edit Meta Data
Post by: karlbenson on March 24, 2008, 01:25:24 PM
Use a package parser and make sure you do all the edits.
http://www.adrevenueshare.com/parser
Title: Re: Easy Edit Meta Data
Post by: shadowravenhawk on March 24, 2008, 08:59:13 PM
I did all the edits but where and how do I insert the changed file into the server?
Title: Re: Easy Edit Meta Data
Post by: shadowravenhawk on March 25, 2008, 04:52:30 PM
Ok I changed the install.php but I can't find it on my server. Where do I upload the changed page to?
Title: Re: Easy Edit Meta Data
Post by: karlbenson on March 25, 2008, 04:59:03 PM
install.php isn't uploaded/become part of smf

its the part of the mod which adds the settings/changes to your database.
Title: Re: Easy Edit Meta Data
Post by: shadowravenhawk on March 25, 2008, 09:03:54 PM
OK so after I make the 2 edits to install.php what do I do with it?  The instructions on the download page say to make these edits but they don't say what to do with the page. Where do I upload it to? I already installed the mod so I have to replace the existing install.php file with this one. It has to be uploaded into the mod somewhere because the meta tags aren't working.  They say PHP, SMF, forum ,etc
Title: Re: Easy Edit Meta Data
Post by: shadowravenhawk on March 28, 2008, 02:45:16 PM
Can someone please help me with this?
Title: Re: Easy Edit Meta Data
Post by: shadowravenhawk on March 29, 2008, 01:56:37 PM
?
Title: Re: Easy Edit Meta Data
Post by: karlbenson on March 29, 2008, 02:03:58 PM
As i told you via PM,

The install.php installs the settings into the database.

If you doing it manually you will need to add the following variables to your smf_settings table via PHPMYADMIN.
(change smf_ to your forums prefix)

INSERT INTO smf_settings (`variable`, `value`) VALUES ('meta_description', '');
INSERT INTO smf_settings (`variable`, `value`) VALUES ('meta_keywords', '');
INSERT INTO smf_settings (`variable`, `value`) VALUES ('meta_author', '');
INSERT INTO smf_settings (`variable`, `value`) VALUES ('meta_copyright', '');

If you still can't do it, then I will suggest you post a free or paid request in the help wanted forum for someone to do it for you.
I do not provide extended support for installing mods.
Title: Re: Easy Edit Meta Data
Post by: shadowravenhawk on March 29, 2008, 04:32:41 PM
There is no PHPMYADMIN. You cannot skirt responsibility here. You did this you are going to fix, EVEN IF I HAVE TO HIRE AN ATTORNEY AND SUE YOU.  You should take the mod down because it is clearly defective. Your instructions won't work with the same install.php page because it says that the keywords are PHP, forum, etc. Just tell me how do I exchange the install.php page that is there with the one that you said to edit. This is exactly what you say in your instructions so how do I do it?
Title: Re: Easy Edit Meta Data
Post by: karlbenson on March 29, 2008, 04:38:13 PM
I have tried to help you both in this topic and via PM. I provide support at MY discretion. I am NOT obligated to do so.
You have been nothing but demanding and rude.

I do not provide 1-2-1 intensive support.

This mod has been tested by myself, and by SMF staff. (aswell as countless other people on here)  It installs and uninstalls fine.  I even use it on my own forums.
I believe it is that you are incapable of doing this yourself which is why I suggested you find someone who is prepared to correct this for you (there are people who do this for free).

Best of luck with resolving your issue. But I'm no longer prepared to help you.
Title: Re: Easy Edit Meta Data
Post by: Jade Elizabeth on March 29, 2008, 04:48:36 PM
Shadowravenhawk, please follow the instructions Karlbenson gave you. You should have access to myphpadmin, especially if you have cpanel (type "controlpanel" in your url).

Threatening to sue people because the modification does not work, or messes up your forum is not really a good way to ask for help darls :(> Also, I believe somewhere there was a written disclaimer about modifications and SMF.

QuoteI didn't change the install.php page when I uploaded. I go some bad advice. Can I upload this now? If so how do I change this? Where is this mod located?

Here you state that you got some bad advice, what was it? If you, or someone else altered the modification in any way, or did not follow instructions set by the author, Karlbenson, then you cannot expect it to work, and Karlbenson is void of responsibility for the side effects of your tampering.
Title: Re: Easy Edit Meta Data
Post by: shadowravenhawk on March 30, 2008, 01:48:41 PM
The instructions say to make two edits but there is no way to replace that edited install.php with the one that is up there. I think it is rude to tell someone that something works and give instructions that completely screws up someone's forum.  And then when they ask you repeatedly for the proper instructions on how to do this you tell that you aren't responsible for the mod that you created and that you should hire somebody.
Title: Re: Easy Edit Meta Data
Post by: Jade Elizabeth on March 30, 2008, 01:53:55 PM
Quote from: shadowravenhawk on March 30, 2008, 01:48:41 PM
The instructions say to make two edits but there is no way to replace that edited install.php with the one that is up there. I think it is rude to tell someone that something works and give instructions that completely screws up someone's forum.  And then when they ask you repeatedly for the proper instructions on how to do this you tell that you aren't responsible for the mod that you created and that you should hire somebody.

You said you edited the file. You should ALWAYS backup files and perhaps even the database before installing modifications, just incase something messes up :(.

Quote from: karlbenson on March 29, 2008, 02:03:58 PM
If you doing it manually you will need to add the following variables to your smf_settings table via PHPMYADMIN.
(change smf_ to your forums prefix)

INSERT INTO smf_settings (`variable`, `value`) VALUES ('meta_description', '');
INSERT INTO smf_settings (`variable`, `value`) VALUES ('meta_keywords', '');
INSERT INTO smf_settings (`variable`, `value`) VALUES ('meta_author', '');
INSERT INTO smf_settings (`variable`, `value`) VALUES ('meta_copyright', '');

If you have no MYPHPADMIN then I honestly do not know what to say to you. Do you have database access?
Title: Re: Easy Edit Meta Data
Post by: shadowravenhawk on March 30, 2008, 03:46:03 PM
There is no MYPHPOADMIN under the ADMIN button. If so where is it? The meta tags are locked in the install.php page at: PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum'; The files do appear in the mod when I choose list files but there is no way to change the frozen code. Unless this page is replaced, there is no changing this. I cannot edit this page in the mod I tried. I followed his instructions to the letter and I am stuck with useless meta tags.
Title: Re: Easy Edit Meta Data
Post by: Jade Elizabeth on March 30, 2008, 03:58:49 PM
Quote from: shadowravenhawk on March 30, 2008, 03:46:03 PM
There is no MYPHPOADMIN under the ADMIN button. If so where is it? The meta tags are locked in the install.php page at: PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum'; The files do appear in the mod when I choose list files but there is no way to change the frozen code. Unless this page is replaced, there is no changing this. I cannot edit this page in the mod I tried. I followed his instructions to the letter and I am stuck with useless meta tags.

It's inside your websites control panel.
For the mostpart you can access this through putting /controlpanel in your web URL.
so www.url.com would be www.url.com/controlpanel :)

When you get there, select the SMF database and then click the "SQL" or "query" button and put the stuff Karl said to inside it and click run :).
Title: Re: Easy Edit Meta Data
Post by: shadowravenhawk on March 30, 2008, 05:24:44 PM
I can't do that on godaddy. When I enter in control panel it says page not found. There is a control panel for my site inside godaddy but it does nothing like you say. The only way is to replace the screwed up install.php with the one that he said to edit.
Title: Re: Easy Edit Meta Data
Post by: Jade Elizabeth on March 30, 2008, 05:32:21 PM
Quote from: shadowravenhawk on March 30, 2008, 05:24:44 PM
I can't do that on godaddy. When I enter in control panel it says page not found. There is a control panel for my site inside godaddy but it does nothing like you say. The only way is to replace the screwed up install.php with the one that he said to edit.

How do you FTP files?
How did you put SMF into the site?
Title: Re: Easy Edit Meta Data
Post by: shadowravenhawk on March 30, 2008, 09:53:57 PM
I have an FTP but I can't exchange the edited install.php for the one that is there. Where is it in the server?
Title: Re: Easy Edit Meta Data
Post by: Jade Elizabeth on March 30, 2008, 10:36:12 PM
Quote from: shadowravenhawk on March 30, 2008, 09:53:57 PM
I have an FTP but I can't exchange the edited install.php for the one that is there. Where is it in the server?

I told you where, did you try adding "controlpanel" to the URL?
If you do not know how to access it on your particular server perhaps you should contact your host? I know how to get to it on my host, I'm not familiar with others :(.
Title: Re: Easy Edit Meta Data
Post by: shadowravenhawk on March 30, 2008, 10:42:00 PM
There a control panel and all the files are listed. I've searched several times but I can't find out where the file is listed.
Title: Re: Easy Edit Meta Data
Post by: Jade Elizabeth on March 30, 2008, 10:49:57 PM
Quote from: shadowravenhawk on March 30, 2008, 10:42:00 PM
There a control panel and all the files are listed. I've searched several times but I can't find out where the file is listed.

You arent looking for a file. Myphpadmin is not a file, it's a program used for adding/removing/editing databases.
It should be on the front page of your control panel. Here is what mine looks like:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi29.tinypic.com%2F2us8ruv.jpg&hash=aeac6516bbafd0150e5d91b9d9f01ef722e85ccb)
Title: Re: Easy Edit Meta Data
Post by: shadowravenhawk on March 31, 2008, 01:54:57 PM
Thanks for all your help but I fixed the problem another way. I ripped the defective mod out and did the meta tags in index.template.php. It worked right of the bat. I don't think this defect mod works at all.
Title: Re: Easy Edit Meta Data
Post by: ccbtimewiz on March 31, 2008, 02:45:36 PM
Just because it didn't work in your server/forum environment doesn't mean the modification itself is a complete failure. It works for me fine.

Do note that most of the mod-writers in here aren't getting paid to make these modifications. They put in the little free time they have left from their daily lives to enhance the way we run our forums. Be a bit more respectful and understanding of what they can and can't do/fix.

Title: Re: Easy Edit Meta Data
Post by: Drover on April 15, 2008, 05:42:06 PM
Hello, I'm having a little trouble with the code replacement.  It keeps giving me an error.

QuoteParse error: syntax error, unexpected T_STRING, expecting ',' or ';' in index.template.php on line 72

Here's my original code:
// The main sub template above the content.
function template_main_above()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

   // Show right to left and the character set for ease of translating.
   echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
   <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
   <meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
   <meta name="robots" content="noindex" />', '
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
   <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "', $settings['theme_url'], '";
      var smf_images_url = "', $settings['images_url'], '";
      var smf_scripturl = "', $scripturl, '";
      var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
      var smf_charset = "', $context['character_set'], '";
   // ]]></script>
   <title>', $context['page_title'], '</title>';

   // The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
   echo '
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';

   /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
      Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
      Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
      Standards compliance mode happens when you use xhtml... */
   if ($context['browser']['needs_size_fix'])
      echo '
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';

   // Show all the relative links, such as help, search, contents, and the like.
   echo '
   <link rel="help" href="', $scripturl, '?action=help" target="_blank" />
   <link rel="search" href="' . $scripturl . '?action=search" />
   <link rel="contents" href="', $scripturl, '" />';

   // If RSS feeds are enabled, advertise the presence of one.
   if (!empty($modSettings['xmlnews_enable']))
      echo '
   <link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';

   // If we're viewing a topic, these should be the previous and next topics, respectively.
   if (!empty($context['current_topic']))
      echo '
   <link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
   <link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

   // If we're in a board, or a topic for that matter, the index will be the board's index.
   if (!empty($context['current_board']))
      echo '
   <link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

   // We'll have to use the cookie to remember the header...
   if ($context['user']['is_guest'])
      $options['collapse_header'] = !empty($_COOKIE['upshrink']);
// Output any remaining HTML headers. (from mods, maybe?)
   echo $context['html_headers'], '
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="' , $settings['theme_url'] , '/hfg.js"></script>
<![endif]-->';

   echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var myfontsize = ', empty($options['myfontsize']) ? '\'90\'' : '\'' . $options['myfontsize']. '\'' , ';
                function setfontsize(size)
                {';

        // Guests don't have theme options!!
        if ($context['user']['is_guest'])
                echo '
                        document.cookie = "upshrink=" + (mode ? 1 : 0);';
        else
                echo '
                        smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "', $context['session_id'], '");';
        echo '
                        document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("leftbarHeader").style.display = mode ? "none" : "";

                        current_leftbar = mode;
                }
          // ]]></script>
       <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_rightbar = ', empty($options['collapse_rightbar']) ? 'false' : 'true', ';

                function shrinkHeaderRightbar(mode)
                {';

        // Guests don't have theme options!!
        if ($context['user']['is_guest'])
                echo '
                        document.cookie = "upshrink=" + (mode ? 1 : 0);';
        else
                echo '
                        smf_setThemeOption("collapse_rightbar", mode ? 1 : 0, null, "', $context['session_id'], '");';

        echo '
                        document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("rightbarHeader").style.display = mode ? "none" : "";

                        current_rightbar = mode;
                }
        // ]]></script>

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';

      function shrinkHeader(mode)
      {';

   // Guests don't have theme options!!
   if ($context['user']['is_guest'])
      echo '
         document.cookie = "upshrink=" + (mode ? 1 : 0);';
   else
      echo '
         smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
         document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

         current_header = mode;
      }
   // ]]></script>';

   // the routine for the info center upshrink
   echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';

         function shrinkHeaderIC(mode)
         {';

   if ($context['user']['is_guest'])
      echo '
            document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
   else
      echo '
            smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
            document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

            current_header_ic = mode;
         }
      // ]]></script>
</head>
<body>
  <div id="boyutlar">
   <div id="yankenar">
    <div id="yankenar-l">
     <div id="header">
     <div id="userarea">';
   if ($context['user']['is_logged'])
   {
      echo '
                     <b>', $txt['hello_member_ndt'], ' ', $context['user']['name'], '</b><br />';

      // Only tell them about their messages if they can read their messages!
      if ($context['allow_pm'])
         echo $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'] , '.<br />';

      echo '
                        <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
                        <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

   }
   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   else
   {
      echo '           
      ', $txt['welcome_guest'], '
      <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
      <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
         <input type="text" name="user"  size="10" />
         <input type="password" name="passwrd"  size="10" />
         <input type="submit" value="', $txt[34], '" />
         <input type="hidden" name="hash_passwrd" value="" />
      </form>', $context['current_time'],'<br />';
   }

   echo '
   </div>
   <div id="arama">';
      echo '
                     <form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
                  <a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter1.png" align="middle" style="margin: 0 1ex;" alt="" /></a>
                  <input type="text" name="search" value="" style="width: 110px;" />&nbsp;
                  <input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
                  <input type="hidden" name="advanced" value="0" />';


       // Search within current topic?
         if (!empty($context['current_topic']))
          echo '
         <input type="hidden" name="topic" value="', $context['current_topic'], '" />';

       // If we're on a certain board, limit it to this board ;).
          elseif (!empty($context['current_board']))
          echo '
         <input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

   echo '
      </form>
   </div>
      <a href="'.$scripturl.'" title=""><span id="logo">&nbsp;</span></a>';
      echo '
   </div>
         <div id="menutaban">
      ',template_menu(),'
     </div>
     <div id="frmust">';


}


And the modified code:
// The main sub template above the content.
function template_main_above()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

   // Show right to left and the character set for ease of translating.
   echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
   <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
   ';
echo (!empty($modSettings['meta_description'])) ? ' <meta name="description" content="'. $modSettings['meta_description'] .'" />' : '<meta name="description" content="'. $context['page_title'] .'" />', empty($context['robot_no_index']) ? '' : '
   <meta name="robots" content="noindex" />', '
   ;
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 '
   <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>
   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var smf_theme_url = "', $settings['theme_url'], '";
      var smf_images_url = "', $settings['images_url'], '";
      var smf_scripturl = "', $scripturl, '";
      var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
      var smf_charset = "', $context['character_set'], '";
   // ]]></script>
   <title>', $context['page_title'], '</title>';

   // The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
   echo '
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?fin11" />
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';

   /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
      Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
      Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
      Standards compliance mode happens when you use xhtml... */
   if ($context['browser']['needs_size_fix'])
      echo '
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';

   // Show all the relative links, such as help, search, contents, and the like.
   echo '
   <link rel="help" href="', $scripturl, '?action=help" target="_blank" />
   <link rel="search" href="' . $scripturl . '?action=search" />
   <link rel="contents" href="', $scripturl, '" />';

   // If RSS feeds are enabled, advertise the presence of one.
   if (!empty($modSettings['xmlnews_enable']))
      echo '
   <link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';

   // If we're viewing a topic, these should be the previous and next topics, respectively.
   if (!empty($context['current_topic']))
      echo '
   <link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
   <link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';

   // If we're in a board, or a topic for that matter, the index will be the board's index.
   if (!empty($context['current_board']))
      echo '
   <link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

   // We'll have to use the cookie to remember the header...
   if ($context['user']['is_guest'])
      $options['collapse_header'] = !empty($_COOKIE['upshrink']);
// Output any remaining HTML headers. (from mods, maybe?)
   echo $context['html_headers'], '
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="' , $settings['theme_url'] , '/hfg.js"></script>
<![endif]-->';

   echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var myfontsize = ', empty($options['myfontsize']) ? '\'90\'' : '\'' . $options['myfontsize']. '\'' , ';
                function setfontsize(size)
                {';

        // Guests don't have theme options!!
        if ($context['user']['is_guest'])
                echo '
                        document.cookie = "upshrink=" + (mode ? 1 : 0);';
        else
                echo '
                        smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "', $context['session_id'], '");';
        echo '
                        document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("leftbarHeader").style.display = mode ? "none" : "";

                        current_leftbar = mode;
                }
          // ]]></script>
       <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_rightbar = ', empty($options['collapse_rightbar']) ? 'false' : 'true', ';

                function shrinkHeaderRightbar(mode)
                {';

        // Guests don't have theme options!!
        if ($context['user']['is_guest'])
                echo '
                        document.cookie = "upshrink=" + (mode ? 1 : 0);';
        else
                echo '
                        smf_setThemeOption("collapse_rightbar", mode ? 1 : 0, null, "', $context['session_id'], '");';

        echo '
                        document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("rightbarHeader").style.display = mode ? "none" : "";

                        current_rightbar = mode;
                }
        // ]]></script>

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';

      function shrinkHeader(mode)
      {';

   // Guests don't have theme options!!
   if ($context['user']['is_guest'])
      echo '
         document.cookie = "upshrink=" + (mode ? 1 : 0);';
   else
      echo '
         smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
         document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

         current_header = mode;
      }
   // ]]></script>';

   // the routine for the info center upshrink
   echo '
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
         var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';

         function shrinkHeaderIC(mode)
         {';

   if ($context['user']['is_guest'])
      echo '
            document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
   else
      echo '
            smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
            document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

            current_header_ic = mode;
         }
      // ]]></script>
</head>
<body>
  <div id="boyutlar">
   <div id="yankenar">
    <div id="yankenar-l">
     <div id="header">
     <div id="userarea">';
   if ($context['user']['is_logged'])
   {
      echo '
                     <b>', $txt['hello_member_ndt'], ' ', $context['user']['name'], '</b><br />';

      // Only tell them about their messages if they can read their messages!
      if ($context['allow_pm'])
         echo $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'] , '.<br />';

      echo '
                        <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
                        <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

   }
   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   else
   {
      echo '           
      ', $txt['welcome_guest'], '
      <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
      <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
         <input type="text" name="user"  size="10" />
         <input type="password" name="passwrd"  size="10" />
         <input type="submit" value="', $txt[34], '" />
         <input type="hidden" name="hash_passwrd" value="" />
      </form>', $context['current_time'],'<br />';
   }

   echo '
   </div>
   <div id="arama">';
      echo '
                     <form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">
                  <a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter1.png" align="middle" style="margin: 0 1ex;" alt="" /></a>
                  <input type="text" name="search" value="" style="width: 110px;" />&nbsp;
                  <input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
                  <input type="hidden" name="advanced" value="0" />';


       // Search within current topic?
         if (!empty($context['current_topic']))
          echo '
         <input type="hidden" name="topic" value="', $context['current_topic'], '" />';

       // If we're on a certain board, limit it to this board ;).
          elseif (!empty($context['current_board']))
          echo '
         <input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

   echo '
      </form>
   </div>
      <a href="'.$scripturl.'" title=""><span id="logo">&nbsp;</span></a>';
      echo '
   </div>
         <div id="menutaban">
      ',template_menu(),'
     </div>
     <div id="frmust">';


}


Any help is VERY much appreciated!  :D

Title: Re: Easy Edit Meta Data
Post by: karlbenson on April 15, 2008, 06:13:40 PM
Change
   <meta name="robots" content="noindex" />', '   
;

to
   <meta name="robots" content="noindex" />';
Title: Re: Easy Edit Meta Data
Post by: PrizeLive.com on April 21, 2008, 07:45:38 PM
It said the mod was installed successfully but there isn't a new tab in the features and options menu like the mod description stated.

I'm using version 1.1.4.
Title: Re: Easy Edit Meta Data
Post by: karlbenson on April 21, 2008, 07:47:32 PM
Are you using the SMF Default Core Theme?
if not you'll need to manually edit it onto the theme.
(use a package parser in the mod site or external one like http://www.adrevenueshare.com/parser )
Title: Re: Easy Edit Meta Data
Post by: PrizeLive.com on April 21, 2008, 07:48:00 PM
Yes I'm using the Default theme.
Title: Re: Easy Edit Meta Data
Post by: karlbenson on April 21, 2008, 07:54:37 PM
Use a package parser and check in the files that the edits were actually made.
If they were made -> Check error log to see if there are any errors.

If they weren't made -> Do the edits manually.
Title: Re: Easy Edit Meta Data
Post by: PrizeLive.com on April 21, 2008, 08:06:30 PM
Thanks, had to make the manual edits to get it to show up.

However, I edited the meta information and clicked Save, it went back to the page and it had the old info. How come the new changes didn't save?
Title: Re: Easy Edit Meta Data
Post by: PrizeLive.com on April 22, 2008, 09:56:10 AM
Does anyone know what I can do to make my edits be saved?

EDIT: It was my fault. I forgot a line from the manual edits.

Thanks for the great mod!
Title: Re: Easy Edit Meta Data
Post by: ekene on May 03, 2008, 02:25:41 PM
I guess this mod is very good, I had a test error when I tried to install it via the package area of the Admin.

But I did all the edit from the parser page, I can see the Meta button at the admin area under features and option.

But I feel I have not done something right, the install.php file can not run directly, when I click the link it says " Hack attempt",

The there is this instruction at the buttom of the parser page
----------------------------------------------------------------------------------------------------------------------
This file should not be able to execute standalone. You may have to run the following queries manually.


Query: [Select]
INSERT IGNORE
INTO {$db_prefix}settings (`variable`, `value`)
VALUES ('$key', '$value')
-------------------------------------------------------------------------------------------------------------------

Now here is where I got stucked, because I'm not familiar with Mysql, I tried to do what I feel I understood by the instruction, which is:

I copied this code:

Query: [Select]
INSERT IGNORE
INTO {$db_prefix}settings (`variable`, `value`)
VALUES ('$key', '$value')

and went to my database via myphpadmin,

I selected the SQL button

And where it says

Run SQL query/queries on database

I put this code:

Query: [Select]
INSERT IGNORE
INTO {$db_prefix}settings (`variable`, `value`)
VALUES ('$key', '$value')

then I click go,

the next page says there was an error. Here is the error--

Error
SQL query:

REPLACE
INTO {$db_prefix}settings(

`variable` ,
`value`
)
VALUES (
'$key', '$value'
)

MySQL said: 

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{$db_prefix}settings (`variable`, `value`)
VALUES ('$key', '$value')' at line 2


Please I need to know the exact thing to do with the code, as I guess I'm missing something. But remember that I can see the Meta button on the Admin area under the features and option.

Just incase I'm missing something please help me out.
Title: Re: Easy Edit Meta Data
Post by: karlbenson on May 03, 2008, 02:27:59 PM
That sql file isn't able to run standalone.
Title: Re: Easy Edit Meta Data
Post by: ekene on May 05, 2008, 06:07:50 AM
Quote from: karlbenson on May 03, 2008, 02:27:59 PM
That sql file isn't able to run standalone.

So how exactly do I run the query. Or do you think everything I got it right by just editing the files.
Title: Re: Easy Edit Meta Data
Post by: karlbenson on May 05, 2008, 12:55:54 PM
Its something I need to fix.

The only thing you can do is manually add the 4 settings to the smf_settings table in PHPMYADMIN.

Insert 4 variables with the name, the value can be left empty.
meta_description
meta_keywords
meta_author
meta_copyright
Title: Re: Easy Edit Meta Data
Post by: _Anthony_ on May 24, 2008, 03:12:00 AM
I do not understand what this does?
Title: Re: Easy Edit Meta Data
Post by: karlbenson on May 24, 2008, 12:03:25 PM
@Mr Money - Well its information in pages for spiders/bots providing some extra information about the page like a description/keywords.
@gordon7  - the <title> is already editable in smf. Thats why it was not included with the other meta information.
Admin > Server Settings > Forum title.

Title: Re: Easy Edit Meta Data
Post by: _Anthony_ on May 24, 2008, 12:18:58 PM
OH ok now I understand
Title: Re: Easy Edit Meta Data
Post by: neil h on May 27, 2008, 07:31:49 PM
This is what I love about your mods Karl; good stuff that works and most important of all - is useful!

Keep 'em coming!
Title: Re: Easy Edit Meta Data
Post by: karlbenson on May 27, 2008, 09:17:16 PM
This mod has now been taken over by JumpmasterRT
See the new version http://custom.simplemachines.org/mods/index.php?mod=1211

This topic/thread will be locked. Please direct any further queries over to the support topic for that mod.