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 ... 86 87 88 89 [90] 91
1336
You have to edit each and every template .html file and look for nested tables that have fixed widths.  You'll notice that 640 appears more than once and it's not the only modification needed.

1337
Discussion & Troubleshooting / No change to date/time settings
« on: May 31, 2002, 01:02:35 AM »
Admin CP>Settings>

Format Of Date:  m.d.Y
Format Of Time:  H:i

Again, the edit image time displays differently from that show in the details.php page.


Also I will send you a PM for admin access.

1338
Discussion & Troubleshooting / Missed my point
« on: May 29, 2002, 11:27:05 PM »
I agree with you that the actual date should be used and not the file date.  That is not the bug.  The problem is the inconsistency in which 4images displayed it.

4images/details.php date displayed is: 05.24.2002 01:38
4images/admin/index.php date displayed is: 2002-05-24 06:38:03

It seems to me that the time displayed from Admin CP, "Edit Images" is wrong.  I uploaded the file and 10 minutes later I used "Check New Images" to import it.  So the time of 01:38 is actually correct.  But 06:38 is 5 hours off.

Hope this helps.

1339
This bug is reproducible.

Again I am referring to the 13 images I imported using the admin control panel "Check New Images".

From the 4images_images table, image_date = 1022222283
From 4images/details.php, the date displayed is:  05.24.2002 01:38
From Admin CP, "Edit Images", date displayed is:  2002-05-24 06:38:03
From ls -l at a Linux prompt, the file date is:  May 24 01:28

I don't think the date displayed in the Admin>Edit Images is correct.

1340
This bug is reproducible.

I used "Check New Images" in the Admin control panel to import 13 new images into an empty category.  My web server is very fast and the first 10 images were processed within the same second.  Therefore, each of these 10 images have the exact same date/time stamp of 2002-05-24 06:38:03.  The remaining three were all processed in the next second.

I then used the Admin control panel to change the image sort method to "Date" by clicking "Settings" then "Image Settings" and selecting "Date" for "Sort images by".   (Control Panel>Settings>Image settings)

When I select the 1st of the 13 thumbnails, I get the details page for it.

HERE IS THE BUG:  

The {next_image_url} in the details page is set to the 11th image!  I cannot use Next and Previous to navigate between all 13 images.  I can only get to the 1st image that was imported and the 1st image that was imported the next second.  The Previous and Next skip images the other images that have the exact same date/time stamp.

For your information:  All 13 thumbnails are displayed in ascending image name order when clicking the category.

1341
If you are using a UNIX based web server and you have telnet access, you can login and use 'diff file1.php file2.php' to see all the lines you changed.  If you have a PC, a much better way to capture this information is by using ExamDiff Pro downloadable here:
http://download.com.com/3000-2248-9013686.html?tag=lst-0-1
That tool allows you to visually see the two files side-by-side and with one click, copy the differences to the new PHP files that will be in the final release.  Just be careful when you do this to ensure compatibility.

1342
Mods & Plugins (Requests & Discussions) / Me too
« on: May 24, 2002, 12:16:00 AM »
Super.  I am interested too!

1343
Installation, Update & Configuration / Subdirectories
« on: May 20, 2002, 02:29:15 PM »
4images/data/media/

Under that directory you will find numbered subdirectories that correspond to your category ids.  Same with 4images/data/thumbnails

1344
Installation, Update & Configuration / Appologies
« on: May 19, 2002, 11:36:41 PM »
Sorry.  It seems Tripod does not allow remote linking for downloading a zip file.  Try this URL instead:

http://Chris.tripod.com/4images/

1345
Installation, Update & Configuration / Was PHP built with GD?
« on: May 19, 2002, 11:07:38 PM »
It is possible that PHP was not built with GD.  Make a file called "phpinfo.php" and put inside it the following:

Code: [Select]

<?php
phpinfo
&#40;&#41;;
?>



Upload it to your web server and load it in a browser.  Look for the line that says "Configure Command".  It should show you something like this:

'./configure' '--with-apache=../apache_1.3.23' '--with-config-file-path=/etc' '--with-mysql=/usr/local/mysql' '--with-gd' '--enable-ftp' '--with-xml'

If you don't see "--with-gd" then you have your explanation.

1346
My server's phpinfo():
(edit - removed, url no longer valid)

zlib appears to be installed:
[Chris@webspace1 dev]$ rpm -qa | grep zlib
zlib-1.1.3-25.7
zlib-devel-1.1.3-25.7

The 4Images admin control panel has "Use GZip compression" enabled.  PHP safe mode is off and still I do not get a "Download As Zip" button.  

Is there some add-on PHP module required?  Any other ideas???

1347
Installation, Update & Configuration / Try this download
« on: May 16, 2002, 04:48:32 AM »
I had a look at your link.  I'm not sure what you did since you should only see "deutsch" and "english", not "email" also.  Download my assembly of 4Images 1.5 beta from here:  

http://Chris.tripod.com/4images/4images_1.5_beta.zip

I even configured the installer to use English by default.  Be sure to read and follow carefully the installation instructions in the docs/ folder.  For your convenience I also made this available here:  

http://Chris.tripod.com/4images/Installation.txt

1348
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.  

Does anyone know if it's possible to copy and hack these sections of code to get the next 3 images instead of just the next 1 image?

Code: [Select]

details.php
-----------

$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:


The 2nd and 3rd '190-14' should be '190-15' and '190-16'.

(I only blurred the URL because my site isn't public yet.  Too much work to do before going live.)

1349
Sorry heygu.  Unless you have root user access to your web server, it's not likely that you're going to be able to install this yourself.  

Installing new software to the system, not your user account, is a function reserved for the web server administrator.  You could try asking your hosting provider to install it for you.

1350
Discussion & Troubleshooting / Thanks
« on: May 14, 2002, 07:29:42 PM »
I figured it was missing a module.  At the time, I didn't even think it might be zlib but now it seems obvious.  Thanks.  I've asked my web host to install it for me.

How do you use phpinfo()?  I looked at page_footer.php but wasn't able to figure out how to trigger the if-statement.

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