![]() |
Automatic tags
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:
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): PHP Code:
PHP Code:
Open the file /includes/functions_newpost.php Find: PHP Code:
PHP Code:
PHP Code:
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://vborg.vbsupport.ru/external/2008/05/9.png Title: Automatic tags by B?ro9 is licensed under a Creative Commons Attribution 2.0 UK: England & Wales License. |
I accepted this modification but I took error;
Parse error: parse error, unexpected $end in C:\AppServ\www\vbulletin\includes\functions_newpos t.php on line 1730 |
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 |
Quote:
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. |
Quote:
|
Actually... on the parse error... double check the number of brackets, the installation advice originally missed one, but it's now corrected.
|
Quote:
next Step than is to Change words. If somebody is writing:
Christian PS: I will install but in the Moment I can?t use FTP from here. |
Thanks ^_^
very good |
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 :)
|
Can I make it too in reply
|
Quote:
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. |
Perfect
Installed ! |
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 |
Quote:
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. |
<font color="Lime">*Installed*</font>
|
What's the possibility of making automatic tags for threads that already exist?
|
This would really be good if it did it for older post too. Is there a way to make it add tags weither or not tags are added?
|
What are you looking for?
1) Incrementally fixing old threads by populating tags if those threads are replied to? or 2) Generating tags for all threads that have none? |
To be honest I don't think doing all non-tagged threads would be difficult... the code is already up there and I'd just have to iterate over all threads.
|
Quote:
|
Well the reason I would like it added to all threads with r without tags is just as discribe in the first post. It may use better tags then the ones already listed. Of course it would be a 1 time run since you don't want it to keep trying to add tags to all the threads over and over again.
|
Works like a charm!
Good work. |
very great hack thanks :)
|
I have to agree that adding a feature/option to have it go back and generate tags for old, untagged threads would be great!
|
I seen some problems and i removed it for now.
Example: forum, maxicep.com maxicepdsadasdasd, melodi, mobile, phone U will get error that "need min 3 character in tags for open thread" because tags are looking forum, maxicep.com, maxicepdsadasdasd, me, lodi, mobile, phone It has problem on some thread titles like which include "<" or ">" character also "," Just try and see. If i set to all limits to no limit on tag system options, than no problem but it isnt fine. |
excellent mod. thanks very much for this, I will install it later this week.
|
This reminds me of a good ol vb 2.0 hack :) Nice and simple too!
Installed! Edit: Need to exclude non-word characters For example, see the tags on this thread: http://cellphoneforums.net/htc/t2758...-s710-vox.html |
welcome
very nice mod buro9 but please how i can do it to some forums only like forum id 4 and 5 and how i activate it in rss forums which get news from another sites |
Quote:
I also would LOVE to be able to run a script which would backdate this for all old threads. |
Quote:
|
nice one! I've been keeping an eye out for something like this.
/me tags thread to download and install later |
@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. |
Perfect Idea .. !
Installed |
good idea. tagged for when i update to 3.7.0. thanks!
|
Thank you for this - works great!
Jim |
masterross's idea is actually very, very cool.
That being said, installed and crossing fingers for some fancy ajax implementation ;) |
I have a weird question.
If I have tags off, will this still auto add them in the background, so to speak? We're wanting to wait a bit to enable tags, but when we do, would this modification have been working in the background? EDIT:: Found a work around for this. Thanks for the hack! |
thank you
|
How difficult would it be to do this for RSS posts?
|
nice !! Ingeniously.....
coder genius :D |
All times are GMT. The time now is 07:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|