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.


Topics - sukholee

Pages: [1]
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, 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?

4
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!

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

6
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

7
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

8
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

9
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

10
Discussion & Troubleshooting / extra fields in comment form
« on: August 03, 2002, 08:07:37 PM »
Is there any way of adding additional fields under the comment form. At the moment there are three fields; name, title, and comment....

I would like to add a fourth to this form. If any one can help please post a solution.

Thanks.

11
Discussion & Troubleshooting / Radio buttons as rate menu
« on: August 02, 2002, 09:40:39 PM »
Hi,

Can anyone help me with this? I want to use radio buttons instead of the drop down menu. I have modified the rate_form.html template, but it does not work.

Do I need to change anything else? Please get back anyone...

Thanks

12
Discussion & Troubleshooting / details.php?image_id=
« on: June 21, 2002, 07:26:55 PM »
Which files do I need to look at in order to change the

details.php?image_id=

to just details.php?id=

This is because I don't intend to use this as an image gallery...

Hope you can help.

13
Discussion & Troubleshooting / Problems with additional field
« on: June 21, 2002, 05:27:40 PM »
I have created an additional field without problem; however, the information that I intend to put in the field is a URL.

The script automatically transfroms the URL into <a href="URL">URL</a> in the HTML. I however, want to retain the URL as a simple text without the <a href> code.

How do I go about doing this?

14
Discussion & Troubleshooting / "Fatal Error: Maximum execution..."
« on: June 21, 2002, 04:41:56 PM »
When I try to search images under "Edit images" I always receive this error message:

Quote
Fatal error: Maximum execution time of 30 seconds exceeded in c:\apache\htdocs\gallery\includes\functions.php on line 1000


Can someone please help :?:

15
Hi,

When I add new images, I want to have an additonal field where I can a URL to another site. ( I plan to use the script as a music album database, where users can view cd covers + tracklists, and in addition a link to buy the cd )

i.e In the 'Add Images' section after 'description' I want a text area called 'URL' where I can just add the link to the other site, and this can appear on the main gallery section.

If this is possible please tell me how.

I would appreciate it very much!

Thanks

Pages: [1]