Advertisement:

Author Topic: vBulletin Style Meta Tags  (Read 151773 times)

Offline rsw686

  • Sophist Member
  • *****
  • Posts: 1,008
    • The Reptile File
vBulletin Style Meta Tags
« 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
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Offline Chopper

  • Jr. Member
  • **
  • Posts: 255
  • Gender: Male
Re: vBulletin Style Meta Tags
« Reply #1 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
 

Offline rsw686

  • Sophist Member
  • *****
  • Posts: 1,008
    • The Reptile File
Re: vBulletin Style Meta Tags
« Reply #2 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
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Offline TEOC2

  • Jr. Member
  • **
  • Posts: 207
Re: vBulletin Style Meta Tags
« Reply #3 on: March 24, 2008, 01:23:56 PM »
Where are the settings for it?

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • @mortonssols on Twitter
    • Criminal Solicitors
Re: vBulletin Style Meta Tags
« Reply #4 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 to provide you with the edits.

Offline TEOC2

  • Jr. Member
  • **
  • Posts: 207
Re: vBulletin Style Meta Tags
« Reply #5 on: March 24, 2008, 01:32:24 PM »
Ah, ok, i was thinking its a similar mod to your "easy edit meta data".

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: vBulletin Style Meta Tags
« Reply #6 on: March 24, 2008, 02:19:26 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.

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: vBulletin Style Meta Tags
« Reply #7 on: March 24, 2008, 03:13:17 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.

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • @mortonssols on Twitter
    • Criminal Solicitors
Re: vBulletin Style Meta Tags
« Reply #8 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.

Offline rsw686

  • Sophist Member
  • *****
  • Posts: 1,008
    • The Reptile File
Re: vBulletin Style Meta Tags
« Reply #9 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.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: vBulletin Style Meta Tags
« Reply #10 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...... :)

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

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: vBulletin Style Meta Tags
« Reply #11 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.......  ;)

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

Offline rsw686

  • Sophist Member
  • *****
  • Posts: 1,008
    • The Reptile File
Re: vBulletin Style Meta Tags
« Reply #12 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!
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Offline rsw686

  • Sophist Member
  • *****
  • Posts: 1,008
    • The Reptile File
Re: vBulletin Style Meta Tags
« Reply #13 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
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: vBulletin Style Meta Tags
« Reply #14 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?

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

Offline rsw686

  • Sophist Member
  • *****
  • Posts: 1,008
    • The Reptile File
Re: vBulletin Style Meta Tags
« Reply #15 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.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: vBulletin Style Meta Tags
« Reply #16 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.

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

Offline rsw686

  • Sophist Member
  • *****
  • Posts: 1,008
    • The Reptile File
Re: vBulletin Style Meta Tags
« Reply #17 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
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: vBulletin Style Meta Tags
« Reply #18 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
 
Do you need a special mod for your smf forums? contact me for a quote.

Offline rsw686

  • Sophist Member
  • *****
  • Posts: 1,008
    • The Reptile File
Re: vBulletin Style Meta Tags
« Reply #19 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.
The Reptile File
Everything reptile for anyone reptile friendly

Aquaria Talk
Community for freshwater and saltwater aquariums enthusiasts