4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 22, 2014, 06:47:00 AM

Login with username, password and session length
Search:     Advanced search
4images is now on facebook. Click here and become a fan!
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Requests & Discussions) (Moderators: mawenzi, Rembrandt)
| | |-+  Captcha function from 4images 1.7.3 also for [MOD] guestbook
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Captcha function from 4images 1.7.3 also for [MOD] guestbook  (Read 9608 times)
Flo2005
Full Member
***
Offline Offline

Posts: 237

Thank You
-Given: 0
-Receive: 0

Copy & Paste Profi :)


View Profile WWW
« on: October 01, 2006, 08:50:39 PM »

This thread should help you to use the captcha function from 4images version 1.7.3 also in [MOD] guestbook -> http://www.4homepages.de/forum/index.php?topic=7409.0

Features:
+ switch the captcha function on / off
+ use the words.txt to define your own words
+ create your own backgrounds like in the new version 1.7.3

Note: You need 4images version 1.7.3 to run this modification

Files which you have to modifi:

- guestbook.php
- guestbook_form.html
- config.php

1. open guestbook.php and find:

1
// Flood Check

add above:
1
2
3
//-----------------captcha function from 4images 1.7.3 ----------------------------
$captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";
//-----------------captcha function from 4images 1.7.3 ----------------------------

find:
1
2
3
if (!$error)  {
      if ($comment_site =="http://") {
         $comment_site = "";

add above:
1
2
3
4
5
6
//-----------------captcha function from 4images 1.7.3 ----------------------------
if ($captcha_enable_guestbook && !captcha_validate($captcha)) {
      $msg .= (($msg != "") ? "<br />" : "").$lang['captcha_required'];
      $error = 1;
    }
//-----------------captcha function from 4images 1.7.3 ----------------------------

find:
1
"lang_comment" => $lang['comment']
(without > , < behind)

replace with:
1
2
3
4
"lang_comment" => $lang['comment'],
"lang_captcha" => $lang['captcha'],
"lang_captcha_desc" => $lang['captcha_desc'],
"captcha_guestbook" => (bool)$captcha_enable_guestbook

2. open guestbook_form.html
find:
1
2
<td>{bbcode}</td>
</tr>

add after:
1
2
3
4
5
6
7
8
9
10
11
12
{if captcha_guestbook}
                <tr>
                  <td width="90" valign="top"><b>{lang_captcha}</b></td>
                  <td>
                    <a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" /></a>
                    <br />
                    <input type="text" name="captcha" size="30" value="" class="commentinput" id="captcha_input" />
                    <br />
                    {lang_captcha_desc}
                  </td>
                </tr>
{endif captcha_guestbook}

3. open config.php

find:

1
define("4IMAGES_ACTIVE", 1);

add after:
1
$captcha_enable_guestbook = 1;

I´ll hope you´ve got it! Ciao by Flo
Logged


Project offline
medo007
Newbie
*
Offline Offline

Posts: 29

Thank You
-Given: 0
-Receive: 0

Internet addict


View Profile WWW
« Reply #1 on: October 01, 2006, 10:55:51 PM »

Thank you Flo2005, I'll try it! Very Happy
Logged

mEDO
paburmester
Full Member
***
Offline Offline

Posts: 242

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #2 on: October 02, 2006, 06:59:31 AM »

Thanks Flo2005, this works great! Thank you very much.
Maybe you have to to specify that several steps are made several times.
Regards
Logged
paburmester
Full Member
***
Offline Offline

Posts: 242

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #3 on: October 02, 2006, 12:32:03 PM »

Is there a way to captcha works too with my Contact Form MOD from: http://www.4homepages.de/forum/index.php?topic=8987.0
Thanks
Logged
Flo2005
Full Member
***
Offline Offline

Posts: 237

Thank You
-Given: 0
-Receive: 0

Copy & Paste Profi :)


View Profile WWW
« Reply #4 on: October 06, 2006, 02:44:20 PM »

Is there a way to captcha works too with my Contact Form MOD from: http://www.4homepages.de/forum/index.php?topic=8987.0
Thanks

I never see this MOD contact before. I think its possible that captcha function also works with MOD Contact Wink
Logged


Project offline
paburmester
Full Member
***
Offline Offline

Posts: 242

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #5 on: October 06, 2006, 04:21:47 PM »

Thanks men!
Logged
insanos
Pre-Newbie

Offline Offline

Posts: 3

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #6 on: February 19, 2007, 06:08:49 PM »

Thanks Flo2005, this works great! Thank you very much.
Maybe you have to to specify that several steps are made several times.
Regards

which ones please ? i can see the captcha function , but i cant delete or edit any comments any more and i can post comments even without entering the code...
Logged
Flo2005
Full Member
***
Offline Offline

Posts: 237

Thank You
-Given: 0
-Receive: 0

Copy & Paste Profi :)


View Profile WWW
« Reply #7 on: February 19, 2007, 07:41:40 PM »

Thanks Flo2005, this works great! Thank you very much.
Maybe you have to to specify that several steps are made several times.
Regards

which ones please ? i can see the captcha function , but i cant delete or edit any comments any more and i can post comments even without entering the code...

Logged in as admin or guest?
Logged


Project offline
joachimarp
Newbie
*
Offline Offline

Posts: 14

Thank You
-Given: 1
-Receive: 1


View Profile
« Reply #8 on: December 27, 2012, 10:47:56 PM »

Funktioniert diese Version uach mit der 1.7.11?
Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4079

Thank You
-Given: 106
-Receive: 856

Vienna


View Profile WWW
« Reply #9 on: December 28, 2012, 05:01:16 AM »

Hi!
Funktioniert diese Version uach mit der 1.7.11?
Denke ja, alternativ kannst du dir das hier einbauen: http://www.4homepages.de/forum/index.php?topic=28210.msg152417#msg152417

mfg Andi
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.127 seconds with 21 queries.