View Full Version : Guest Image Verification for New Threads/Posts
akanevsky
03-23-2008, 10:00 PM
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.
/*==========================================*\
|| Guest Image Verification for New Threads/Posts
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x
|| Released : Mar 29, 2008
||
|| Time required to install: 1 minute
|| Difficulty: easy
\*==========================================*/
DESCRIPTION
This hack is a port of the following hack:
https://vborg.vbsupport.ru/showthread.php?t=72026
Just like the original, it makes it so that, when a guest is creating a new thread or replying to an existing one, an image verification prompt is shown within the body of the form. The hack uses the image verification system that is bundled with vBulletin, and will work on vBulletin 3.5.x series only, as vBulletin 3.6.x+ has integrated support for guest image verification for posts.
STATISTICS
Template Changes: 1
Products to Install: 1
VERSION HISTORY
1.0.1
Corrected a few bugs.
1.0.0
Initial Release
The installation manual is contained within the attached file.
IF YOU LIKE MY HACK, PLEASE CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=174068)
akanevsky
03-24-2008, 09:53 PM
<font size="3">FAQ's:</font>
Q: Does this hack work on vBulletin 3.6.x+?
A: No, because vBulletin 3.6.x+ has this feature bundled, and you don't need any hacks for those versions.
Q: I have a quick reply showing up for guests. How do I add the image verification to that, so that people can use it?
A: See the attached text file.
Lionel
03-24-2008, 11:16 PM
Good to see you back, Anthony.
bada_bing
03-25-2008, 01:24 AM
This is nice.. Glad to see that you are still releasing hacks for 3.5 I have always been a fan of your code
zylstra
03-25-2008, 07:26 AM
After installing this mod remember to change some settings at vBulletin Options -> Usergroups -> Usergroup Manager -> Edit Usergroup (id:1)
The usernametooshort error ("Your username can not be shorter than 3 characters.") occurs after attempting to post as a guest due to the deletion of the $usernamecode variable from the template. I kind of liked having the username alert there anyway. If there is no need to delete a functionality then keep it.
I would like the Quick Reply option with image verification to appear for unregistered guests also. Can you include this in the product?
I've also received some error feedback from my mods:
I've tried to move 2 threads this morning and also edit, but I receive this message:
Quote:
The string you entered for the image verification did not match what was displayed.
This was from actions within the thread.
Same move from the board using Mod tools (bottom right) works fine.Database error in vBulletin 3.5.4:
Invalid SQL:
UPDATE post
SET threadid =
WHERE postid IN (952043);
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE postid IN (952043)' at line 3
Error Number : 1064
Date : Tuesday, March 25th 2008 @ 03:56:34 AM
Script : http://www.***.com/inlinemod.php
Referrer : http://www.***.com/inlinemod.php
IP Address : 213.150.***.***
Username : *****
Classname : vb_database
and
Also answer/post count not updating correctly.
Thanks.
akanevsky
03-25-2008, 01:15 PM
The usernametooshort error ("Your username can not be shorter than 3 characters.") occurs after attempting to post as a guest due to the deletion of the $username variable from the template. I kind of liked having the username alert there anyway. If there is no need to delete a functionality then keep it.
There is an error in the instructions. Read "replace with" as "add underneath". I'll correct this later.
I would like the Quick Reply option with image verification to appear for unregistered guests also. Can you include this in the product?
Quick reply does not show up for guests. Or does it?..
I've tried to move 2 threads this morning and also edit, but I receive this message:
Quote:
The string you entered for the image verification did not match what was displayed.
This was from actions within the thread.
Same move from the board using Mod tools (bottom right) works fine.
I would need the instructions as to how to reproduce the error... I can't just find the cause from an error message.
Also answer/post count not updating correctly.
I don't think this would be connected to this mod, unless moderators' tools are somehow connected to this mod. Once again, I need you to provide specific reproduction steps.
zylstra
03-25-2008, 03:46 PM
Quick reply does not show up for guests. Or does it?...No, but I'd like it to... with the image verification.
I would need the instructions as to how to reproduce the error... I can't just find the cause from an error message.Attempt inline editing.
I've reinserted the $usernamecode variable into the templates.
I've reproduced the error that my supermod received: the "The string you entered for the image verification did not match what was displayed" message pops up after I attempt inline editing.
akanevsky
03-25-2008, 11:19 PM
No, but I'd like it to... with the image verification.
Unfortunately, that would constitute a separate hack and therefore cannot be included into this one.
Attempt inline editing.
Attempt inline editing of what?..
zylstra
03-25-2008, 11:51 PM
Unfortunately, that would constitute a separate hack and therefore cannot be included into this one.Coders may include anything they'd like in a hack. So it can be included in this hack - and it would make sense to include it in this one rather than a separate one. I presume you mean that you're not inclined to include it, since it isn't explicitly stated in the hack that this one is basd upon. In that case, if you'd like more money to include it in this one, I'm up for discussing that.
Attempt inline editing of what?..Posts.
akanevsky
03-26-2008, 07:38 PM
Coders may include anything they'd like in a hack. So it can be included in this hack - and it would make sense to include it in this one rather than a separate one. I presume you mean that you're not inclined to include it, since it isn't explicitly stated in the hack that this one is basd upon. In that case, if you'd like more money to include it in this one, I'm up for discussing that.
I was speaking about the "quick reply" functionality for guests. That's a separate story that would need to be added, and it would not fall under the title of "guest image verification", because it would be a "quick reply for guests". As for the rest of your message, the rules say that public discussion of monetary matters are not allowed, so please contact me via pm. To prepare you for what follows, I can just say that you have asked me to write a "guest image verification" hack for vBulletin, but not "quick reply for guests" for vBulletin. So, yes, of course that would be separate, and my inclination (or a lack thereof) has nothing to do with it. Once quick reply is in place, however, I would have no problem adding the aforementioned functionality to this hack. :)
Posts.
Thank you. I will be looking into the issue.
zylstra
03-26-2008, 08:20 PM
Sorry about the money matter violation. I'll send a PM. Thanks.
akanevsky
03-30-2008, 01:04 AM
<font size="3">New Release: Version 1.0.1</font>
The bug has been corrected. In order to upgrade, just re-import product xml.
zylstra
04-01-2008, 05:17 PM
Regarding disallowing ajax for quickreply for guests - it requires a code modification:
In order to disable ajax for guests, you'll have to further modify code.
So open up showthread.php, and find the following line:
// set quick reply initial id
Add above it: if (!$vbulletin->userinfo['userid'])
{
$show['allow_ajax_qr'] = false;
}
That should do it.
ru55ian
04-01-2008, 11:00 PM
hey all, reading through this post i am a little bit confused,
What i was looking for is to have quickreply with image verification for the guests under 3.6.8
i have installed this: https://vborg.vbsupport.ru/showthread.php?t=174769 mod that gave me a quickreply for guests, all i need now is to add image verification to it.
How would i go about doing that under 3.6.8?
zylstra
04-01-2008, 11:56 PM
I don't know. I thought 3.6.x included image verification for guest posts, but maybe not for quickreply. Right now I'm supporting only 3.5.x, as that is the only forum I'm running.
akanevsky
04-02-2008, 01:36 AM
What i was looking for is to have quickreply with image verification for the guests under 3.6.8
Please do not install this hack on 3.6.x. vBulletin 3.6.x has it's own image verification for guest posts. You'll just have to enable it via vBulletin options.
Assuming (I haven't checked) that vBulletin 3.6.x does not show quick reply for guests, it makes sense that there is no image verification in it. However, you cannot use the quick reply instructions from this thread as they are intended for use with vBulletin 3.5.x and will not work on 3.6.x.
What you would have to do, if you wanted image verification to show in quick reply for guests in 3.6.x, you would need to have either modify yourself or have someone else modify vBulletin 3.6.x to integrate vBulletin 3.6.x's native guest post image verification into quick reply.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.