Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Flo2005

Pages: 1 2 [3] 4 5 6 7 ... 16
31
Feedback & Suggestions / Re: Postcard and Captcha
« on: October 08, 2006, 10:18:45 AM »
Also ein Programm zum Abgleich des Codes? Gut zu wissen das es so etwas gibt!

Also ich bin gerade dabei auf 1.7.3 umzusteigen, teste halt erstmal alles offline und hoffe das ich jetzt alle Änderungen (incl. Mods) geschafft habe. *puh*

Danke für den Tipp!

32
Feedback & Suggestions / Re: Postcard and Captcha
« on: October 08, 2006, 09:59:39 AM »
Ja, ich habe meinen Post editiert, das kommt dabei raus, wenn man die ganze Zeit vorm PC sitzt...

Trotzdem vielen Dank :!:

33
Feedback & Suggestions / Postcard and Captcha
« on: October 08, 2006, 09:43:17 AM »
I think I´ve found an error.

When I try to send a postcard, it would be send without captcha, but captcha is enabled :?

I added javascript to the header.

Ciao by Flo

Edit: Well, I think I know whats going wrong... it´s better to be logged out :oops:

36
Chit Chat / Re: +++ Project Newsletter +++ Lets talk about!
« on: October 06, 2006, 08:44:32 PM »
Okay, I´ve found another solution! We can export user emails to *.txt file, by using this script.

Create a php file like get_user_email.php (save in root)  with this little code:

Code: [Select]
<?php

error_reporting
(E_ALL);
define('ROOT_PATH''./');
include(
ROOT_PATH.'config.php');
include(
ROOT_PATH.'includes/constants.php');
include(
ROOT_PATH.'includes/db_mysql.php');
$site_db = new Db($db_host$db_user$db_password$db_name);


$sql 'SELECT COUNT( * ) AS `Zeilen` , `user_email` FROM `4images_users` GROUP BY `user_email` ORDER BY `user_email`';

$site_db->query($sql);
echo 
"<br /><br /><br /><center><b>Email-Liste erfolgreich exportiert!</b></center>";

$result mysql_query($sql) OR die(mysql_error());
 
 
$datei fopen("get_user_email.txt""a");
while ( 
$row mysql_fetch_array($result)) {
    
fwrite($datei$row['user_email']. "\n");
}
fclose($datei);

?>


Somebody knows, how I can realize "/n" in *.txt-file? In get_user_email.txt it looks like: robert@aol.comangel@yahoo.comsteve@lycos.com

Now we can import this script in K-ML when it´s like this:

robert@aol.com
angel@yahoo.com
steve@lycos.com

Ciao by Flo

37
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:

38
Discussion & Troubleshooting / Re: Thumbnails poor quality
« on: October 03, 2006, 03:41:00 PM »
In version 1.7.3:

Code: [Select]
// If you use GD higher 2.0.1 and PHP higher 4.0.6 set this to 1.
// Your thumbnails will be created with better quality
//define('CONVERT_IS_GD2', 0);

Why is this commented out?

Cya by Flo

39
This little script keeps the agree button (in register_signup.html) inactive until 10 seconds. So users have some time to read the agreements 8)

Example:


Files to modify:

templates/default/register_signup.html
templates/default/register.html

1. edit register_signup.html and find:

Code: [Select]
<form method="post" action="{url_register}">
<input type="hidden" name="action" value="register" />
<input type="submit" value="{lang_agree}" class="button" />
</form>

replace with:

Code: [Select]
<form method="post" action="{url_register}" name="sform">
<input type="hidden" name="action" value="register" />
<input type="hidden" name="disclaimer" value="viewed">
<input type="submit" name="submitbtn" value="{lang_agree}" class="button" />
</form>

2. open register.html and find: {footer}

Add above

Code: [Select]
<script language="javascript">
<!--
var secs = 10;
var wait = secs * 1000;
document.sform.submitbtn.disabled=true;

for(i=1;i<=secs;i++) {
 window.setTimeout("update(" + i + ")", i * 1000);
}

window.setTimeout("timer()", wait);

function update(num) {
 if(num == (wait/1000)) {
  document.sform.submitbtn.value = "Akzeptieren";
 }
 else {
  printnr = (wait/1000)-num;
  document.sform.submitbtn.value = "Akzeptieren (" + printnr + ")";
 }
}

function timer() {
 document.sform.submitbtn.disabled=false;
}
//-->
</script>

I really don´t know if it´s the best place to embed this script here above the footer, but it works - try it yourself  :wink:

Best regards by Flo

40
Shit, I have the same problem like some guys before  :?

That´s my badword list:


Somebody find out...?

THX Flo

41
Mods & Plugins (Requests & Discussions) / Re: Random gallery banner 2006
« on: October 02, 2006, 10:59:49 AM »
Sorry, war lange nicht mehr aktiv im Forum, hat es denn mittlerweile geklappt bei Dir?

42
Discussion & Troubleshooting / Re: 4Images hacked
« on: October 01, 2006, 08:59:50 PM »
Ich würde mir an Deiner Stelle eine automatische Datenbanksicherung einrichten. Via Cronjob bist Du damit auf jeden Fall auf der sicheren Seite!

Ciao by Flo


43
Mods & Plugins (Releases & Support) / Re: [MOD] guestbook
« on: October 01, 2006, 08:55:59 PM »
You have 4images 1.7.3 and want to use the captcha function for this guestbook MOD?

I have done a little tutorial: http://www.4homepages.de/forum/index.php?topic=14873.0

Ciao by Flo[/b]

44
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:

Code: [Select]
// Flood Check
add above:
Code: [Select]
//-----------------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:
Code: [Select]
if (!$error)  {
      if ($comment_site =="http://") {
         $comment_site = "";

add above:
Code: [Select]
//-----------------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:
Code: [Select]
"lang_comment" => $lang['comment'] (without > , < behind)

replace with:
Code: [Select]
"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:
Code: [Select]
<td>{bbcode}</td>
</tr>

add after:
Code: [Select]
{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:

Code: [Select]
define("4IMAGES_ACTIVE", 1);
add after:
Code: [Select]
$captcha_enable_guestbook = 1;
I´ll hope you´ve got it! Ciao by Flo

45
Hi, what changes I have to do when I use MySQL 5

Error-message: Table 'db_user.pm_table' doesn't exist

Edit: Sorry I´ve forgotten to save includes/db_field_definitions.php!

Now it seems to work with the following System:

4images vers. 1.7.3
MySql vers. 5.0.24a
PHP vers. 5.1.6

Greetz by Flo

Pages: 1 2 [3] 4 5 6 7 ... 16