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

Pages: [1] 2
1
Where did you have to re enter info? as having same issues myself

It's been over 6 years so I guess in the General section of the General > Settings section of the Admin Control Panel.

2
Version: 1.7.2

I recently moved 4images from my old server to a new one.

After the move, it seems to work except no more email notifications are being sent out.

- I am not seeing any error messages
- I am not using SMTP
- Other scripts, both Perl & Php are sending emails from this new account without a problem
- These missing messages are not getting caught in any spam filters.

I moved the MySQL database, moved the 4images directory, and I updated my settings in config.php... is there anything else I need to do?

What else can I check?

Thank-you.

_____________

UPDATE:

Oddly, all I had to do was reenter my various admin email addresses... none of them changed but reentering them seems to have resolved this issue.    :?:

3
Installation, Update & Configuration / Re: New Install - No Email
« on: March 19, 2011, 11:05:54 PM »
Quote
Issue fixed. Problem with server.

???

What did you find?

I have an old installation moved to a new hosting account.

My server is not having trouble sending email from other programs using sendmail but I have the exact same problem you describe.

4
I forgot we have it in FAQ:
How can I show all images of my 4images website at once

OK thank-you.  Looks good.

I'll give it a try and let you know.

5
search.php?search_keywords=*** should do it ;) (note number of asterisks "*" must be as the minimum keyword length set in includes/constants.php, default it's 3)

Thank-you for your response.

For whatever reason, the solution did not work. 

search.php?search_keywords=***

"Your search resulted in no matching records."

:?

In constants.php, MIN_SEARCH_KEYWORD_LENGTH is set to 3

4images version 1.7.2

6
Hi!

<a href="./search.php?search_user=sparky">All Pictures</a>

mfg Andi

Thanks for your response.  Your suggestion displays all photos but only those uploaded by me....  I'm not the only user though so it doesn't display everything in the gallery.

I ended up manually editing the database file by adding a new keyword to all 400+ photos and then searching by this new common keyword.  It's such a sloppy solution and will easily break as soon as somebody uploads new photos without the common keyword.

Really hoping this was already solved here with a simple code modification.   :?

7
I searched this forum and hope I didn't miss anything before posting.

I have over 400 photos in dozens of categories.

I was wondering if it's possible to be able to allow all users to see all photos at once.  As it stands, they must look inside each category.  With a single link it would be nice to show all photos in one master category as well.

version 1.7.2

Thank-you!

8
To add the rotate button for the admin:

Replace includes/rotate.php with this:
Code: [Select]
<?
// change to suit your needs eg: define (JPG_QUALITY, '75'); gives a more compressed
// image file, but a poorer quality, when re-writing the jpeg after rotation.

define('JPG_QUALITY', '100');


//define variables and includes (should be no need to change these)
define('ROOT_PATH', './../');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();


//is there an image_id and does the user have permission to delete the image? If not, send them back to the index page!
if (!$image_id || ($config['user_delete_image'] != 1)) {
    header("Location: ".$site_sess->url(ROOT_PATH."index.php", "&"));
    exit;
  }
 
//if ok so far, read the image info from the database 
  $sql = "SELECT image_id, cat_id, user_id, image_name, image_media_file, image_thumb_file
          FROM ".IMAGES_TABLE."
          WHERE image_id = $image_id";
         
  $image_row = $site_db->query_firstrow($sql);

//is the user a registered user and the 'owner' of the image? If not, send them back to the index page!
  if ($user_info['user_level'] == ADMIN OR !$image_row || $image_row['user_id'] <= USER_AWAITING || ($user_info['user_id'] = $image_row['user_id'])) {

 
//so far so good, more variables need defining...
$ok=false;
$file=$image_row[image_media_file];
$cat_id=$image_row[cat_id];
$path_to_media = ROOT_PATH.MEDIA_DIR."/".$cat_id."/";
$path_to_thumbs = ROOT_PATH.THUMB_DIR."/".$cat_id."/";
$ext = get_file_extension($file); 

//clockwise or anticlockwise?
$degrees=0;
if ($wize=="neg"){$degrees = 90;}
if ($wize=="180"){$degrees = 180;}
if ($wize=="pos"){$degrees = 270;}

// Load existing images (if a 'jpg')
if (($ext == "jpg") || ($ext == "jpeg"))
{
$source_image = imagecreatefromjpeg($path_to_media.$file);
$source_thumb = imagecreatefromjpeg($path_to_thumbs.$file);
$ok=true;
}

// Load existing images (if a 'gif')
if ($ext == "gif")
{
$source_image = imagecreatefromgif($path_to_media.$file);
$source_thumb = imagecreatefromgif($path_to_thumbs.$file);
$ok=true;
}

if ($ok) //is it ok to process?
{
// Rotate
$rotate_image = imagerotate($source_image, $degrees, 0);
$rotate_thumb = imagerotate($source_thumb, $degrees, 0);

//Create new file names using timestamp as 'random' prefix to force browser to reload
$new_file_name=time().".".$ext;
$new_image = $path_to_media.$new_file_name;
$new_thumb = $path_to_thumbs.$new_file_name;

//Output 'new' images
if (($ext == "jpg") || ($ext == "jpeg"))
{
imagejpeg($rotate_image,$new_image,JPG_QUALITY);
imagejpeg($rotate_thumb,$new_thumb,JPG_QUALITY);
}

if ($ext == "gif")
{
imagegif($rotate_image,$new_image);
imagegif($rotate_thumb,$new_thumb);
}

//Delete 'old' files
unlink($path_to_media.$file);
unlink($path_to_thumbs.$file);
imagedestroy($rotate_image);
imagedestroy($rotate_thumb);
imagedestroy($source_image);
imagedestroy($source_thumb);


//write 'new' filenames to database
$sql=" UPDATE `4images_images`
SET `image_media_file` = '$new_file_name',`image_thumb_file` = '$new_file_name'
WHERE `image_id` = '$image_id'
LIMIT 1";

$result = $site_db->query($sql);

} //end of processing

//display new rotated image
header("Location: ".$site_sess->url(ROOT_PATH."details.php?&".URL_IMAGE_ID."=".$image_id, "&"));
}
  elseif (!$image_row || $image_row['user_id'] <= USER_AWAITING || ($user_info['user_id'] != $image_row['user_id'])) {
    header("Location: ".$site_sess->url(ROOT_PATH."index.php", "&"));
      exit;
  }

?>

Open details.php

FIND:
Code: [Select]
if ($user_info['user_level'] == ADMIN) {
  $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=editimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
  $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=removeimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['delete']."</a>&nbsp;";
}

REPLACE WITH:
Code: [Select]
if ($user_info['user_level'] == ADMIN) {
  $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=editimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
  $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("images.php?action=removeimage&amp;image_id=".$image_id))."\" target=\"_blank\">".$lang['delete']."</a>&nbsp;";
  $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."includes/rotate.php?".URL_IMAGE_ID."=".$image_id."&amp;wize=90")."\">".$lang['rotate_neg']."</a>&nbsp;";
  $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."includes/rotate.php?".URL_IMAGE_ID."=".$image_id."&amp;wize=270")."\">".$lang['rotate_pos']."</a>";
}

When an Image is uploaded, you get a page with te result, is it possible to add the rotate option to that page?
 :!:


Even though I found a major problem with your code, I still can't get it to work. :!:

:arrow: In your rotate.php you are looking for variable wize to be "pos"...

[qcode]//clockwise or anticlockwise?
$degrees=0;
if ($wize=="neg"){$degrees = 90;}
if ($wize=="180"){$degrees = 180;}
if ($wize=="pos"){$degrees = 270;}
[/qcode]

:arrow: But your new admin links are passing variable wize as "270"...

[qcode]$admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."includes/rotate.php?".URL_IMAGE_ID."=".$image_id."&amp;wize=270")."\">".$lang['rotate_pos']."</a>";[/qcode]

9
We have one post after another flipping stuff around and it's getting a little confusing.  I understand this is how things improve through community participation but I'm not sure which posters found a working solution as some people are updating pieces of other's work.

I was wondering if someone can post a verified final working version of this all in one place.

I've tried every rotate.php script version in this thread and none of them are working for me.

Depending on the version of rotate.php I get one of two things...

1.  White screen and nothing else happens.

or

2.  Internal Server Error.


I'm using 4images 1.7.2

I'm only interested in the admin having this new function.  So I added the rotate.php to the includes directory.  I added the rotate text to my language file.  Then I changed the details.php so that there are links for the admin to rotate on the details page. (the links are displaying fine.)

That's all I did.  Did I miss something or do I need to find the correct "rotate.php" version or combination of pieces of these rotate.php versions?

10
Did you upload the images via members upload form and not from ACP? if not - do that, in ACP for thumbnails you'll need manualy run "auto thumbnailer" script.

Doh!! <<forehead slap>>  Yeah, my mistake.  Works fine via member's page.

11
did you select any graphic modules in the settings?
run auto thumbnailer in the ACP (Admin Control Panel) and see if it shows you any error messages.

Yes- I'm using NetPBM.

Yes- I can use the auto-thumbnailer and it works fine creating all the thumbnails.

The problem is that I want the thumbnails to be created as I upload the images.  I have "auto-create" thumbnails set to "yes" but it doesn't matter.  I still just get the generic JPG icons instead of thumbnails.

I want other people to be able to upload without Admin permissions so it's important to me that I get this working.

Thank-you!

12
Discussion & Troubleshooting / Re: Auto Thumbnail on Upload?
« on: June 10, 2006, 12:43:07 AM »
Me too!  I thought thumbnails were supposed to be created automatically upon image upload.

13
Yes- me too.

Auto-create thumbnail setting seems to be ignored.

14
Your program seems really easy to setup and use.  I tried "Gallery" last year but got some really strange errors on certain computers/browsers.  Actually got the error on some computers running MY installation and no errors viewing others' installations.  Very confusing problem and never got it resolved.

THANK-YOU.

15
use localhost for the address

P.S. your host's FAQ is seems to be for people who already know PHP...omg...

THANK-YOU.  I just figured that out myself a minute ago.  Can I say, "great minds think alike"?  Maybe not :P

I actually tried "localhost" not really thinking it would work.  But it did!

Pages: [1] 2