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

Pages: 1 ... 87 88 89 90 [91]
1351
Discussion & Troubleshooting / Extensis Portfolio 6
« on: May 14, 2002, 07:07:40 PM »
Yes, I use Extensis Portfolio 6.  

For me though, I can manipulate the exported data using Excel, Access or some other tool if required to place the data in a more import friendly format.  Including the replacement of those non-printable characaters.  

From page 128 of the Portfolio 6 User Guide:
Quote

Therefore Portfolio follows the ASCII standard by using ASCII 11 as the vertical tab character.  This character will be used to denote a linebreak within a field (such as a text block like the Description field). Portfolio also uses ASCII 29 as the Group Separator character.  This character will be used to delimit values within a multi-valued field (such as the Keywords field). Some other databases that support multi-valued or multi-lined fields (such as FileMaker Pro) also support these standards.


This is probably getting ahead of things, but if the import utility was robust enough, you could probably sell it as an add-on module for 4Images.  The combined solution could actually compete easily against the Extensis Portweb plugin as that requires the user to have their own Windows server.  That just isn't affordable or practical for the vast majority of Portfolio users.

I think categories can be handled without too much effort if the "Check New Files" CP feature is used in conjunction with Portfolio's ability to "Collect" gallery images to a folder for web server upload.  A gallery collection could easily be limited to a specific Portfolio category.

If I can be of any help at all, just let me know.  As I'm sure you can tell by now, as an experienced programmer I can document issues pretty well.  Although I don't know PHP (yet) I know enough about programming in C to get around inside the code.

I'll do whatever I can to assist!  (And I'm still willing to hand over some cash to motivate you  :wink: )

1352
Feedback & Suggestions / Nice
« on: May 14, 2002, 06:59:31 AM »
I agree.  Prefilling the sender's name and email from the logged in user info is a real nice touch.  THANKS !

1353
Discussion & Troubleshooting / Will wonders never cease ?!
« on: May 14, 2002, 06:30:24 AM »
There is an import utility for 4images?!  Excellent!

I downloaded it to try it out, unfortunately the import.txt file is in German and made it difficult for me to determine the record format.  But from looking at import.php file, is it the following?

Code: [Select]
ImageName or ImageID | Description | Keywords

How is this import used?  I get the impression that I could use "Check New Images" in the Control Panel to bulk load new images to the database, then use import.php to attach the metadata to those images.  I think I understand the category limitation and would therefore have to batch add new images to one category at a time.

I'd like to know more as I too have hundreds, perhaps thousands, of photos I want to import.

Can import.php be extended to support custom database fields using includes/db_field_definitions.php?  

Oooooh, now I'm dreaming, maybe drive import.php using a user defined template?  

    * Predefined template fields:  "4i_ImageName" (required - database primary key), "4i_Description", "4i_Keywords"
    * User defined template fields such as "Location", "Event", "FilmSpeed", "Organizer", and so on.[/list:u]

    Template Example:
    4i_ImageName | 4i_Description | 4i_Keywords | Location | FilmSpeed | Organizer

    Data File Example:
    190-12.jpg | George Heath celebrates his 500th jump | Flash GeorgeHeath | Skydive Cross Keys | ISO 400 | Team Monkey Claw

    This would be simply and unbelievably awesome for us power users.  
I would be willing to pay a nominal fee for an import utility with this much flexibility because I use Extensis Portfolio http://www.extensis.com/portfolio to track metadata and can export it easily.

1354
Discussion & Troubleshooting / I think I have a similar issue
« on: May 14, 2002, 05:20:48 AM »
I too see the download zip button disappearing.  My details and lightbox templates both contain {download_button} and {download_zip_button}

1.  In the details.php view, if there is no user logged in, I see the download_zip_off.gif button.  If I log in, the button isn't replaced by download_zip.gif, it just disappears entirely.

2.  The lightbox.php view doesn't display the download_off.gif button.  Obviously I can't view a lightbox if there is no user logged in.

Additional info:

I have 4 images referenced by URLs and 1 that was uploaded.  All images reside on the same server where 4images is installed.  All are in the master domain, which is to say that there is no subdomain involved.  The details.php view was for the uploaded file.  The lightbox contained only the 1 image that was uploaded.  

Any ideas?

1355
Feedback & Suggestions / You got it
« on: May 14, 2002, 04:47:07 AM »
Yes, that's it exactly.  It would be really nice if the user could select whether or not to receive emails from admins.

1356
Discussion & Troubleshooting / Never mind, I found it
« on: May 12, 2002, 08:48:12 PM »
{hits} in 1.0 was changed to {image_hits} in 1.5 beta

Perhaps these changes could be documented in a ChangeLog.

1357
For your information:

Code: [Select]
Hits: {hits}<br />

The above worked in 1.0 but not in 1.5 beta.

1358
I like the user registrations and want to use the admin control panel to inform my users when I post new pictures.  But I also want to respect their privacy and offer an opt-out mechanism.  If this was stored in the user's profile, the admin control panel 'send email' feature could use it to avoid pre-selecting their id in the form.

1359
Feedback & Suggestions / Better no right-click script in this post
« on: May 12, 2002, 07:51:33 PM »
The current script included in 1.5 beta doesn't work in Mozilla 1.0 RC2 or Netscape 6.2.2.  It also displays the alert() twice.

Code: [Select]

<SCRIPT LANGUAGE="Javascript">
<!--
// ***********************************************
//  http://www.cgiscript.net/scripts.htm
// ***********************************************
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
var EnableRightClick = 0;
if(isNS)
document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
  if(EnableRightClick==1){ return true; }
  else {return false; }
}
function mousehandler(e){
  if(EnableRightClick==1){ return true; }
  var myevent = (isNS) ? e : event;
  var eventbutton = (isNS) ? myevent.which : myevent.button;
  if((eventbutton==2)||(eventbutton==3)) {
    alert('© Copyright {site_name}');
    return false;
  }
}
function keyhandler(e) {
  var myevent = (isNS) ? e : window.event;
  if (myevent.keyCode==96)
    EnableRightClick = 1;
  return;
}
document.oncontextmenu = mischandler;
document.onkeypress = keyhandler;
document.onmousedown = mousehandler;
// document.onmouseup = mousehandler;
//-->
</script>


This script belongs in the header.html template and has been tested in Mozilla, Netscape and IE.  I don't have Opera to try it.

1360
Discussion & Troubleshooting / Understandable
« on: May 12, 2002, 07:12:00 PM »
Yeah I figured iptcparse() wouldn't handle the URL.  I tried anyway since the URL is for the same domain.  My plan is to eventually export from Cumulus or Portfolio and do a batch import directly to the db using my own scripts in a couple months.

Thanks.  This isn't critical and I can get by just fine without it.

By the way, big thanks for adding support for custom database fields!  I will definitely leverage that for displaying meta data I track in my own asset management software.

1361
In version 1.0, I enhanced details.php to return new variables 'next_image2' and 'next_image3'.  This was so I could display the previous and next 3 image thumbnails to the user for navigational purposes.  

I don't know PHP but I am make my living as a programmer.  It was easy enough for me to figure out that this data was already available in the cache.

Under 1.5 beta, this cache seems to have been removed.  I spent a couple hours yesterday trying to figure out how to accomplish the same thing but failed.  

Is it possible to copy and hack these sections of code to get the next 3 images?

Code: [Select]

$order = ($config['image_sort'] == "DESC") ? "DESC" : "ASC";
$condition = ($order == "DESC") ? "<" : ">";
$row = $site_db->query_firstrow("SELECT image_id AS next_image_id
                                 FROM ".IMAGES_TABLE."
                                 WHERE ".$config['image_order']." $condition '".$search_key."' AND cat_id = $cat_id AND image_active = 1
                                 ORDER BY ".$config['image_order']." $order
                                 LIMIT 1");
$next_image_id = (!empty($row['next_image_id'])) ? $row['next_image_id'] : 0;
$next_image_name = REPLACE_EMPTY;
$next_image_url = REPLACE_EMPTY;
$next_image_file = REPLACE_EMPTY;
$next_thumb_file = REPLACE_EMPTY;

...

// Get next and previous image
if (!empty($image_row[$next_image_id])) {
  $next_image_name = stripslashes($image_row[$next_image_id]['image_name']);
  $next_image_url = $site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$next_image_id);
  $next_image_file = (is_remote($image_row[$next_image_id]['image_media_file'])) ? $image_row[$next_image_id]['image_media_file'] : MEDIA_PATH."/".$cat_id."/".$image_row[$next_image_id]['image_media_file'];
  $next_thumb_file = (is_remote($image_row[$next_image_id]['image_thumb_file'])) ? $image_row[$next_image_id]['image_thumb_file'] : THUMB_PATH."/".$cat_id."/".$image_row[$next_image_id]['image_thumb_file'];
}


It's the LIMIT 1 and query_firstrow() I couldn't figure out how to replace (I think)

Here is a screen shot to illustrate what I'm trying to do:

I only blurred the URL because my site isn't public yet.  Too much work to do yet.

Sorry about the broken link.  The jpg should display in this post now.

Thanks for any input if you have any time to spare on this.

1362
If I add a new image using a URL instead of uploading a file, the following code fragment produces broken links:

Code: [Select]

// Get next and previous image
if (!empty($image_row[$next_image_id])) {
  $next_image_name = stripslashes($image_row[$next_image_id]['image_name']);
  $next_image_url = $site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$next_image_id);
  $next_image_file = MEDIA_PATH."/".$cat_id."/".$image_row[$next_image_id]['image_media_file'];
  $next_thumb_file = THUMB_PATH."/".$cat_id."/".$image_row[$next_image_id]['image_thumb_file'];
}

if (!empty($image_row[$prev_image_id])) {
  $prev_image_name = stripslashes($image_row[$prev_image_id]['image_name']);
  $prev_image_url = $site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$prev_image_id);
  $prev_image_file = MEDIA_PATH."/".$cat_id."/".$image_row[$prev_image_id]['image_media_file'];
  $prev_thumb_file = THUMB_PATH."/".$cat_id."/".$image_row[$prev_image_id]['image_thumb_file'];
}


So
Code: [Select]
{next_image_url} results in:
Code: [Select]

<a href="./details.php?image_id=8"><img src="./data/thumbnails/3/http://www.abc123.com/pics/190/tn190-14.jpg" border="1"></a><br />


My suggested solution:

Track whether or not the image is from a URL or an uploaded file in the 4images_images table.  Construct the image and thumbnail paths if it was uploaded otherwise just use the URL.  

BE SURE TO UPDATE THIS TABLE COLUMN IF THE IMAGE IS EDITED AND A URL IS USED TO REPLACE A PREVIOUSLY UPLOADED IMAGE.  (And delete the local image file)  SAME FOR THE REVERSE SITUATION.

I like this approach since it would also allow for relative URLs.  I have found that 1.5 beta currently only supports absolute URLs.

This IS supported:
Code: [Select]
http://www.abc123.com/pics/190/190-12.jpg

This IS NOT supported:
Code: [Select]
/pics/190/190-12.jpg

----------------------------------------------------------------------------------------

Wenn ich ein neues Bild mit einem URL addiere, anstatt, eine Akte zu hochladen, produziert das folgende Codefragment defekte Verbindungen:

Code: [Select]

// Get next and previous image
if (!empty($image_row[$next_image_id])) {
  $next_image_name = stripslashes($image_row[$next_image_id]['image_name']);
  $next_image_url = $site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$next_image_id);
  $next_image_file = MEDIA_PATH."/".$cat_id."/".$image_row[$next_image_id]['image_media_file'];
  $next_thumb_file = THUMB_PATH."/".$cat_id."/".$image_row[$next_image_id]['image_thumb_file'];
}

if (!empty($image_row[$prev_image_id])) {
  $prev_image_name = stripslashes($image_row[$prev_image_id]['image_name']);
  $prev_image_url = $site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$prev_image_id);
  $prev_image_file = MEDIA_PATH."/".$cat_id."/".$image_row[$prev_image_id]['image_media_file'];
  $prev_thumb_file = THUMB_PATH."/".$cat_id."/".$image_row[$prev_image_id]['image_thumb_file'];
}


So
Code: [Select]
{next_image_url} resultate innen:
Code: [Select]

<a href="./details.php?image_id=8"><img src="./data/thumbnails/3/http://www.abc123.com/pics/190/tn190-14.jpg" border="1"></a><br />


Meine vorgeschlagene Lösung: Schiene, ob oder nicht das Bild von einem URL oder von einer Antriebskraft Akte in der îmages_images Tabelle ist. Konstruieren Sie die Bild- und thumbnailwege, wenn es Antriebskraft anders gerader Gebrauch das URL war.

SEIEN Sie SICHER, DIESE TABELLE SPALTE ZU AKTUALISIEREN, WENN Das BILD REDIGIERT WIRD UND Ein URL BENUTZT WIRD, UM Ein VORHER ANTRIEBSKRAFT BILD ZU ERSETZEN. (und löschen Sie die lokale Bildakte), SELBEN FÜR DIE RÜCKCSituation.

Ich mag diese Annäherung, da sie auch relatives URLs zulassen würde. Ich habe gefunden, daß 1,5 Beta z.Z. nur absolutes URLs stützt.

Dieses WIRD gestützt:
Code: [Select]
http://www.abc123.com/pics/190/190-12.jpg

Dieses WIRD NICHT gestützt:
Code: [Select]
/pics/190/190-12.jpg

1363
If I add an image using the control panel, the IPTC info is processed and also displayed in the gallery when if I upload the image from my computer.

If I delete and then add the same image again using a URL instead of uploading from my computer, the IPTC info is NOT displayed.

These tests were done using the default templates.

-------------------------------------------------------------------------------------

Wenn ich ein Bild mit der Steuerverkleidung addiere, wird das IPTC Info verarbeitet und angezeigt auch in der Galerie wenn, wenn ich das Bild von meinem Computer hochlade. Wenn ich lösche und dann das gleiche Bild addiere, das wieder ein URL verwendet, anstatt, von meinem Computer zu hochladen, wird das IPTC Info NICHT angezeigt. Diese Tests wurden mit den Rückstellung Schablonen durchgeführt.

1364
If I click on "Reset Stats" I get this error message:

Parse error: parse error in /home/www/Chris/4images/admin/stats.php
on line 49

Thank you for a GREAT image gallery!  With 1.5 beta, I decided to purchase a full license $149 USD for my site.  I only know english so I have pasted a german translation below using http://world.altavista.com

----------------------------------------------------------------------

Wenn ich an "zurückgestellten Notfall" ich anklicke, erhalten Sie diese Fehlermeldung: Analysieren Sie Störung: analysieren Sie Störung in/home/www/Chris/îmages/admin/stats.php auf Linie 49

Danke für eine GROSSE Bildgalerie! Mit 1,5 Beta, entschied ich, eine volle Lizenz zu kaufen $149 USD für meinen Aufstellungsort. Ich spreche nur englisch, also habe ich eine deutsche Übersetzung unterhalb des Verwendens von von http://world.altavista.com geklebt

Pages: 1 ... 87 88 89 90 [91]