vBulletin Mods

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

El_Muerte 17 Aug 2007 15:53

Ok, this product is now complete. Everything I planned to add has been added. Other programmers can extend the functionality through the exposed hooks in the code.

AlexanderT 18 Aug 2007 09:45

Some remarks:
  • post content is sent in bbcode format to Akismet; wouldn't it be better to parse it first?
  • verifykey is called each time a comment is posted; wouldn't it be sufficient to use verifykey at the time when the key is entered in admincp?
  • an additional query is used every time a comment is posted to determine the installed product version; wouldn't it be sufficient to use a define for the product version and to save the query?

Great add-on!

El_Muerte 18 Aug 2007 15:53

1) I don't know. There is not much info on how akismet really check the content. And spammer often use standard messages for all spam runs, parsing to bbcode could result in different content for each forum.

2) Probably. The documentation isn't very clear on that subject. Then again, if the key is invalid it will probably be notified in the spam check or report.

3) I felt lazy, didn't want to update the define everytime I changed the file. Then again, it's a little effort for a more or less useless query.

El_Muerte 18 Aug 2007 18:15

Corrected above points in version 1.1

BadgerDog 18 Aug 2007 21:07

Just installed v1.1 and now I have an error under the AdminCP function....

Quote:

API Key
The key required to interface with Akismet.
To acquire a key you have to create an account at WordPress

Error: You did not enter a valid value for this setting.
I have a valid key and haven't touched this field since I original installed the mod and received the key from Wordpress. The error appeared after installing v1.1.

Hope this helps find the bug....

Should I try to do an overwrite and replace v1.1 backwards with v1.0?

Regards,
Badger

El_Muerte 18 Aug 2007 22:00

Really? I don't get that error for my key. Are you sure that key is correct? Nothing changed to the key validation since 1.0 (except that I removed revalidation during spam checking).

If you have the vBulletin debug functionality enabled you can see the response from akismet in the "debug message" dropdown list


ps, reverting to 1.0 should be possible

BadgerDog 18 Aug 2007 22:04

Quote:

Originally Posted by El_Muerte (Post 1320545)
Really? I don't get that error for my key. Are you sure that key is correct? Nothing changed to the key validation since 1.0 (except that I removed revalidation during spam checking).

Perhaps it doesn't like that change?

I applied for the key when you first released the program. Entered it into the field and haven't touched it since, all through your various upgrades. This error came up as soon as I installed v1.1

I went to the Wordpress web site and validated my key and it's entered correctly. I even cleared the field and started entering it one character at a time as their FAQ said that sometimes cut-n-paste causes problems. About 1/2 way through the error message came up.

Should I uninstall v1.1 and try to re-install, or simple re-install v1.0 over v1.0?

BTW, where do I find the DEBUG drop down list?

Regards,
Badger

BadgerDog 18 Aug 2007 22:18

Quote:

Originally Posted by El_Muerte (Post 1320545)
If you have the vBulletin debug functionality enabled you can see the response from akismet in the "debug message" dropdown list

Ok, I found how to activate DEBUG mode and at the bottom it says:

Quote:

DEBUG MESSAGES (1) [akismet] Key = $RCSfile$ - $Revision: 17009 $
SQL Queries (10)
Is that what you're looking for?

Regards,
Badger

BadgerDog 18 Aug 2007 22:58

Quote:

Originally Posted by El_Muerte (Post 1320545)

ps, reverting to 1.0 should be possible

Ok, reverted back to v1.0 (importing over v1.1) and the error is still there... :(

After that, I completely UN-INSTALLED the mod and re-installed v1.1 and the error is still there. :(

Regards,
Badger

El_Muerte 19 Aug 2007 07:57

be sure to also overwrite the functions_akismet.php when you upgrade/revert

anyway, there appears to be connections issues, the debug line should be either:
"Key = valid" or "Key = invalid"
if it doesn't contain any text then there was an error in connecting to the akismet server to validate the key.

the key isn't validated while you are typing, it will be validated when the text field loses focus, and when the options pages is loaded.

Besides, you can simply enter an invalid key and save the the options. The rest of the plugin will still try to check for spam and submit content despite a possible invalid key.

BadgerDog 19 Aug 2007 10:38

Quote:

Originally Posted by El_Muerte (Post 1320778)
be sure to also overwrite the functions_akismet.php when you upgrade/revert

Did that ... :)

Quote:

Originally Posted by El_Muerte (Post 1320778)
anyway, there appears to be connections issues, the debug line should be either:
"Key = valid" or "Key = invalid"
if it doesn't contain any text then there was an error in connecting to the akismet server to validate the key.

the key isn't validated while you are typing, it will be validated when the text field loses focus, and when the options pages is loaded.

Besides, you can simply enter an invalid key and save the the options. The rest of the plugin will still try to check for spam and submit content despite a possible invalid key.

The message actually pops up during typing...

Perhaps if I sent you a PM and gave you access, you could debug the problem better?

Thanks

Regards,
Badger

AlexanderT 19 Aug 2007 10:57

Quote:

Originally Posted by El_Muerte (Post 1320416)
Corrected above points in version 1.1

Cool! :up:

El_Muerte 19 Aug 2007 18:41

Version 1.1 has a bug when using cURL for communication (cURL will automatically be used when it's available). For some reason it worked perfectly on my system, but on an other system cURL didn't accept the broken url.
So if you have cURL installed on the system you should upgrade to 1.2, if unsure also upgrade.

Thank you BadgerDog for letting me use your board to figure out this problem.

BadgerDog 19 Aug 2007 20:18

Quote:

Originally Posted by El_Muerte (Post 1321085)
Thank you BadgerDog for letting me use your board to figure out this problem.

You're welcome .... :)

Installed v1.2....

All fixed and running smooth.... :up:

Regards,
Badger

BadgerDog 27 Aug 2007 13:54

Ok, had my first spammer visit since installing this mod.

He posted two threads selling cameras and neither was "moderated" by the mod or "Akismet", so I submitted them to Akismet marking them as spam. This particular ad is quite common and they've visited and posted it before, so I guess the real test now is when they show up the next time, does the Akismet check recognize their next similar post as SPAM

Will advise ... :)

Regards,
Badger


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

Powered by vBulletin® Version 3.8.12
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Copyright ©2001 - , vbulletin.org. All rights reserved.