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

Pages: [1] 2
1
Discussion & Troubleshooting / Problem with Search results
« on: February 25, 2003, 08:47:44 PM »
I was not using forum integration,  in fact, I hadn't modified it very much at all.
You can see the old gallery at www.ukscrappers.co.uk/gallery

2
Discussion & Troubleshooting / Problem with Search results
« on: February 25, 2003, 10:51:22 AM »
we are no longer using 4images - it was causing far too many problems,  we have now moved to vbulletin and photopost and are much happier with that combination.

3
Discussion & Troubleshooting / Problem with Search results
« on: November 14, 2002, 10:38:57 PM »
can anyone help with this?  It's quite a big bug if that's what always happens.

4
Discussion & Troubleshooting / Problem with Search results
« on: November 12, 2002, 11:53:28 PM »
Hi,  I seem to have a problem with viewing Page 2 of search results.

if you look at this
http://www.ukscrappers.co.uk/gallery/search.php?search_user=BevS97

I have 18 images.  If I try and select page 2, then I get a message

"Your search resulted in no matching records. "

this also happens if I change the images per page to a higher number.

Any suggestions as to why this might be happening??

Bev

5
Mods & Plugins (Requests & Discussions) / Search by UserName?
« on: November 06, 2002, 04:41:40 PM »
If you go to the profile screen,  you can search for all images posted by a User,  but if you go to the search screen and put in a UserName then it doesn't find any images.

Is it possible to add search by UserName to the Search screen?

Bev

6
We are holding scrapbook pages in our gallery.  Quite often there is a left and a right page,  and I would like to offer the option of uploading either one image, or two images.
If two images are uploaded, then they would need to be combined into one image so the entire image would be displayed and commented on as one.

I'll try and show you what I mean.
This person doesn't know how to stitch the pages together,  so she uploads seperate pages
2 seperate pages

whereas this person can stitch them, so her double pages show up as one image.
stitched

what I would like to do is to do the stitching for them,  so they would enter 2 file names,  and then I would join the images using Image Magic and save it as one file.

Of course,  sometimes there will only be one image,  so that option is still required.

I have image magic installed, and I think the montage command would do what I want,  but I can't work out which files to alter, and how I would save the 2 files and then create the single merged file.

Can anyone help?

Bev

7
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: November 03, 2002, 07:13:43 PM »
Assuming you want to change what is displayed along with the thumbnail,  you need to look in the themes directory.  there is a file called thumbnail_bit

you need to change that - or copy it and point to the new file in random.php

8
Discussion & Troubleshooting / Very Poor Thumbnail quality
« on: November 03, 2002, 09:12:07 AM »
so,  are you saying I just install it on my pc???  Surely I need to put it up on my website someplace?  How would my other members use it, if it is only installed on my pc.

Bev

9
Discussion & Troubleshooting / Very Poor Thumbnail quality
« on: November 02, 2002, 04:22:17 PM »
to answer my own question,  it is free and it's here
http://www.imagemagick.org/

but it's not clear what I need to download, and where I would install it.

Bev

10
Discussion & Troubleshooting / Very Poor Thumbnail quality
« on: November 02, 2002, 04:15:35 PM »
is it free? and where would I find it?

11
Installation, Update & Configuration / Login/Logoff cookie problems
« on: November 02, 2002, 03:47:04 PM »
can anyone help?

12
Discussion & Troubleshooting / Very Poor Thumbnail quality
« on: November 02, 2002, 10:47:11 AM »
I have my gallery set up to auto generate the thumbnails using GD Bibliothek,  and I have Compression off, and quality = 100.

the first few images had nice looking thumbnails,  but the latest one's are very poor quality.  I haven't changed anything regarding the thumbnails in the setup.

here's a good one


and a recent one

13
OK - I'm happy to share the code as long as you understand that I am not a php coder, and don't really know what I am doing.  Basically I have just copied one of the existing modules (index.php) and removed all the bits I didn't want.

here's the module called newimage.php  - I have it in my php-nuke directory

Quote

<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: index.php                                            *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7                                                  *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$templates_used = 'home2,category_bit,whos_online,thumbnail_bit';
$main_template = 'home2';

define('GET_CACHES', 1);
define('ROOT_PATH', '../gallery/');
define('GET_USER_ONLINE', 1);
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();

if (isset($HTTP_GET_VARS['template']) || isset($HTTP_POST_VARS['template'])) {
  $template = (isset($HTTP_GET_VARS['template'])) ? stripslashes(trim($HTTP_GET_VARS['template'])) : stripslashes(trim($HTTP_POST_VARS['template']));
  if (!file_exists(TEMPLATE_PATH."/".$template.".".$site_template->template_extension)) {
    $template = "";
  }
  else {
    $main_template = $template;
  }
}
else {
  $template = "";
}
include(ROOT_PATH.'includes/page_header.php');

if (!empty($template)) {
  $clickstream = "<a href=\"".$site_sess->url(ROOT_PATH."index.php")."\">".$lang['home']."</a>".$config['category_separator'].str_replace("_", " ", ucfirst($template));
  $site_template->register_vars("clickstream", $clickstream);
  $site_template->print_template($site_template->parse_template($main_template));
  include(ROOT_PATH.'includes/page_footer.php');
}

//-----------------------------------------------------
//--- Show Categories ---------------------------------
//-----------------------------------------------------
$categories = get_categories(0);
if (!$categories)  {
  $categories = $lang['no_categories'];
}
$site_template->register_vars("categories", $categories);
unset($categories);

//-----------------------------------------------------
//--- Show New Images ---------------------------------
//-----------------------------------------------------

change this next line to the number of columns you want
Quote

$nuke_no_cols=1;
$imgtable_width = ceil(intval($config['image_table_width']) / $nuke_no_cols);
if ((substr($config['image_table_width'], -1)) == "%") {
  $imgtable_width .= "%";
}

$additional_sql = "";
if (!empty($additional_image_fields)) {
  foreach ($additional_image_fields as $key => $val) {
    $additional_sql .= ", i.".$key;
  }
}


change this line to the number of images you want, it should be a multiple of the number of columns you specified above
Quote

/* $num_new_images = $config['image_cells']*3; */
$num_new_images = 4;

$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name")."
        FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c
        LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")
        ORDER BY i.image_date DESC
        LIMIT $num_new_images";
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);

if (!$num_rows)  {
  $new_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  $new_images .= $lang['no_new_images'];
  $new_images .= "</td></tr></table>";
}
else  {
  $new_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
  $count = 0;
  $bgcounter = 0;
  while ($image_row = $site_db->fetch_array($result)){
    if ($count == 0) {
      $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
      $new_images .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    $new_images .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";

    show_image($image_row);
    $new_images .= $site_template->parse_template("thumbnail_bit");
    $new_images .= "\n</td>\n";
    $count++;
    if ($count == $nuke_no_cols) {
      $new_images .= "</tr>\n";
      $count = 0;
    }
  } // end while

  if ($count > 0)  {
    $leftover = ($nuke_no_cols - $count);
    if ($leftover >= 1) {
      for ($f = 0; $f < $leftover; $f++) {
        $new_images .= "<td width=\"".$imgtable_width."\">\n \n</td>\n";
      }
      $new_images .= "</tr>\n";
    }
  }
  $new_images .= "</table>\n";
} // end else

$site_template->register_vars("new_images", $new_images);
unset($new_images);

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  "msg" => $msg,
  "clickstream" => $clickstream
));
$site_template->print_template($site_template->parse_template($main_template));
include(ROOT_PATH.'includes/page_footer.php');
?>



it uses a file in the gallery/templates directory which is called home2.html
this contains literally one word

Quote

                {new_images}              


I assume there's a way to do this without putting that word in a seperate file,  but since the file had a lot more in it initially and I just stripped it down to what I needed, that's how it's ended up.


Bev

14
Mods & Plugins (Requests & Discussions) / What should i modify to...
« on: November 01, 2002, 04:53:34 PM »
for 2 random pics, I think I would just duplicate the random pic code twice in the index.php?  you'd have to try it and see what happens.


bev

15
Installation, Update & Configuration / Postnuke und gallery
« on: November 01, 2002, 04:50:55 PM »
my german is pretty poor - but I think you are trying to combine post-nuke and 4-images?

I have got php-nuke and 4 images,  and have managed to display the most recent images in a php-nuke block.  I don't know if that's any help to you,  but you can see what I mean here

www.ukscrappers.com

It's not working perfectly as it doesn't recognise if you are logged onto the gallery when you are in the php-nuke screen.

Bev

Pages: [1] 2