Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Automatic tags Details »
Automatic tags
Mod Version: 1.00, by buro9 (Member) buro9 is offline
Developer Last Online: Jul 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.0 Rating: (16 votes - 4.63 average) Installs: 170
Released: 19 May 2008 Last Update: Never Downloads: 190
Not Supported Code Changes Re-usable Code Translations  

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:

Title: Automatic tags by Büro9 is licensed under a Creative Commons Attribution 2.0 UK: England & Wales License.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Wide image automatic resize for html and vB tags in posts - fixes template problems Steve St.Lauren vBulletin 3.0 Full Releases 187 10 Mar 2008 12:16
New Posting Features Pre-Defined Topic Tags for Zoints Thread Tags SBlueman vBulletin 3.6 Template Modifications 4 17 Oct 2007 06:42

  #46  
Old 31 May 2008, 12:33
steveneff steveneff is offline
 
Join Date: Sep 2007
When my posters select tags for a post, if the tag does not already exist the tag is refused.
Is it possible for this mod to check existing tags and only allow them to be added to the posts tag list?

Forget this post, it already does this.

Last edited by steveneff; 31 May 2008 at 19:03.
Reply With Quote
  #47  
Old 01 Jun 2008, 08:39
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Real name: Alex
Originally Posted by redlabour View Post
After Automatic Thread Tagger is dead - any chance to get a Update here with his Code to get a Modification without editing Files?

And yes i agree - we need a Script that Tags all old Threads.
Yeah, that's exactly what i was thinking of... how about it buro?
__________________

Reply With Quote
  #48  
Old 02 Jun 2008, 02:55
FreshFroot's Avatar
FreshFroot FreshFroot is offline
 
Join Date: Aug 2005
there is no way to REQUIRE tags for all NEW THREADS.. without a file edit?
Reply With Quote
  #49  
Old 02 Jun 2008, 09:34
Silencer Groans's Avatar
Silencer Groans Silencer Groans is offline
 
Join Date: Dec 2007
Real name: Muslim Hassan
Thank
Reply With Quote
  #50  
Old 02 Jun 2008, 16:51
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Real name: Alex
There should be one... some other dude achieved it.
__________________

Reply With Quote
  #51  
Old 02 Jun 2008, 21:46
buro9 buro9 is offline
 
Join Date: Feb 2002
Originally Posted by masterross View Post
@buro9

mate do u familiar with AJAX?
I think will be better if it's AJAX based hack which takes the words from thread title immediately after we left the title field and put the suggestion in tags field.
So users will have possibility to edit unwanted tags.
Originally Posted by Newfarm View Post
masterross's idea is actually very, very cool.

That being said, installed and crossing fingers for some fancy ajax implementation
I like this idea a lot.

I quite like the two-pronged approach... AJAX to offer the opportunity for the user to edit, and the server side code to force it if the user consciously removed the tags or if JavaScript were disabled.

I will definitely look at this.

Not sure on the earlier request for non-word characters... can be done with a regexp but is there a regexp that allows unicode for other languages but blocks punctuation? If someone can provide a sample that works with multiple languages I'll use it and give credit accordingly.
Reply With Quote
  #52  
Old 06 Jun 2008, 14:57
guvner guvner is offline
 
Join Date: Mar 2003
Real name: Mike
Excellent mod - for a tech support forum with members who just can't get used to manually adding tags, this is very useful!

Many thanks.

Mike
Reply With Quote
  #53  
Old 09 Jun 2008, 00:40
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Real name: Kerry-Anne (really!)
The ability to auto tag RSS Feed created posts would finish this off perfectly. I know that on the site I installed it on my members love it and has got the regulars starting to tag their threads and others threads while doing it for them if they forget or don't think about doing it. I just need to be able to do it with RSS Feeds then it will be perfect and I could install it on another few sites which would benefit from it greatly.
__________________
Kerry-Anne
Previously known as peterska2

My Sites: peterska2.co.uk Super Clickers World News Zone English Football League Popular Usenet Groups
Do NOT PM or email me for Support or Modification Requests - No Exceptions!!
I do NOT do custom requests. Do not ask for them. - No Exceptions!!
Reply With Quote
  #54  
Old 09 Jun 2008, 07:00
dutchbb dutchbb is offline
 
Join Date: Dec 2003
Exactly what I was looking for, as I was thinking the same: title = good tags. Thank you!
Reply With Quote
  #55  
Old 09 Jun 2008, 08:51
SaPh[i]R's Avatar
SaPh[i]R SaPh[i]R is offline
 
Join Date: Jun 2008
Thanks a lot !
Reply With Quote
  #56  
Old 12 Jun 2008, 18:32
citeman citeman is offline
 
Join Date: Feb 2008
One slight problem with this. some of the html characters get through - to remove that use:

// HACK : START : AUTO TAG
// if ($type == 'thread' AND $post['taglist'])
// {
if ($type == 'thread')
{

if (!$post['taglist']) {
$temptags = split(' ',$post['title']);
$newtags = array();
require(DIR . '/includes/searchwords.php');
foreach ($temptags as $tagtext) {
if (strlen($tagtext) <= 3 || in_array(strtolower($tagtext), $badwords)) {
// Do nothing
} else {
$tagtext = html_entity_decode($tagtext);
$tagtext = ereg_replace("[^A-Za-z0-9 _]", "", $tagtext);

array_push($newtags,$tagtext);
}
}
$post['taglist'] = join(',',$newtags);
}
// HACK : END : AUTO TAG
Reply With Quote
  #57  
Old 12 Jun 2008, 19:44
drpeppper drpeppper is offline
 
Join Date: Nov 2007
this is a nice and useful mod.
thank you. installed and marked as.
Reply With Quote
  #58  
Old 13 Jun 2008, 03:11
dutchbb dutchbb is offline
 
Join Date: Dec 2003
How can we make tags for the old threads from their titles? Is there a script for this? And where can we find these stop words to strip?
Reply With Quote
  #59  
Old 13 Jun 2008, 05:03
nightbloom's Avatar
nightbloom nightbloom is offline
 
Join Date: Mar 2008
Sweet, works OK on my forum. Thanks.
Reply With Quote
  #60  
Old 13 Jun 2008, 17:28
glennybee glennybee is offline
 
Join Date: Feb 2008
Thanks buro9, easy to implement, great results!

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:42.

Layout Options | Width: Wide Color: