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 - Lucifix

Pages: [1] 2 3 4 5 ... 29
1
Discussion & Troubleshooting / Lost password function
« on: June 26, 2013, 08:16:16 PM »
I've just figured it out that Lost password function is really "strange". Why? Let say I've got email from my friend who is using the same gallery as I. I can just enter his email and send him new password. And I can do that all the time... and someone will be very furious :twisted:.

This should be fix somehow, maybe you should received email with link, which contain generated number. And after click on that link (server verify number) you can change you password.

Maybe I've overlooked this and this function is in this forum already?

2
Mods & Plugins (Releases & Support) / Re: [MOD] Ajax Username Checker
« on: April 04, 2012, 02:32:03 PM »
We fixed the problem through PM. ;)

3
Since Google has deprecated translation API (it's not free anymore), maybe we should start using Bing Translation API:
http://msdn.microsoft.com/en-us/library/ff512406.aspx

Maybe if I'll find time I try to integrate this in 4homepages gallery, but I cannot give you any hope ;)

4
Mods & Plugins (Requests & Discussions) / Max keyword per image?
« on: May 06, 2011, 12:20:33 PM »
Does anyone know how to set limit lets says 30 keywords per image?

I'm afraid that members will start using 100 or more keywords one one image...

5
Does anyone know how to show next to username in commets count of +/- rates which member received?

6
Hehe you're right :) Anyway I've fix the problem.

Here is updated mod which won't let you press nex/prev keyboard button if there is some text in textform:

Code: [Select]
<script type="text/javascript">

$(document).ready(function(){

function checkKey(e){
if (e.target.tagName.match(/input|textarea/i)) return;

{if user_loggedin}
var comment_text = $("#comment_text").val(); // id of comment textarea - change if needed!
if (comment_text != '') return;
{endif user_loggedin}

switch (e.keyCode) {
case 37:
var MyId = document.getElementById('prev_image_url');
if ( MyId != null) {
document.location.href = document.getElementById('prev_image_url').href;
}
break;
case 39:
var MyId = document.getElementById('next_image_url');
if ( MyId != null) {
document.location.href = document.getElementById('next_image_url').href;
}
break;
default:
}     
}

if ($.browser.mozilla) {
$(document).keypress (checkKey);
} else {
$(document).keydown (checkKey);
}

});

</script>

7
This mod works almost perfect, the only problem is when using is typing comment in textarea and want to use cursor to navigate through letter to make some correction. This will cause to move to another page.  :roll:


If you're using jquery i suggest to test this:
Code: [Select]
<script type="text/javascript">

$(document).ready(function(){

function checkKey(e){
if (e.target.tagName.match(/input|textarea/i)) return;

switch (e.keyCode) {
case 37:
var MyId = document.getElementById('prev_image_url');
if ( MyId != null) {
document.location.href = document.getElementById('prev_image_url').href;
}
break;
case 39:
var MyId = document.getElementById('next_image_url');
if ( MyId != null) {
document.location.href = document.getElementById('next_image_url').href;
}
break;
default:
}      
}

if ($.browser.mozilla) {
$(document).keypress (checkKey);
} else {
$(document).keydown (checkKey);
}

});

</script>

9
For those who're using PHPthumb and have gallery with many images, I would recomment using this modification:
http://mrphp.com.au/code/image-cache-using-phpthumb-and-modrewrite

Quote
Generate thumbs by visiting a URL such as your.com/thumbs/50x50/images/image.jpg. This will create a 50x50px thumbnail of your.com/images/image.jpg.

The thumb will be stored on your server at your.com/thumbs/50x50/images/image.jpg so the next request for the same image will be loaded without loading php for ultra fast image cache.

10
Mods & Plugins (Requests & Discussions) / Re: Autoresize - size limit
« on: November 07, 2010, 06:24:50 PM »
thx for info v@no.

What would you suggest to do, because some of my members complained that they don't have any graphic program to change file size and all of their photos are bigger then 1MB. I suppose if I set size limit to 5MB (with installed mod auto image resize) all uploaded images will be smaller then lets say 1MB?

@Rembrandt: thx for link, but I know that mod pretty well ;)

11
Mods & Plugins (Requests & Discussions) / Re: Autoresize - size limit
« on: November 07, 2010, 12:06:09 PM »
thx but this is not what i'm looking for. What I want is if user is trying upload lets say 5MB photo and the limit is 1MB, quality of his photo will be automaticaly change so it will fit the limit (in this case 1MB).

With you suggestion user won't be able to upload photo which is bigger then limit, unless he will resize it.

12
Mods & Plugins (Requests & Discussions) / Autoresize - size limit
« on: November 05, 2010, 02:10:30 PM »
I know that there is mod that will autoresize image if width or height is too big, but I couldn't find any mod that would lower image quality if image size (KB/MB) is too big?

So if member would like to upload image that is 5MB size, script would change quality to fit max size (etc. 500KB).

13
Mods & Plugins (Releases & Support) / Re: [MOD] Ban v1.7
« on: November 03, 2010, 12:45:03 PM »
I've one little question, which might sound stupid  :roll:

Can member somehow reactivate account if it's been deactivated by admins?

14
I checked my cache directory and I found out that there are some very old cache files which have already been expired but till now none of the visitors has visit that page which cache belongs to.

That's why I'm wondering wouldn't be good if somehow cache is automatically deleted/removed when cache lifetime is expired?

I don't know how that would effect server load if every time someone refresh page cache directory is checked if there are expired files?

Hi,

you can compare timestamp every time someone refreshes the page and only if the time between the
actual and the last timestamp is higher then X it checks for expired files and delete them...


Greetz X23

This is what I have in mind, but I'm worried that this will only make higher server load.

I haven't tested this yet, but maybe this will do it:
Code: [Select]
function delete_cache_folder() {
  global $cache_enable, $cache_lifetime, $cache_path;

  $days = 1;
  $handle = opendir($cache_path);
  while ($file = @readdir($handle)) {
    if (is_dir($file) || $file{0} == ".") {
      continue;
    }
    if ((time() - filemtime($cache_path . '/' . $file)) & ($days * 86400)) {
unlink($cache_path . '/' . $file);
}
  }
}
Modified from:
http://www.danmyers.name/wp/2008/12/delete-files-older-than-xx-days-using-php/

15
Discussion & Troubleshooting / Re: Different cache lifetime for guests?
« on: October 27, 2010, 09:55:13 AM »
It doesn't matter where it's being added, what matters is from where the function is being executed. Add that echo inside get_cache_file function instead.

I can confirm, it's working! ;)

http://www.4homepages.de/forum/index.php?topic=28160.msg152200#msg152200

Hi,

just the lines to session.php...
that's all?


Greetz X23

Correct ;)

Pages: [1] 2 3 4 5 ... 29