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

Pages: 1 2 3 4 [5]
61
Discussion & Troubleshooting / Auto Resizable Pop Up
« on: June 09, 2003, 10:55:00 AM »
I am using this code in /templates/(your template)/media/jpg.html

Quote
<!-- Template file for JPG Files -->
<a href="{media_src}" target="_blank">{thumb}</a>


Only thumbnail shows with this code. And if you click on thumb, new window opens with original size of the photo.

But I would like to use Java script, so it won't open new IE with all bars in it, but just new window, with auto-resize function.

I have found this code, but have littel problems with inserting in it. Can anyone please help me?

Thanks.

Here is the code:
Code: [Select]

<!-- TWO STEPS TO INSTALL AUTO-RESIZABLE-POP-UP:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+20;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}
//  End -->
</script>

</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

<BODY>

<div align="center">
<TABLE BORDER="1" cellspacing=3>
  <TR>
  <TD align=left>
  <A HREF="javascript:CaricaFoto('/img/auto-resizable-pop-up/lg-1.gif')" BORDER="0">
  <IMG SRC="/img/auto-resizable-pop-up/1.gif" BORDER="0"></A>
  </TD>
  <TD align=center>
  <A HREF="javascript:CaricaFoto('/img/auto-resizable-pop-up/lg-2.gif')" BORDER="0">
  <IMG SRC="/img/auto-resizable-pop-up/2.gif" BORDER="0"></A>
  </TD>
  <TD align=right>
  <A HREF="javascript:CaricaFoto('/img/auto-resizable-pop-up/lg-4.gif')" BORDER="0">
  <IMG SRC="/img/auto-resizable-pop-up/4.gif" BORDER="0"></A>
  </TD>
  </TR><TR>
  <TD colspan=3>
  <DIV ALIGN="CENTER">Click for zooming the image at it's real dimensions...</DIV>
  </TD>
  </TR>
</TABLE>
</div>


<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  1.97 KB -->

62
Mods & Plugins (Requests & Discussions) / Users ranks
« on: May 22, 2003, 01:40:40 PM »
Did anyone think that 4images could have users ranks as in phpbb?
 You will get higher rank if you post more comments or photos or you get more votes and comments on your photo. (newbie, master etc...)

63
Mods & Plugins (Requests & Discussions) / Weekly report
« on: May 15, 2003, 01:43:00 PM »
Maybe will this mod for lots of you sound stupid, but is it possible to make mod that will automatic or manualy send weekly report for all users. It will contain how many views, downloads and comments has his/her photos.

But i doubt that this is possible, couse it is too complicated.

By the way... i got the idea from webshots... so you don't forgot that you are member of thier community :)

64
Mods & Plugins (Requests & Discussions) / see rate of users
« on: May 08, 2003, 09:51:19 PM »
I am running photo community, and many people post comments and rate photos there in 4images gallery.

But sometimes people comment and doesnt give a rate. Then someone else come and rate photo without giving it comment. So users things that that user who gave comment gave that rate. Which isnt true.

Thats why I am requesting or asking if its possible to see (star) rate next to users comment?

65
Discussion & Troubleshooting / thumnails again
« on: April 28, 2003, 06:05:29 PM »
I have problem with auto-creating thumbnails.

My server supports GD 2. I am sure about that. I have currect GD to 2 and aslo checked this help:
http://4homepages.de/forum/viewtopic.php?t=3332&postdays=0&postorder=asc&highlight=isexecutable&start=15

When you want to put new photo to gallery, it happen nothing. Blank white screen. And photo wont be uploaded. If I dont select GD mode in settings, photo uploads but without thumbnail.

My site is using PHP Version 4.3.1.

It used to work few months ago. Then FTP server went down, and after that it stoped. FTP works normaly now like everything else.

Thanks,
Lucifix

66
Discussion & Troubleshooting / auto thumb
« on: April 14, 2003, 10:22:22 AM »
I have problem with creating auto thumbnails with GD. My host supports GD, i have checked here: http://slo-foto.portal.si/info.php

But every time i want to upload photo i just get blank window. I have set to GD 2.

I just dont have any clue more, to figure that problem.

67
Discussion & Troubleshooting / error when creating thumbnail
« on: March 01, 2003, 05:16:40 PM »
Everytime i want to create thumbnail I get this error:
Quote
Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /home/fotoportal/www/4images/includes/image_utils.php on line 68


My host said that they are providing GD. I also opened constatnts.php file and tried this:
define('CONVERT_IS_GD2', 0)
and this:
define('CONVERT_IS_GD2', 1);

But nothing helps.

Lucifix

68
Mods & Plugins (Requests & Discussions) / comment and rate
« on: February 08, 2003, 02:19:44 PM »
Is it possible to put comment and rate together. So you wont need to first rate photo and then post comment. I would like to do that all together.

69
Mods & Plugins (Requests & Discussions) / how to add author
« on: January 31, 2003, 05:35:52 PM »
Can anyone please tell me whats wrong with that code:
Quote
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: random_more_pics.php                                 *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.0 for 4images 1.6.1                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (http://www.4homepages.de/4images/lizenz.php) für       *
 *    weitere Informationen.                                              *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (http://www.4homepages.de/4images/lizenz_e.php) for further         *
 *    information.                                                        *
 *                                                                        *
 *************************************************************************/

// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie
define('ROOT_PATH', './4images/');

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;
}

// NUMBER OF THUMBNAILS TO DISPLAY / NUMMER DER GEWÜNSCHTEN THUMBNAILS
$num_images = 6;

$sql = "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments, c.user_name
        FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b, ".USERS_TABLE." c
        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 image_date DESC
        LIMIT $num_images";
$result = $site_db->query($sql);

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

  echo '<td align="center">';
  echo "<center><a href=\"http://members.lycos.co.uk/mgalerija/modules.php?op=modload&name=NukeWrap&file=index&page=http://members.lycos.co.uk/mgalerija/4images/details.php?image_id=$image_id\"><img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"></a><br></center>\n";
  echo "<b><center>$user_name</b><br></center>\n";
  echo "<center>Komentarji: $image_comments</center>\n";
  echo '</td>';
}
echo '</tr></table>'
?>


I am trying to add author of the photos. But I always gets error.

70
Mods & Plugins (Requests & Discussions) / phpbb nuke
« on: January 23, 2003, 07:34:46 PM »
Did anyone integrated phpbb forum that works in PHP-nuke with 4images?

Thanks,
Lucifix

71
Mods & Plugins (Requests & Discussions) / Time limit again...
« on: January 23, 2003, 07:17:42 PM »
I was looking on forums and found some questions if admins can set that users can upload only 1 image per day. Saidly answer was always no.

Why doesnt any of you guys, who knows PHP alot, find one day or two and write that mode. People will love it!

I found one mode, but it doesnt have time limit but "image limit":http://www.4homepages.de/forum/viewtopic.php?t=3607&highlight=upload

Don't get me wrong, 4images is still one of the best script that I have seen on internet, but as usual, new changes are always welcome  :D

Regards,
Lucifix

72
Mods & Plugins (Requests & Discussions) / linking url
« on: January 20, 2003, 03:02:13 PM »
I have small problem with installing randonpic mode to my site.

I have uploaded every file and then i went to admin and to blocks. I have tried to create new block named: [Random Screenshot x.x]. But what should I put under add a image url. Link to my 4images site is: http://members.lycos.co.uk/mgalerija/4images. So what do I put under RSS/RDF file URL?

I have put that link but it wasnt right.

Please help me.

Thanks,
Lucifix

73
Discussion & Troubleshooting / Thumbnail...
« on: January 18, 2003, 11:48:55 PM »
Is it possible to make that when you click on any thumbnail, that only thumbnail photo shows with all other information. And if you want to see bigger photo, you must click on it and new window open.

To complicated right?  :oops:

Lucifix

74
Discussion & Troubleshooting / Php - nuke???
« on: January 18, 2003, 08:03:53 PM »
Ok...
I've been looking on whole forum if 4images is compatible with php-nuke and I didn't find usefull question.
I don't want any random photos on my site etc... I just want norman 4images script compatible with php-nuke.
Clear enough?  :roll:

Please help me, couse this is realy one of the best photo gallery on net, and I have started to build my own photo community with php-nuke and thats why I need answer.

Thanks,
Lucifix

Pages: 1 2 3 4 [5]