Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: rsw686 on March 23, 2008, 09:36:45 PM

Title: vBulletin Style Meta Tags
Post by: rsw686 on March 23, 2008, 09:36:45 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1138)

Adds descriptive vBulletin style meta tags.

On the board index you have

Title: Forum Name - Index
Keywords: hard coded in template
Description: hard coded in template

On the message index you have

Title: Board Name - Forum Name
Keywords: Board Name, keywords hard coded in template
Description: Board Description

On the message display you have

Title: Topic Subject - Forum Name
Keywords: Topic Subject, keywords hard coded in template
Description: Topic Subject Board Name
Title: Re: vBulletin Style Meta Tags
Post by: Chopper on March 24, 2008, 09:11:39 AM
Didn't install for me  :(

Install Actions
Installations actions for "vBulletin Style Meta Tags":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/MessageIndex.php Test successful
2. Execute Modification ./Sources/Display.php Test successful
3. Execute Modification ./Themes/default/index.template.php Test failed  
 
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on March 24, 2008, 10:25:36 AM
Didn't install for me  :(

3. Execute Modification ./Themes/default/index.template.php Test failed  

If you changed up the meta tags on the template you can just copy paste the required changes from the package manager and replace those two lines in index.template.php
Title: Re: vBulletin Style Meta Tags
Post by: TEOC2 on March 24, 2008, 01:23:56 PM
Where are the settings for it?
Title: Re: vBulletin Style Meta Tags
Post by: karlbenson on March 24, 2008, 01:30:52 PM
TEOC2 there are no settings.

It does it automatically.

If you need to the do the edits manually you can use a package parser (http://www.adrevenueshare.com/parser) to provide you with the edits.
Title: Re: vBulletin Style Meta Tags
Post by: TEOC2 on March 24, 2008, 01:32:24 PM
Ah, ok, i was thinking its a similar mod to your "easy edit meta data".
Title: Re: vBulletin Style Meta Tags
Post by: Sincere on March 24, 2008, 02:19:26 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1138)

Adds descriptive vBulletin style meta tags.

On the board index you have

Title: Forum Name - Index
Keywords: hard coded in template
Description: hard coded in template

On the message index you have

Title: Board Name - Forum Name
Keywords: Board Name, keywords hard coded in template
Description: Board Description

On the message display you have

Title: Topic Subject - Forum Name
Keywords: Topic Subject, keywords hard coded in template
Description: Topic Subject Board Name

this, IMHO, must be part of the core of smf..... not a mod
Title: Re: vBulletin Style Meta Tags
Post by: Sincere on March 24, 2008, 03:13:17 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1138)

Adds descriptive vBulletin style meta tags.

On the board index you have

Title: Forum Name - Index
Keywords: hard coded in template
Description: hard coded in template

On the message index you have

Title: Board Name - Forum Name
Keywords: Board Name, keywords hard coded in template
Description: Board Description

On the message display you have

Title: Topic Subject - Forum Name
Keywords: Topic Subject, keywords hard coded in template
Description: Topic Subject Board Name

thank you rsw686

I found out something.... I don't know if it qualifies for you as a bug with the mod ..... but I would like to draw your attention to it.

IF the admin has used some html code in the description of a board, the resulting site description tag of the board page does not escape that html code, and thus, the board's description appears at the top of the page....

easy fix if you have this issue with your board : replace all the (") with escaped apostrophes, that is BackSlash apostrophe (\')

Title: Re: vBulletin Style Meta Tags
Post by: karlbenson on March 24, 2008, 03:14:44 PM
^ or he could use php function strip_tags first, then escape any remaining stuff like you said.
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on March 24, 2008, 03:33:12 PM
I'm not sure why you would have html code in a meta description tag. But sure you just do \" to escape the quote. This is PHP's design. If you enclosed text in " you must escape those inside same goes if you enclose text with '. I might in the future add an admin panel section to define the keywords and board description.
Title: Re: vBulletin Style Meta Tags
Post by: Sincere on March 24, 2008, 04:41:07 PM
I'm not sure why you would have html code in a meta description tag. But sure you just do \" to escape the quote. This is PHP's design. If you enclosed text in " you must escape those inside same goes if you enclose text with '. I might in the future add an admin panel section to define the keywords and board description.

:) easy lazy-boy way to include pic thumbs for each forum on the board index...... :)

Title: Re: vBulletin Style Meta Tags
Post by: Sincere on March 24, 2008, 04:41:50 PM
^ or he could use php function strip_tags first, then escape any remaining stuff like you said.

it would be great if the mod is adpated to do this.......  ;)

 
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on March 24, 2008, 04:43:27 PM
:) easy lazy-boy way to include pic thumbs for each forum on the board index...... :)

I didn't even think of that. Yep I'll fix that soon. Thanks!
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on March 27, 2008, 08:01:20 AM
I haven't forgotten about this, just been real busy. I'm actually working on improvements based on a forum with vBSEO installed.

I've also moved the hard coded keywords and description into the admin panel. This way they are easy to change. The end result will be

Title: Forum Name - Index
Keywords: your keywords
Description: your description

On the message index you have

Title: Board Name - Forum Name
Keywords: Board, Name, Board Name, your keywords
Description: Board Name - Board Description

On the message display you have

Title: Topic Subject - Forum Name
Keywords: Topic, Subject, Topic Subject, your keywords
Description: First 150 characters of post
Title: Re: vBulletin Style Meta Tags
Post by: Sincere on March 27, 2008, 08:13:35 AM
I haven't forgotten about this, just been real busy. I'm actually working on improvements based on a forum with vBSEO installed.

I've also moved the hard coded keywords and description into the admin panel. This way they are easy to change. The end result will be

Title: Forum Name - Index
Keywords: your keywords
Description: your description

On the message index you have

Title: Board Name - Forum Name
Keywords: Board, Name, Board Name, your keywords
Description: Board Name - Board Description

On the message display you have

Title: Topic Subject - Forum Name
Keywords: Topic, Subject, Topic Subject, your keywords
Description: First 150 characters of post

this sounds great. is the attachment in the first post the updated version?

Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on March 27, 2008, 09:02:12 AM
this sounds great. is the attachment in the first post the updated version?

No I stated I was working on it. It should be ready on Friday.
Title: Re: vBulletin Style Meta Tags
Post by: Sincere on March 27, 2008, 09:17:03 AM
this sounds great. is the attachment in the first post the updated version?

No I stated I was working on it. It should be ready on Friday.


thank you
kindly post again here when the updated mod is ready. I would be happy to provide feedback about how it worked for me.

Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on March 27, 2008, 12:26:28 PM
I just uploaded version 1.1. Here's the changes.

- Add section on admin interface to define default keywords and description
- Properly handle BBC, HTML, and quotes
- Use beginning of post for description on the message display
- Improve formatting of keywords
Title: Re: vBulletin Style Meta Tags
Post by: Sincere on March 27, 2008, 01:04:15 PM
I just uploaded version 1.1. Here's the changes.

- Add section on admin interface to define default keywords and description
- Properly handle BBC, HTML, and quotes
- Use beginning of post for description on the message display
- Improve formatting of keywords

thank you.

Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Install Actions
Installations actions for "vBulletin Style Meta Tags":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code dbmodify.php 
2. Extract File ./Sources/MetaTags.php 
3. Execute Modification ./Sources/MessageIndex.php Test successful
4. Execute Modification ./Sources/Display.php Test successful
5. Execute Modification ./Sources/ManageSettings.php File not found  
6. Execute Modification ./Themes/default/index.template.php Test failed
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
 
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on March 27, 2008, 01:23:07 PM
You must not be using SMF 2.0 as required by the mod. I guess you got lucky that version 1.0 of the mod worked. The database queries and admin integration are different with SMF 2.0.
Title: Re: vBulletin Style Meta Tags
Post by: msvdm on April 02, 2008, 03:41:09 PM
Hi  thanks for the MOD rsw686 but i have one problem i try to install this mod manual with the package parser and i did everything correct im sure after that i upload to the sources folder the file MetaTags.php  and put the dbmodify.php to the main folder but when i try to run the dbmodify.php i only get white page can you tell me why ?
 
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on April 02, 2008, 03:45:16 PM
dbmodify.php doesn't show any text. When you go into the forum admin panel under the modifications section it should show the meta tag keywords and description. The dbmodify script just inserts the SMF default values for the keywords and descriptions.
Title: Re: vBulletin Style Meta Tags
Post by: msvdm on April 02, 2008, 03:54:20 PM
ok thx  i find the meta tag description in the admin panel :) sorry for the stupid questions but you know some times when you do manual install you need to run file
Title: Re: vBulletin Style Meta Tags
Post by: Harvest on April 04, 2008, 07:48:31 AM
Does the 1.1 version support only SMF 2.0. I get a php fatal error from the dbmodify.php  file when I try to install it on 1.1.4.
Code: [Select]
Fatal error: Function name must be a string in forum/Packages/temp/dbmodify.php on line 15
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on April 04, 2008, 08:54:06 AM
Both versions were intended for SMF 2.0 Beta 3. It states this on the SMF Mod Site under Compatible With.
Title: Re: vBulletin Style Meta Tags
Post by: Nibogo on April 05, 2008, 08:11:10 PM
works with smf 1.1.4?
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on April 05, 2008, 08:33:28 PM
works with smf 1.1.4?

No it does not. I just stated above it was intended for 2.0. The database queries changed between the versions.
Title: Re: vBulletin Style Meta Tags
Post by: perro88 on April 11, 2008, 09:41:29 AM
hi mate, great mod. any intention of making this mod compatible with smf 1.1.4?
Title: Re: vBulletin Style Meta Tags
Post by: starz on April 18, 2008, 10:27:22 PM
ya would be great if this were adapted for 1.1.4.  :(
Title: Re: vBulletin Style Meta Tags
Post by: ALEJO on May 04, 2008, 12:54:32 AM
screens?
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on May 04, 2008, 08:51:46 AM
There are no screens to see. Well there are two text fields added in the admin panel -> modifications area to fill in the default keywords and description. Other than that the modifications are in the header of the page. You can visit the forum in my signature, right-click on various pages and view the source to see what the meta tags look like.
Title: Re: vBulletin Style Meta Tags
Post by: vhs on May 06, 2008, 07:05:21 AM
Any chance to adapt this great mod to 1.1.4/1.1.5 ?
Title: Re: vBulletin Style Meta Tags
Post by: mastmast on May 11, 2008, 07:57:25 PM
what is doing exactlly?
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on May 11, 2008, 08:09:15 PM
what is doing exactlly?

It makes the meta tags unique for each page. The mod page states exactly how it modifies them

http://custom.simplemachines.org/mods/index.php?mod=113
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on May 27, 2008, 01:59:10 PM
I have modified this mod for 1.1.5 and its working well on my forum. Gimme time to prepare installation.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on May 27, 2008, 03:29:01 PM
Mod for v1.1.x Forums,
I recompiled mod from beginning and I tested on 1.1.5, there is no error detected.
Installation file attached as below.

"rsw686"
*** I will be happy my nick included if you publish this mod.
*** I think its better to add random topic's subjects to the meta keywords when user browsing message index, not only user defined keywords.
Title: Re: vBulletin Style Meta Tags
Post by: Bancherd on May 28, 2008, 01:09:25 AM
Great!  Is it possible to remove the smileys without leaving the strange "?" symbol in the description?

 :)
Title: Re: vBulletin Style Meta Tags
Post by: Nibogo on June 10, 2008, 08:12:25 PM
Mod for v1.1.x Forums,
I recompiled mod from beginning and I tested on 1.1.5, there is no error detected.
Installation file attached as below.

"rsw686"
*** I will be happy my nick included if you publish this mod.
*** I think its better to add random topic's subjects to the meta keywords when user browsing message index, not only user defined keywords.

thanks a lot :)
Title: Re: vBulletin Style Meta Tags
Post by: Pspuser007 on June 16, 2008, 12:11:49 PM
Hello!

When i am trying to install this mod at my forum(smf 1.1.5,theme mystic jade,TP 0.9.8)
and i get this error:
(http://img369.imageshack.us/img369/6254/98702268rd0.png)

http://img369.imageshack.us/img369/6254/98702268rd0.png
What can i do??

Thank you for your time!
Title: Re: vBulletin Style Meta Tags
Post by: Nibogo on June 16, 2008, 08:16:07 PM
Hello!

When i am trying to install this mod at my forum(smf 1.1.5,theme mystic jade,TP 0.9. 8)
and i get this error:
(http://img369.imageshack.us/img369/6254/98702268rd0.png)

http://img369.imageshack.us/img369/6254/98702268rd0.png (http://img369.imageshack.us/img369/6254/98702268rd0.png)
What can i do??

Thank you for your time!

Is neccesary of you upload the file "Managesettings.php" to your Source Dir and edit the index.template of your theme
Title: Re: vBulletin Style Meta Tags
Post by: Harvest on June 17, 2008, 01:58:57 AM
Hello!

When i am trying to install this mod at my forum(smf 1.1.5,theme mystic jade,TP 0.9.8)
and i get this error:
(http://img369.imageshack.us/img369/6254/98702268rd0.png)

http://img369.imageshack.us/img369/6254/98702268rd0.png
What can i do??

Thank you for your time!

Just a doublecheck, did You upload the mod from the mod site or the one SONSiVRi attached?
Title: Re: vBulletin Style Meta Tags
Post by: Pspuser007 on June 17, 2008, 04:53:29 AM
From the mod site..

Should i uploaded the one that SONSiVRi attached?

Is neccesary of you upload the file "Managesettings.php" to your Source Dir and edit the index.template of your theme

Where to find Managesettings.php??
Title: Re: vBulletin Style Meta Tags
Post by: Harvest on June 17, 2008, 11:31:21 AM
As said many times before , the mod from the modsite supports only SMF 2.0 .  SONSiVRi ported it to work with 1.1.5 , so install his version, and You shouldn't experience any problems.


Quote
Where to find Managesettings.php??
AFAIK this file is 2.0 specific, so uploading it to 1.1.5 installation won't change a thing.
Title: Re: vBulletin Style Meta Tags
Post by: Pspuser007 on June 17, 2008, 05:19:14 PM
OK i installed it.

But i think i understood the meta tags wrong.
Can you give some information about what the meta tags are and what do they help with?
I have searched at google but i would like just a simple answer.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on June 21, 2008, 06:30:51 PM
OK i installed it.

But i think i understood the meta tags wrong.
Can you give some information about what the meta tags are and what do they help with?
I have searched at google but i would like just a simple answer.

meta tags are descriptor of your web page, that helps to search engines index your web pages properly.
SMF's meta tag management isn't enough and this mods increases it.
it collects some keywords in topics, messages... and writes them in meta tag area.
in summary: meta tag helps to get higher rank in search engines.
Title: Re: vBulletin Style Meta Tags
Post by: CraigPal on June 26, 2008, 05:33:44 PM
Mod for v1.1.x Forums,
I recompiled mod from beginning and I tested on 1.1.5, there is no error detected.
Installation file attached as below.

"rsw686"
*** I will be happy my nick included if you publish this mod.
*** I think its better to add random topic's subjects to the meta keywords when user browsing message index, not only user defined keywords.

Thanks for doing this! This should really be put in the mods list for those of us using 1.1.5 !! 
Title: Re: vBulletin Style Meta Tags
Post by: Bancherd on June 26, 2008, 06:27:16 PM
I put this to use(1.1.5), and within one week my post started to show up on google's search with the content of the post .. :D ..instead of the boiler-plate message "Please login...."  ::)

The only problem I have now is that I use utf8-encoding and there are occasional strange ? symbols after parsing.....related to the smilies and   which I have not been able to fix.  >:(   I think my problems could be related to the PHP's configuration(host uses 4.4.8?)....but no problems when I tried my codes on a local machines using XAMPP.  :( Could someone please help?  :D
Title: Re: vBulletin Style Meta Tags
Post by: CraigPal on June 26, 2008, 09:55:23 PM
I put this to use(1.1.5), and within one week my post started to show up on google's search with the content of the post .. :D ..instead of the boiler-plate message "Please login...."  ::)

The only problem I have now is that I use utf8-encoding and there are occasional strange ? symbols after parsing.....related to the smilies and   which I have not been able to fix.  >:(   I think my problems could be related to the PHP's configuration(host uses 4.4.8?)....but no problems when I tried my codes on a local machines using XAMPP.  :( Could someone please help?  :D

The smilies are little gif images. It shouldn't do any harm. The searcher is probably intelligent enough to figure out that the symbol stands for SOMETHING. It shouldn't have an effect on search engine results either. I wouldn't disable smilies because of it.

Parsing? I'm a noob. Does that mean the way it's layed out or displayed?

I never got the boiler plate message because I altered the original meta description, which ended up on every single page that was indexd! Google Webmaster tools let me know about it. Hence, my being here to get this mod - the adaptation to 1.1.5! from SONSiVRi !

Thank you both rsw686 SONSiVRi

Craig


__________________
Kubuntu Forums (http://kubuntuway.net/)
Title: Re: vBulletin Style Meta Tags
Post by: 58tbird on July 17, 2008, 02:27:41 AM
Mod for v1.1.x Forums,
I recompiled mod from beginning and I tested on 1.1.5, there is no error detected.
Installation file attached as below.

"rsw686"
*** I will be happy my nick included if you publish this mod.
*** I think its better to add random topic's subjects to the meta keywords when user browsing message index, not only user defined keywords.

I tried to install, but the test failed for this file: ./Themes/default/index.template.php

I have attached a list of the mod packages I have installed.  Any help you can provide will be greatly appreciated - thank you!
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on July 17, 2008, 09:22:32 PM
I tried to install, but the test failed for this file: ./Themes/default/index.template.php

I have attached a list of the mod packages I have installed.  Any help you can provide will be greatly appreciated - thank you!

Maybe the problem "4.    Easy Edit Meta Data    1.0 " mod.
vBulletin mod needs 2 pattern in ./Themes/default/index.template.php, so you need to manually edit it by yourself.
I dunno which mod changed the original, and you can lose that mod if you apply this one.
Title: Re: vBulletin Style Meta Tags
Post by: 58tbird on July 18, 2008, 12:07:59 AM
Thank you SONSiVRi - after parsing both mods, it appears they want to replace the same code in these two edits:

vBulletin Style Meta Tags (1.1) for v1.1.x forums:
Quote
In file $themedir/index.template.php
Find:
<meta name="description" content="', $context['page_title'], '" />

Replace with:
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />


Find:
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

Replace with:
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />

EASY EDIT META DATA V1.0:
Quote
In file $themedir/index.template.php
Find:
   <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'] .'" />


Find:

, '
   <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 '

I'm not experienced at working with code.  Is there a way I can manually edit this code so that the mods will be compatible?  Can I just add the code for this mod after the Easy Edit Meta Data code, or something?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on July 22, 2008, 07:27:35 PM
If you insist to apply subsequent mod (vBulletin Style Meta Tags), those 2 patterns wont be touched because "find" criteria doesnt match but the rest of "vBulletin Style Meta Tags" will be applied and it shown installed. After that you have to modify these patterns by yourself and make mod is running. To do that you need to download and edit "$themedir/index.template.php" by finding and replacing proper codes as you wrote above. But I think its the best way uninstall of "EASY EDIT META DATA". Because you dont need that one while you using "vBulletin Style Meta Tags". Both are working for same job and you only need one. I dunno what "EASY EDIT META DATA" mod does but I think "vBulletin Style Meta Tags" is automated version of it.
Title: Re: vBulletin Style Meta Tags
Post by: Dr Web on July 28, 2008, 10:50:37 AM
I've installed the SONSIVRI version of the MOD on my SMF 1.1.5 version forum, and it installed normally, but, the keywords that are installed by default are still there, mixed with the keywords that the MOD generates, however, my index.template.php was successfully changed by the code of the MOD, this is the entire code of my index.template.php file:

Code: [Select]
<?php
// Version: 1.1.5; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// 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="'
, !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="'
, !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' ''$modSettings['meta_keywords'], '" />
<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']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<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>'
;
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}



echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">'
;

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">'
$context['forum_name'], '</span>';
else
echo '
<img src="'
$settings['header_logo_url'], '" style="margin: 4px;" alt="'$context['forum_name'], '" />';

echo '
</td>


</tr>
</table>'
;


// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>'
;

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
</td>'
;

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' 
$context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>'
;

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
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 - send them a lovely greeting...
else
echo $txt['welcome_guest'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}

// --- Begin FlashChat Integration ---
// Do we need to display a list of the users in the chat?
// Are there users online?
if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
echo '
'
$txt['fc_users_online'], ': 'implode(', '$context['list_users_chat']), '<br />';
// --- End FlashChat Integration ---
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<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'], '" class="middletext" style="margin: 3px 1ex 1px 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" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</td>'
;
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '

</tr>
</table>
</td>
</tr>
</table>'
;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>'
$txt[102], '</b>: '$context['random_news_line'], '</span>
</td>'
;
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<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'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&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>
</td>
</tr>
</table>
</div>'
;


// Show the menu here, according to the menu sub template.
template_menu();
//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}




// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;


//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td></tr></table>'

unset($ads);
//Close table for towerleft ads
$ads show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'right' 'left''">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=3469240; 
var sc_invisible=1; 
var sc_partition=38; 
var sc_security="ee20bde0"; 
</script>

<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a href="http://www.statcounter.com/free_hit_counter.html" target="_blank"><img class="statcounter" src="http://c39.statcounter.com/3469240/0/ee20bde0/1/" alt="free web site hit counter" ></a></div></noscript>
<!-- End of StatCounter Code -->
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt$modSettings;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';

if ($context['current_action'] == 'paypal')
$current_action 'paypal';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

if ($context['current_action'] == 'chat')
$current_action 'chat';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'back' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'help' 'active_back' 'back' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'search' 'active_back' 'back' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'admin' 'active_back' 'back' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'profile' 'active_back' 'back' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'pm' 'active_back' 'back' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// FlashChat!
global $modSettings;
if ($context['user']['is_logged'])
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'chat' 'active_back' 'back' '">
<a href="'
$scripturl'?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' ''), '>'$txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' $context['num_chat'] . ' ' . ($context['num_chat'] == $txt['user'] : $txt['users']) . '</strong>]' ''), '</a>
</td>' 
$current_action == 'chat' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Paypal Mod
if (($modSettings['payPalEnable']) && (allowedTo('payPal_view')))
echo ($current_action == 'paypal' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'paypal' 'active_back' 'back' '">
<a href="'
$scripturl'?action=paypal">' $txt['payPal'] , '</a>
</td>' 
$current_action == 'paypal' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mlist' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mlist">' $txt[331] , '</a>
</td>' 
$current_action == 'mlist' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'login' 'active_back' 'back' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'register' 'active_back' 'back' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'logout' 'active_back' 'back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>

This is my forum URL: http://forums.drpennystock.com

If you see the source code of this URL, http://forums.drpennystock.com/general-discussion/ptsh-pts-inc-nasdaq-bb/, it's from a topic, you will see that the first 6 keywords are related with the topic, but, from "PHP" till "forum" the keywords are the default keywords, this is very annoying, can someone help me to solve this issue, please?

"PTSH, PTS, Inc, Nasdaq, BB, PTSH - PTS Inc. - Nasdaq BB, PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum"

Thanks

Problem solved, I just deleted the keywords in the "Basic Features".
Title: Re: vBulletin Style Meta Tags
Post by: Dr Web on July 30, 2008, 12:34:14 PM
How can I include the topic title in the description?

Right now the description is the first 55 characters of the message, what I want is the description begin with the title of the topic and only after that the first words of the message.

In a SEO perspective, the description is also very important, and, 99% of the time, the first words of a message has nothing to do with the topic.

Thanks
Title: Re: vBulletin Style Meta Tags
Post by: ForumMustang.com on July 31, 2008, 01:52:41 PM
I don't know if it's the best solution but this is what I did to add the topic title in the meta description.
 In index.template.php
Code: [Select]
<meta name="description" content="', $context['page_title'], ' - ', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
Title: Re: vBulletin Style Meta Tags
Post by: Dr Web on August 01, 2008, 12:27:30 PM
Many thanks, chadon, it worked.

I have one question that is not totally related with this mod, but, maybe you or someone can help me, look at this piece of code that I have on my index.template.php and tell me if this small piece of code is ok this way, look specially this code:
Code: [Select]
', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '

This code belongs to the default code that comes with smf, but, looks like it's not closed, can someone help me, please?

Thanks     



Code: [Select]
<meta name="description" content="', $context['page_title'], ' - ', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
Title: Re: vBulletin Style Meta Tags
Post by: ge master on August 01, 2008, 11:33:40 PM
This seems like the mod of my dreams, but please clear up the confusion. I'm running 1.1.5 and there was a post here with a mod that will let me use this mod. Confusing? Well, what happened to the mod of the mod? Seems like a large demand for a non 2.0 compatible version. Did the author edit that post with the attachment? I can't find any links, downloads, info elsewhere. This has turned into a confusing thread imo. The author needs to clear this up, or at least include the mod to his mod. Anyone?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on August 02, 2008, 06:45:04 AM
This seems like the mod of my dreams, but please clear up the confusion. I'm running 1.1.5 and there was a post here with a mod that will let me use this mod. Confusing? Well, what happened to the mod of the mod? Seems like a large demand for a non 2.0 compatible version. Did the author edit that post with the attachment? I can't find any links, downloads, info elsewhere. This has turned into a confusing thread imo. The author needs to clear this up, or at least include the mod to his mod. Anyone?

http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714


Many thanks, chadon, it worked.

I have one question that is not totally related with this mod, but, maybe you or someone can help me, look at this piece of code that I have on my index.template.php and tell me if this small piece of code is ok this way, look specially this code:
Code: [Select]
', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '

I checked with mine and it seems ok, there is no tag error in my forum when I validated with w3.org
Title: Re: vBulletin Style Meta Tags
Post by: Dr Web on August 02, 2008, 04:26:02 PM
Quote
I checked with mine and it seems ok, there is no tag error in my forum when I validated with w3.org

Many thanks SONSIVRI.
Title: Re: vBulletin Style Meta Tags
Post by: ge master on August 02, 2008, 10:39:50 PM
Okay just to update. In fact, if you are viewing this thread as a guest you will be quite confused. It seems guests cannot view or download attachments. So the 1.1.5 mod of this mod wasn't appearing in that post. Just a note to people who find themselves as confused as me.

Overall, I think this took about 3 minutes to implement. I'm like everyone else and using a different theme. Because of this, you simply can't just install the 1.1.5 mod and be done. You must go back to the original mod and view the manual instructions, and edit your template page (index.template.php) with two really simple pastes. I couldn't find the language file in my theme, but the changes made by the mod installation were fine as is.

I will post back to confirm the brilliance of this mod. If I don't post back, then my forums must really suck.

Also, to the person saying that this should be part of SMF and not a mod, I say forget that idea! Keep the regular n00b user in the dark. If everyone has this advantage then it isn't an advantage right? As it stands, I hope to have an advantage in the search engines thanks to this mod.

In closing, Sonsivri should press to have his mod of the mod included somewhere. Having it in this thread is hardly justice. I appreciate the original author, but to me seems a little stubborn as to not include 1.1.5. Thanks for your time everyone.
Title: Re: vBulletin Style Meta Tags
Post by: Chadrew on August 29, 2008, 07:18:04 PM
Thank you very much rsw686 for writing this plugin, and SONSiVRi for porting it to 1.1.5. You guys rock!  :D This is by far the best meta tag plugin for SMF that I've seen.

By the way, I'd like to remove the bold part in message index tags:

Quote
Board, Name, Board Name, your keywords

So I went to MetaTags.php and changed this:
Code: [Select]
function MetaTagsGenerateKeywords ($text)
{
$common_words = array('a', 'and', '&', 'at', 'as', 'for', 'it', 'in', 'of', 'on', 'or', 'quot', 'the', 'to', 'ir', 'bet', 'ne', 'taip');

$text = MetaTagsSpecialChars(str_replace(',', '', $text));

// Build array of the keywords without punctuation.
preg_match_all('/\w+/', $text, $keywords);

// Only one keyword, just return.
if(count($keywords[0]) == 1)
return $text;

// Remove any common words.
$i=0;
foreach($keywords[0] as $word)
{
if(in_array($word, $common_words))
unset($keywords[0][$i]);
$i++;
}

// Return the individual keywords along with the keyword string.
return implode(', ', $keywords[0]) . ', ' . $text;
}
To this:
Code: [Select]
function MetaTagsGenerateKeywords ($text)
{
$text = MetaTagsSpecialChars(str_replace(',', '', $text));
// Build array of the keywords without punctuation.
preg_match_all('/\w+/', $text, $keywords);
// Return the individual keywords along with the keyword string.
return $text;
}

I'm a php noob - everything seems to be working, but didn't I delete something needed?  :-\
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on September 02, 2008, 11:51:54 PM
This function (MetaTagsGenerateKeywords) is used in message index and message display keyword generations. So you are blocking message display as well as message index. Code side is ok.
Title: Re: vBulletin Style Meta Tags
Post by: Bancherd on September 09, 2008, 12:27:19 AM
This is a great mod, and I used a version for 1.1.6(that someone posted) on my live board.

Any news on update for smf2beta4public ?
Title: Re: vBulletin Style Meta Tags
Post by: EdwinK on September 11, 2008, 12:41:19 PM
@bancherd: Any change of you posting that 1.1.6 version?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on September 11, 2008, 01:11:31 PM
@bancherd: Any change of you posting that 1.1.6 version?

Its located on second page, I ported it.
Title: Re: vBulletin Style Meta Tags
Post by: brandonroy on September 12, 2008, 04:27:54 AM
I REALLY need this mod. I'm running SMF 1.1.6 and installed SONSiVRi's modified version, but there was an error in the installation for /Themes/default/index.template.php

I do not and have never had the easy edit meta mod installed on my forum.

Can I get some help?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on September 12, 2008, 05:52:24 AM
I REALLY need this mod. I'm running SMF 1.1.6 and installed SONSiVRi's modified version, but there was an error in the installation for /Themes/default/index.template.php

I do not and have never had the easy edit meta mod installed on my forum.

Can I get some help?

I could help but I need your current code.
Paste your codes between line numbers 60 and 80 in /Themes/default/index.template.php.
Title: Re: vBulletin Style Meta Tags
Post by: brandonroy on September 13, 2008, 12:27:43 AM
I could help but I need your current code.
Paste your codes between line numbers 60 and 80 in /Themes/default/index.template.php.

Here is the code from lines 60 - 80:

Code: [Select]
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="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
<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>';
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on September 13, 2008, 04:52:04 AM
brandonroy
Everything seems fine in index.template.php, required modifications were made as should be. It seems you tried the install this mod twice.
Title: Re: vBulletin Style Meta Tags
Post by: brandonroy on September 13, 2008, 06:04:21 AM
brandonroy
Everything seems fine in index.template.php, required modifications were made as should be. It seems you tried the install this mod twice.

Well I uninstalled it after it said not to go ahead with the install because of the installation error. So what should I do? Try to install it again?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on September 13, 2008, 04:49:16 PM
brandonroy
Everything seems fine in index.template.php, required modifications were made as should be. It seems you tried the install this mod twice.

Well I uninstalled it after it said not to go ahead with the install because of the installation error. So what should I do? Try to install it again?

Use the mod parser (http://www.adrevenueshare.com/parser) and check those moddifications are present on your files.
There is not much changings (5 or 6), just check each modification and be sure search condition are present.
If its not (like index.template.php), then search replaced text and make it original (mod file contains it) back.
I can be more specific if you cant handle.
Title: Re: vBulletin Style Meta Tags
Post by: brandonroy on September 13, 2008, 10:32:36 PM
brandonroy
Everything seems fine in index.template.php, required modifications were made as should be. It seems you tried the install this mod twice.

Well I uninstalled it after it said not to go ahead with the install because of the installation error. So what should I do? Try to install it again?

Use the mod parser (http://www.adrevenueshare.com/parser) and check those moddifications are present on your files.
There is not much changings (5 or 6), just check each modification and be sure search condition are present.
If its not (like index.template.php), then search replaced text and make it original (mod file contains it) back.
I can be more specific if you cant handle.

Awesome. I got it installed with no errors.
I had to make an edit on my custom theme. Now I'm trying to figure out what to do to make the meta description and meta keywords. I also don't want my forum name in the title of my forums. only on the homepage

EDIT: Ah, the options were hidden under basic features! Now I'm just working on taking the forum name out of all the boards except the homepage.

EDIT 2: All set and good to go. Thanks SONSiVRi for modding this mod! :)
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on September 14, 2008, 03:54:24 AM
you welcome.
Title: Re: vBulletin Style Meta Tags
Post by: Smitten on September 18, 2008, 05:52:18 AM
I have this problem.

Please help me. It seems serious. Need the database an upgrade? How do i this?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on September 18, 2008, 09:31:21 AM
It seems something wrong with your mod installation, the error happens if you dont have correct tables on your database.
But in our case its can't be, cause those are smf's tables already there.
I dunno how this problem solved, but you may check the mod installation of manual way.
Use this parser http://www.adrevenueshare.com/parser and make sure all modifications are done.
Btw I am talking about 1.1.6, if you are using 2.0 I dont know about it.
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on September 18, 2008, 12:08:02 PM
The issue is the mod was designed for 2.0 and will not work with 1.1.x.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on September 18, 2008, 02:49:20 PM
The issue is the mod was designed for 2.0 and will not work with 1.1.x.

Why it cannot work on 1.1.x versions?
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on September 18, 2008, 06:23:02 PM
The issue is the mod was designed for 2.0 and will not work with 1.1.x.

Why it cannot work on 1.1.x versions?

The way the database queries are made and the field names changed. Feel free to modify it to work with 1.1.x. All my mods were written specifically for my site. I am trying to give back to the community by sharing them. My time is limited so I really don't have the time to add features, make them work for other versions, etc.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on September 18, 2008, 09:41:16 PM
ohh I was thinking about some special things exist and doesnt fit on 1.1.x versions. Cuz I already ported your mod into 1.1.x versions and its working couple of months. members used the ported version are says its well working also.
Title: Re: vBulletin Style Meta Tags
Post by: Bancherd on September 19, 2008, 01:07:40 AM
ohh I was thinking about some special things exist and doesnt fit on 1.1.x versions. Cuz I already ported your mod into 1.1.x versions and its working couple of months. members used the ported version are says its well working also.

Yes, I am using the ported version on my live forum for many months without any problems.

I will certainly use the SMF2 version.  Is it compatible with smf2beta4public?  It is a VERY GOOD mod, thank you for sharing it.
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on September 19, 2008, 08:47:25 PM
I will certainly use the SMF2 version.  Is it compatible with smf2beta4public?  It is a VERY GOOD mod, thank you for sharing it.

If is compatible with 2.0 Beta 4, however you will need to manually modify your index.template.php file. Due to the theme changes it doesn't automatically apply. Although it is a quick fix.
Title: Re: vBulletin Style Meta Tags
Post by: Bancherd on September 20, 2008, 12:41:55 PM
I will certainly use the SMF2 version.  Is it compatible with smf2beta4public?  It is a VERY GOOD mod, thank you for sharing it.

If is compatible with 2.0 Beta 4, however you will need to manually modify your index.template.php file. Due to the theme changes it doesn't automatically apply. Although it is a quick fix.

Thanks. :)
Title: Re: vBulletin Style Meta Tags
Post by: ryozo on September 23, 2008, 05:23:58 PM
thanks for 1.1.X
it installed perfectly on 1.1.6
Title: Re: vBulletin Style Meta Tags
Post by: argimiro on September 24, 2008, 02:52:09 AM
many thanks rsw686 & thanks SONSiVRi for the port

installs & works well, both the original on SMF 2.0 beta 4 & the ported version on 1.1.6 here 



For those using Ericsworld's E-Arcade mod, I noticed that this mod doesn't know about the arcade, so description and keywords are not altered on the play screens for each game

more accurately it's the arcade that doesn't know about the mod..

To rectify this is fairly simple:

Open up /Sources/ArcadePlay.php

Inside you will find function ArcadePlay()

Somewhere inside that function, include code to generate your arcade description and arcade keywords.

I added my code right below the following E-Arcade code:

Code: [Select]
// Generate html-code for game
if ($game['gameType'] == 0)
$context['arcade']['game']['html'] = ArcadeFlashHtml($game, true, $message);

My simple 'hardcoded' test example was to simply add:

Code: [Select]
$context['meta_keywords']          = "keywords, inside, arcade, play, screen";
$context['meta_description']        = "Arcade play screen with modified meta info";

You can make the code as complicated as you want to generate whatever meta strings required, so long as those strings end up in the $context array as above. If those 2 meta_* variables above are present & set, they will be echoed out.

I ended up with the full code:

Code: [Select]
// Generate html-code for game
if ($game['gameType'] == 0)
$context['arcade']['game']['html'] = ArcadeFlashHtml($game, true, $message);

// meta description and keywords for the arcade game play screens
$context['meta_keywords'] = $game['name'];
$context['meta_description'] = "Play " . $game['name'] . " at " . $context['forum_name'];

I guess a similar approach would work for other areas of the arcade such as games list / category screens etc; just edit the relevant arcade functions inside the relevant arcade /Sources/ files.

This 'mod of a mod' was tried on 1.1.6 - haven't tried it on smf 2.0 but something similar should be possible


Not too sure if the place where I've put the code, might mean my code would only work for flash games.. should be okay with a blank line in there to keep it away from that if-statement but somebody better at coding might want to comment on that. I only know odds and ends of php 




----------



for arcade category listing pages, could try something like the following at the very bottom of function ArcadeList() in file Sources/ArcadeList.php:

replace the very last line of the function:

Code: [Select]
$context['page_title'] = $txt['arcade_game_list'];

with code something like:

Code: [Select]
if  (isset($category))

    {

    $catname_fortags = db_query("
SELECT catName
FROM {$db_prefix}arcade_categories
WHERE ID_CAT=$category", __FILE__, __LINE__);

    $catname_fortags_fetched_array = mysql_fetch_assoc($catname_fortags);
    $catname_fortags_fetched = preg_replace("/[^a-z0-9]/i", " ", $catname_fortags_fetched_array['catName']);
    $context['page_title'] = $context['forum_name'] . " flash games arcade: " . $catname_fortags_fetched . " category";
    $context['meta_description'] = "Flash games category: " . $catname_fortags_fetched . " at " . $context['forum_name'];
    $context['meta_keywords'] = $catname_fortags_fetched;

    }

    else

    {

    $context['page_title'] = $txt['arcade_game_list'];

    }

I know, that doesn't use the language system properly & it's probably buggy as hell to boot as-is, just posting it as 'demo'.

there should probably be a few mysql_free_result()'s in there somewhere
Title: Re: vBulletin Style Meta Tags
Post by: Frozt on October 04, 2008, 02:27:31 PM
For install in SMF 2.0 Beta 4 I have this in index.template.php:

Code: [Select]
<meta name="description" content="', $context['page_title_html_safe'], '" />
<meta name="keywords" content="', $context['meta_keywords'], '" />

instead the lines that have to find the mod for install:

Code: [Select]
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

its correct if I change that lines for or need to modify it to the version 2.0 Beta 4?:

Code: [Select]
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />


is the only file that fail in the installation
Title: Re: vBulletin Style Meta Tags
Post by: Hoochie Coochie Man on October 18, 2008, 07:10:09 AM
Thank you very much for this beautiful mod @rsw686
and thank you very much for converting @SONSiVRi
it is working :)
Title: Re: vBulletin Style Meta Tags
Post by: CraigPal on October 24, 2008, 01:56:04 AM
There doesn't seem to be an uninstaller with the 1.x hack. Will this present a problem when trying to upgrade to 2.0?

________________
Raw Paleolithic Diet (http://www.rawpaleodiet.com)
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on October 24, 2008, 11:39:12 AM
There doesn't seem to be an uninstaller with the 1.x hack. Will this present a problem when trying to upgrade to 2.0?

I didnt try uninstaller but I dont think there will be problem while uninstalling.
Title: Re: vBulletin Style Meta Tags
Post by: worker on October 26, 2008, 11:25:19 AM
hi i want to install your mod on my smf 1.1.6 version is it posible and if it is ple explain how :)
thx.
Title: Re: vBulletin Style Meta Tags
Post by: Nibogo on October 26, 2008, 01:23:43 PM
hi i want to install your mod on my smf 1.1.6 version is it posible and if it is ple explain how :)
thx.

http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714
Title: Re: vBulletin Style Meta Tags
Post by: nay27uk on November 18, 2008, 07:52:00 AM
the installer trows up an eror for ManageSettings.php not found, i dont have a ManageSettings.php
i redownloaded a new compleate zip of SMF 1.1.7 just to sheck and its not in the original SMF package either.
What should i do
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on November 18, 2008, 08:07:11 AM
the installer trows up an eror for ManageSettings.php not found, i dont have a ManageSettings.php
i redownloaded a new compleate zip of SMF 1.1.7 just to sheck and its not in the original SMF package either.
What should i do

Read the above posts for more information.
Title: Re: vBulletin Style Meta Tags
Post by: ivo2296 on December 08, 2008, 02:02:52 PM
Does the mod reverse the modified database when uninstalled?
Title: Re: vBulletin Style Meta Tags
Post by: rsw686 on December 08, 2008, 07:40:32 PM
Does the mod reverse the modified database when uninstalled?

No but you can remove the two values (meta_description, meta_keywords) manually from the settings table. It leaves these values so you don't have to re-enter the data when upgrading.
Title: Re: vBulletin Style Meta Tags
Post by: ivo2296 on December 08, 2008, 08:25:45 PM
Does the mod reverse the modified database when uninstalled?

No but you can remove the two values (meta_description, meta_keywords) manually from the settings table. It leaves these values so you don't have to re-enter the data when upgrading.

Thanks!!!
Title: Re: vBulletin Style Meta Tags
Post by: question on December 20, 2008, 01:55:04 PM
for version 1.1.7 the mod's mod by SONSiVRi
won't work .

when i clicked on a topic it has displayed a message that i have a 1.1.6 sql structure while the software is 1.1.7 and i need to update sql to fix it .

while the sql is the sql of the 1.1.7 version but was modified by the dbmodify.php file ,

i would really want to install this mod or at least do changes that allow the script to do what it does.

can anyone help me with the 1.1.7 installation
or
at least tell me how to get the mod's result.. using  manual editing  .

thanks for the help guys  ;D
Title: Re: vBulletin Style Meta Tags
Post by: question on December 21, 2008, 05:00:32 PM
any help please ?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on December 22, 2008, 02:13:14 PM
any help please ?
For the record its not my mod, I only ported it.
Give here your screenshot of error (while topic display), and also copy from error description in "error log" too.
Title: Re: vBulletin Style Meta Tags
Post by: question on December 22, 2008, 09:14:00 PM
For the record its not my mod, I only ported it.

i know i have read all the topic all the 5 pages trying to find a solution :)
thank you for porting it .

here's the errors i get , including the error log

Code: [Select]
errors occur when :
a- click on category:

Fatal error: require_once() [function.require]: Failed opening required '/MetaTags.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user/public_html/site/forum/Sources/MessageIndex.php on line 163

b- click on topic:

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 'LIMIT 1' at line 4
File: /home/user/public_html/site/forum/Sources/MetaTags.php
Line: 45

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.


error log:

2: require_once(/MetaTags.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory
File: /home/user/public_html/site/forum/Sources/MessageIndex.php
Line: 163

Title: Re: vBulletin Style Meta Tags
Post by: question on December 24, 2008, 10:04:36 PM
any idea ?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on December 25, 2008, 04:49:35 AM
any idea ?

A- Seems you don't have $sourcedir defined. Check your MessageIndex.php
Code: [Select]
function MessageIndex()
{
global $sourcedir;
If there is no $sourcedir, your installation isn't completed as should be. You need to check all modifications by yourself and correct missing ones.

B- I am not sure but your SQL error provided by $id_msg if null.
Title: Re: vBulletin Style Meta Tags
Post by: ccraciun on December 25, 2008, 05:31:26 PM
Please tell if it's working well with 1.1.7.
I am very interested in using this mod with my forum, but i'll give it a try if at least someone would tell that he succeeded... thanks a lot!
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on December 26, 2008, 01:07:51 PM
Please tell if it's working well with 1.1.7.
I am very interested in using this mod with my forum, but i'll give it a try if at least someone would tell that he succeeded... thanks a lot!

Its working on my 1.1.7 perfectly. First backup, then hit try.
Title: Re: vBulletin Style Meta Tags
Post by: ccraciun on December 28, 2008, 06:18:05 PM
Please tell if it's working well with 1.1.7.
I am very interested in using this mod with my forum, but i'll give it a try if at least someone would tell that he succeeded... thanks a lot!

Its working on my 1.1.7 perfectly. First backup, then hit try.
I tried to installed it, but it gives me the following error; i didn't continued... any ideas?
I use 1.1.7, with the mods shown in attachement installed.
Thanks!
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on December 29, 2008, 04:47:35 PM
I tried to installed it, but it gives me the following error; i didn't continued... any ideas?
I use 1.1.7, with the mods shown in attachement installed.
Thanks!
You are using wrong file. You downloaded for smf 2.x, I ported it to smf 1.1.x versions. Its not officially release, I just made it myself. Here is link: http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714
Title: Re: vBulletin Style Meta Tags
Post by: ccraciun on December 30, 2008, 05:20:51 AM
I tried to installed it, but it gives me the following error; i didn't continued... any ideas?
I use 1.1.7, with the mods shown in attachement installed.
Thanks!
You are using wrong file. You downloaded for smf 2.x, I ported it to smf 1.1.x versions. Its not officially release, I just made it myself. Here is link: http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714
Ahh.. thank you very much SONSiVRi! I was in the rush of quickly installing this great mod and didn't pay attention to details...  ;)

I noticed that the mod is modifying only the default theme; for those like me that are using other themes, the lines between 60 and 80 must be replaced manually with the content of index.template.php from the default template. I guess it's enough to make the mod work correctly, am i right? Please confirm.
I mean i noticed the presence of expected description and keywords meta tags in the source, but i want to be sure that is the only modification needed.

And as probably expected, a few more questions/advices:
1. I noticed that in the source, inside the description meta tag, i have &quot;example&quot; instead of "example" as originally posted in the message; this may be a issue for crawlers to correctly understand the quoted words in the description and/or keyword tags?
2. I have an issue with the diacritics; same as mentioned in the above question i noticed the appearence of tot ce a&#355;i v&#259;zut instead of tot ce aţi văzut; what would be recommended about that?
3. I would rather prefer the meta description tag to include the content of the title tag, because i consider it to be more descriptive than using the first words of the message.
For this, i replaced:
Code: [Select]
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />', empty($context['robot_no_index']) ? '' : 'with
Code: [Select]
<meta name="description" content="', $context['page_title'], ' - ', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />', empty($context['robot_no_index']) ? '' : 'as mentioned here (http://www.simplemachines.org/community/index.php?topic=230321.msg1639665#msg1639665).
What is your opinion about that?
And by the way: what is the purpose of the following line
Code: [Select]
', empty($context['robot_no_index']) ? '' : '
Please excuse my long message, i hope i am not bothering with all my specific issues, but any help would be highly appreciated.

Later edit: for question #1: I believe that is normal that &quot; to replace " in the source, due to the fact that all the content of the meta tag is already quoted as php code; if this is so, please ignore that question. I am newbie also at php coding.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on December 30, 2008, 02:00:07 PM
"ccraciun"
While installing, you need to edit custom theme index.template.php. You can test it while viewing the meta tags in your browser.
I can't answer your 1 2 3, I have no clear ideas about them.
You were asking "what is the purpose of the following line": that condition is for adding "no-follow" meta tag. Which is prevents search engines crawls duplicated pages (print, archieve, wap...). Value is set when those pages are viewing.
Title: Re: vBulletin Style Meta Tags
Post by: ccraciun on December 31, 2008, 05:00:15 AM
"ccraciun"
While installing, you need to edit custom theme index.template.php. You can test it while viewing the meta tags in your browser.
I can't answer your 1 2 3, I have no clear ideas about them.
You were asking "what is the purpose of the following line": that condition is for adding "no-follow" meta tag. Which is prevents search engines crawls duplicated pages (print, archieve, wap...). Value is set when those pages are viewing.
Ok, then it seems that the mod is perfectly working for me!
Cool line :) ... i was worried about the duplicated pages and without knowing this feature, i used Disallow: /*?action* line in robots.txt which gave me other big problems like not allowing google to see my sitemap, or gallery.  >:(
I understand that i can remove the "problem line" from robots.txt, and let only your mod do the job? This is great...
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on December 31, 2008, 05:32:59 AM
"ccraciun"
I am actively using robots.txt. Its having critical function. That meta tag isn't supported most of times, sometimes search engines still can crawl your pages and double indexing results to lowering your pagerank. I am attaching my robots file, you can take a look. Also check your website by using "site:www.smf.com" keyword, and you can see double indexes there (www.site.com/forum/index.php?topic=1234.0;prev_next=next#new and www.site.com/forum/index.php?topic=1234.0). Also you can see entry of SMF sitemap mod in robots file (http://custom.simplemachines.org/mods/index.php?mod=755). Its perfectly working and I have indexed %90 of my forum in google (without double pages). But of course this doesn't mean I have higher pagerank, its around 2-3 I remember last.
Title: Re: vBulletin Style Meta Tags
Post by: ccraciun on December 31, 2008, 11:29:25 AM
...
Many thanks for the valuable information!
... and Happy new year everyone!  :D
Title: Re: vBulletin Style Meta Tags
Post by: Dr Web on January 02, 2009, 05:25:26 PM
I installed this mod on my smf 2.0 b4 forum and it created a place to add Meta Description and Meta Keywords in Home ->Admin->Modifications->Miscellaneous, but, the 2.0 b4 version already have a place to insert keywords in Home->Admin->Features and Options->Layout, I have a problem, every time I insert a keyword on any of the places to insert keywords, it duplicates that keyword.

To solve the problem I want to delete the "Meta Keywords associated with the forum" feature on Home->Admin->Features and Options->Layout.

What is the piece of code that I need to delete and what is the file to delete it?

Thanks for any help, appreciated.
Title: Re: vBulletin Style Meta Tags
Post by: Dr Web on January 06, 2009, 05:16:45 PM
Bump

Any help to solve the problem on my post above much appreciated.
Title: Re: vBulletin Style Meta Tags
Post by: studentforums on January 22, 2009, 06:41:54 AM
How would I edite this mod to work with smf 1.1.6?
Title: Re: vBulletin Style Meta Tags
Post by: studentforums on January 22, 2009, 06:57:17 AM
I tried to install this mod, that someone edited for 1.1.x, for version 1.1.6 but got this error
Install Actions
Installations actions for "vBulletin Style Meta Tags":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    dbmodify.php    
2.    Extract File    ./Sources/MetaTags.php    
3.    Execute Modification    install.xml    Modification parse error
4.    Execute Modification    -    Modification parse error

Any offers?
Title: Re: vBulletin Style Meta Tags
Post by: Bancherd on January 22, 2009, 07:01:25 AM
I guess you could try to manually install the mod for 1.1.6, the edits are not that extensive.
Title: Re: vBulletin Style Meta Tags
Post by: studentforums on January 22, 2009, 07:10:33 AM
That could be tricky. It wouldn't be the first time I've brought the whole thing down trying to do it myself.
Title: Re: vBulletin Style Meta Tags
Post by: ForumMustang.com on January 22, 2009, 07:15:21 AM
If you do a back up of all the files you have to edit, it will only take a few seconds to restore everything.
It would also be a good idea to upgrade your forum to the latest version :)
Title: Re: vBulletin Style Meta Tags
Post by: studentforums on January 22, 2009, 07:19:03 AM
I did think about upgrading but not all the installed packages I have are compatible with the latest version.
Title: Re: vBulletin Style Meta Tags
Post by: studentforums on January 22, 2009, 08:41:14 AM
OK Now I have tried to install manually by editing the relevant files, and failed.

I really need some help. Anyone?
Title: Re: vBulletin Style Meta Tags
Post by: hartiberlin on January 24, 2009, 04:49:50 PM
I installed this mod on my smf 2.0 b4 forum and it created a place to add Meta Description and Meta Keywords in Home ->Admin->Modifications->Miscellaneous, but, the 2.0 b4 version already have a place to insert keywords in Home->Admin->Features and Options->Layout, I have a problem, every time I insert a keyword on any of the places to insert keywords, it duplicates that keyword.

To solve the problem I want to delete the "Meta Keywords associated with the forum" feature on Home->Admin->Features and Options->Layout.

What is the piece of code that I need to delete and what is the file to delete it?

Thanks for any help, appreciated.

You are right, there is already an option to set this under
Home->Admin->Features and Options->Layout
in the 2.0B4 version...

So what is the difference, when I would install this MOD ?

Why is a good Meta tag option not yet included in 2.0B4 standard installation ?
Title: Re: vBulletin Style Meta Tags
Post by: Bancherd on January 24, 2009, 06:53:11 PM
Quote
So what is the difference, when I would install this MOD ?

Among other things, this mod generates keywords for your particular topic.

Unfortunately, I have to disable this feature because it does not work for Thai-language(I am working on it though  ;D ).
Title: Re: vBulletin Style Meta Tags
Post by: hartiberlin on January 24, 2009, 07:13:24 PM


Among other things, this mod generates keywords for your particular topic.



So how does it do it ?

Does it grab some keywords out of the posted text somehow and then inserts
these into the Meta tags ?

How does it find these keywords ?

2. Is it now fully compatible with SMF 2.0B4 with the default theme
or when will it be ?
Title: Re: vBulletin Style Meta Tags
Post by: 58tbird on January 26, 2009, 11:27:21 PM
If you insist to apply subsequent mod (vBulletin Style Meta Tags), those 2 patterns wont be touched because "find" criteria doesnt match but the rest of "vBulletin Style Meta Tags" will be applied and it shown installed. After that you have to modify these patterns by yourself and make mod is running. To do that you need to download and edit "$themedir/index.template.php" by finding and replacing proper codes as you wrote above. But I think its the best way uninstall of "EASY EDIT META DATA". Because you dont need that one while you using "vBulletin Style Meta Tags". Both are working for same job and you only need one. I dunno what "EASY EDIT META DATA" mod does but I think "vBulletin Style Meta Tags" is automated version of it.
Sorry SONSiVRi - I had trouble uninstalling the Easy Edit Meta Data mod because it failed the test for the ModSettings.php and Help.english.php files (all others were successful). Anyway, I ran out of time back then and then got on to other things, but now I'd like to try to complete the process of uninstalling it so I can install your version of the vBulletin Style Meta Tags mod for 1.1.7.

Do you have any idea why I am failing those tests?  A conflict, I suppose, with another mod:
Quote
1. Profile_Visitors 4.0   
2. Page Number 2.0   
3. Registered Links 1.0   
4. Select All And Copy Code To Clipboard 1.2   
5. Auto Embed Video/Audio Clips 3.1.2   
6. Easy Edit Meta Data 1.0   
7. nwsw.nwswAdminAttachAnything 1.1 RC3   
8. Custom BBCode 2.00   
9. Registration - Show Gender mod 1.0.0   
10. Website Button 1.1.4  [ Apply Mod ]
11. FavIcon 1.1   
12. Unique Hit Counter 1.0   
13. SMF 1.0.14 / 1.1.6 Update 1.0     
14. Reason For Editing Mod 1.14   
15. BoardHover Mod 1.1.0   
16. Custom Profile Field Mod 3.17   
17. Bookmarks 1.1   
18. vBulletin Style Meta Tags 1.1  [ Apply Mod ]   
19. AdSense Section Targeting Mod 1.0   
20. Related Topics 1.2.0   
21. Ad Managment 2.3   
22. Search Topic 1.01   
23. URL Popup 1.0   
24. Wrap Text Around Image 1.0   
25. Member Notepad 1.0   
26. Admin member list registration date 1.0   
27. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0     
28. Custom Action Mod 2.04   
29. SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0     
30. Gender on Memberlist 1.0  [ Apply Mod ]   
31. Enhance Recent Post 1.0   
32. Social Bookmarks 1.1   
33. NO Right Click 1.0   
34. Image Thumbnail BBCode 1.0   
35. Expand Pages Mod 1.0   
36. SMF 1.1.4 Search "brd" Bug Fix (1.0.1) 1.0.1   
37. Ellow yellow christmas edition smiley set 1.1   
38. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0     
39. Attachment Notice 1.0   
40. SMF Sitemap 1.2.2   
41. SMF 1.0.15 / 1.1.7 Update 1.0   
42. Previous and Next Links for Page Index 1.0   
43. Avatar on Member List 1.0  [ Apply Mod ]   
44. Location on Member List 1.0   
45. Users Online Today Mod 1.4.0   
46. AvatarOnBoard 2.0  [ Apply Mod ]   
47. Enhanced Password Reminder 1.0   
48. EmailFlash 2.0     

I'm hoping that by uninstalling Easy Edit Meta Data and instaling your vBulletin Style Meta Tags mod, it will help take care of what Google Diagnostics is telling me:
[1] I have 13 pages with duplicate meta descriptions (it shows the description I entered using the Easy Edit Meta Data mod)
[2] I have 2 pages with duplicate title tags
[3] I have 2 HTTP errors

I don't understand all this, except that it affects my page ranking &/or SEO.  I would like to optimize my page ranking and SE results because I am virtually invisible right now to Google.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on January 27, 2009, 05:43:39 AM
"58tbird"
For uninstalling mod; you can unintall even it says there is mismatch. Only mismatch ones left untouched, and rest of wiped out while uninstalling. Then all you need to is; manually uninstall left code parts. You can check those by unpacking mod (archieve) file and looking correct lines in install.xml. You didn't wrote (or I couldn't see) which meta mod is yours, overtaken or original (there are two)? I presume you used original (http://custom.simplemachines.org/mods/index.php?mod=761) one. So in your case those two modifications are;

Code: [Select]
<file name="$sourcedir/ModSettings.php">

<!-- -->
<operation>
<search position="before"><![CDATA[ require_once($sourcedir . '/ManageServer.php');

$subActions = array(
'basic' => 'ModifyBasicSettings',]]></search>
<add><![CDATA[
'meta' => 'ModifyMetaSettings',
]]></add>
</operation>
<!--  -->
<operation>
<search position="before"><![CDATA[ $context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',]]></search>
<add><![CDATA[
'meta' => 'ModifyMetaSettings',
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ 'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl . '?action=featuresettings;sa=basic;sesc=' . $context['session_id'],
),]]></search>
<add><![CDATA[ 'meta' => array(
'title' => $txt['mods_cat_meta'],
'href' => $scripturl . '?action=featuresettings;sa=meta;sesc=' . $context['session_id'],
),
]]></add>
</operation>
<!--  -->
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Function to load template/modify meta settings
function ModifyMetaSettings()
{
global $context, $txt, $scripturl, $modSettings, $db_prefix, $helptxt;

$config_vars = array(
array('large_text', 'meta_description', '5', &$txt['meta_description'], 'meta_description'),
array('large_text', 'meta_keywords', '5', &$txt['meta_keywords'], 'meta_keywords'),
array('text', 'meta_author', '40', &$txt['meta_author'], 'meta_author'),
array('text', 'meta_copyright', '40', &$txt['meta_copyright'], 'meta_copyright'),
);

// Saving?
if (isset($_GET['save']))
{

saveDBSettings($config_vars);
writeLog();

redirectexit('action=featuresettings;sa=meta');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=meta';
$context['settings_title'] = $txt['meta_mod'];

prepareDBSettingContext($config_vars);

}
]]></add>
</operation>
</file>

Code: [Select]
<file name="$languagedir/Help.english.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$helptxt['meta_description'] = 'You can enter a description of your board.  If you leave it blank, your page title will appear in the description. <br/> It is recommended to keep it to less than 200 characters.';
$helptxt['meta_keywords'] = 'Enter your keywords spaced by commas eg house, car. <br/> It is recommended to keep it to less than 200 characters.';
$helptxt['meta_author'] = 'Put your name in the page.  Not all search engines recognise this tag.';
$helptxt['meta_copyright'] = 'Put your copyright information in the meta data, use &amp;copy; for the copyright symbol.';
]]></add>
</operation>
</file>


There is no replace code, so you need to basically find codes between <add>....</add> tags and wipe them out. <search>...</search> These tags is for where goes modification codes placed to. Namely we can call it markers. You don't touch them. Just wipe out codes between <add></add> tags. Just in case, make sure you backed up your forum before uninstalling. Feel free to ask un-clear parts you still have in mind, but I may not answer right-away. Because last time I logged in simplemachines was around 1 month ago.
Title: Re: vBulletin Style Meta Tags
Post by: zerog12avity on February 10, 2009, 12:28:27 PM
Not sure if the mod is working... How do I check? I went to [view source] on foxfire, but it is only showing the default keywords that I added in Feature and Option / Layout page. I installed package v. 1.1 into 2.0B4

any help would be appreciated
Title: Re: vBulletin Style Meta Tags
Post by: roberto174 on February 12, 2009, 07:38:52 PM
Not sure if the mod is working... How do I check? I went to [view source] on foxfire, but it is only showing the default keywords that I added in Feature and Option / Layout page. I installed package v. 1.1 into 2.0B4
here's my site www.homeowners411.com (http://www.homeowners411.com)

any help would be appreciated

Same thing, doesnt work correctly, i'm using 2.0 RC1

It just changes the title of the page but no keywords and description tuning, nothing, still default behavior.
Title: Re: vBulletin Style Meta Tags
Post by: zerog12avity on February 13, 2009, 12:55:34 PM
Looking for a good place to get keywords. Not sure if mine are the best to use.
If you have any links or suggetions I would appreciate it.
Thanks
Title: Re: vBulletin Style Meta Tags
Post by: Mai Pen Rai on February 20, 2009, 10:02:11 AM
Any news on RC1?
Title: Re: vBulletin Style Meta Tags
Post by: X3mE on February 22, 2009, 06:22:41 AM
It's working on RC1.

But I have a problem with description tags - I am getting weird non-unicode question marks in my descriptions sometimes for topic pages, I don't know what's causing them... Is there any solution?
Title: Re: vBulletin Style Meta Tags
Post by: Bancherd on February 22, 2009, 09:59:55 AM
It's working on RC1.

But I have a problem with description tags - I am getting weird non-unicode question marks in my descriptions sometimes for topic pages, I don't know what's causing them... Is there any solution?

I have the same problem......always related to the smileys...nbsp in front of the smileys?
Title: Re: vBulletin Style Meta Tags
Post by: X3mE on February 22, 2009, 11:37:04 AM
Actually, the first post of the topic I noticed them on didn't have any smileys :/
Title: Re: vBulletin Style Meta Tags
Post by: Bancherd on February 22, 2009, 09:57:16 PM
Perhaps we have different situations...I am using utf-8 and Thai-characters.....and php4.x....on SMF1.1.8.  The first smileys does it every time.   >:(   So I thought it might have something to do with the parse_bbc function, but have not had much time to check into this...

However, I am seeing the same thing with SMF2RC1, so I might have to get serious about this and start digging.  :P
Title: Re: vBulletin Style Meta Tags
Post by: daveaite on March 11, 2009, 03:53:26 AM
I'm having a problem.

My meta is displaying this in the source:

<meta name="keywords" content="Youtube, MP3, converter, Youtube to MP3 converter, PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

I just want it to display this:

<meta name="keywords" content="Youtube, MP3, converter, Youtube to MP3 converter, " />


I've looked in my index.template file in my theme and it's not there. Apparently when uninstalling easy edit meta and installing this, the meta files gets moved to $modsettings. I don't know how to fix this. "PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" gets placed on every page and I just wanna know how to remove it.

Please help.

Attached is my modsettings, and my index.template.
Title: Re: vBulletin Style Meta Tags
Post by: sombra on March 12, 2009, 03:59:33 PM
hi there to all im having this problem

http://www.simplemachines.org/community/index.php?topic=297650.0

they told me if i use this mod it will fix it but i cant see to find if its compatible to smf 2.04

and other tinny question  im using darkbreak theme do i need to do a manual edit?
Title: Re: vBulletin Style Meta Tags
Post by: sombra on March 12, 2009, 04:18:09 PM
well instaled but had a test failed

3. Execute Modification ./Themes/default/index.template.php Test failed 
i did a manual edit to one line i saw in the parse

was this one


   <meta name="description" content="', $context['page_title'], '" />
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

for


   <meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
   <meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />

but in a previed post i saw someone telling that there was 2 edits  i only saw one can some one tell me if im rigth or wrong

and how this mod work do i need 2 put metatags or it dos it alone?
Title: Re: vBulletin Style Meta Tags
Post by: Bancherd on March 13, 2009, 06:40:04 PM
Perhaps we have different situations...I am using utf-8 and Thai-characters.....and php4.x....on SMF1.1.8.  The first smileys does it every time.   >:(   So I thought it might have something to do with the parse_bbc function, but have not had much time to check into this...

However, I am seeing the same thing with SMF2RC1, so I might have to get serious about this and start digging.  :P

My problem is caused by "&nbsp;" in the database that came with smilies, once I filter this out, the problem is solved for me!  :)
Title: Re: vBulletin Style Meta Tags
Post by: daveaite on March 14, 2009, 02:37:28 AM
Not sure if the mod is working... How do I check? I went to [view source] on foxfire, but it is only showing the default keywords that I added in Feature and Option / Layout page. I installed package v. 1.1 into 2.0B4
here's my site www.homeowners411.com (http://www.homeowners411.com)

any help would be appreciated

Same thing, doesnt work correctly, i'm using 2.0 RC1

It just changes the title of the page but no keywords and description tuning, nothing, still default behavior.

Having exactly the same problem as these 2 guys. I thought I was doing something wrong. Must be a mod error. Im also using 2.0 RC1
Title: Re: vBulletin Style Meta Tags
Post by: sombra on March 15, 2009, 01:05:13 PM
i went to a page to add the url of my site and has an anilazer and it told me i got no

Current Meta Description Tag:
The Tag processed is 0 characters in length

and

is this mod installed correctly on my board? how do i get it to work
Title: Re: vBulletin Style Meta Tags
Post by: sombra on March 19, 2009, 01:54:57 PM
no one? :(
Title: Re: vBulletin Style Meta Tags
Post by: Bancherd on March 20, 2009, 12:17:19 AM
no one? :(

You might try to remove this line from Subs.php  :D

Code: [Select]
$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $modSettings['meta_keywords'] : 'PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum';
Title: Re: vBulletin Style Meta Tags
Post by: ccraciun on March 22, 2009, 01:46:11 PM
Any chance to have different meta description for each page with this mod? Now it uses the same description (from the first post of the topic) for all pages. I guess it would be best to take the description from the first post of each page.
Thanks!
Title: Re: vBulletin Style Meta Tags
Post by: sombra on March 22, 2009, 02:32:12 PM
Quote
You might try to remove this line from Subs.php  :D

Code: [Select]
$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $modSettings['meta_keywords'] : 'PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum';

thanks for the reply i did that can i ask for what did i did that and how this mod works? do i need to put somthing in the blank spaces ?in the admin menu or leave it like that
Title: Re: vBulletin Style Meta Tags
Post by: Putnam on March 25, 2009, 07:57:39 PM
Can I use this with 2.0RC1?
Title: Re: vBulletin Style Meta Tags
Post by: daveaite on March 25, 2009, 08:52:33 PM
Any chance to have different meta description for each page with this mod? Now it uses the same description (from the first post of the topic) for all pages. I guess it would be best to take the description from the first post of each page.
Thanks!

HAVING THE SAME PROBLEM! HELP
Title: Re: vBulletin Style Meta Tags
Post by: sombra on March 27, 2009, 09:52:52 AM
well i read all post here and now i know how to find if your mod is working or not

my conclution is... the fields in the admin they will be kept in blank

but if you notice in every single topic of your board if you see the source of every page they have metatags and they are diferent all that means the mod is working fine so thanks for the wondorfull mod and hope this can help people that dosent know how this mod works you can visit my site and see for yourself

www.todoilegal.net   ;)
Title: Re: vBulletin Style Meta Tags
Post by: daveaite on March 31, 2009, 06:44:15 PM
Well I already know that it's not working properly by the souce code. It's suppose to be dynamic, different keywords for every page, yet its the same keywords for what you pick in the admin panel.
Title: Re: vBulletin Style Meta Tags
Post by: DareDevil1990 on April 05, 2009, 02:20:55 PM
can this be some how can be made to work with 1.1.8 i would really love it
Title: Re: vBulletin Style Meta Tags
Post by: Astra_200 on April 05, 2009, 06:29:58 PM
I am using 2.0 RC1. SimplePortal 2.1.1 and Extreme 6 theme.

Can someone please tell me if this mod works with 2.0 RC1 and a custom theme?

I have searched this thread, and am now just simply confused.

If it is possible, could someone please just spell out how to make it work as though they were telling a complete noob, and not a coder with 500 years experience   

I've tried to install this mod and get the following error:

./Themes/default/index.template.php  Test Failed

Mod is looking for in ./Themes/default/index.template.php:
   <meta name="description" content="', $context['page_title'], '" />
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

My ./Themes/default/index.template.php has this in it.

<meta name="description" content="', $context['page_title_html_safe'], '" />
   <meta name="keywords" content="', $context['meta_keywords'], '" />

I tried replacing my code for what the install is looking for but still get same error when trying to install.

I have relpaced Meta Description and  Keywords within my custom 'Extreme' theme. Would that make any difference?

Any help would be great.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on April 06, 2009, 09:00:44 AM
"Astral2000"
My terms are;
Find code: That located in mod file, between Find tags.
Replace code: Code in between Replace tags right after Find tag.
Original code: Code is in your blabla.php file.

P.S: There are two types altering in mod files, additions (add after, add before) and replacing (replace). I am just telling replace side, you can apply these steps to the other ones too.

You tried to change your find code with original code, mod could install correctly. But seems you ignored dummy spaces or trailing spaces. It has to be exact characters placed, not much, not less. It may your editor shapes your copy/paste text. Use notepad while copying (from mod file) and pasting (into your php file) process. Even this trick doesn't work, you can always manually edit your files.

To manual edit;
You should place find code in your mod file, look for where it cannot match in original code, and delete those "doesn't match" area and paste there replace code. So that, you altered your file behalf of auto-installer, nothing much needed, installation is done.

But keep in mind;
If you have custom theme, it may uses its own index.template.php. Then mod doesn't work, you need extra steps to take. Because you edited default theme's php file, not php file you are currently using. Check your custom theme directory (whatever name is), locate index.template.php there; if it's exist, you need to edit it like you did before (manual installation steps). But this time you have to alter all edits related to index.template.php in the mod, not only "test failed" ones.

I know this doesn't enough to tell what you need, but I can't be clear as I dunno where you stuck at. So you have to ask what part you didn't understand, and spot me where you needed more guidance.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on April 06, 2009, 09:06:24 AM
can this be some how can be made to work with 1.1.8 i would really love it
It's already exist, you just don't know where to look.
http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714
Title: Re: vBulletin Style Meta Tags
Post by: Astra_200 on April 06, 2009, 01:09:31 PM
SONSiVRi, thank you kindly for your reply.

It did use notepad to try and edit and simply clicked select from the error window and pasted text into notepad exactly as copied.

I will study your reply and try again.  I have 8 duplicate meta descriptions showing in Google webmasters tools, so I would like to try and sort this if I can. Shame I'm only pretending to be a clever webmaster though  :-[

Quote
It's already exist, you just don't know where to look.
http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714

Sorry, I'm not sure what I'm supposed to be looking at in your link?

Thanks again for your offer to help.

Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on April 06, 2009, 05:52:28 PM
"Astral2000"
My second message wasn't directed at you, it's reply to another person.

To your problem;
you were copying text from error window, I don't remember what error window it could be but you are using wrong place to copy, you should directly rip that codes in from mod file. Here is example;
Click here => http://custom.simplemachines.org/mods/index.php?mod=1138
Select "metatags_1.1.zip" and choose your SMF version, then hit the "parse" button.
You are now seeing alters need to be done, press select to copy it.

Btw, I am having duplicate metatags too. I am using robots.txt file to block replicas of original page, like these
Disallow: /forum/index.php*.msg
Disallow: /forum/index.php*;wap2
Disallow: /forum/index.php?action=printpage
I can give you mine if you needed it.
Title: Re: vBulletin Style Meta Tags
Post by: Astra_200 on April 06, 2009, 07:11:18 PM
It's already exist, you just don't know where to look.
http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714
[/quote]

Sorry SONSiVRi I did'nt notice.

I copied the text from the the small note to the left of the 'Test Failed' error when trying to install the mod.

(HERE) 1. Replace ./Themes/default/index.template.php Hope that makes sense.

It is laid out like
 
Find [Select]

   <meta name="description" content="', $context['page_title'], '" />
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

Replace [Select]
 
      <meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
   <meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />

I think I just need a little time to get my head round how to make this work,

I see I have to change my template ./Themes/default/index.template.php as well. I have already manually changed that to suit my forum with new keywords etc so will have a go at replacing correct mod text there as well.

Thank you.
Title: Re: vBulletin Style Meta Tags
Post by: webrookie on April 23, 2009, 12:53:13 PM
Hi SONSiVRi

I tried to install the metatags_1.1_for_1.1.x into my smf 1.1.8. The test result showed succesful for others but failed for ./Themes/default/index.template.php.
I have the Ad Managment 2.3 mod only installed. default theme.
My index.template.php file is attached here.

Can you help me execute the mod. I have heard a lot about it and I am sure it will work great for me.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on April 23, 2009, 01:37:37 PM
Hi SONSiVRi

I tried to install the metatags_1.1_for_1.1.x into my smf 1.1.8. The test result showed succesful for others but failed for ./Themes/default/index.template.php.
I have the Ad Managment 2.3 mod only installed. default theme.
My index.template.php file is attached here.

Can you help me execute the mod. I have heard a lot about it and I am sure it will work great for me.

Look, what they got here? http://docs.simplemachines.org/index.php?board=49.0;sort=subject
Title: Re: vBulletin Style Meta Tags
Post by: webrookie on April 26, 2009, 08:04:34 AM
Hi SONSiVRi,
I made the amendments to the files as given out in install.xml and copied the MetaTags.php file to the /sources dir.
However then the forum boards pages are not loading but coming as blank.
In the file location the url comes as http://chemtopper.com/smf/index.php/board,2.0.html.
Can you help me out on this. Is there anything further to be done ?
My forum is located at
http://chemtopper.com/smf/index.php
Thanks
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on April 26, 2009, 04:27:40 PM
Hi SONSiVRi,
I made the amendments to the files as given out in install.xml and copied the MetaTags.php file to the /sources dir.
However then the forum boards pages are not loading but coming as blank.
In the file location the url comes as http://chemtopper.com/smf/index.php/board,2.0.html.
Can you help me out on this. Is there anything further to be done ?
My forum is located at
http://chemtopper.com/smf/index.php
Thanks

Attach your files as listed below and I will check them.
$sourcedir/MessageIndex.php
$sourcedir/ModSettings.php
$sourcedir/Display.php
$themedir/index.template.php
$languagedir/Modifications.english.php
Title: Re: vBulletin Style Meta Tags
Post by: webrookie on April 27, 2009, 01:44:24 PM
SONSiVRi,
Thanks a ton. I finally got it and have done the mod.
Just one question- where do I put 'my keywords' so that they can appear with the other keywords generated.
Its a great mod and promises a lot for me.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on April 28, 2009, 03:40:32 AM
SONSiVRi,
Thanks a ton. I finally got it and have done the mod.
Just one question- where do I put 'my keywords' so that they can appear with the other keywords generated.
Its a great mod and promises a lot for me.
Admin => Basic Features => Meta Description &  Meta Keywords
Title: Re: vBulletin Style Meta Tags
Post by: webrookie on April 29, 2009, 08:03:26 AM
Got It.
Thanks again.
Title: Re: vBulletin Style Meta Tags
Post by: bjraines on May 11, 2009, 12:26:34 PM
SONSiVRi,
Thanks a ton. I finally got it and have done the mod.
Just one question- where do I put 'my keywords' so that they can appear with the other keywords generated.
Its a great mod and promises a lot for me.
Admin => Basic Features => Meta Description &  Meta Keywords


Is the 1.1.8 version working properly? Is it dynamically picking keywords and descriptions?
Title: Re: vBulletin Style Meta Tags
Post by: webrookie on May 11, 2009, 09:38:27 PM
Yes it is picking up dynamically the keywords and descriptions.
You can always see the page source from the view menu in your web browser to check the keywords and descriptions for a page.
Title: Re: vBulletin Style Meta Tags
Post by: andy40 on May 11, 2009, 10:21:02 PM
hi need help please i installed this mod just but for some reason it put 2 on so i thought i would take them off and try again but somethings gone wrong i get this message beloe when i try to view stuff on the board


Fatal error: require_once() [function.require]: Failed opening required '/home/demo/public_html/mydomain/forum/Sources/MetaTags.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/demo/public_html/mydomain/forum/Sources/Display.php on line 254

and when i try toinstall the mod again i get this below

5. Execute Modification ./Sources/Display.php Test failed
6. Execute Modification ./Themes/default/index.template.php Test failed

Title: Re: vBulletin Style Meta Tags
Post by: andy40 on May 11, 2009, 10:50:48 PM
hi take no notice of my last message i just download smf_1-1-8_install from here made a backup of the files below then replaced the 2 files from  smf_1-1-8_install  then installed this mod again then deleted the 2 new files i uploaded and its all working again now hope that makes sense lol

5. Execute Modification ./Sources/Display.php
6. Execute Modification ./Themes/default/index.template.php
Title: Re: vBulletin Style Meta Tags
Post by: Astra_200 on May 12, 2009, 05:51:03 PM
Ok heres where I'm at.

I am using 2.0 RC1. SimplePortal 2.1.1 and Extreme 6 theme.

SONSiVRi you where very helpful before and I hope you, or another member, can help further.

I did a part automatic and part manual install and the mod appears to be loaded fine in browse packages.

A couple of problems though.

1.The mod picks up meta keywords but only ones I enter in Admin / Configuration / Features and Options / Layout /  Meta keywords associated with forum and shows them twice (duplicated) in view source. If I remove my keywords from the admin area then the default ones appear just once. Re insert my own and they appear twice again. I thought this mod applied its own kewords according to page?

2.The mod only changes description on the forum pages, which is great but my other pages, Gallery, Home, etc do not show any meta description at all.

I have added some code supplied by another member here that at least shows the page title for each page which is a lot better than nothing at all.

This is what I have in both my default theme and my custom theme in index template.php

<meta name="description" content="', $context['page_title'], ' - ', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
   <meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />

Can anyone help me get this working right?

Thank you.
Title: Re: vBulletin Style Meta Tags
Post by: Mai Pen Rai on May 14, 2009, 01:53:20 AM
Ok heres where I'm at.

I am using 2.0 RC1. SimplePortal 2.1.1 and Extreme 6 theme.

SONSiVRi you where very helpful before and I hope you, or another member, can help further.

I did a part automatic and part manual install and the mod appears to be loaded fine in browse packages.

A couple of problems though.

1.The mod picks up meta keywords but only ones I enter in Admin / Configuration / Features and Options / Layout /  Meta keywords associated with forum and shows them twice (duplicated) in view source. If I remove my keywords from the admin area then the default ones appear just once. Re insert my own and they appear twice again. I thought this mod applied its own kewords according to page?

2.The mod only changes description on the forum pages, which is great but my other pages, Gallery, Home, etc do not show any meta description at all.

I have added some code supplied by another member here that at least shows the page title for each page which is a lot better than nothing at all.

This is what I have in both my default theme and my custom theme in index template.php

<meta name="description" content="', $context['page_title'], ' - ', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
   <meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />

Can anyone help me get this working right?

Thank you.

I have the same problem, double sets of meta tags.

Any solution to be found?
Title: Re: vBulletin Style Meta Tags
Post by: Astra_200 on May 14, 2009, 01:21:36 PM
I have the same problem, double sets of meta tags.

Any solution to be found?

Are you using a custom theme Mai Pen Rai?

Anybody got any ideas at all?
Title: Re: vBulletin Style Meta Tags
Post by: hartiberlin on May 14, 2009, 02:49:28 PM


I have the same problem, double sets of meta tags.

Any solution to be found?

Why is the author ofthe Mod not coming forward and cleaning
up the errors ?
Did he abandone the project ?
Title: Re: vBulletin Style Meta Tags
Post by: Mai Pen Rai on May 15, 2009, 04:02:39 AM

Are you using a custom theme Mai Pen Rai?

Anybody got any ideas at all?

No, core standard normal.
Title: Re: vBulletin Style Meta Tags
Post by: sombra on May 17, 2009, 09:28:39 PM
i had installed this mod on smf 2.04 beta and it worked fine but i upgraded to 2 rc1 and now i see it isint working it gives descripcion but it dosent give metatags

what coud it be the problem

example

Code: [Select]
<meta name="description" content="Wisin Y Yandel - La Revolucion (Completo) 2009       1. Intro 2. Quitame El Dolor 3. Encendio 4. Mujeres In The Club - Featuring 50 Cent 5. Ahi Voy" />
 <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum, " />


i verified my index,template of the theme im using and the default one and 2 have this code

Code: [Select]
      <meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
   <meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
Title: Re: vBulletin Style Meta Tags
Post by: sombra on May 19, 2009, 01:45:16 PM
no one? :(

You might try to remove this line from Subs.php  :D

Code: [Select]
$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $modSettings['meta_keywords'] : 'PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum';

this help me out im using smf 2. rc1 and it works fine
Title: Re: vBulletin Style Meta Tags
Post by: islam2hamy on May 19, 2009, 01:50:02 PM
Thank you , very good mod ,

Arabic translation :

Code: [Select]
   <file name="$languagedir/Modifications.arabic-utf8.php">
      <operation>
         <search position="end" />
         <add><![CDATA[
$txt['meta_description'] = 'Meta وصف';
$txt['meta_keywords'] = 'Meta كلمات بحث';]]></add>
      </operation>
   </file>

please before put the translation in the file be sure that the file encode is UTF-8
Title: Re: vBulletin Style Meta Tags
Post by: Astra_200 on May 20, 2009, 03:45:48 PM
no one? :(

You might try to remove this line from Subs.php  :D

Code: [Select]
$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $modSettings['meta_keywords'] : 'PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum';

this help me out im using smf 2. rc1 and it works fine

Fantastic!!! Mod works great for me now in 2.0 RC1 with that line removed. Many thanks  ;D
Title: Re: vBulletin Style Meta Tags
Post by: Mai Pen Rai on May 25, 2009, 02:01:08 PM
Works for me toooo!
Title: Re: vBulletin Style Meta Tags
Post by: oddman on May 28, 2009, 07:53:24 AM
Hi guys and girls.

Can anyone tell me if this mod works with 1.1.9 and a custome theme called Transient by: © 2009, Crip.  I really want to get this sorted.  I upgraded from 1.1.8 and thought that the upgrade was for 2.0 which i thought ment it would just upload and work...lol  I was wrong.

Whats the best way to get this mod to work?

Any help thank you in advance.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on May 30, 2009, 05:17:07 AM
Hi guys and girls.

Can anyone tell me if this mod works with 1.1.9 and a custome theme called Transient by: © 2009, Crip.  I really want to get this sorted.  I upgraded from 1.1.8 and thought that the upgrade was for 2.0 which i thought ment it would just upload and work...lol  I was wrong.

Whats the best way to get this mod to work?

Any help thank you in advance.
for your forum version; 1.1.9 is ok to install.
but you have to manually install on your custom theme. I didn't check your theme but I don't think it would problem.
Title: Re: vBulletin Style Meta Tags
Post by: Astra_200 on June 05, 2009, 07:17:46 AM
Maybe someone can help me?.

This mod works for me in Extreme6 custom theme but on forum posts only. Any of my other pages i.e my bakers dozen mod pages or my gallery or Simple Portal home page just show my own default page title and my default meta keywords.

I guess what I'm asking, is this correct behaviour of this mod? just to modify text from forum posts and nothing else?

Anybody got any ideas how I can make this mod work on all my pages?

Thanks.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on June 05, 2009, 01:11:26 PM
Maybe someone can help me?.

This mod works for me in Extreme6 custom theme but on forum posts only. Any of my other pages i.e my bakers dozen mod pages or my gallery or Simple Portal home page just show my own default page title and my default meta keywords.

I guess what I'm asking, is this correct behaviour of this mod? just to modify text from forum posts and nothing else?

Anybody got any ideas how I can make this mod work on all my pages?

Thanks.
As you said; this mod rips words off from posts and put those into meta tag keywords. As this simple.

To using in your gallery for example, you need to write your own code that rips your media on gallery and put into meta tags. Same for portal main page; rips articles...
Title: Re: vBulletin Style Meta Tags
Post by: Astra_200 on June 05, 2009, 06:54:21 PM
Quote
As you said; this mod rips words off from posts and put those into meta tag keywords. As this simple.

To using in your gallery for example, you need to write your own code that rips your media on gallery and put into meta tags. Same for portal main page; rips articles...

Thanks SONSiVRi but writing code is way too complicated for me :( Can you please help me at all?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on June 06, 2009, 04:57:40 AM
Thanks SONSiVRi but writing code is way too complicated for me :( Can you please help me at all?
Help is ok but what you asking is taking over whole job, I have no time for that. It's too easy in fact, you will just modify existing codes according to your gallery.
Title: Re: vBulletin Style Meta Tags
Post by: Astra_200 on June 06, 2009, 12:23:56 PM
Quote
Help is ok but what you asking is taking over whole job, I have no time for that. It's too easy in fact, you will just modify existing codes according to your gallery.

I understand, thank you anyway.
Title: Re: vBulletin Style Meta Tags
Post by: Realinfo on June 18, 2009, 10:42:54 PM
When u  make it for SMF 1.1.9..............
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on June 19, 2009, 05:25:31 PM
When u  make it for SMF 1.1.9..............
Just change the "install for" area in xml file located in mod file. Mod is compatible with 1.1.9.
Title: Re: vBulletin Style Meta Tags
Post by: sombra on June 19, 2009, 11:32:22 PM
thanks for this mod working like a charm :D
Title: Re: vBulletin Style Meta Tags
Post by: Realinfo on June 20, 2009, 04:32:28 AM
When u  make it for SMF 1.1.9..............
Just change the "install for" area in xml file located in mod file. Mod is compatible with 1.1.9.

No......... I'm Not getting it........ make me more clear about it.............
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on July 01, 2009, 06:21:58 AM
When u  make it for SMF 1.1.9..............
Just change the "install for" area in xml file located in mod file. Mod is compatible with 1.1.9.

No......... I'm Not getting it........ make me more clear about it.............
I think half of this community is about "how to install manually", there are lots of info in "docs" section.
Title: Re: vBulletin Style Meta Tags
Post by: Realinfo on July 01, 2009, 07:49:30 AM
ok, all files manually.......... ok.........

I'll try..............
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on July 01, 2009, 01:47:03 PM
ok, all files manually.......... ok.........

I'll try..............
Ohh my bad, I was thinking something else. This mod is originally published for 2.x family, and who was ported it to 1.1.x family is ME. dohh what a shame :) I even forgot my works. It is located here: http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714
Title: Re: vBulletin Style Meta Tags
Post by: Realinfo on July 04, 2009, 04:25:50 AM
ok, all files manually.......... ok.........

I'll try..............
Ohh my bad, I was thinking something else. This mod is originally published for 2.x family, and who was ported it to 1.1.x family is ME. dohh what a shame :) I even forgot my works. It is located here: http://www.simplemachines.org/community/index.php?topic=230321.msg1557714#msg1557714

Thanks.......... I apply this mod............
Title: Re: vBulletin Style Meta Tags
Post by: Samuikon on July 10, 2009, 12:38:00 AM
For those getting the SQL errors, open /Sources/Display.php, and find this area here:

Code: [Select]
$context['meta_keywords'] = MetaTagsGenerateKeywords($topicinfo['subject']);
$context['meta_description'] = MetaTagsGenerateTeaser($topicinfo['ID_FIRST_MSG']);

Make sure that 'ID_FIRST_MSG' is in the proper case. I ran into this issue when I manually installed it to my v1.1.9 board, and used SONSiVRi's version of MetaTags.php. (and probably could have avoided it by just using his port to begin with xD).

It works great, though. :D
Title: Re: vBulletin Style Meta Tags
Post by: lninyo on July 18, 2009, 03:17:35 PM
@SONSiVRi : Thanks for back-porting it to 1.1.9.

Can you please clarify what is the status of this mod for non-core themes? I'm running Kani. Do I have to update all the themes manually if using in 1.1.9. If so, could you kindly mention the pages that one needs to edit?

I changed description/keywords under "Features & Options" but it doesn't show up in my view source (maybe because I'm using Kani)

It would save some confusion if the mod authors mentioned the conditions underwhich a mod works for example ("works for core theme only, change manually for all others", "here is the path to manage this theme" etc.) just some friendly suggestion :)

Thanks again for porting!
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on July 20, 2009, 06:00:51 PM
@SONSiVRi : Thanks for back-porting it to 1.1.9.

Can you please clarify what is the status of this mod for non-core themes? I'm running Kani. Do I have to update all the themes manually if using in 1.1.9. If so, could you kindly mention the pages that one needs to edit?

I changed description/keywords under "Features & Options" but it doesn't show up in my view source (maybe because I'm using Kani)

It would save some confusion if the mod authors mentioned the conditions underwhich a mod works for example ("works for core theme only, change manually for all others", "here is the path to manage this theme" etc.) just some friendly suggestion :)

Thanks again for porting!
This mod has only 1 file to works with custom theme, and yes you have to edit it for all theme files.
Where did I get 1 file?
I opened package-info.xml (same for all mods), followed install file name <modification format="xml" type="file">install.xml</modification>, then opened that install.xml, and checked for <file name="$themedir/.... sections. Here is our 1 section;

Code: [Select]
<file name="$themedir/index.template.php">
        <operation>
            <search position="replace"><![CDATA[<meta name="description" content="', $context['page_title'], '" />]]></search>
            <add><![CDATA[<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />]]></search>
            <add><![CDATA[<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />]]></add>
        </operation>
</file>

We have two changings, and you need to apply those changins in your custom themes, all of them. You are applied keywords in features page but there is no code using them, until you embed above codes into your theme. Those codes will display it.

And why it's have to be manual changes on custom theme? Because as the name says; it is "custom", search pattern is different.
Title: Re: vBulletin Style Meta Tags
Post by: lninyo on July 22, 2009, 07:13:57 PM

We have two changings, and you need to apply those changins in your custom themes, all of them. You are applied keywords in features page but there is no code using them, until you embed above codes into your theme. Those codes will display it.

And why it's have to be manual changes on custom theme? Because as the name says; it is "custom", search pattern is different.

Thank you sir! you are very kind and patient! :)
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on July 23, 2009, 02:45:32 PM

We have two changings, and you need to apply those changins in your custom themes, all of them. You are applied keywords in features page but there is no code using them, until you embed above codes into your theme. Those codes will display it.

And why it's have to be manual changes on custom theme? Because as the name says; it is "custom", search pattern is different.

Thank you sir! you are very kind and patient! :)
I know I wasn't clear enough, if you stuck some points, feel free to ask.
Title: Re: vBulletin Style Meta Tags
Post by: SAFAD on July 28, 2009, 04:57:33 AM
This Dpesn't Work Correctly
No Keywords
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on July 30, 2009, 03:37:44 AM
This Dpesn't Work Correctly
No Keywords

Means you didn't installed it properly, it's your fault not mod's.
Title: Re: vBulletin Style Meta Tags
Post by: akbora on July 30, 2009, 04:33:52 AM
Will be updated this mod to 2.x?
Title: Re: vBulletin Style Meta Tags
Post by: Nibogo on July 30, 2009, 03:34:42 PM
Will be updated this mod to 2.x?

There is a SMF 2.0 version attached in this topic, search it
Title: Re: vBulletin Style Meta Tags
Post by: the_shadow on July 30, 2009, 09:50:51 PM
Will be updated this mod to 2.x?

There is a SMF 2.0 version attached in this topic, search it

i cant see the solution for 2RC1-1 :(
where it is?
Title: Re: vBulletin Style Meta Tags
Post by: dyrome on August 19, 2009, 07:35:05 PM
no one? :(

You might try to remove this line from Subs.php  :D

Code: [Select]
$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $modSettings['meta_keywords'] : 'PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum';

this help me out im using smf 2. rc1 and it works fine

gives my errors but it works, any solution yet ?
Title: Re: vBulletin Style Meta Tags
Post by: Filipina on October 04, 2009, 02:11:33 AM
Well I want to say thanks to sonsivri for the coversion for us using 1.1.xx thanks!

I am not to smart when it comes to meta tags and stuff so I want to ask this question... i had to edit my index.template file since it failed... it looks like this now I hope it is right?

Code: [Select]
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />', empty($context['robot_no_index']) ? '' : '
<meta name="robots" content="noindex" />', '
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />


How come now when I look at the properties when on my main forum is see this below? I know the (PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum) was removes in my edit but I see it still  :P 

Code: [Select]
<!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"><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="description" content="" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

Thanks if anyone can tell me :)
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on October 08, 2009, 10:54:18 AM
Filipina,

Did you set  "Admin - > Features and Options - > Basic Features -> Meta Keywords" ?
Title: Re: vBulletin Style Meta Tags
Post by: Filipina on October 10, 2009, 11:04:56 AM
Filipina,

Did you set  "Admin - > Features and Options - > Basic Features -> Meta Keywords" ?

wow did i miss that one... been so long forgot it was there.. thank you
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on October 10, 2009, 11:53:01 AM
wow did i miss that one... been so long forgot it was there.. thank you
You welcome. It happens, recently I forgot my own modification feature too.
Title: Re: vBulletin Style Meta Tags
Post by: smldmr on October 10, 2009, 01:00:05 PM
Hi, is there a solution for double meta-tags issue?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on October 10, 2009, 02:03:47 PM
Never thought that, but it's not difficult to code. Parse meta-keyword into array by comma character, then loop through that array for duplicates, and eliminate if exist.
Title: Re: vBulletin Style Meta Tags
Post by: argimiro on October 10, 2009, 03:00:50 PM
My 2 boards are 1.1.10 and 2 RC1.2 - can you tell us if both are supported (with or without tinkering)?

I guess it's the 1.1.10 I'm wondering about the more
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on October 10, 2009, 06:03:01 PM
Original mod is published to 2.x family. And I remember I ported this mod to 1.1.x family. If I did, I attached it to the post in this topic. Tinkering depends on custom theme.
Title: Re: vBulletin Style Meta Tags
Post by: argimiro on October 10, 2009, 06:18:11 PM
Just was worried if .10 had introduced some change that killed it on 1.1.x or made it dangerous to try to install - if not so, i'll have at it :)

Ahh.. getting one error in package installation in SMF2 RC1.2

It is looking to replace this in /themes/default/index.template.php

Code: [Select]
<meta name="description" content="', $context['page_title'], '" />  <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

but I seem to have this in the default template

Code: [Select]
<meta name="description" content="', $context['page_title_html_safe'], '" />
<meta name="keywords" content="', $context['meta_keywords'], '" />

Maybe I don't have a standard index.template.php for some reason.

Existing mods:

1.     Users Online Today      1.5.4
2.    DisableTemplateEval    1.1    [ Apply Mod ]
3.    Sitemap    2.0.0
4.    nneonneo's AJAX ShoutBox    1.22
5.    Facebook Login Integration    0.0.15
6.    MessagePreviewOnHover    1.7
7.    Share This Topic    1.1
8.    Pretty URLs    1.0RC
9.    vBulletin Style Meta Tags    1.1    [ Apply Mod ]
10.    E-Arcade    Beta4-SMF2rc1
11.    Aeva ~ Auto-Embed Video & Audio    6.9.99

   
   
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on October 10, 2009, 06:39:03 PM
2.x
Seems you installed something to do with meta tags. Else you can edit manually and give it a try.

1.1.10
It is not a big problem I think. And why didn't you upgraded it, lots of stuff changed, security fixes too.

edit: For 2.x, I dunno which mod changed it, none of them are related to meta tag.
Title: Re: vBulletin Style Meta Tags
Post by: argimiro on October 10, 2009, 06:46:24 PM
It looks as if 2 RC1.2 has introduced some kind of vestigial attempt at coding support for meta keywords into admin --> features and options --> layout --> "Meta keywords associated with forum. For search engines, leave blank for default."
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on October 10, 2009, 06:47:48 PM
It looks as if 2 RC1.2 has introduced some kind of vestigial attempt at coding support for meta keywords into admin --> layout --> features and options
Have no idea about 2.x family, can't help there. I am happy with my little 1.1.9
Title: Re: vBulletin Style Meta Tags
Post by: argimiro on October 10, 2009, 06:51:36 PM
Works on both, A-OK  :D
Title: Re: vBulletin Style Meta Tags
Post by: smldmr on October 11, 2009, 07:49:34 AM
Never thought that, but it's not difficult to code. Parse meta-keyword into array by comma character, then loop through that array for duplicates, and eliminate if exist.

Not double words are the problem. In smf 2 there is an option for meta-keywords, and now is the same option in this mods options too. Thats why i get the standard keywords twice in my mainpage. If i delete the meta-keywords from forum options, they will deleted from mod options too.

i.e. in forum options i say "abc, def, ghi" are standard meta-keywords, then in main page i get "abc, def, ghi,abc, def, ghi" as meta-keywords.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on October 11, 2009, 09:51:57 AM
Probably you have done something wrong. Because this mod is released for 2.X family, and nobody complained that situation before. You may check your files to inspect double installation.
Title: Re: vBulletin Style Meta Tags
Post by: smldmr on October 11, 2009, 09:56:47 AM
Probably you have done something wrong. Because this mod is released for 2.X family, and nobody complained that situation before. You may check your files to inspect double installation.

After i deleted the keywords line from subs.php, it seems to work corectly. But now i have an other problem.

My site is in utf-8 and the mod makes keywords like this:

Code: [Select]
<meta name="keywords" content="Aslantepe, n, aat, Alan, Aslantepe - İnşaat Alanı, aslantepe, ttarena, stadyum, stadium" />
the last 4 words are my standart keywords, "Aslantepe - İnşaat Alanı" is the subject of the topic. All special characters (turkish in this case) makes problems.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on October 11, 2009, 10:15:24 AM
you need to take a look in Turkish topic, there were been discussed this problem.
Title: Fix for 1.x
Post by: codyodell on November 17, 2009, 04:42:55 PM
This is the fix everyone has been look for, I believe.

in /Sources/MetaTags.php replace the MetaTagsGenerateTeaser function with this function:

Code: [Select]
function MetaTagsGenerateTeaser ($id_msg)
{

$sql    = "SELECT body FROM smf_messages WHERE id_msg = ".$id_msg;
$res    = mysql_query($sql);
$arRes  = mysql_fetch_row($res);
$teaser = $arRes[0];
// Format as a plain text string.
$teaser = MetaTagsSpecialChars(str_replace('<br />', ' ', parse_bbc($teaser)));

// Less than the teasear limit, just return.
if(strlen($teaser) < 150)
return $teaser;

// Otherwise grab the teaser.
$teaser = substr($teaser, 0, 150);
return substr($teaser, 0, strrpos($teaser, ' '));
}

Hope that helps.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on November 17, 2009, 07:07:28 PM
" codyodell"
Fix for? You need to tell details.
Title: Re: vBulletin Style Meta Tags
Post by: codyodell on November 17, 2009, 09:43:08 PM
As stated int the title of my post: Fix for 1.x

The original mod uses database functions not implemented in 1.x versions.
Title: Re: vBulletin Style Meta Tags
Post by: hartiberlin on December 09, 2009, 04:27:29 PM
Is this mod already working with
SMF 2.0 RC2 ?

If not, willit soon be updated ?

or has anybody out there a working fixed version for
RC2 and can post the fixes in one ZIP file or in one posting ?

Many thanks.
Title: Re: vBulletin Style Meta Tags
Post by: gevv on January 12, 2010, 09:59:35 AM
Thanks Sonsivri

keyword to appear in Turkish characters can be done ?

(anahtar kelime bölümünde türkçe karakterlerin görünmesi için ne yapılabilir)

Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on January 12, 2010, 03:00:31 PM
Thanks Sonsivri

keyword to appear in Turkish characters can be done ?

Unfortunately I didn't used this mod localized, so I didn't experience the error. But it has been discussed here, and even Turkish; http://www.simplemachines.org/community/index.php?topic=269271.msg1780089#msg1780089
also here; http://www.simplemachines.org/community/index.php?topic=348715.msg2365772#msg2365772
Title: Re: vBulletin Style Meta Tags
Post by: amorosso on January 17, 2010, 09:33:02 AM
AWESOME JUST AWESOME. I did a manual install for 2.0 RC2. I also had to do the changes to my current theme index.template .. All I did was the manual install and done, 100% working.. tested and tested no errors and works just right..  Thanks for this mod..
Title: Re: vBulletin Style Meta Tags
Post by: akselsson on January 27, 2010, 11:24:03 AM
Thanks Sonsivri

keyword to appear in Turkish characters can be done ?

Unfortunately I didn't used this mod localized, so I didn't experience the error. But it has been discussed here, and even Turkish; http://www.simplemachines.org/community/index.php?topic=269271.msg1780089#msg1780089
also here; http://www.simplemachines.org/community/index.php?topic=348715.msg2365772#msg2365772

So they can obviously be  done, but can you translate this solution to English? I'm having exactly the same problem with Finnish letters ä and ö.
Title: Re: vBulletin Style Meta Tags
Post by: dxyy on January 28, 2010, 03:49:59 AM
Has anyone been able to get this to work with 1.1.11?

I'd really like to install this or a similar mod, but I'm not going to upgrade to 2.0 just as yet. :(
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on January 28, 2010, 05:47:49 AM
Thanks Sonsivri

keyword to appear in Turkish characters can be done ?

Unfortunately I didn't used this mod localized, so I didn't experience the error. But it has been discussed here, and even Turkish; http://www.simplemachines.org/community/index.php?topic=269271.msg1780089#msg1780089
also here; http://www.simplemachines.org/community/index.php?topic=348715.msg2365772#msg2365772

So they can obviously be  done, but can you translate this solution to English? I'm having exactly the same problem with Finnish letters ä and ö.
They just talked "I had problem" but others replied "we have same configuration as you but we don't have issues". Namely, there is no solution talked.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on January 28, 2010, 05:48:50 AM
Has anyone been able to get this to work with 1.1.11?

I'd really like to install this or a similar mod, but I'm not going to upgrade to 2.0 just as yet. :(
I am using it on my own 1.1.9, and its highly probably work on 1.1.11 too.
Title: Re: vBulletin Style Meta Tags
Post by: dxyy on January 28, 2010, 06:11:55 AM
Has anyone been able to get this to work with 1.1.11?

I'd really like to install this or a similar mod, but I'm not going to upgrade to 2.0 just as yet. :(
I am using it on my own 1.1.9, and its highly probably work on 1.1.11 too.
Thanks for the info, I'll try installing it and see if it works for me.
Title: Re: vBulletin Style Meta Tags
Post by: akselsson on January 28, 2010, 06:32:28 AM
They just talked "I had problem" but others replied "we have same configuration as you but we don't have issues". Namely, there is no solution talked.

In the meta keyword line it says:

T, m, testi, Tämä on testi, auto, autot, keskustelu, foorumi

The topic of the thread: Tämä on testi
The last four words are the keywords defined in Admin panel.

So the ultimate problem here is that the first keywords (which are the topic of the thread) are duplicated. They are also duplicated when there are no scandinavian letters (ä or ö) in the topic.

Any solutions?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on January 28, 2010, 07:29:25 AM
Have no idea man. And please consider google stopped using meta tags while ranking the page.
http://googlewebmastercentral.blogspot.com/2009/09/google-does-not-use-keywords-meta-tag.html
Title: Re: vBulletin Style Meta Tags
Post by: amorosso on January 28, 2010, 07:45:28 AM
Have no idea man. And please consider google stopped using meta tags while ranking the page.
http://googlewebmastercentral.blogspot.com/2009/09/google-does-not-use-keywords-meta-tag.html

Yes they did, however this mods provides a great seo, ie descriptions. This is more powerful as this is what we read while doing a search. 
Title: Re: vBulletin Style Meta Tags
Post by: akselsson on January 28, 2010, 01:36:05 PM
Have no idea man. And please consider google stopped using meta tags while ranking the page.
http://googlewebmastercentral.blogspot.com/2009/09/google-does-not-use-keywords-meta-tag.html

Yeap, keywords are no important anymore I've heard... Maybe it's good this way, then :P
Title: Re: vBulletin Style Meta Tags
Post by: Joker™ on January 28, 2010, 01:45:03 PM
Quote
Yeap, keywords are no important anymore I've heard... Maybe it's good this way, then :P

lol i just installed this mod manually on RC2 ... working perfectly
Title: Re: vBulletin Style Meta Tags
Post by: akselsson on January 28, 2010, 04:38:58 PM
Quote
Yeap, keywords are no important anymore I've heard... Maybe it's good this way, then :P

lol i just installed this mod manually on RC2 ... working perfectly

Can you give an example about what your keywords line looks like in a thread?
Title: Re: vBulletin Style Meta Tags
Post by: Joker™ on January 29, 2010, 12:27:00 AM
see urself :D >> www.freakygurus.com
Title: Re: vBulletin Style Meta Tags
Post by: akselsson on January 29, 2010, 05:03:30 AM
see urself :D >> www.freakygurus.com

Actually it's not working as intended :D You got the same problem than me in the beginning.

Go to a thread and see keywords line. It should be: Topic Subject, keywords hard coded in template

Let's take this http://www.freakygurus.com/index.php?topic=2466.0 (http://www.freakygurus.com/index.php?topic=2466.0) for example. In keywords line, it shows only keywords you have defined in your Admin panel, TWICE.

The current line is: <meta name="keywords" content="yahoo booters,booter,yahoobooter,yahoo booter,yahoo tools,yahoo crackers,downloads,yahoo,movies,ebooks,download,games,software,antivirus,proxy,servers, yahoo booters,booter,yahoobooter,yahoo booter,yahoo tools,yahoo crackers,downloads,yahoo,movies,ebooks,download,games,software,antivirus,proxy,servers" />

What it should be: <meta name="keywords" content="u can request for group membership, yahoo booters,booter,yahoobooter,yahoo booter,yahoo tools,yahoo crackers,downloads,yahoo,movies,ebooks,download,games,software,antivirus,proxy,servers" />
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on January 29, 2010, 06:50:06 AM
"akselsson"
This duplicate situation talked here before and there was a solution to it. Although I don't remember now.

Btw is it here http://www.sonsivri.com/forum/index.php?topic=27460.0 that you wanted, right?
Title: Re: vBulletin Style Meta Tags
Post by: Joker™ on January 29, 2010, 08:04:42 AM
see urself :D >> www.freakygurus.com

Actually it's not working as intended :D You got the same problem than me in the beginning.

Go to a thread and see keywords line. It should be: Topic Subject, keywords hard coded in template

Let's take this http://www.freakygurus.com/index.php?topic=2466.0 (http://www.freakygurus.com/index.php?topic=2466.0) for example. In keywords line, it shows only keywords you have defined in your Admin panel, TWICE.

The current line is: <meta name="keywords" content="yahoo booters,booter,yahoobooter,yahoo booter,yahoo tools,yahoo crackers,downloads,yahoo,movies,ebooks,download,games,software,antivirus,proxy,servers, yahoo booters,booter,yahoobooter,yahoo booter,yahoo tools,yahoo crackers,downloads,yahoo,movies,ebooks,download,games,software,antivirus,proxy,servers" />

What it should be: <meta name="keywords" content="u can request for group membership, yahoo booters,booter,yahoobooter,yahoo booter,yahoo tools,yahoo crackers,downloads,yahoo,movies,ebooks,download,games,software,antivirus,proxy,servers" />

sources/subs.php

remove this line

Code: [Select]
$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $smcFunc['htmlspecialchars']($modSettings['meta_keywords']) : 'PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum';
Title: Re: vBulletin Style Meta Tags
Post by: Sirius OCTeam on January 31, 2010, 03:16:23 PM
Hi,

also, the smileys and non breaking spaces (&nbsp;) or other stuff like that, should not be included in the description as they're return like "�" (I'm on utf-8)
Title: Re: vBulletin Style Meta Tags
Post by: esttecb on February 06, 2010, 04:23:24 PM
Nice mod. Just a "but".
Every single page in a specific forum has the same title and description...
I would do something like this to improve this mod...

Open: MessageIndex.php
Find:
Code: [Select]
// 'Print' the header and board info.
$context['page_title'] = strip_tags($board_info['name']) . ' - ' . $context['forum_name'];
require_once($sourcedir . '/MetaTags.php');
$context['meta_description'] = MetaTagsSpecialChars($board_info['name'] . ' - ' . $board_info['description']);
$context['meta_keywords'] = MetaTagsGenerateKeywords($board_info['name']);

Replace with:
Code: [Select]
// 'Print' the header and board info.
$context['page_title'] = strip_tags($board_info['name']) . ' - ' . $context['forum_name'] . ' (Page: ' . $context['page_info']['current_page'] . ')';
require_once($sourcedir . '/MetaTags.php');
$context['meta_description'] = MetaTagsSpecialChars($board_info['name'] . ' - ' . $board_info['description']) . ' - Page ' . $context['page_info']['current_page'];
$context['meta_keywords'] = MetaTagsGenerateKeywords($board_info['name']) . ', Page ' . $context['page_info']['current_page'];

It should be the same (or something like) for display.php...

In this way, you are adding the number of the current page to the title, description, and keywords...
Of course you should reduce the description length, etc...


Quote
Hi,
also, the smileys and non breaking spaces (&nbsp;) or other stuff like that, should not be included in the description as they're return like "�" (I'm on utf-8)
Quote
Thanks Sonsivri

keyword to appear in Turkish characters can be done ?

(anahtar kelime bölümünde türkçe karakterlerin görünmesi için ne yapılabilir)

About that:

Open: MetaTags.php

find:
Code: [Select]
return str_replace('"', '&quot;', strip_tags(html_entity_decode($text, ENT_QUOTES)));
replace with:
Code: [Select]
return str_replace('"', '&quot;', strip_tags(html_entity_decode($text, ENT_QUOTES, 'UTF-8')));
or replace the 'UTF-8' with whatever language encode you're using... like ISO-XXX or whatever.

take care.
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on February 06, 2010, 04:55:42 PM
"esttecb"
Did you tried your character encoding tip on any forum? I am just asking to let people know this is the solution. Because most members asked about it.
Title: Re: vBulletin Style Meta Tags
Post by: esttecb on February 06, 2010, 10:01:26 PM
UTF-8 is supposed to work with any character.
I tried with special spanish characters myself (¿, ñ, á, é, í, ó, ú) and it worked like a charm.

take care.
Title: Re: vBulletin Style Meta Tags
Post by: irtiza104 on February 12, 2010, 04:20:15 PM
How would i edit the keyword and description of the board index?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on February 12, 2010, 04:52:44 PM
How would i edit the keyword and description of the board index?
Its should be located in your admin panel. Setting that originally belong to SMF, is used in board index.
Title: Re: vBulletin Style Meta Tags
Post by: bjraines on February 17, 2010, 05:56:37 PM
I know there used to some support for SMF 1.x versions, is there an updated version. I absolutely love this mod
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on February 19, 2010, 09:08:01 AM
I know there used to some support for SMF 1.x versions, is there an updated version. I absolutely love this mod
I have ported it to 1.1.x family. And there is no any update made by me. Unless someone else didn't add some features in it.
Title: Re: vBulletin Style Meta Tags
Post by: bjraines on February 19, 2010, 10:13:42 AM
Thanks for replying, I found your original port ( 1.1.5, is there a more updated one) but I cannot get it installed on 1.1.11 (clean install with default template) I get an error on ./Sources/MessageIndex.php
Title: Re: vBulletin Style Meta Tags
Post by: Am' on February 19, 2010, 10:20:17 AM
it's possible to integrate this mod whith smf 2 rc 2 ? how ?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on February 20, 2010, 12:52:52 AM
Thanks for replying, I found your original port ( 1.1.5, is there a more updated one) but I cannot get it installed on 1.1.11 (clean install with default template) I get an error on ./Sources/MessageIndex.php
I didn't upgrade my 1.1.9 to 1.1.11 yet, so I dunno whats the changes between those and why can't this mod apply. I wish I had a time to update my forum...
Title: Re: vBulletin Style Meta Tags
Post by: bjraines on February 22, 2010, 12:38:27 PM
it is sort of crazy, the code works fine as written, the installer fails, i been messing with it for about an hour

but i put the code in manually exactly as it is written in the installer and it works fine.
Title: Re: vBulletin Style Meta Tags
Post by: maihannijat on February 26, 2010, 04:15:21 AM

Great Mod, I had index.template.php error in smf 1.1.11 , I installed the mod and edit index.template.php manually.

I had  Missing ManageSettings.php error as well, but i found an attachment in page 2 which works for smf 1.1.xx

I have checked Everything Works fines, Great Job

The page titles are always same, If I visit board, main page or post, always the title page is same.

<title>Afghanistan Forum : Afghan Forum: Afghanistan Discussion Board</title>


This above line never changes, I have visited different pages and viewed source from browser. it is always same <title>Afghanistan Forum : Afghan Forum: Afghanistan Discussion Board</title>


Any help will be highly appreciated.

I know all you guys are much busy, prove check my site if anyone is interested  www.afghanistanforums.com


Thanks Again for Great Mod.
Title: Re: vBulletin Style Meta Tags
Post by: irtiza104 on February 27, 2010, 09:49:53 AM
Hi,

Forum Index
Title: Forum Name - Index
Keywords: your keywords
Description: your description

Message Index
Title: Board Name - Forum Name
Keywords: Board, Name, Board Name, your keywords
Description: Board Name - Board Description

Message Display
Title: Topic Subject - Forum Name
Keywords: Topic, Subject, Topic Subject, your keywords
Description: First 150 characters of post
[/size]

i think i have successfully installed this mod. but i am having some problems. The board index has some keywords, which i entered via configuration>Features & Options>layout, but there is no description for the board index. and for every page the keywords remain the same, it doesnt change.

what should i do? plz help.

EDIT:

the page source for the board index:

        < meta http-equiv = "Content-Type" content="text/html; charset=ISO-8859-1" / >
   < meta name = "description" content ="" / >
        < meta name = "keywords" content="Bangladesh community, bangladesh forum, bangladeshi community, bangladeshi forum, tiger cricket, bangladesh cricket, natok, free, download, golper boi, Bangladesh community, bangladesh forum, bangladeshi community, bangladeshi forum, tiger cricket, bangladesh cricket, natok, free, download, golper boi" / >
   < title >BangladeshTalks Community - Index< / title >

The page source for the board movies:

< meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" / >
   < meta name="description" content="Movies - Download DVD quality movies for FREE from this area" / >
        < meta name="keywords" content="Bangladesh community, bangladesh forum, bangladeshi community, bangladeshi forum, tiger cricket, bangladesh cricket, natok, free, download, golper boi, Bangladesh community, bangladesh forum, bangladeshi community, bangladeshi forum, tiger cricket, bangladesh cricket, natok, free, download, golper boi" / >
   < title >Movies - BangladeshTalks Community< / title>
Title: Re: vBulletin Style Meta Tags
Post by: maihannijat on February 28, 2010, 12:01:26 AM

There was problem in title tag, index.template.php, the default code was changed to something else, I restored back to smf original,

Now works fine.
Title: Re: vBulletin Style Meta Tags
Post by: .Crazy.Face. on February 28, 2010, 02:25:16 AM
how does this help?  :o
Title: Re: vBulletin Style Meta Tags
Post by: azhriel on March 12, 2010, 12:56:17 AM
 SONSiVRi,

i installed your version in my 1.1.8 and got this error... how could i resolve this... i really want this mod on my site

Code: [Select]
Type  Action  Description
1. Execute Code dbmodify.php
2. Extract File ./Sources/MetaTags.php
3. Execute Modification ./Sources/MessageIndex.php Test successful
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./Sources/Display.php Test successful
[b]6. Execute Modification ./Themes/default/index.template.php Test failed[/b]
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful

I planned to manually install it but i dont know how to parse it on index.template.php
Title: Re: vBulletin Style Meta Tags
Post by: Am' on March 13, 2010, 05:52:14 AM
any update please ?

this not worked for me :

Code: [Select]
$context['meta_keywords'] = MetaTagsGenerateKeywords($topicinfo['subject']);
i have only my keywords, not keywords based on topic title - topic title

(meta descirption work fine)
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on March 13, 2010, 01:48:51 PM
SONSiVRi,

i installed your version in my 1.1.8 and got this error... how could i resolve this... i really want this mod on my site

Code: [Select]
Type  Action  Description
1. Execute Code dbmodify.php
2. Extract File ./Sources/MetaTags.php
3. Execute Modification ./Sources/MessageIndex.php Test successful
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./Sources/Display.php Test successful
[b]6. Execute Modification ./Themes/default/index.template.php Test failed[/b]
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful

I planned to manually install it but i dont know how to parse it on index.template.php
You can parse within download page, there is a dropdownbox to select your current version and it display parsing steps.
Title: Re: vBulletin Style Meta Tags
Post by: Am' on March 14, 2010, 05:03:07 AM
Hello,

I allowed myself of hanged again the module to adapt to smf2 rc3, with some improvements and fix :

Quote
- Compatibility 2rc3
- Moving the description field configuration above keywords
- Improved code generation for keywords:
----- Process lighter
----- Words <= 3 characters are automatically skipped in the keywords
----- You can customize the list of words that are ignored in the file metatags.php the varaible $common_words
----- Compatibility utf8 (éàé. ...)
- Added page number in the description

I took the module only because it seems to be abandoned, if this is not the case please contact me so that I removed :P

Working:

Configure your meta as in the screenshot:

(http://img62.imageshack.us/img62/5416/capturezv.png)

In the index of your forum, you will have the meta as follows:

Code: [Select]
<meta name="description" content="Description of your site, visible only in index ^^" />
<meta name="keywords" content="board, smf, meta tags, visible in all page" />
<title>NameSite - Index</title>

In a board you will have the meta as follows:

Code: [Select]
<meta name="description" content="Name Board - this a Description for my new board for geek ... - Page 1" />
<meta name="keywords" content="Name, Board, Name Board, board, smf, meta tags, visible in all page" />
<title>Name Board  - NameSite  (Page: 1)</title>

In a topic, you will have the meta as follows:

Code: [Select]
<meta name="description" content="50 first lettres of this topic" />
<meta name="keywords" content="Title, topic, Titile topic, board, smf, meta tags, visible in all page" />
<title>Title topic - NameSite</title>

I hope you enjoy it, and thx google traduction  ;)
Title: Re: vBulletin Style Meta Tags
Post by: Sirius OCTeam on March 14, 2010, 05:28:55 AM
Works great, thanks Am'
Title: Re: vBulletin Style Meta Tags
Post by: coolfx350 on March 16, 2010, 09:24:29 AM
This is by far one of the best mods I have ever came across, I was always wondering why I am lagging in search engines compare to my competitors who are using VBulletin software.

Thank you rsw686 for making a mod like this.  And Thank you "SONSiVRi" for making it happen for all the 1.1.x version people.

SMF has nice folks like you guys which making it more successful each and everyday.

keep up the good work.
Title: Re: vBulletin Style Meta Tags
Post by: amko_sa on May 30, 2010, 04:29:25 PM
Hello,

I allowed myself of hanged again the module to adapt to smf2 rc3, with some improvements and fix :

Quote
- Compatibility 2rc3
- Moving the description field configuration above keywords
- Improved code generation for keywords:
----- Process lighter
----- Words <= 3 characters are automatically skipped in the keywords
----- You can customize the list of words that are ignored in the file metatags.php the varaible $common_words
----- Compatibility utf8 (éàé. ...)
- Added page number in the description

I took the module only because it seems to be abandoned, if this is not the case please contact me so that I removed :P

Working:

Configure your meta as in the screenshot:

(http://img62.imageshack.us/img62/5416/capturezv.png)

In the index of your forum, you will have the meta as follows:

Code: [Select]
<meta name="description" content="Description of your site, visible only in index ^^" />
<meta name="keywords" content="board, smf, meta tags, visible in all page" />
<title>NameSite - Index</title>

In a board you will have the meta as follows:

Code: [Select]
<meta name="description" content="Name Board - this a Description for my new board for geek ... - Page 1" />
<meta name="keywords" content="Name, Board, Name Board, board, smf, meta tags, visible in all page" />
<title>Name Board  - NameSite  (Page: 1)</title>

In a topic, you will have the meta as follows:

Code: [Select]
<meta name="description" content="50 first lettres of this topic" />
<meta name="keywords" content="Title, topic, Titile topic, board, smf, meta tags, visible in all page" />
<title>Title topic - NameSite</title>

I hope you enjoy it, and thx google traduction  ;)

There is one problem with this mod.When I check my metatag I have error "no tiitle" and "no description" for all my topics but not for my index page.I use SMF RC 3 forum.
Title: Re: vBulletin Style Meta Tags
Post by: rd on May 30, 2010, 04:47:35 PM
You all do realize that Meta tags don't matter these days?
Title: Re: vBulletin Style Meta Tags
Post by: amko_sa on June 01, 2010, 12:11:59 PM
You all do realize that Meta tags don't matter these days?

Maybe but indexed links look match better examlpe:

Nero Multimedia Suite 9.4.39.0 -this is default in SMF

or with this mod:

Nero Multimedia Suite 9.4.39.0  - Name of your site
Title: Re: vBulletin Style Meta Tags
Post by: yoghurtfarmer on June 14, 2010, 07:56:31 AM
You all do realize that Meta tags don't matter these days?

Of course they do, no matter where you rank on google, no one will click if the description is poor. The description is often drawn from the meta description, so yes they do matter.
Title: Re: vBulletin Style Meta Tags
Post by: gourav on June 15, 2010, 02:36:03 PM
I am Getting Duplicate Meta Tags???
There are two options in my Forum  for this. One in Feature and Options menu
( there is only for Meta Tags the default one of SMF )

second is in Modification Section with Description and Meta tags option
If i remove Meta Tags from any one of side it gets removed from both
side and if there are tags then its shows up two times in source :(

What could be the problem?
Title: Re: vBulletin Style Meta Tags
Post by: Alyen on June 20, 2010, 10:39:24 AM
I can only KeyWorks the default, do not leave the keys in the title or the name of the board.

look at the example:

http://www.xpzone.net/geral/sugestoes-de-tutoriais/

<meta name="description" content="Boa noite galera,  Vou dar início a uma série de tutoriais desenvolvidos por mim para o fórum XPZone, mas falta idéias de tutoriais, caso você tenha" />
<meta name="keywords" content="server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu, server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu" />
   
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on June 20, 2010, 02:10:05 PM
I can only KeyWorks the default, do not leave the keys in the title or the name of the board.

look at the example:

http://www.xpzone.net/geral/sugestoes-de-tutoriais/

<meta name="description" content="Boa noite galera,  Vou dar início a uma série de tutoriais desenvolvidos por mim para o fórum XPZone, mas falta idéias de tutoriais, caso você tenha" />
<meta name="keywords" content="server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu, server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu" />
   

Did you edited your custom theme if you have?
Title: Re: vBulletin Style Meta Tags
Post by: Alyen on June 21, 2010, 02:43:44 AM
I can only KeyWorks the default, do not leave the keys in the title or the name of the board.

look at the example:

http://www.xpzone.net/geral/sugestoes-de-tutoriais/

<meta name="description" content="Boa noite galera,  Vou dar início a uma série de tutoriais desenvolvidos por mim para o fórum XPZone, mas falta idéias de tutoriais, caso você tenha" />
<meta name="keywords" content="server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu, server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu" />
   

Did you edited your custom theme if you have?

yes  ;D
Title: Re: vBulletin Style Meta Tags
Post by: OnlineFunCorner on June 22, 2010, 02:24:13 PM
Thanks For Great MOD
I Am Using 2.0 RC1
Having Problem With Two Files During Installation Of metatags_1.1.zip

001---
   Add After     ./Sources/ManageSettings.php     Test failed

Find
  // Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!! 

Add After
  array('text', 'meta_description', '75', $txt['meta_description']),
  array('text', 'meta_keywords', '75', $txt['meta_keywords']), 

002---
   Replace     ./Themes/default/index.template.php     Test failed

Find
  <meta name="description" content="', $context['page_title'], '" /> 
  <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" /> 

Replace
  <meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" /> 
  <meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" /> 


PLEASE PLEASE PLEASE !!!
Help Me

I Think Due To Some Other MODs Find Strings From Both Two Files Are Missing Or Due To 2.0 RC1

Please Tell Me How I Manually Put Code And Where In These Files
Thanks
Title: Re: vBulletin Style Meta Tags
Post by: OnlineFunCorner on June 23, 2010, 06:36:26 AM
Is There AnyOne For Help
I Really Need Help
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on June 23, 2010, 12:53:57 PM
Is There AnyOne For Help
I Really Need Help

I never used 2.x family. But if I was in your situation, I would downloaded fresh copy of forum and "find" those patterns in fresh forum and once I locate the place I could match with my forum. Then I manually apply the missing modifications.
Title: Re: vBulletin Style Meta Tags
Post by: OnlineFunCorner on June 23, 2010, 01:16:10 PM
Thanks
I Will Check All And Come Back Soon!
Title: Re: vBulletin Style Meta Tags
Post by: OnlineFunCorner on June 23, 2010, 01:53:30 PM
Ok
Lets See
In Fresh Setup

Index.template.php Contains
        <meta name="description" content="', $context['page_title_html_safe'], '" />
   <meta name="keywords" content="', $context['meta_keywords'], '" />

ManageSettings.php Contains
        // Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!! 

Currently In My Website

Index.template.php Contains
        <meta name="description" content="', $context['page_title_html_safe'], '" />
   <meta name="keywords" content="', $context['meta_keywords'], '" />

ManageSettings.php Contains
        // Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
I Have To Replace

        <meta name="description" content="', $context['page_title_html_safe'], '" />
   <meta name="keywords" content="', $context['meta_keywords'], '" />

WITH

        <meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
        <meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" /> 

AND

ADD
  array('text', 'meta_description', '75', $txt['meta_description']),
  array('text', 'meta_keywords', '75', $txt['meta_keywords']), 

AFTER
// Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.


AM I CORRECT?
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on June 23, 2010, 02:48:59 PM
"Dr.IT"
Yep, its correct. And as a reminder, you are editing original "index.template.php", you should edit your custom theme too if you have.
Title: Re: vBulletin Style Meta Tags
Post by: OnlineFunCorner on June 24, 2010, 12:51:22 PM
Hy SONSiVRi
Thanks
I Already Knows To Modify index.template.php Of My Current Theme Too
Thanks For Mention It
That's Shows You Completely Involved In Helping Others Seriously
I Like Your Guiding Style
Very Good
And
Very Very Very Thanks For Helping Me
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on June 24, 2010, 01:07:11 PM
Hy SONSiVRi
Thanks
I Already Knows To Modify index.template.php Of My Current Theme Too
Thanks For Mention It
That's Shows You Completely Involved In Helping Others Seriously
I Like Your Guiding Style
Very Good
And
Very Very Very Thanks For Helping Me

Its ok man. But, does it helped my guidance? I didn't tell anything, you just got it yourself.
Title: Re: vBulletin Style Meta Tags
Post by: OnlineFunCorner on June 24, 2010, 02:12:28 PM
New Problem???
I Did Not Find Setting For This Mod In ADMIN Panel
And When I Run
http://www.pharmaithorizon.com/dbmodify.php

I Got This Error


Notice: Undefined index: mytab_Custom_URL in /home/**********/public_html/Sources/Subs.php on line 3859

Notice: Undefined index: mytab_Custom_URL in /home/**********/public_html/Sources/Subs.php on line 3861

I Am Waiting!!!
Title: Re: vBulletin Style Meta Tags
Post by: SONSiVRi on June 24, 2010, 02:40:43 PM
New Problem???
I Did Not Find Setting For This Mod In ADMIN Panel
And When I Run
http://www.pharmaithorizon.com/dbmodify.php

I Got This Error


Notice: Undefined index: mytab_Custom_URL in /home/**********/public_html/Sources/Subs.php on line 3859

Notice: Undefined index: mytab_Custom_URL in /home/**********/public_html/Sources/Subs.php on line 3861

I Am Waiting!!!

In my smf 1.1.9, its located in "admin\features options\basic features" as a textboxes named  "meta description" "meta keywords". I dunno where it should be located on smf 2.x family.

dbmodify.php is just for adding settings entry into database. you can do it by yourself. variable names and parameters are located in dbmodify.php itself. But it seems there is a problem on your setup, you might mixed up something there and subs.php giving error.
Title: Re: vBulletin Style Meta Tags
Post by: OnlineFunCorner on June 24, 2010, 02:58:21 PM
Is It Necessary To Run dbmodify.php?
And
Whats The Reason No Setting Option Visible In My Admin Panel?
I Think Its Related To ManageSettings.php File
Is There Any Error?
Title: Re: vBulletin Style Meta Tags
Post by: OnlineFunCorner on June 24, 2010, 03:12:59 PM
Let Me Think
According To My Senses ManageSettings.php Is Associated With Showing Setting Panel In ADMIN Panel.
There Must Be Some Mistake Within It.
--
How I Can I Put dbmodify.php Manually And What Can Be Problem With Sub.php
Title: Re: vBulletin Style Meta Tags
Post by: wangx44 on June 24, 2010, 05:40:53 PM
I get 'Test Failed' error in index.template.php. Below is the error:



6.     Execute Modification     ./Themes/default/index.template.php     Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed


Find[Select]
<meta name="description" content="', $context['page_title'], '" /> <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
Replace[Select]
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" /> <meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
Title: Re: vBulletin Style Meta Tags
Post by: OnlineFunCorner on June 25, 2010, 02:22:32 AM
Let Me Think
According To My Senses ManageSettings.php Is Associated With Showing Setting Panel In ADMIN Panel.
There Must Be Some Mistake Within It.
--
How I Can I Put dbmodify.php Manually And What Can Be Problem With Sub.php

I Edit The ManageSetting.php Again And Its Works Now
Last Editing Was 100% Wrong
I Got The Setting In ADMIN Panel Now
--
I Still Want To Know
Is There Any Benefit Of Running dbmodify.php File And What Its Do?
Why When I Run It Its Shows Some Error Of Subs.php File
Actually There Is No Entry In Coding Of dbmodify.php Regarding To Subs.php
--
Why I Got Double,Duplicated Or Repeated Keywords
As
01,02,03 ,01,02,03
It Must Shows Only 01,02,03
--
Why In Board And Topic Page
Keywords Section Only Contains Main Keywords Which I Added In Setting In Meta Keywords
But Author Of This MOD Write In Description
Its Automatically Add Board And Topic Name In Keywords
But It Do Not Work
--
Did You Got My Questions!!!
Title: Re: vBulletin Style Meta Tags
Post by: Alyen on June 25, 2010, 03:48:46 AM
I can only KeyWorks the default, do not leave the keys in the title or the name of the board.

look at the example:

http://www.xpzone.net/geral/sugestoes-de-tutoriais/

<meta name="description" content="Boa noite galera,  Vou dar início a uma série de tutoriais desenvolvidos por mim para o fórum XPZone, mas falta idéias de tutoriais, caso você tenha" />
<meta name="keywords" content="server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu, server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu" />
Title: Re: vBulletin Style Meta Tags
Post by: OnlineFunCorner on June 25, 2010, 04:13:06 AM
I can only KeyWorks the default, do not leave the keys in the title or the name of the board.

look at the example:

http://www.xpzone.net/geral/sugestoes-de-tutoriais/

<meta name="description" content="Boa noite galera,  Vou dar início a uma série de tutoriais desenvolvidos por mim para o fórum XPZone, mas falta idéias de tutoriais, caso você tenha" />
<meta name="keywords" content="server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu, server, servidores, mu online, cabel online, lineage 2, downloads, tutorial, designer, server file, portifolios, paginas de mu" />

U Did Not Got My Point
As MOD Describe

Forum Index
Title: Forum Name - Index            ---Works OK
Keywords: your keywords            ---Works OK
Description: your description         ---Works OK

Message Index
Title: Board Name - Forum Name                                                     ---Works OK
Keywords: Board, Name, Board Name, your keywords         ---This Bold Part Missing
Description: Board Name - Board Description                                 ---Works OK

Message Display
Title: Topic Subject - Forum Name                                                   ---Works OK
Keywords: Topic, Subject, Topic Subject, your keywords      ---This Bold Part Missing
Description: First 150 characters of post                                         ---Works OK
Title: Re: vBulletin Style Meta Tags
Post by: OnlineFunCorner on June 25, 2010, 04:48:01 AM
Let Me Think
According To My Senses ManageSettings.php Is Associated With Showing Setting Panel In ADMIN Panel.
There Must Be Some Mistake Within It.
--
How I Can I Put dbmodify.php Manually And What Can Be Problem With Sub.php

I Edit The ManageSetting.php Again And Its Works Now
Last Editing Was 100% Wrong
I Got The Setting In ADMIN Panel Now
--
I Still Want To Know
Is There Any Benefit Of Running dbmodify.php File And What Its Do?
Why When I Run It Its Shows Some Error Of Subs.php File
Actually There Is No Entry In Coding Of dbmodify.php Regarding To Subs.php
--
Why I Got Double,Duplicated Or Repeated Keywords
As
01,02,03 ,01,02,03
It Must Shows Only 01,02,03
--
Why In Board And Topic Page
Keywords Section Only Contains Main Keywords Which I Added In Setting In Meta Keywords
But Author Of This MOD Write In Description
Its Automatically Add Board And Topic Name In Keywords
But It Do Not Work
--
Did You Got My Questions!!!

Thanks To All
I Done Some Changes In Codes Of Some Files And Correct Everything
I Got The Answer Of All My Questions Myself.
Title: Re: vBulletin Style Meta Tags
Post by: distante on July 15, 2010, 06:39:51 PM
This mod works with RC3? the DB format is the same?
Title: Re: vBulletin Style Meta Tags
Post by: wizzard1 on July 26, 2010, 10:49:17 AM
This mod works with RC3? the DB format is the same?

i like to know that aswell does it work with RC3 ?
Title: Re: vBulletin Style Meta Tags
Post by: Am' on July 26, 2010, 11:24:50 AM
Hello,

I allowed myself of hanged again the module to adapt to smf2 rc3, with some improvements and fix :

Quote
- Compatibility 2rc3
- Moving the description field configuration above keywords
- Improved code generation for keywords:
----- Process lighter
----- Words <= 3 characters are automatically skipped in the keywords
----- You can customize the list of words that are ignored in the file metatags.php the varaible $common_words
----- Compatibility utf8 (éàé. ...)
- Added page number in the description

I took the module only because it seems to be abandoned, if this is not the case please contact me so that I removed :P

Working:

Configure your meta as in the screenshot:

(http://img62.imageshack.us/img62/5416/capturezv.png)

In the index of your forum, you will have the meta as follows:

Code: [Select]
<meta name="description" content="Description of your site, visible only in index ^^" />
<meta name="keywords" content="board, smf, meta tags, visible in all page" />
<title>NameSite - Index</title>

In a board you will have the meta as follows:

Code: [Select]
<meta name="description" content="Name Board - this a Description for my new board for geek ... - Page 1" />
<meta name="keywords" content="Name, Board, Name Board, board, smf, meta tags, visible in all page" />
<title>Name Board  - NameSite  (Page: 1)</title>

In a topic, you will have the meta as follows:

Code: [Select]
<meta name="description" content="50 first lettres of this topic" />
<meta name="keywords" content="Title, topic, Titile topic, board, smf, meta tags, visible in all page" />
<title>Title topic - NameSite</title>

I hope you enjoy it, and thx google traduction  ;)
Title: Re: vBulletin Style Meta Tags
Post by: distante on July 26, 2010, 01:49:35 PM
This mod works with RC3? the DB format is the same?

And Also With RC2 ! :P
Title: Re: vBulletin Style Meta Tags
Post by: Plazik on July 29, 2010, 10:12:16 AM
How make in a topic:
Code: [Select]
<title>Title topic (Page: 1) - NameSite </title>
Title: Re: vBulletin Style Meta Tags
Post by: DarkflameQ on August 18, 2010, 07:06:23 AM
Installed and setup this mod without any errors but i can't seem to get the mod to work exactly how i want it to.

Now when i do a search result, the site now has the Meta Description included:

(http://img411.imageshack.us/img411/2166/47653444.png)

Which is great but i want it to show more information like this:

(http://img338.imageshack.us/img338/7007/moddb.png)

I thought this mod was designed to show sites like this, did i assume incorrect or am i just doing something wrong?

Cheers in advance!

Darkflame
Title: Re: vBulletin Style Meta Tags
Post by: distante on August 18, 2010, 10:17:22 AM
Is google who make the choice of show subtitles in URL's, How Google make that choice? Is a mistery!
Title: Re: vBulletin Style Meta Tags
Post by: maihannijat on August 29, 2010, 12:19:13 AM
Is it possible to add Meta Description and Meta Keywords manually for main page? Main Forum?

Title: Re: vBulletin Style Meta Tags
Post by: maihannijat on August 29, 2010, 12:59:48 AM
I figured out.

I inserted a row in SMF_Settings table meta_description and add my description on that.

Title: Re: vBulletin Style Meta Tags
Post by: perfec2 on August 29, 2010, 04:46:58 AM
Why trying to instal I got following errors:
Installing this package will perform the following actions:  Type Action Description
1. Execute Code dbmodify.php 
2. Extract File ./Sources/MetaTags.php 
3. Execute Modification ./Sources/MessageIndex.php Test successful
4. Execute Modification ./Sources/Display.php Test successful
5. Execute Modification ./Sources/ManageSettings.php File not found
6. Execute Modification ./Themes/default/index.template.php Test failed
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful


Please how can I get this errors solve, I can't wait to have this funtionality in our forum?
Title: Re: vBulletin Style Meta Tags
Post by: dsanchez on September 12, 2010, 09:00:19 AM
I thought this mod was designed to show sites like this, did i assume incorrect or am i just doing something wrong?

You need to install Sitemap (http://custom.simplemachines.org/mods/index.php?mod=755) as well.

Don't forget to add your site to Google Webmasters (http://) and tell Google where your Site Map is.

Title: Re: vBulletin Style Meta Tags
Post by: dsanchez on September 12, 2010, 09:02:08 AM
6. Execute Modification ./Themes/default/index.template.php Test failed

open the file index.template.php in your theme, then find

Code: [Select]
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

and replace it with

Code: [Select]
<meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
<meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />
Title: Re: vBulletin Style Meta Tags
Post by: perfec2 on September 16, 2010, 07:44:57 PM
 dsanchez, I did just that but still got same error message.
Title: Re: vBulletin Style Meta Tags
Post by: chinu_491985 on September 21, 2010, 06:55:24 AM
Hello Friends,

I have installed VBulletien Meta Tags Mod in my forum. But it was failed to installed. Please check the error below and help me out. I am using SMF 1.1.11 and VBulletien Meta Tags MOD 1.0

1.     Execute Code                    dbmodify.php   
2.   Extract File                   ./Sources/MetaTags.php   
3.   Execute Modification   ./Sources/MessageIndex.php                           Test successful
4.   Execute Modification   ./Sources/ModSettings.php                           Test successful
5.   Execute Modification   ./Sources/Display.php                                   Test successful
6.   Execute Modification   ./Themes/default/index.template.php               Test failed
7.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
Title: Re: vBulletin Style Meta Tags
Post by: siyaheksen on October 29, 2010, 09:24:08 AM
Good mod.

2.0 RC3 version?
Title: Re: vBulletin Style Meta Tags
Post by: OnlineFunCorner on October 29, 2010, 10:39:48 AM
Yes
Its work with 2.0 RC3
Title: Re: vBulletin Style Meta Tags
Post by: Galaad31 on November 08, 2010, 12:32:33 AM
Maybe someone can help me?.

This mod works for me in Extreme6 custom theme but on forum posts only. Any of my other pages i.e my bakers dozen mod pages or my gallery or Simple Portal home page just show my own default page title and my default meta keywords.

I guess what I'm asking, is this correct behaviour of this mod? just to modify text from forum posts and nothing else?

Anybody got any ideas how I can make this mod work on all my pages?

Thanks.
As you said; this mod rips words off from posts and put those into meta tag keywords. As this simple.

To using in your gallery for example, you need to write your own code that rips your media on gallery and put into meta tags. Same for portal main page; rips articles...

Hello, I don't understand what part of code I must write for simple portal index page.
Can someone help me please?
Thanks in advance and sorry for my bad english.
Title: Re: vBulletin Style Meta Tags
Post by: vincent87 on November 30, 2010, 11:26:35 PM
well, whether there are successful using this program? I've tried repeatedly but failed on keywords. keywords that appear are the default keywords such as php, boards, etc SMF and only copied 2 times. then I tried to remove the keyword at the modifications>miscellaneous and the results are not out any writing on my keywords

i try it in SMF version 1.1.7, 1.1.12, 2.0rc3, 2.0rc4 and it's not working
Title: Re: vBulletin Style Meta Tags
Post by: NoFeaR / NFSMW on December 07, 2010, 06:25:10 AM
Please update
Title: Re: vBulletin Style Meta Tags
Post by: nateacer on December 18, 2010, 01:36:11 AM
Quote
Add section on admin interface to define default keywords and description

I don't have the description box, it's still the same simple keywords box!
Title: Re: vBulletin Style Meta Tags
Post by: amko_sa on January 05, 2011, 06:39:47 AM
How to install this mod on smf RC4 anyone help ?
Title: Re: vBulletin Style Meta Tags
Post by: Imso on January 05, 2011, 08:14:00 AM
1.1.12 update please!
Title: Re: vBulletin Style Meta Tags
Post by: Sirius OCTeam on January 15, 2011, 07:53:00 PM
Hi

I've made it RC4 compliant + french ut8 language.

No support for this, use at own risk.

But it works ok on my board  ;)
Title: Re: vBulletin Style Meta Tags
Post by: amko_sa on January 16, 2011, 06:22:51 AM
Tnx Sirius, it works. When I check meta tag here (http://www.seocentro.com/tools/search-engines/metatag-analyzer.html) everything is Ok.  :)
Title: Re: vBulletin Style Meta Tags
Post by: palcuiealex on January 16, 2011, 05:51:05 PM
Hoping for a 1.1.12 working version soon :-)
Title: Re: vBulletin Style Meta Tags
Post by: eyo on January 16, 2011, 10:42:59 PM
will i have a problem if i have prettyurls installed? it feels like it does the same things or im prob mistaken
Title: Re: vBulletin Style Meta Tags
Post by: james.l on February 02, 2011, 11:17:49 AM
Hi, New to the SMF forum, so firstly hello to all :)

I've got a problem with the vBulletin Style Meta Tags mod. I'll try and explain it as clearly as possible.

Homepage of forum : bodymuscle.co.uk

The homepage is displaying information exactly how I would like it to, i have set this up in the Configuration > Modification Settings > Miscellaneous.

Boards are being displayed well also, it's grabbing the meta description from the description of that board, and the meta keywords from the forum keywords as setup in Configuration > Modification Settings > Miscellaneous. Is there any way to change where it fetches the keywords from??

Lastly (but most important to me) the posts appear to be fetching the description from the first sentance or two of the post, but it is getting the keywords from the overall forum default?  As far as i understand the mod should do the following?

Forum Index
Title: Forum Name - Index
Keywords: your keywords
Description: your description
Works Perfectly

Message Index
Title: Board Name - Forum Name
Keywords: Board, Name, Board Name, your keywords
Description: Board Name - Board Description
Working on the Title & Description, but not on keywords?

Message Display
Title: Topic Subject - Forum Name
Keywords: Topic, Subject, Topic Subject, your keywords
Description: First 150 characters of post
Working on Title & Description but not on keywords

Can anyone shead any light on this? I can post up some php config of certain files if needed.

I have been through the manual installation instructions and checked all the code, but i can't seem to spot why this isn't working.

Many Thanks

James
Title: Re: vBulletin Style Meta Tags
Post by: james.l on February 03, 2011, 04:53:42 AM
Anybody got an ideas on this?
Title: Re: vBulletin Style Meta Tags
Post by: james.l on February 04, 2011, 08:40:14 AM
I guess nobody wants to help me on this???
Title: Re: vBulletin Style Meta Tags
Post by: FlipPro on February 22, 2011, 09:02:24 PM
I will pay someone to help me install this on my custom theme. Please get in contact with me if you would like to help me out. I contacted the developer but he has not responded in 2 weeks. I need this ASAP it is HIGH PRIORITY, so PLEASE message me as soon as you can. Thank you.
Title: Re: vBulletin Style Meta Tags
Post by: Chadrew on March 06, 2011, 09:05:05 AM
Does this work with RC5? I seriously think this meta description behavior should be used by SMF by default. Setting meta description the same as title seems pretty weird to me.
Title: Re: vBulletin Style Meta Tags
Post by: simpledizayn on March 10, 2011, 04:33:21 PM
Good work!

Thanks!

Please update...
Title: Re: vBulletin Style Meta Tags
Post by: Astra_200 on March 10, 2011, 06:53:30 PM
Many thanks Sirius OCTeam for the RC4 update, works great other than the mod repeats user keywords twice and does not allow post keywords to be shown.

I found the solution was to find and delete this line in Subs.php
Code: [Select]
$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $smcFunc['htmlspecialchars']($modSettings['meta_keywords']) : '';
You can see the difference using this site http://www.seocentro.com/tools/search-engines/metatag-analyzer.html (http://www.seocentro.com/tools/search-engines/metatag-analyzer.html)

Worked for me anyway.
Title: Re: vBulletin Style Meta Tags
Post by: amko_sa on March 13, 2011, 07:07:35 AM
Many thanks Sirius OCTeam for the RC4 update, works great other than the mod repeats user keywords twice and does not allow post keywords to be shown.

I found the solution was to find and delete this line in Subs.php
Code: [Select]
$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $smcFunc['htmlspecialchars']($modSettings['meta_keywords']) : '';
You can see the difference using this site http://www.seocentro.com/tools/search-engines/metatag-analyzer.html (http://www.seocentro.com/tools/search-engines/metatag-analyzer.html)

Worked for me anyway.

Tnx Astra_200, this is 100% Ok.  8)
Title: Re: vBulletin Style Meta Tags
Post by: Rohan_ on March 29, 2011, 06:27:05 AM
I want to use this for 1.1.13 is it possible ?? please help me please
Title: Re: vBulletin Style Meta Tags
Post by: Arantor on March 29, 2011, 06:34:57 AM
Not without rewriting it, no, and you'd have to manually install it on your theme too.
Title: Re: vBulletin Style Meta Tags
Post by: Rohan_ on March 29, 2011, 06:43:03 AM
I will manually install it that is not a problem for me at all... but i can't rewrite it :(

can You please provide me the codes for making the changes please ?
Title: Re: vBulletin Style Meta Tags
Post by: Arantor on March 29, 2011, 06:44:00 AM
No, I won't, because all it will do is add further load to your server for no measurable gain.
Title: Re: vBulletin Style Meta Tags
Post by: alpheus on April 05, 2011, 10:33:49 AM
where is the mod author please? First you doing a mod and then you are away!!! So many people waiting for 1.1.13 version of this mod. Please care with it...
Title: Re: vBulletin Style Meta Tags
Post by: cellax on July 12, 2011, 05:26:48 PM
I was using a rewrote one on my board with smf 1.1.x

now I upgraded to smf 2 but I just attach to share. Dont install it without test it on localhost, check the code.
Title: Re: vBulletin Style Meta Tags
Post by: MiY4Gi on July 12, 2011, 06:04:00 PM
Careful. As Kindred pointed out, it's not SMF policy to attached modified mods. PM the current mod developer first. If he doesn't reply, then post the attachment, but it's very likely that a moderator will remove your attachment. I'm not sure what the correct procedure is, but I suggest you find out.
Title: Re: vBulletin Style Meta Tags
Post by: MiY4Gi on August 08, 2011, 10:43:20 AM
Alright, I just discovered that the mod hasn't been working on my forum for a while. After a little analyzing I realized that it was because I changed my theme, and the mod was only installed on the default Curve theme. This is just a heads up for anyone else who's thinking of changing theme. Re-install the mod after you change your theme.

I originally thought it might have been due to me using PortaMxSEF (another version of pretty urls), but I was wrong. I forgot that mods need to be re-installed or checked on every new theme.
Title: Re: vBulletin Style Meta Tags
Post by: zijO on September 09, 2011, 01:17:56 AM
Many thanks Sirius OCTeam for the RC4 update, works great other than the mod repeats user keywords twice and does not allow post keywords to be shown.

I found the solution was to find and delete this line in Subs.php
Code: [Select]
$context['meta_keywords'] = !empty($modSettings['meta_keywords']) ? $smcFunc['htmlspecialchars']($modSettings['meta_keywords']) : '';
You can see the difference using this site http://www.seocentro.com/tools/search-engines/metatag-analyzer.html (http://www.seocentro.com/tools/search-engines/metatag-analyzer.html)

Worked for me anyway.



SMF 2.0

I removed line but now i get generated keywords 2 times then followed by my keywords.
as

my,post,my,post,  followed by my own keyboards
Title: Re: vBulletin Style Meta Tags
Post by: zijO on September 20, 2011, 09:45:31 PM
SMF2.0
Any idea why i get

index.php?topic=1364.msg11378#msg11378

#msg11378 two times ? :o
Title: Re: vBulletin Style Meta Tags
Post by: MiY4Gi on September 21, 2011, 07:38:19 AM
SMF2.0
Any idea why i get

index.php?topic=1364.msg11378#msg11378

#msg11378 two times ? :o

That, my friend, is either the way SMF works, or it is a bug in SMF. That problem comes standard in the default SMF install.

What really annoys me about the problem is that the ajax anchor tags (eg. #123) which are meant to take you to the relevant post (i.e. post #123) without reloading the page, can't do what it's supposed to do, since the URL is different (eg. topic=4356 =>topic=4356.msg123#123 instead of topic=4356 => topic=4356#123).

Anyway, I'm gonna create a new topic that discusses this. I reckon they should just remove the ajax #number bit since it's now redundant.

Actually, the ajax tag does serve it's purpose in that, without the tag (e.g. topic=4356.msg123), the browser simply goes to the top of the page containing the post (i.e. msg123), but with the tag (e.g. topic=4356.msg123#123), the browser not only goes to the page containing the post, but it also points to the relevant post within the page (i.e. post #123).
Title: Re: vBulletin Style Meta Tags
Post by: Adrek on November 07, 2011, 01:18:59 PM
Can someone update this mod for 2.0.1?
Title: Re: vBulletin Style Meta Tags
Post by: MiY4Gi on November 07, 2011, 02:15:02 PM
It already works for 2.0.1. Emulate the installation package for 2.0.1.
Title: Re: vBulletin Style Meta Tags
Post by: Adrek on November 07, 2011, 02:52:04 PM
My bad.. sorry ;/

But still I have one question. In keywords, mod removes polish characters in single words.

If word is "Które" in site source will be "Kt", but in keyword where is whole topic title it's correct. Any way to fix that?

I'm using UTF8.
Title: Re: vBulletin Style Meta Tags /
Post by: Margus on February 24, 2018, 09:13:18 PM
So it is still safe,  on 2.0.15
as getting the same theme error on default theme, near plain install:

Quote

./Themes/default/index.template.php
Find: [Select]

   <meta name="description" content="', $context['page_title'], '" />
   <meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />

Replace With: [Select]

   <meta name="description" content="', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
   <meta name="keywords" content="', !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' : '', $modSettings['meta_keywords'], '" />

and i got:


// ]]></script>';

   echo '
   <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
   <meta name="description" content="', $context['page_title_html_safe'], '" />', !empty($context['meta_keywords']) ? '
   <meta name="keywords" content="' . $context['meta_keywords'] . '" />' : '', '
   <title>', $context['page_title_html_safe'], '</title>';


   // Please don't index these Mr Robot.


So should i replace all of it, ...simple as that or should i..
Title: Re: vBulletin Style Meta Tags
Post by: Margus on February 24, 2018, 09:14:48 PM
in truth, mostly i have been looking way to add tags under post,
or labels