vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   New Posting Features - Automatic Thread Tagger (https://vborg.vbsupport.ru/showthread.php?t=185495)

KevinL 08-04-2008 09:59 PM

Quote:

Originally Posted by maidos (Post 1591411)
actually that is the case. This issue occured to me too

if you check firefox error message it will show that the mgc disabled all script



When i first time ran to get auto tag it just freezes at 7000 please help

OH sorry I was saying to Phalynx that I don't think it was the js error he was thinking because other people are having the exact issues as me.

Phalynx 08-05-2008 07:57 AM

KevinL, I spoke of the "not working" AJAX. Fix the errors on your site first.

KevinL 08-05-2008 07:59 AM

But all these people are having the exact same problems...

I fixed that one thing you told me about already and it's still not tagging...

Phalynx 08-05-2008 08:10 AM

What is not tagging? AJAX, Cron, Maintenance or just auto tag after thread submit?
Please be more specific. "Not working" does not say anything.

KevinL 08-05-2008 08:31 AM

It does not tag RSS feeds.

habilonline 08-05-2008 08:55 AM

beta vers. had working but gold vers. character replacement is doesn't work..
i had change ')'=>'' with ' ) '=>''
for example; title: (1989) war of kids

before; /tags/1989/
after; /tags/(1989)/

please help me..

maidos 08-05-2008 10:32 AM

can you reply my issue? when i ran on update counters with the auto tag for first time it always freeze at 7000 and nothing happends after that.

Can you fix the issue that causes conflict with mgc? since your mod is the one who is making issues with mgc js once i install yourmod

Phalynx 08-05-2008 10:45 AM

Quote:

Originally Posted by KevinL (Post 1591731)
It does not tag RSS feeds.

Maintenance, Auto Tag Threads, don't delete old.

Quote:

Originally Posted by habilonline (Post 1591741)
i had change ')'=>'' with ' ) '=>''
for example; title: (1989) war of kids

before; /tags/1989/
after; /tags/(1989)/

Does something change if you disable exclude date?

Quote:

Originally Posted by maidos (Post 1591783)
can you reply my issue? when i ran on update counters with the auto tag for first time it always freeze at 7000 and nothing happends after that.

To get support, you will need to click "Mark as Installed".
Decrease the number of processed threads.

Quote:

Originally Posted by maidos (Post 1591783)
Can you fix the issue that causes conflict with mgc? since your mod is the one who is making issues with mgc js once i install yourmod

Disable ATT's AJAX.

TsirhCitna 08-05-2008 11:12 AM

Anyway to keep (no prefix) from showing up as a tag with prefixes included?

Phalynx 08-05-2008 11:15 AM

Already included in v1.1.0 GOLD

Switch02 08-05-2008 11:36 AM

it work without problems with vBSEO installed?

Phalynx 08-05-2008 12:05 PM

It does not affect vBSEO / other SEO solutions.

Antiblank 08-05-2008 12:30 PM

If I could have marked "Mark as uploaded" I would have instead. I'm attempting to install, I uploaded the files as instructed, and then attempted to add the product, but I get this error:

XML Error: Empty document at Line 1

I wasn't able to find anything unless I overlooked it in this thread dealing with this issue. Any idea as to the cause. I attempted to download the product again in case there was an error in the download, but no change.

maidos 08-05-2008 12:40 PM

even if i decreased to 350 it still freezes
Yes, i made sure to delete the auto tags first

KevinL 08-05-2008 12:48 PM

Quote:

Originally Posted by Phalynx (Post 1591784)
Maintenance, Auto Tag Threads, don't delete old.

OK that works. So I have to do this every time I want threads tagged?

Thank you for helping

TsirhCitna 08-05-2008 01:32 PM

Quote:

Originally Posted by Phalynx (Post 1591793)
Already included in v1.1.0 GOLD

It isn't working for me then.

Kuntz 08-05-2008 02:22 PM

Here is one of the problems:

Code:

vBAjax_ATT.open('get', './autotagger_ajax.php?do=gettags&tags_remain='+ tags_remain + '&forumid=' + forumid + '&userid=' + userid + '&title=' + fetch_object('subjecttitle').value + '&prefix=' + fetch_object('prefixid')[fetch_object('prefixid').selectedIndex].text + '&existing=' + fetch_object('tag_add_input').value);
fetch_object('prefixid') does not exist on peoples New Thread page if they do not use Prefixes. So once you fix that bug, and the cron bug not working for anyone, it should finally work!

ramsayeg 08-05-2008 09:51 PM

Hmm, I'm getting a page error when I create the title and the autotagger tries to tag it, any known bugs/fixes?

Phalynx 08-06-2008 06:22 AM

Quote:

Originally Posted by Antiblank (Post 1591844)
If I could have marked "Mark as uploaded" I would have instead. I'm attempting to install, I uploaded the files as instructed, and then attempted to add the product, but I get this error:

XML Error: Empty document at Line 1

I wasn't able to find anything unless I overlooked it in this thread dealing with this issue. Any idea as to the cause. I attempted to download the product again in case there was an error in the download, but no change.

Can you open the XML in notepad?

Quote:

Originally Posted by maidos (Post 1591854)
even if i decreased to 350 it still freezes
Yes, i made sure to delete the auto tags first

Quote:

Originally Posted by KevinL (Post 1591862)
OK that works. So I have to do this every time I want threads tagged?

No, there must be something wrong with the running cron.

Quote:

Originally Posted by TsirhCitna (Post 1591885)
It isn't working for me then.

And you are sure you disabled it via settings?

Quote:

Originally Posted by Kuntz (Post 1591917)
fetch_object('prefixid') does not exist on peoples New Thread page if they do not use Prefixes

Fixed in next version.

Phalynx 08-06-2008 07:27 AM

I just uploaded v1.1.1 BETa. Please test if you still have errors with AJAX and Cron.

TsirhCitna 08-06-2008 11:12 AM

The BETA fixed the problem I was having.

Antiblank 08-06-2008 12:41 PM

Quote:

Originally Posted by Phalynx (Post 1592420)
Can you open the XML in notepad?

Yes, the gold version and the beta version I can both open in notepad. There are no chunks of corrupted code that stand out. But uploading either product gives the same error.

I attempted to install new products and test overwriting existing ones, both scenarios worked.

Phalynx 08-06-2008 12:54 PM

Try to upload it to your server and install from there.

habilonline 08-06-2008 03:00 PM

i am testing last beta vers. but cron is doesn't working :(

Kuntz 08-06-2008 04:22 PM

-Cron does not work still
-AJAX was fixed
-"Disable Auto Tag if Tagged?" <- Option does not work

Kuntz 08-06-2008 04:35 PM

I figured out what the CRON bug was, just fixing up some other issues I've found in this file and I'll post it here. Give me 15 minutes.

gezuvor 08-06-2008 04:45 PM

Looking forward to your response Kuntz! The cron is also dead for me... :(

Kuntz 08-06-2008 05:06 PM

All of you are suggested to use this as it fixes two bugs in the CRON file. The first bug is in relation to RSS threads not being tagged at all. This was due to the fact the creator used incorrect syntax to get NULL fields, so no fields would get returned. The second bug prevented threads from being tagged if they were created in a 'wierd' method. What is that? I'm not sure, but I had about 20 threads that weren't tagged but were marked as being tagged, the datelines were spread apart pretty evenly, so I'm assuming the creators of the topics created the threads, they had tags, then those creators for some reason removed their tags manually afterwards. This leaves the thread marked Auto-Tagged, but there are no tags. So now the cron will re-tag these threads. This is all a guess, but who cares, all your tags are belong to me.

autotagger.php
Code:

<?php

/*======================================================================*\
|| #################################################################### ||
|| # Automatic Thread Tagger                                          # ||
|| # ---------------------------------------------------------------- # ||
|| # Originally created by MrEyes (1.0 Beta 3)                        # ||
|| # Copyright ?2008 Marius Czyz. All Rights Reserved.                # ||
|| #################################################################### ||
\*======================================================================*/

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
if (!is_object($vbulletin->db))
{
    exit;
}

// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################

if ($vbulletin->options['autotag_enabled_all'])
{
    require_once(DIR . '/includes/functions_autotagger.php');
    require_once(DIR . '/includes/functions_newpost.php');

    $threads = $vbulletin->db->query_read("
        SELECT taglist, dateline, forumid, postuserid, title, threadid, prefixid
        FROM ".TABLE_PREFIX."thread
        WHERE (
            taglist IS NULL
            AND autoskip = 0
        )
        OR (
            taglist = ''
            AND autoskip = 2
        )
        ORDER BY threadid DESC
    ");

    $processed = 0;
    $ending = $vbulletin->options['autotag_cron_count'];
    while ($thread = $vbulletin->db->fetch_array($threads) AND $processed < $ending)
    {
        ProcessThread($thread);
        $processed++;
    }
    log_cron_action('Auto Thread Tagger processed '.$processed.' threads.', $nextitem);
}

?>


Daky 08-06-2008 09:38 PM

In some tags i have symbols like " , : , ( , etc ... is it possible to exclude them? (Maybe this is already answered, but i cannot find it, might be blind) ... please .. if you can help.

Thank you!

Kuntz 08-06-2008 10:15 PM

Quote:

Originally Posted by Daky (Post 1592942)
In some tags i have symbols like " , : , ( , etc ... is it possible to exclude them? (Maybe this is already answered, but i cannot find it, might be blind) ... please .. if you can help.

Thank you!

That is explained in both the Readme and in the Tagging options.

Phalynx 08-07-2008 07:40 AM

Quote:

Originally Posted by Kuntz (Post 1592820)
All of you are suggested to use this as it fixes two bugs in the CRON file. The first bug is in relation to RSS threads not being tagged at all. This was due to the fact the creator used incorrect syntax to get NULL fields, so no fields would get returned. The second bug prevented threads from being tagged if they were created in a 'wierd' method. What is that? I'm not sure, but I had about 20 threads that weren't tagged but were marked as being tagged, the datelines were spread apart pretty evenly, so I'm assuming the creators of the topics created the threads, they had tags, then those creators for some reason removed their tags manually afterwards. This leaves the thread marked Auto-Tagged, but there are no tags. So now the cron will re-tag these threads. This is all a guess, but who cares, all your tags are belong to me.

For the first part of the NULL I agree, thanks for pointing me to this. It seems it works on some MySQL versions and on some not.

Also there is no mark for already tagged threads. But there is a mark for threads tha cannot be tagged, f.e. because of title containing only bad words or just too short words. This is an attempt to not try to tag these threads every night.
The autoskip option is going to reset to 0 by editing the title.

I will incorporate the changes to the official release if someone can confirm that cron is now working.

Kuntz 08-07-2008 08:04 AM

Erm, according to my DB, all my threads are 'autoskip = 2' once they're tagged by the CRON Auto-Tagger.

There are two kinds of untagged threads in my DB:

-Threads with NULL as the tag list
-Threads with a blank tag list (this is different then NULL)

-Threads set to NULL have an autoskip value of 0
-Threads that are blank have an autoskip value of 2

For my DB and installation, the above CRON works perfectly fine, and on top of that, tags the RSS feed as it comes in. My two RSS feeds are set to check every 30 minutes, I then edited my CRON to run the RSS script at '00' and '30', and edited the autotag CRON to run at '00' and '30' as well. Then I 'reset' my two RSS feeds and when the clock hit the top of the hour, it checked my RSS feeds, added the topics, and tagged them, all in one go! Been working great all day so far.

Phalynx 08-07-2008 08:14 AM

Check line 68-76 in functions_autotagger.php

tekguru 08-07-2008 08:55 AM

So have the Cron, etc fixes gone ino this Mod yet? Working out whether to install now or later.

Ploz 08-07-2008 09:55 AM

I think it would be useful to add an option to show the text of the first post below the thread title in the "Threads Tagged with" listings...

Kuntz 08-07-2008 03:31 PM

Quote:

Originally Posted by Phalynx (Post 1593228)
Check line 68-76 in functions_autotagger.php

Some of my threads are set to '2', and some are set to '0'. It seems pretty random. =\

Maybe don't do !taglist OR !isarray() and instead just do !isarray() ??

mcyates 08-07-2008 04:43 PM

I keep getting this error when uploading the product

XML Error: Invalid character at Line 42

Mazinger 08-07-2008 06:09 PM

Quote:

Tag RSS Feeds?
If yes the auto tagger will also attempt to tag incoming RSS feeds.

In order for RSS tagging to work you will have to manually edit one of the default vbulletin files. Please refer to the product page on vBulletin.org for further information.
Any help with that?

Kuntz 08-07-2008 06:17 PM

Quote:

Originally Posted by Mazinger (Post 1593624)
Any help with that?

outdated info

Hostboard 08-07-2008 06:53 PM

Line item #5 in 1.1.0 GOLD, 31th July 2008 release notes addressed this.


All times are GMT. The time now is 09:34 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
  • Page Generation 0.01827 seconds
  • Memory Usage 1,838KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete