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

Pages: [1] 2
1
It turned out it was in fact a permissions error. Aparently it appears that a Windows update broke something that changed premissions in IIS.  I tried everything but ultimatly had to re-set the IUSR password and re-apply the permissions. All is working fine now.  Thanks for the input.

2
Environment:

Windows 2003 Server
IIS 6.0
PHP 4.3.11
MySQL 4.1
IIS HTML & PHP Compression Enabled
Zend Optimizer Installed


I have an installation of 4images that I have been using successfully for some time.  Now I am getting the following error messages when trying to upload new images or back up the database from the control panel.

======================ERRORS=============================
Uploading images Error:
 
"Error uploading image file: 05a_carolmesser.jpg
05a_carolmesser.jpg: Copy error. Please check the directory permissions.
No database entry!"
 
OR when I try to back up the database"
 
"Error backing up. Check your permissions (chmod 777)."
========================================================

I have not changed ANY permissions with respect to this site or it's databases but I can not back up that database either.
 
I have verified that I can login to MySQL using the assigned user name and that works fine. I also verified IIS and directory level permission to the upload folders. I have also gone so far as to add full permissions to the internet guest account  and there is none change.
 
The ONLY thing I can perhaps relate this to is I recently enabled IIS compression for HTML, PHP & ASP and installed Zend Optimizer. The sites work fine and another site I am working on that is a PHP/MySQL application does not seem to have these issues.

When I removed PHP from the metabase.xml ( the IIS compression file) there was no change.  I also tried uninstalling Zend and it broke all my sites running PHP apps with a message "No input file specified."  I reinstalled Zend and all sites work again except I still have the above issues with 4images.
 
Thanks so much

3
Is this the procedure good for ver. 1.7.2?   My thumbnail borders are the standard normal (blue) and visited (purple) link color.  I would therfore assume this would be controled by a stylesheet but I have not had luck with that apporch.  Then I found this post but I am sure I understand what code to put where.

REF mawenzi's post:
$thumb = "table cellspacing=\"0\" cellpadding=\"2\" border=\"0\"><tr><td bgcolor=\"#FF0000\"> < ... here your thumb-code ..> ></td></tr></table>";

Below is all the code that appears to be related to thumbnails in my includes/functions.php  Where does the red code go exactly?  Is there a way to use the a.link, a.hover, a.visited colors as one might in a css file?

Code: [Select]
function get_thumbnail_code($media_file_name, $thumb_file_name = "", $image_id, $cat_id, $image_name = "", $mode = "", $show_link = 1, $open_window = 0) {
  global $site_sess, $config;

  if (!check_media_type($media_file_name)) {
    $thumb = "<img src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" />";
  }
  else {
    if (!get_file_path($thumb_file_name, "thumb", $cat_id, 0, 0)) {
      $file_src = ICON_PATH."/".get_file_extension($media_file_name).".gif";
      $image_info = @getimagesize($file_src);
      $width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
      $thumb = "<img src=\"".$file_src."\" border=\"0\"".$width_height." alt=\"".$image_name."\" />";
    }
    else {
      $file_src = get_file_path($thumb_file_name, "thumb", $cat_id, 0, 1);
      $image_info = @getimagesize($file_src);
      $width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
      $thumb = "<img src=\"".$file_src."\" border=\"".$config['image_border']."\"".$width_height." alt=\"".$image_name."\" />";
    }
  }

  if ($show_link) {
    if ($open_window) {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
    }
    else {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$thumb."</a>";
    }
  }
  return $thumb;
}

Thanks - Technobia

4
Installation, Update & Configuration / Re: Search Results Page Expired
« on: April 12, 2006, 04:15:27 AM »
I figured that worked the way it was supposed to but I just wasn't sure if there was a solution.  That worked great! Thanks again!

5
Installation, Update & Configuration / Search Results Page Expired
« on: April 11, 2006, 10:35:03 PM »
ENVIRONAMENT:
Ver. 1.7.2 is installed. I have two galleries (Art & Frames) installed in separate folders & databases in the same website.  Each has a slightly different details.html template configuration.  I am only using the thumbnail gallery accessed via the home.html index page as well as the catagories.html, details.html and search.html for both galleries.  I had another developer set up the site and page templates and I am now fine tuning the application. 

ISSUE:
When I perform a search in either gallery and then click on a search result item, everything works fine EXCEPT when I click the Go Back link.  The link it does not return to the search results, instead returns a browser error “Page has expired”  If I refresh the browser, then I get a message similar to: “…page can not be refreshed without resending info…”  Then, if I click the provided [Retry] button, the search results page is finally displayed again.

I suspect some less savvy site visitors will not refresh and will go back and manually re-enter the search criteria.  I would like to avoid this if at all possible. 

QUESTION:
Is there a way for the Go Back link, only on the search results pages, to go back to the search results without having to do all of that? Or, perhaps someone would suggest some other solution?

NOTE:
I did not set up the search functions and I am not PHP literate beyond making minor code edits. So I would appreciate some help if this is required.

Thanks - Technobia

6
I was able to make it work.  I did however have to trim the HTML code quite a bit as I only wanted the image and nothing else.  Also, instead of putting the code in the catagories_bit.html I put it in catagories.html. 

I placed the images in the template/default/images_english folder
and replaced the {cat_name} tag with the following code:

<img src="{template_lang_image_url}/catagory{cat_id}.gif"

Worked GREAT!
Thanks!

7
Hi V@no,

It seems that the first mod (3589.0) is most appropriate however do you know if I can eliminate the {cat_name} text that is displayed and replace it with the image?  OR does this mod display both an image and the text?

Thanks - Technobia

8
That worked flawlessly! Thanks SO MUCH!

9
Thanks! That worked great.

10
Hi V@no,

I am not sure if you want me to add both lines in details.php and if so where in the the file I should paste it in, OR if it is suposed to replace other code?  I would appreciate a clarification.

Also adding this will not effect the template that already properly displays the data I want?

Thanks - Tecnobia

P.S. Thanks for the signature suggestion.

11
Hello –

Re: Ver. 1.7.2

I have the need to have two separate image galleries within a single website.  Each gallery requires slightly different template configurations and database requirements.  One installation has already been completed by another person and all the folders and php files are in the root of my website. 

I would like to install the second gallery into another folder if possible to keep everything separate.

Has anyone done this successfully and if so, what is the best process to follow and are there any issues I need to look out for?

Thanks so much - Technobia

12
ENVIRONAMENT:
Ver. 1.7.2 is installed. I am only using the thumbnail gallery accessed via the category index page as well as the search feature.  I had another developer set up the site and page templates etc.  All I am doing is adding categories and images and attempting to make some changes and adjustments to the configuration as follows:

ISSUE:
I am currently using the {cat_name} tag as a page header for each category on the catagories.html and details.html templates.

My client would like to use a custom font to display the {cat_name} data (artist name) instead of using web-safe fonts. The only way I can think of to do this would be to somehow replace the {cat_name} with a graphic somehow.

QUESTION:
Is there a way to display a unique graphic for each category (artist) with OR without using the {cat_name} tag or would this be a nightmare, if possible at all?

NOTE:
I am not PHP literate beyond making minor code edits.

Thanks - Technobia

13
ENVIRONAMENT:
Ver. 1.7.2 is installed. I am only using the thumbnail gallery accessed via the category index page as well as the search feature.  I had another developer set up the site and page templates etc.  All I am doing is adding categories and images and attempting to make some changes and adjustments to the configuration as follows:

ISSUE:
I am displaying thumbnail images for uploaded images using the catagories.html template. I also am using the {cat_description} variable to display a photo of the artist with some text for their bio.  This is all working fine. 

However, I would like to also display the same contents of the {cat_description} on the catagories.html (photo & bio) on the details.html template as well so when the thumbnails are clicked and the larger image shows, the artist picture and bio for that category are duplicated there as well.

I have copied the {cat_description} tag from the catagories.html template to the details.html template but the photo and bio do not show up.

QUESTIONS:
1. Is there something else I need to do or another file I need to edit?

2. Is there any English documentation for this application that might help with these kinds of issues?

Thanks - Technobia

14
Installation, Update & Configuration / Re: Thumbnail Image Sort Order
« on: April 06, 2006, 02:49:56 AM »
Cool! That works too! Thanks!

15
Installation, Update & Configuration / Re: Thumbnail Image Sort Order
« on: April 06, 2006, 02:42:06 AM »
Hum.. that seems to work. I do not have download option enabled.  Do you suggest then I use Date then?  Is Date the file creation date or the upload date?

Pages: [1] 2