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

Pages: [1] 2
1
Discussion & Troubleshooting / modify 'date added' in addimages...
« on: February 28, 2003, 08:58:49 PM »
Hi,

I would like to modify the 'date added' whenever I add new images.

Currently, I have to add the image, and then go to edit images and edit the date from there.

Is there a short cut to change the date on the 'add images' page straight away? I tried adding the line
Code: [Select]
   show_input_row("Date released", "image_date_".$i, "", $textinput_size);

in admin/images.php under the action "addimages" but this did not work.  :(

I hope someone can help. Thanks

2
Is there a way of showing images from a sub cat as a thumbnail on the parent categories page.

For example,

if I had a category called 'C', and the sub categories included:

'cat', 'cheetah', and 'chimpanzee'

I would wish to show the images from all three sub categories, on the parent categories page (in this case 'C') as thumbnails.

Does this make sense to you? If you can help, I would appreciate it!

thanks

3
Discussion & Troubleshooting / Trouble with 'download options'
« on: February 14, 2003, 06:47:04 PM »
can someone PLEASE help me ??

I would really appreciate any ideas, because I need to fix this problem as soon as possible.

Thanks a lot.

4
Discussion & Troubleshooting / Trouble with 'download options'
« on: February 14, 2003, 08:32:02 AM »
no it did not give any error message...

It showed the download and zip button for the original mp3 file, but failed to recognise the other ones.

5
Discussion & Troubleshooting / Trouble with 'download options'
« on: February 14, 2003, 12:12:12 AM »
I followed the instructions from

http://www.4homepages.de/forum/viewtopic.php?p=7846#7846

When I tried this with .gif files, it worked perfectly.

However, when I uploaded .mp3 files instead this did not work. I followed exactly the same method...it seems very strange.

Can anyone explain why?

6
Sorry for the late reply!  :oops:

The two installations are not using the same 4images/data/media directory...

The images are referenced through each individual script in the two separate directories.

I hope that is of some help to you

7
Discussion & Troubleshooting / how can i do this?
« on: December 26, 2002, 06:07:17 PM »
Is there any way to display the parent parent directory of an image in the details.php page?

Quote

For example, in this case...

Cars / Ford / image01.jpg

I would want to show the word 'Cars' in the details page...



Thanks!

8
Discussion & Troubleshooting / Problem with two separate 4images script...
« on: December 24, 2002, 11:30:22 AM »
yes i have changed the path to ROOT in the 2nd script!

9
Discussion & Troubleshooting / Problem with two separate 4images script...
« on: December 24, 2002, 02:23:39 AM »
i have installed the two scripts on two separate databases.....

10
Discussion & Troubleshooting / Problem with two separate 4images script...
« on: December 23, 2002, 11:39:03 PM »
I have installed two 4images scripts in different directories.
One under "/album" and the other under "/gallery".

I have successfully added the following php script in other pages on my website to show new images...

Quote
<?php
define('ROOT_PATH', '../album/');
include(ROOT_PATH.'config.php');
include(ROOT_PATH.'includes/db_mysql.php');
include(ROOT_PATH.'includes/constants.php');

$site_db = new Db($db_host, $db_user, $db_password, $db_name);
function is_remote($file_name) {
  return (preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $file_name)) ? 1 : 0;
}

$num_images = 3;

$sql = "SELECT a.image_id, a.image_date, a.cat_id, a.image_name, a.image_active, a.image_thumb_file
        FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
        WHERE a.image_active=1
        AND a.cat_id = b.cat_id
        AND b.auth_viewcat=".AUTH_ALL."
        AND b.auth_viewimage=".AUTH_ALL."
        ORDER BY a.image_date DESC
        LIMIT $num_images";
$result = $site_db->query($sql);

while ($row = $site_db->fetch_array($result)){
  $image_id = $row['image_id'];
  $cat_id = $row['cat_id'];
  $image_name = $row['image_name'];
  $thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : ROOT_PATH.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];

echo "<tr><td class=main_td width=200 align=center><a href=\"".ROOT_PATH."details.php?image_id=$image_id\"><img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"></a><br></td><td class=main_td width=100% valign=top><b>$image_name</b></td></td>\n";
}
?>


However, when I try and do the same for the images in /gallery the other script still thinks that it is in /album and shows the images from there.

Does anyone have any idea how I can fix this? Any help will be appreciated.

Thanks.

11
Discussion & Troubleshooting / annoying login problem
« on: October 10, 2002, 08:48:10 PM »
I have two separate '4images' scripts running under different directories. When I login as an admin on one of these directories, and visit the other directory as a normal user I get logged off as admin from the first script. This is very annoying as I have to login constantly. Is there a fix to this problem?? If so please help! Thanks

12
Mods & Plugins (Requests & Discussions) / top 10 images of a category
« on: August 09, 2002, 03:42:44 PM »
Hi,

At the moment the 'top images' feature lists the top 10 images from the whole gallery...

Is there any way of changing this so that I can display the top 10 images from each of the 4 categories that I intend to have.

Please get back  :wink:

Thanks

13
Discussion & Troubleshooting / "Cannot add header information"
« on: August 07, 2002, 06:19:09 PM »
Hi,

I wanted to show the "new images" on the front page of my website.
And so I created a script called new.php and used this code to include the "new images" at the start page:

Quote
<?php
include("./album/new.php");
?>


The "new images" appear correctly, but sometimes when the page loads this warning comes up:

Warning: Cannot add header information - headers already sent by (output started at c:\phpdev\www\index.php:1) in c:\phpdev\www\album\includes\sessions.php on line 52

Can anyone give me help to solve this problem or show me another method of showing the "new images" on other pages....

Thanks

14
Discussion & Troubleshooting / extra fields in comment form
« on: August 05, 2002, 02:57:53 PM »
Hi Alan,

I just want to thank you for posting such a comprehensive explanation.

It was very easy to follow and works very well.  :D

Thanks a lot

15
Discussion & Troubleshooting / please explain further a past topic...
« on: August 03, 2002, 10:04:45 PM »
I have followed the steps from this topic

http://www.4homepages.de/forum/viewtopic.php?t=369

Can someone give me a fuller explanation and a step by step guide to show random images on a different page. Thanks

Pages: [1] 2