New Thread/Post Image Verification for Guests
This modification is in the archives.
New Thread/Post Image Verification Description: This hack will add new a feature to new posts and new threads. When a guest is posting or making a new thread they will be asked to type in the text displayed in the image provided right of the text box. This image is the same exact kind of image used for image verification in vb's registration(its the exact code so i take no rights to saying the code is mine hehe ). Anyways this is useful for forums that allow posting for guests such as for feedback etc. and not letting bots being able to and not having to approve every single post. I made this hack personally stop this ad bot who kept posting on my site Credits: -original concept ~ AN-net(Antonbomb22; Anthony Scudese) -code ~ vB Team/Jelsoft Requirements: This does not require GD to be on via options or image verficiation to be on for registration. However, this does require GD library Support Policy: I have the right to deny support to anyone for any reason at any time. Where to Get Support?: -http://www.animationation.net -AIM: Antonbomb22 -email: email -this thread Demo: -http://www.animationation.net/community/newreply.php?do=newreply&noquote=1&p=6251 -http://www.animationation.net/community/newthread.php?do=newthread&f=53 File Edits(2): ------------------------------------- Open: /forumroot/newthread.php ------------------------------------- Find: PHP Code:
$phrasegroups = array('threadmanage', 'posting'
After add: PHP Code:
, 'register'
Find: PHP Code:
if (!($forumperms & CANPOSTPOLL))
Underneath add: PHP Code:
if($bbuserinfo['userid']=="0")
Find: PHP Code:
if (!isset($newpost['polloptions']))
Underneath add: PHP Code:
if($bbuserinfo['userid']=="0")
Save and upload: /forumroot/newthread.php ------------------------------------- ------------------------------------- Open: /forumroot/newreply.php ------------------------------------- Find: PHP Code:
$phrasegroups = array('threadmanage', 'posting'
After add: PHP Code:
, 'register'
Find: PHP Code:
if ($_POST['do'] == 'postreply')
Underneath add: PHP Code:
if($bbuserinfo['userid']=="0")
Find: PHP Code:
if ($forumperms & CANPOSTATTACHMENT AND $bbuserinfo['userid'])
Underneath add: PHP Code:
if($bbuserinfo['userid']=="0")
Save and upload: /forumroot/newreply.php ------------------------------------- Template Edits(2): ~~~~~~~~~~~~~~~~~~~~~~~~ Edit template: newreply ~~~~~~~~~~~~~~~~~~~~~~~~ Find: HTML Code:
<tr> <td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td> <td> </td> <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr> Underneath add: HTML Code:
<if condition="$show[imageverf]"> <tr> <td class="smallfont" colspan="2">Image Verification Text: <br /><input type="text" class="bginput" name="imagestamp" size="50" maxlength="6" value="$imagestamp" title="$vbphrase[enter_text_image_right]" /><input type="hidden" name="imagehash" value="$imagehash" /></td> <td><img src="image.php?$session[sessionurl]type=regcheck&imagehash=$imagehash" alt="$vbphrase[registration_image]" width="201" height="61" border="0" /></td> </tr> </if> Save: newreply ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ Edit Template: newthread ~~~~~~~~~~~~~~~~~~~~~~~~ Find: HTML Code:
<tr> <td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td> <td> </td> <td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr> Underneath add: HTML Code:
<if condition="$show[imageverf]"> <tr> <td class="smallfont" colspan="2">Image Verification Text: <br /><input type="text" class="bginput" name="imagestamp" size="50" maxlength="6" value="$imagestamp" title="$vbphrase[enter_text_image_right]" /><input type="hidden" name="imagehash" value="$imagehash" /></td> <td><img src="image.php?$session[sessionurl]type=regcheck&imagehash=$imagehash" alt="$vbphrase[registration_image]" width="201" height="61" border="0" /></td> </tr> </if> Save: newthread ~~~~~~~~~~~~~~~~~~~~~~~~ I have also attached 3 screenshots Please click install . Download No files for download. Supporters / CoAuthors
Screenshots
|
Similar Mods
Miscellaneous Hacks Send To Friend - Image Verification For Guests | vBulletin 3.6 Add-ons |