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 6 ... 29
16
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?

17
Discussion & Troubleshooting / Re: Different cache lifetime for guests?
« on: October 27, 2010, 08:30:17 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

18
Discussion & Troubleshooting / Re: Different cache lifetime for guests?
« on: October 26, 2010, 02:43:52 PM »
I tried it and then in cache_utils.php added:
Code: [Select]
echo $cache_lifetime;
And it still show me 3600.

Maybe because file cache_utils.php is called in global.php.

And in index.php its like that:
Code: [Select]
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');

Maybe I could remove from globals.php
Code: [Select]
include_once(ROOT_PATH.'includes/cache_utils.php');
And add at the end of session.php

Code: [Select]

if ($user_info['user_level'] == GUEST)
{
  $cache_lifetime = 300; //twice as long then for members
}
include_once(ROOT_PATH.'includes/cache_utils.php');

19
Discussion & Troubleshooting / Different cache lifetime for guests?
« on: October 26, 2010, 12:44:50 PM »
Does anyone know if it's possible to have different lifetime of cache for guests and registered users?

Looks like calling user_info in global.php file is too early...

20
Mods & Plugins (Releases & Support) / Re: [MOD] Facebook Connector V1.0
« on: October 22, 2010, 09:14:37 PM »
If you look at the end of 1st post you'll see attached file Facebook_connect.zip

If you unzip it you'll find install_facebook.php

Here you go, to make it easier:
http://www.4homepages.de/forum/index.php?action=dlattach;topic=27396.0;attach=5471

21
Mods & Plugins (Releases & Support) / Re: [MOD] Facebook Connector V1.0
« on: October 22, 2010, 06:39:41 PM »
Hi Budduke,

I would like to congratulate the time, you're a genius!
4images shaping the system for more than 1 month and is now stuck at work.

The access control system I would like to integrate the facebook-el 4images, but I can not find the file install_facebook.php.
I'm looking for here: http://github.com/facebook/php-sdk/
but unfortunately there is not.

Could you help me? I pay for the course.
thanks,
Jean Mitchel, from Hungary

Check 1st post for attachments (at the bottom)

22
Does anyone know if EXIF info will be lost if image will be auto resized? I tested this on my site and EXIF is gone. Anyone know how to fix that?

23
Guess I've missed that, thx!

24
Does anyone else have problem with with uploading files that have extension JPG or JPEG (with big letters)?

I have added two new lines in files upload_definitions.php and it looks like it's working now:
Code: [Select]
$mime_type_match['JPG'] = array("image/jpg", "image/jpeg", "image/pjpeg");
$mime_type_match['JPEG'] = array("image/jpg", "image/jpeg", "image/pjpeg");

25
Tutorials / Re: [TUT] One Image - Three Sizes
« on: September 10, 2010, 03:54:44 PM »
....
Can you be please more specific how to create image on fly? maybe with phpthumb?

look here (the thumbnail above the detail pic)
these pictures are not in folders, they are created when calling page.



Even that link on those thumbnails point to thumbnail directory? If the are created when calling page and not stored on server, could you please tell me how did you do that? Thank you!

26
Tutorials / Re: [TUT] One Image - Three Sizes
« on: September 10, 2010, 02:06:52 PM »

1. thumbnail (longer size 150px) - directory /thumbnail
2. square (100x100) - directory /square - (something like that: http://www.4homepages.de/forum/index.php?topic=20353.0)
3. image (resized to 1100x900px) - directory /media (http://www.4homepages.de/forum/index.php?topic=7700.0)

I have successfully planted image resize on upload, but I don't know how to create second image (square) and upload it to new folder /square.
perhaps the square create on the fly, and not a new folder?

Can you be please more specific how to create image on fly? maybe with phpthumb?

27
I've found solution for that ;)

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
Latitude: <input class="required" type="text" name="latitude" id="latitude" value="" />
Longitude: <input class="required" type="text" name="longitude" id="longitude" value="" />
<br /><br />
<div id="map" style="width: 600px; height: 420px"></div>

<!-- add your map api key here -->
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=YOUR-API-KEY"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<script type="text/javascript">
        $(document).ready(function(){
                map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());       
map.addControl(new GMapTypeControl());
map.enableScrollWheelZoom();
                map.checkResize();
                map.setCenter(new GLatLng(46.21785176740299,14.9908447265625), 8);

                GEvent.addListener(map, 'click', function(overlay, point) {
                        if (overlay) {
                                map.removeOverlay(overlay);
                        }
                        else if (point) {
                                map.panTo(point);
                                map.clearOverlays();
                                var marker = new GMarker(point);
                                map.addOverlay(marker);
                                $("#latitude").val(point.x);
                                $("#longitude").val(point.y);
                        }
                });

        });
</script>
</body>
</html>

28
How difficult would it be to allow user to choose photo position direct from Google Map? I found similar function on Flickr...
mean you, choose photo position direct from Google Map from the member upload form?

Yes exactly, user select position direct from Google Map. Because I know its difficult to know all coordinates for position.

29
How difficult would it be to allow user to choose photo position direct from Google Map? I found similar function on Flickr...

30
Tutorials / Re: [TUT] One Image - Three Sizes
« on: August 25, 2010, 10:03:14 AM »
I searched forum and I can't find the right solution.

What I am looking is three size images, but like this:
1. thumbnail (longer size 150px) - directory /thumbnail
2. square (100x100) - directory /square - (something like that: http://www.4homepages.de/forum/index.php?topic=20353.0)
3. image (resized to 1100x900px) - directory /media (http://www.4homepages.de/forum/index.php?topic=7700.0)

I have successfully planted image resize on upload, but I don't know how to create second image (square) and upload it to new folder /square.

Can anyone help me?

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