Search found 97 matches

by Robbedoesie
Fri Feb 01, 2013 3:53 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

well, I am not get the problem solved as how I want it to. I can get now show an image immediately after opening the image gallery page, but the problem now is that it won't go away when I click on a thumbnail. So there are two images sort of fighting for one spot. http://www.robcnossen.nl/view_albu...
by Robbedoesie
Wed Jan 30, 2013 10:02 am
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

He Jacek, Sorry for the delay, it looks like you worked it out though :D ? no problem, I hope you are alright. I recently find out that the problem was not with the images but with the albums. I find that out when I added another album, so I had then four albums instead of three albums and suddenly ...
by Robbedoesie
Tue Jan 22, 2013 9:43 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

I am still trying to get the main image on the same page as the thumbnails and still I am not succeeding. I am still trying because I think it must be possible. I have a few questions. Where you use $image on line 38 above it will not have an array value since you define it as false near the top. I'...
by Robbedoesie
Wed Jan 16, 2013 4:06 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

I did the array_merge. The code is now; <?php include 'core/init.php'; if (isset($_GET['album_id'])) { $album_id = $_GET['album_id']; $album_data = album_data($album_id, 'name', 'description'); echo '<h3>', $album_data['name'], '</h3><p>', $album_data['description'], '</p>'; $albums = get_albums(); ...
by Robbedoesie
Wed Jan 16, 2013 10:42 am
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

I changed the code to this; <?php include 'core/init.php'; if (isset($_GET['album_id'])) { $album_id = $_GET['album_id']; $album_data = album_data($album_id, 'name', 'description'); echo '<h3>', $album_data['name'], '</h3><p>', $album_data['description'], '</p>'; $albums = get_albums(); $images = ge...
by Robbedoesie
Sat Jan 12, 2013 10:00 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

Ah, you mean $image = false; . The script created somehow three thumbnails of each image instead of a normal one thumbnail of each image. With $image = false; I could reduce it back to one thumbnail of each image, but it is now also an obstacle. Is there a better way to keep only one thumbnail of ea...
by Robbedoesie
Thu Jan 03, 2013 3:08 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

Oke, here this are all the files; image.func.php; <?php ini_set('display_errors',1); error_reporting(E_ALL); function get_images($album_id) { $album_id = (int)$album_id; $images = array(); $image_query = mysql_query("SELECT `image_id`, `image_name`, `album_id`, `timestamp`, `ext` FROM `images` ...
by Robbedoesie
Sun Dec 30, 2012 11:15 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

I can't define 'id' correctly. Can the get_images function function get_images($album_id) { $album_id = (int)$album_id; $images = array(); $image_query = mysql_query("SELECT `image_id`, `image_name`, `album_id`, `timestamp`, `ext` FROM `images` WHERE `album_id`=$album_id"); while ($images_...
by Robbedoesie
Sat Dec 29, 2012 3:36 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

Pfff, I can't get the ['id'] defined correctly. The code is now this; //if(isset($images['id'])){ //$images=''; $full_image = (isset($_GET['image_id'], $_GET['id'])) ? $_GET['image_id'] : $images['id']; //print_r($full_image); var_dump($full_image); echo'<a href="?image_id=uploads/', $image['al...
by Robbedoesie
Wed Dec 26, 2012 8:54 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

The code is now like this; $full_image=(isset($_GET['image_id']) && (isset($_GET['id']))) ? $_GET['image_id'] : $images['id']; var_dump($full_image); if(isset($image)){ echo'<a href="?image_id=uploads/', $image['album'], '/', $image['id'], '.', $image['ext'], '"> <img src="',$...
by Robbedoesie
Sun Dec 23, 2012 10:43 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

I did the var_dump on $images, this shows up; array(2) { [0]=> array(5) { ["id"]=> string(3) "122" ["name"]=> string(38) "KONICA MINOLTA DIGITAL CAMERA_1043.jpg" ["album"]=> string(1) "7" ["timestamp"]=> string(10) "135529978...
by Robbedoesie
Sat Dec 22, 2012 1:40 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

I am trying to get this problem fixed with the foreach loop but I have to work more with this. This can take a while because I have to work and it is busy in the these coming days. I let you Know if I get this working or not. I am this far now with the foreach loop; if (isset($images)) foreach ($alb...
by Robbedoesie
Fri Dec 21, 2012 8:45 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

No, I let out the css.
Line 106 is
<img src="',$full_image, '" title="" /></a>';
and $full_image is;
$full_image=(isset($_GET['image_id'])) ?  $_GET['image_id'] : $images[0];
by Robbedoesie
Fri Dec 21, 2012 2:26 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

I'm still busy trying to get an image in the image container when opening the view_album.php page, butt with no success at all. It is the last hurdle for this page but I'm not sure anymore if it is possible to get over this hurdle. Am I maybe trying to achieve something that can't be done? The messa...
by Robbedoesie
Mon Dec 17, 2012 1:31 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

First, it's not really dealing with your issue but you aren't closing your <a> tag. Thanks, I didn't notice that. I closed it now. Second, You are calling everything within the a href with $image['something']; but the variable $image doesn't exist so it will always return blank. I'm not sure if $im...
by Robbedoesie
Fri Dec 14, 2012 1:58 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

Aha, of course, the error is shown in the page source. The htmlentities error is still there, just view the source of your page. Just for clarification, both the folder and files have 755 permission? The uploads and thumbs folders have 755 permission, the images itself have 644 permission. I removed...
by Robbedoesie
Thu Dec 13, 2012 9:46 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

Here I am again, I hope you all are not getting tired of me. I am not getting to the point where I want to be, so still no main image when you open the view_album.php page. Jacek,I hope that the php error where you point me at is gone, but I'm not sure that it is gone. I used the implode function fo...
by Robbedoesie
Wed Dec 12, 2012 6:53 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

Good be, but also I am not sure about that. I did print_r($full_image); and the right data came out for example; Array ( [id] => 122 [name] => KONICA MINOLTA DIGITAL CAMERA_1043.jpg [album] => 7 [timestamp] => 1355299786 [ext] => jpg ) But maybe the image is not showing because somehow I don't have ...
by Robbedoesie
Mon Dec 10, 2012 1:46 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

I can see that I get the right data from the array with print_r,
http://www.robcnossen.nl/view_album.php?album_id=7,
but not the image that belong with it, is that because of that warning? Do I then have to convert an array to a string?
by Robbedoesie
Sun Dec 09, 2012 11:38 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

Do you see that in your browser? Why don't I see that, it only tells me that I don't have access to the folder uploads. That warning means that it can't reach an image maybe because of a syntax error, doesn't it? Where must I look for the error, is that on line 99, it looks alright to me, but that i...
by Robbedoesie
Sun Dec 09, 2012 9:19 pm
Forum: PHP
Topic: photo gallery
Replies: 46
Views: 9336

Re: photo gallery

If I open the view_album.php page I see on the place where the main image should be a broken image icon(I think that it a broken image icon is). If I click on this icon this message appears; Forbidden You don't have permission to access /uploads// on this server. I set the permissions for this folde...