Good Morning...
i wanted to install the Addon "Autmatic tagging" who automatics Tags new Threads. Now the Problem.
It Tags the Threads, thats no problem, but just with one tag.
I have more then One Problem.
First: It just take Keywords from the Threadtitle. I want to have it also so, that every POST will be tag, or minimum the whole threadstart.
So i want to have it so, that every post will be automatic tagged or at least the begin/start of the new Thread. The First post in the. From the starter.
Second: It takes just one Keyword from the Threadtitle and i couldn't set that it have to take 5 tags or so on.
Sorry, i'm from Germany. My Englisch ist horroble
Here is my XML
Can anyone help me?
Either to give me a good Add-On with all my whishes, or to write something in the XML.
Thanks Thanks
i wanted to install the Addon "Autmatic tagging" who automatics Tags new Threads. Now the Problem.
It Tags the Threads, thats no problem, but just with one tag.
I have more then One Problem.
First: It just take Keywords from the Threadtitle. I want to have it also so, that every POST will be tag, or minimum the whole threadstart.
So i want to have it so, that every post will be automatic tagged or at least the begin/start of the new Thread. The First post in the. From the starter.
Second: It takes just one Keyword from the Threadtitle and i couldn't set that it have to take 5 tags or so on.
Sorry, i'm from Germany. My Englisch ist horroble
Here is my XML
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="automatic_tagging" active="1">
<title>Automatic Tagging</title>
<description>Tries to tag untagged threads.</description>
<version>1.0</version>
<url>http://www.vbulletin.org/forum/showthread.php?t=179772</url>
<versioncheckurl />
<dependencies>
</dependencies>
<codes>
</codes>
<templates>
</templates>
<plugins>
<plugin active="1">
<title>Automatic Tagging</title>
<hookname>newpost_process</hookname>
<phpcode><![CDATA[
if ($type == 'thread' && !$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))
array_push($newtags,$tagtext);
}
$post['taglist'] = join(',',$newtags);
}]]></phpcode>
</plugin>
</plugins>
<phrases/>
<options/>
<helptopics/>
<cronentries/>
<faqentries/>
</product>
Can anyone help me?
Either to give me a good Add-On with all my whishes, or to write something in the XML.
Thanks Thanks