News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

vBulletin Style Meta Tags

Started by rsw686, March 23, 2008, 09:36:45 PM

Previous topic - Next topic

rsw686

Link to Mod

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
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Chopper

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


rsw686

Quote from: Chopper on March 24, 2008, 09:11:39 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
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

TEOC2


karlbenson

TEOC2 there are no settings.

It does it automatically.

If you need to the do the edits manually you can use a package parser to provide you with the edits.

TEOC2

Ah, ok, i was thinking its a similar mod to your "easy edit meta data".

Sincere

Quote from: rsw686 on March 23, 2008, 09:36:45 PM
Link to Mod

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
Do you need a special mod for your smf forums? contact me for a quote.

Sincere

Quote from: rsw686 on March 23, 2008, 09:36:45 PM
Link to Mod

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 (\')

Do you need a special mod for your smf forums? contact me for a quote.

karlbenson

^ or he could use php function strip_tags first, then escape any remaining stuff like you said.

rsw686

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.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Sincere

Quote from: 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.

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

Do you need a special mod for your smf forums? contact me for a quote.

Sincere

Quote from: 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.

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

Do you need a special mod for your smf forums? contact me for a quote.

rsw686

Quote from: Sincere on March 24, 2008, 04:41:07 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!
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

rsw686

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
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Sincere

Quote from: 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

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

Do you need a special mod for your smf forums? contact me for a quote.

rsw686

Quote from: Sincere on March 27, 2008, 08:13:35 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.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Sincere

Quote from: rsw686 on March 27, 2008, 09:02:12 AM
Quote from: Sincere on March 27, 2008, 08:13:35 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.

Do you need a special mod for your smf forums? contact me for a quote.

rsw686

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
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Sincere

Quote from: 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

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

Do you need a special mod for your smf forums? contact me for a quote.

rsw686

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.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Advertisement: