vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=179772

Automatic tags
by buro9
19 May 2008 10:27

Description

With vBulletin tags you can either set to require tags be completed or not. However requiring tags to be completed can easily result in low-quality tags that don't provide SEO value to your forum. With that in mind the thread title often provides better keywords than the tags that the user is forced to enter.

What this modification does is:

When a thread is started, has the user filled in tags?
Yes: Then we do nothing.
No: Then take the thread title, and strip out all words that would be invalid tags and are in the stop words list and use the remaining words as tags.

Example

User enters:
  • Thread title = We like the social group email mod
  • Thread tags =
vBulletin records the new thread as:
  • Thread title = We like the social group email mod
  • Thread tags = email, group, social
Which isn't an entirely bad set of tags and is better than none, and better than the user typing in gibberish (IMHO).

Installing

Installation REQUIRES FILE MODIFICATION. If you are not happy doing this, don't install this mod.

In the file /includes/functions_newpost.php

Find (near line 409):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace that with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Uninstalling

Open the file /includes/functions_newpost.php

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Delete everything up to:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Insert in that space:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Screenshots

Screenshots don't really make sense... read the description.

License

You are free to modify, create derivatives, produce any version of this that you wish even for commercial use, just leave in the code an attribution credit that contains the Url to http://www.buro9.com/

Effectively it's this:
https://www.vbulletin.org/forum/external/2008/05/9.png
Title: Automatic tags by Büro9 is licensed under a Creative Commons Attribution 2.0 UK: England & Wales License.

HaYLaZ 19 May 2008 11:11

I accepted this modification but I took error;

Parse error: parse error, unexpected $end in C:\AppServ\www\vbulletin\includes\functions_newpost.php on line 1730

CThiessen 19 May 2008 11:19

Hi,
pretty good idea. Do you think it might be possible in the future to check against an own positive List?
I think I do have about 100 Tags with the Main Words that Guest are looking for.

Christian

buro9 19 May 2008 11:32

Quote:

Originally Posted by HaYLaZ (Post 1524530)
I accepted this modification but I took error;

Parse error: parse error, unexpected $end in C:\AppServ\www\vbulletin\includes\functions_newpost.php on line 1730

The bit of code to be modified is around line 410.

Line 1730 is the very end of the file. It would suggest that there is a problem with the file that you have edited... check the code in the file that it ends with "?>".

I applied this hack to a file with no other modifications, and it does not create an error.

buro9 19 May 2008 11:33

Quote:

Originally Posted by CThiessen (Post 1524539)
Hi,
pretty good idea. Do you think it might be possible in the future to check against an own positive List?
I think I do have about 100 Tags with the Main Words that Guest are looking for.

Christian

I don't see why not. This is why I allow derivative works... if you have a feature that you want implemented, go ahead and implement it :)

buro9 19 May 2008 11:36

Actually... on the parse error... double check the number of brackets, the installation advice originally missed one, but it's now corrected.

CThiessen 19 May 2008 11:50

Quote:

Originally Posted by buro9 (Post 1524552)
if you have a feature that you want implemented, go ahead and implement it :)

I canīt do that, I do not have the knowledge. :( Only Ideas.
next Step than is to Change words.
If somebody is writing:
  • American Airlines
  • Lufthansa
  • Delta Airlines
Change it in:
  • Fligth
or that ever to meet our special Keywords.
Christian

PS: I will install but in the Moment I canīt use FTP from here.

7lanet 19 May 2008 12:48

Thanks ^_^
very good

buro9 19 May 2008 13:23

It should work with arabic too if tags work with arabic. You can change the code to fit your needs if you feel it's not suited for you :)

7lanet 19 May 2008 13:33

Can I make it too in reply

buro9 19 May 2008 13:36

Quote:

Originally Posted by 7lanet (Post 1524655)
Can I make it too in reply

That sentence doesn't really make sense to me.

Do you mean that you want to populate tags for a thread if there are no tags already and someone responds to the thread? If so, this may be possible.

maxicep 19 May 2008 13:42

Perfect

Installed !

7lanet 19 May 2008 13:54

I mean
The amendment that I have done only for new post
But old post does not add topics
Can I make my words appear in new reply

buro9 19 May 2008 14:03

Quote:

Originally Posted by 7lanet (Post 1524669)
I mean
The amendment that I have done only for new post
But old post does not add topics
Can I make my words appear in new reply

Yeah, I like that idea too.

I'll have to check to see whether I know about the thread at this point and whether updating the post will affect the thread... it may not.

leeman 19 May 2008 14:07

*Installed*


All times are GMT. The time now is 20:11.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.