Author Topic: 4images 1.7.3 - Feedback  (Read 149499 times)

0 Members and 1 Guest are viewing this topic.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: 4images 1.7.3 - Feedback
« Reply #45 on: July 21, 2006, 04:19:09 PM »
Read docs/CAPTCHA.english.txt for a detailed description of the CAPTCHA configuration options.
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline lotus69

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: 4images 1.7.3 - Feedback
« Reply #46 on: July 21, 2006, 05:16:22 PM »
i disabled captcha because it doesn't work (image isn't generated) but i would like to use it, so have you any clue about this problem please ?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: 4images 1.7.3 - Feedback
« Reply #47 on: July 22, 2006, 02:12:35 AM »
The captcha requires GD2 (GD1 is supported but was not fully tested), so if GD2 is not installed on your server you wont be able to use it.
Your first three "must do" before you ask a question:
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)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Bugfixed

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • Lavinya
Re: 4images 1.7.3 - Feedback
« Reply #48 on: July 22, 2006, 11:18:50 AM »
jan :(

My php version: 4.3.10-14.25 on suse 9.3 and apache 2.0.53-9.10

in my rss page "type" area blank pls help.

It seems that there is a bug in the PHP function mime_content_type(). Try the following:

Open includes/functions.php and replace everything between and including

Code: [Select]
if (!function_exists('mime_content_type')) {
and the last

Code: [Select]
}
with the contents of the text file attached to this post.

Then open rss.php and replace

Code: [Select]
mime_content_type
with

Code: [Select]
get_mime_content_type

thanks.

I Have done your said but there is an error. Can you give edited file (functions.php) me pls.
<?php echo 'Hello, World!'; ?>

Offline lotus69

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: 4images 1.7.3 - Feedback
« Reply #49 on: July 22, 2006, 11:41:28 AM »
The captcha requires GD2 (GD1 is supported but was not fully tested), so if GD2 is not installed on your server you wont be able to use it.

thank you V@no, i've installed GD2 and now it shows the image, but it doesn't work anymore, if user enter a wrong code it success !

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: 4images 1.7.3 - Feedback
« Reply #50 on: July 22, 2006, 12:43:02 PM »
thanks.

I Have done your said but there is an error. Can you give edited file (functions.php) me pls.
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline ciprianmp

  • Newbie
  • *
  • Posts: 29
  • Php just rocks!
    • View Profile
    • My site
Re: 4images 1.7.3 - Feedback
« Reply #51 on: July 22, 2006, 01:44:59 PM »
The right click protection doesn't work...
I tried with both IE and Firefox...
This is the according section in my header.html template file:
Code: [Select]
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by {site_name}");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");

The script error says: expected ')' on line with "document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");"
It works only in IE with the old code:
Code: [Select]
  function right(e) {
    if (navigator.appName == 'Netscape' && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button==2 || event.button == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    return true;
  }
  document.onmousedown=right;
  if (document.layers) window.captureEvents(Event.MOUSEDOWN);
  window.onmousedown=right;
Any idea what goes wrong? Anyone has it working on both IE and firefox?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: 4images 1.7.3 - Feedback
« Reply #52 on: July 22, 2006, 01:49:44 PM »
Whats your site name. Maybe {site_name} contains some characters which produces the error.
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: 4images 1.7.3 - Feedback
« Reply #53 on: July 22, 2006, 01:53:52 PM »
I found it ;)
The source is
Code: [Select]
document.oncontextmenu = new Function("alert('© Copyright by Ciprian's Personal Photo Gallery');return false");
Its the "Ciprian's" that produces the error.
You can set the name directly in the  template by escaping the ':

Code: [Select]
document.oncontextmenu = new Function("alert('© Copyright by Ciprian\'s Personal Photo Gallery');return false");
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline digi-foto

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: 4images 1.7.3 - Feedback
« Reply #54 on: July 22, 2006, 01:59:55 PM »
Read docs/CAPTCHA.english.txt for a detailed description of the CAPTCHA configuration options.

----------------------------------------------------------
  How to enable the CAPTCHA system:
  ----------------------------------------------------------

  The CAPTCHA System is enabled by default.

  -- Advanced control of the CAPTCHA system ----------------

  You can control the CAPTCHA system in your config.php with
  the following configuration variables:

  - $cache_enable = 1;
      A value of 1 enables the CAPTCHA system, 0 disables it.
      Default value is 0.

  - $captcha_enable_comments = 1;
      A value of 1 enables the CAPTCHA system for the comments
      form, 0 disables it.
      Default value is 1.


That doesnt give much help on how to  configure it
unless 4images 1.7.3 are for DEVELOPERS and PHP GURUS  only ?

simple: where do we change and configure the CAPTCHA and where in config.php to add/alter/delete code ?

Offline ciprianmp

  • Newbie
  • *
  • Posts: 29
  • Php just rocks!
    • View Profile
    • My site
Re: 4images 1.7.3 - Feedback
« Reply #55 on: July 22, 2006, 03:54:37 PM »
You can set the name directly in the  template by escaping the ':

Code: [Select]
document.oncontextmenu = new Function("alert('© Copyright by Ciprian\'s Personal Photo Gallery');return false");

I changed the site name to remove the 's and works cool now! Thank you!
Anyway, can a patch be writen to automatically escape that character in the future?

Offline ciprianmp

  • Newbie
  • *
  • Posts: 29
  • Php just rocks!
    • View Profile
    • My site
Re: 4images 1.7.3 - Feedback
« Reply #56 on: July 22, 2006, 03:56:59 PM »
Read docs/CAPTCHA.english.txt for a detailed description of the CAPTCHA configuration options.

----------------------------------------------------------
  How to enable the CAPTCHA system:
  ----------------------------------------------------------

  The CAPTCHA System is enabled by default.

  -- Advanced control of the CAPTCHA system ----------------

  You can control the CAPTCHA system in your config.php global.php with
  the following configuration variables:

  - $cache_enable = 1;
      A value of 1 enables the CAPTCHA system, 0 disables it.
      Default value is 0.

  - $captcha_enable_comments = 1;
      A value of 1 enables the CAPTCHA system for the comments
      form, 0 disables it.
      Default value is 1.


That doesnt give much help on how to  configure it
unless 4images 1.7.3 are for DEVELOPERS and PHP GURUS  only ?

simple: where do we change and configure the CAPTCHA and where in config.php to add/alter/delete code ?


Digi-foto, it is in global.php not config.php. Check there  :mrgreen:

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: 4images 1.7.3 - Feedback
« Reply #57 on: July 22, 2006, 04:22:37 PM »
Digi-foto, it is in global.php not config.php. Check there :mrgreen:

No, the variables must be set in config.php. Just the default values are set in global.php
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Bugfixed

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • Lavinya
Re: 4images 1.7.3 - Feedback
« Reply #58 on: July 22, 2006, 04:25:33 PM »
jan : very thanks  :)
<?php echo 'Hello, World!'; ?>

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: 4images 1.7.3 - Feedback
« Reply #59 on: July 22, 2006, 04:28:44 PM »
Read docs/CAPTCHA.english.txt for a detailed description of the CAPTCHA configuration options.

----------------------------------------------------------
  How to enable the CAPTCHA system:
  ----------------------------------------------------------

  The CAPTCHA System is enabled by default.

  -- Advanced control of the CAPTCHA system ----------------

  You can control the CAPTCHA system in your config.php with
  the following configuration variables:

  - $cache_enable = 1;
      A value of 1 enables the CAPTCHA system, 0 disables it.
      Default value is 0.

  - $captcha_enable_comments = 1;
      A value of 1 enables the CAPTCHA system for the comments
      form, 0 disables it.
      Default value is 1.


That doesnt give much help on how to  configure it
unless 4images 1.7.3 are for DEVELOPERS and PHP GURUS  only ?

simple: where do we change and configure the CAPTCHA and where in config.php to add/alter/delete code ?
If you tell what do you want to change i can give you an example how to do it.
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search