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 - † manurom

Pages: [1] 2 3 4 5 ... 13
1
Chit Chat / Re: In memory of manurom
« on: July 23, 2008, 01:49:14 PM »
Merci pour tout vos témoignage d'affection (j'ai pu traduire l'allemand grace a voila traduction). Tout cela va droit au coeur a ma famille. Nous savons que communiquer avec vous était un réel plaisir pour lui , il aimait rendre service aux gens tant qu'il le pouvait . Il laisse un grand vide. Merci encore . Sa famille.

2
Hello;
please learn to be patient. People use to sleep, sometimes, here.
Don't know about OpenRealty, sorry.

But try this: [MOD] new images on your homepage (external)

and complete with this: {new_images} from specific category to match with your favourite category.

Or else, that's the way I should do it:

3 new files have to be created:
  • new_images.php (at the gallery root, where index.php is)
  • templates/your_template/new_images.html
  • templates/your_template/thumbnail_bit_extern.html

1 file has to be modified:
  • includes/functions.php

First, lest us create the file "new_images.php", just copying a part of the file "index.php". The code should be:
Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: new_images.php                                            *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.6                                                *
 *                                                                        *
 *    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 'new_images,thumbnail_bit_extern';
$main_template 'new_images';
define('ROOT_PATH''./');

define('GET_CACHES'1);
define('GET_USER_ONLINE'0);
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'])) ? get_basefile(stripslashes($HTTP_GET_VARS['template'])) : get_basefile(stripslashes($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');
}

$cache_id create_cache_id(
  
'page.index',
  array(
    
$user_info[$user_table_fields['user_id']],
    isset(
$user_info['lightbox_image_ids']) ? substr(md5($user_info['lightbox_image_ids']), 08) : 0,
    
$config['template_dir'],
    
$config['language_dir']
  )
);

if (!
$cache_page_index || !$content get_cache_file($cache_id)) {
// Always append session id if cache is enabled
if ($cache_page_index) {
  
$old_session_mode $site_sess->mode;
  
$site_sess->mode 'get';
}

ob_start();

//-----------------------------------------------------
//--- Show New Images ---------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  
"has_rss"   => true,
  
"rss_title" => "RSS Feed: ".format_text($config['site_name'], 2)." (".str_replace(':'''$lang['new_images']).")",
  
"rss_url"   => $script_url."/rss.php?action=images"
));

$imgtable_width ceil(intval($config['image_table_width']) / $config['image_cells']);
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;
  }
}

$num_new_images 12;
$config['image_cells'] = 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 (1, 2, 3)
        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++ % == 0) ? 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_extern");
    
$new_images .= "\n</td>\n";
    
$count++;
    if (
$count == $config['image_cells']) {
      
$new_images .= "</tr>\n";
      
$count 0;
    }
  } 
// end while

  
if ($count 0)  {
    
$leftover = ($config['image_cells'] - $count);
    if (
$leftover >= 1) {
      for (
$f 0$f $leftover$f++) {
        
$new_images .= "<td width=\"".$imgtable_width."\">\n&nbsp;\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));

$content ob_get_contents();
ob_end_clean();

if (
$cache_page_index) {
  
// Reset session mode
  
$site_sess->mode $old_session_mode;

  
save_cache_file($cache_id$content);
}

// end if get_cache_file()

echo $content;

include(
ROOT_PATH.'includes/page_footer.php');
?>

Now it's time to create the two template files in your template folder.

The code for your template file "templates/your_template/new_images.html" should be:
Code: [Select]
{header}
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
  <tr>
    <td align="left" class="head1" valign="top">&nbsp;&nbsp;Recent Images from {site_name}</td>
  </tr>
  <tr>
    <td class="head1"><br />
      {new_images} <br /></td>
  </tr>
</table>
{footer}

The code for your template file "templates/your_template/thumbnail_bit_extern.html":
Code: [Select]
<style type="text/css">
<!--
.pics {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
.new {
  font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
  font-size: 9px;
  color: #FF0000;
}
-->
</style>

<div align="center">{thumbnail_extern_openwindow}<br />
  <span class="pics"><b>{image_name}</b> {if image_is_new}<sup class="new">{lang_new}</sup>{endif image_is_new} ({user_name_link})
  <br /></span></div>

At last, please edit the file "includes/functions.php". Find:
Code: [Select]
"thumbnail_openwindow" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link, 1),
and insert just after:
Code: [Select]
        "thumbnail_extern" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link),
"thumbnail_extern_openwindow" => get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, $show_link, 1),

Find next:
Code: [Select]
  return $thumb;
}

and insert just after:
Code: [Select]
//--External thumbnails--------------------------------
function get_thumbnail_extern_code($media_file_name, $thumb_file_name = "", $image_id, $cat_id, $image_name = "", $mode = "", $show_link = 1, $open_window = 1) {
  global $site_sess, $config;

  if (!check_media_type($media_file_name)) {
    $thumb = "<img src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" />";
  }
  else {
    if (!get_file_path($thumb_file_name, "thumb", $cat_id, 0, 0)) {
      $file_src = ICON_PATH."/".get_file_extension($media_file_name).".gif";
      $image_info = @getimagesize($file_src);
      $width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
      $thumb = "<img src=\"".$file_src."\" border=\"0\"".$width_height." alt=\"".$image_name."\" />";
    }
    else {
      $file_src = get_file_path($thumb_file_name, "thumb", $cat_id, 0, 1);
      $image_info = @getimagesize($file_src);
      $width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
      $thumb = "<img src=\"".$file_src."\" border=\"".$config['image_border']."\"".$width_height." alt=\"".$image_name."\" />";
    }
  }

  if ($show_link) {
    if ($open_window) {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
    }
    else {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$thumb."</a>";
    }
  }
  return $thumb;
}

//--End external thumbnails----------------------------



Then, the external site that desires to show your thumbnails has to include one of these two links in its page code:
PHP:
Quote
<?php include ('http://path/to/your/gallery/new_images.php') ?>

or HTML:
Quote
<iframe src="http://path/to/your/gallery/new_images.php" width="500" height="300" scrolling="no" frameborder="0" name="new_images" align="center"></iframe>
(Width and hight are just an example. Adapt it as you prefer.)



You may modify this, in "new_images.php":
Code: [Select]
$num_new_images = 12;
$config['image_cells'] = 4;
to change the number of thumbails shown (12, here), and the number of thumbnails in each row (4, here).

Don't forget to change this:
Code: [Select]
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (1, 2, 3)to specify which category's thumbnails you desire to show.

Well, I hope I did not forget anything essential.
Feel free to ask any help.
Anyone here can help you as soon as he is awake... :mrgreen:

3
Discussion & Troubleshooting / Re: Hacking?
« on: July 12, 2008, 09:18:45 PM »
Hello;
it seems that a hacker tries to use and old SQL injection exploit, using this kind of source:
Code: [Select]
/*
CODE REMOVED by Nicky
/*
If you use the last version of 4images, you should not be afraid.
I use to see such requests in my own website stats. Don't know why people are so stupid :roll:. I prefer to spend my time helpng others.

[edit by Nicky]
code removed due we know why ;)

[edit by manurom]
thanks, Nicky. I forgot that some members still use old versions. Sorry :oops:.

4
Mods & Plugins (Releases & Support) / Re: [MOD] multiupload
« on: July 12, 2008, 08:50:23 PM »
Hi I just followed the text to install this mod...

But I need the file :  "member_multiuploadform.html"
and the image to the button.

Can anyone help me ?

Hi;
look at here: [BETA] for 1.7.6 Multiupload Vers. 2.0.
You can find there all filles in attachment, if using 4images 1.7.6.

5
Right, my mistake for not understanding the error message. But rather than delete the cry for help, let me post the solution here so that if anyone else encounters the same problem they know what to do...

The images that 4images couldn't import were all very large (straight from camera without any re-sizing). This caused the script to use more memory than had been allocated to PHP. So by going into the PHP ini file and increase the amount of memory from 32 Mb to 64 Mb, the error went away:

1) right click on the 4images mobile icon in the task bar
2) select advanced / php configuration. This will open the php.ini file in edit mode
3) search for memory_limit = 32M (in a section called resource limits)
4) change the 32M to 64M and save the ini file
5) shut down mobile server and restart

If you are nervous about undertaking this without having a backup, the ini file is placed in a directory under 4mobile called server\diskw\usr\local\php - so it might be an idea to make a backup copy of the file before editing it. And actually if you bother making a backup, you might as well edit it directly while you're in the right directory.

Thanks, SunnyUK;
added to the TODO list.
Thanks to share your own experience!

6
Discussion & Troubleshooting / Re: Upload several pictures....
« on: July 12, 2008, 11:50:48 AM »
Hello;
a single search here retrieves the following MODs:

Hope it will help you a little.

7
Templates & Styles (Releases & Support) / Re: [Templates] Old but New
« on: July 11, 2008, 11:08:55 AM »
Quote
wouldn't it be placed in the private modrators forum?
Anyway, if no respect to the 4images copyright,

template copyrights  :wink:

OK, thanks. I did not notice. I'll try to warn sites' webmasters.

Does anyone know how to contact Vienix/Vierstra?
I sent him a message through his own website a long time ago, but had not any answer.


8
Templates & Styles (Releases & Support) / Re: [Templates] Old but New
« on: July 11, 2008, 05:25:07 AM »
Hi,

broken copyrights ?

http://www.malaysia-pictures.com/
http://www.galeri.mardinlim.net/


Kurt
Hello,
wouldn't it be placed in the private modrators forum?
Anyway, if no respect to the 4images copyright, no respect will be given to any question, problem or advice. Sorry, but that is the "game"'s rules. Be sure to be "clean" before asking any help in this forum.

We all love to help anybody here, but we spend our own private time for a script we support, what is not freeware. The only obligation you have to respect is to display 4images and 4homepages copyright. It's not too much demanded, I think, compared to the support you can access to.

9
I run vista.
What a pity!
Well, if you use a mapped network drive called w, you may change its letter, or else, edit the file server/start.bat, and change:
Code: [Select]
IF "%Disk%"=="" set Disk=wfor any letter you need to use.

Don't forget then to change in server/stop.bat:
Code: [Select]
subst w: /Dto fit with your own letter.

@V@no;
first: GREAT TO SEE YOU BACK HERE, MAN!
thanks for your experience.

About the "nono" sound, I will make the computer's sound return to 100% after the splash screen appears :oops:, or even delete any sound.

About the problem with some software as Skype, GoogleToolbarNotyfier... and more that start with Windows and listen to the port #80, we will add a feature to 4images Mobile Server to change the port that has to be listened (e.g: change to 8080). The MySQL port (3306), seems not to be affected by such programs.
In fact, we could change the native port to be 8080, for instance. Let us some times to try and furnish a good alternative.

Why use a virtual drive? 4images Mobile Server is based on Uniform Server 3.5 Apollo, and you can learn here why it uses a virtual disk: http://center.uniformserver.com/uniserver/uniserver_intro.html

Quote
Just noticed, the program doesn't exit properly it leaves tray icon, like its dies
4images Mobile Server uses Aestan Tray Menu, that is no more maintained since july 2004. The tray icon keeping on after closing is a known bug.
We try to get a more recent free application, working with people at Framasoft, and trying to adapt it to 4images Mobile Server.


Well, 4images Mobile Server has been downloaded more than 2500 times since I posted first. People know that any support could be given at contact@ami07.info.
Since the beginning, we never had any message about any unsolvable problem. In fact, we never had too any message to thank us... :mrgreen:

Thanks to mawenzi for his support about EXIF features.

I will post as soon as the changes are made.

Thank you very much, SunnyUK and V@no.

10
Français / Re: Metatag catégorie et sous catégorie
« on: July 10, 2008, 12:05:03 AM »
Bonjour;
vous pouvez vous inspirer du travail de ccsakuweb ici: Show image name and category name in title bar?, ou bien le MOD de réécriture d'url, ici: [MOD] Dynamic Page Title for v1.7 & v1.7.1.

Il vous suffit d'adapter ces MODs, en insérant les tags générés non pas dans le tag <title></title>, mais dans le tag <meta keywords=...

Bon courage.

11
Français / Re: Réécriture d'url problème
« on: July 09, 2008, 12:56:52 PM »
Bonjour;
mettez-vous en conformité avec la licence de 4images, et affichez le copyright, s'il vous plaît.
Malgré nos messages personnels, vous ne l'avez pas encore fait.

Ne vous attendez à aucun soutien sans retour du copyright de 4images sur votre site.

J'en suis navré, mais, même sans les lire, vous avez accepté les règles de 4images le jour où vous avez téléchargé le script, puisque vous ne pouviez le faire qu'en cochant la case "I accept". Dès lors, vous avez engagé votre bonne foi et votre honnêteté. Laissez-les donc s'exprimer.
Je vous renvoie à ce post: Respect du Copyright de 4images.

Bien à vous.


J'en suis navré, mais je bloque ce topic jusqu'à nouvel ordre.
Votre site : http://www.rpgsariuji.com/Manga/ utilise le script 4images, et n'affiche pas le copyright, tel que cela est stipulé dans les conditions de licence. Vu que vous n'avez par ailleurs pas acquis une licence permettant la suppression dudit copyright, vous êtes en complète infraction.

De plus, vous n'avez daigné répondre à aucun de nos messages, ce qui est vraiment dommage, en fin de compte.

Nous, administrateurs et modérateurs, prenons votre silence comme une fin de non recevoir. Dès lors, ce topic est bloqué jusqu'au 17 juillet, date après laquelle il sera effacé, sans nouvelle de votre part. La Guadeloupe n'est quand même pas un territoire hors législation.

Espérant un contact de votre part, respectueuses salutations.

manurom

12
Français / [FAQ] Problème avec CAPTCHA
« on: July 09, 2008, 12:13:44 PM »
    Bonjour;

    4images utilise le système
CAPTCHA (completely automated public Turing test to tell computers and humans apart), pour éviter la pollution due aux robots spammeurs.

Ce système utilise dans votre galerie le dossier "captcha", ainsi que ses deux sous-dossiers:
  • captcha/backgrounds/ pour les images .jpg d'arrière-plan
  • captcha/fonts/ pour les polices de caractères .ttf

Cependant, s'il se trouve un quelconque autre fichier dans un de ces deux sous-dossiers, autre qu'un fichier image ou police de caractères, la routine CAPTCHA va quand même essayer de les traiter comme fichier d'arrière-plan ou police de caractères.

Le problème vient souvent sans votre consentement:
  • vous explorez votre dossier captcha/backgrounds/, et Windows XP génère automatiquement un fichier appelé "thumbs.db", servant à générer les miniatures dudit dossier
  • vous travaillez avec MS Frontpage, et ce logiciel crée sans vous en avertir des fichiers "vti.cnf" à la racine de chacun des dossiers de votre projet de site
  • enfin, certains clients FTP, du genre WSFTP, ont l'habitude par défaut d'écrire un compte-rendu d'upload à la racine de chaque dossier que vous uploadez vers votre espace web, du type "wsftp.log"

Du fait, certains d'entre nous rencontrent des erreurs erratiques dans l'exploitation du système CAPTCHA.

Du coup, on doit d'abord s'assurer d'uploader des données "saines":
faites un click droit sur le dossier que vous comptez uploader, choisissez "Rechercher...", et trouvez tous les fichiers du type "*.db"," vti*.*", "*.bak"...
Supprimez-les avant de monter le dossier par FTP.

Mais ce n'est pas tout. WSFTP et consorts sont souvent imposés par des hébergeurs, dans le cadre de serveurs virtuels, travaillant souvent avec CPanel ou Plesk.
Si vous ne pouvez pas changer votre client FTP pour un client discret comme FileZilla, examinez à travers votre gestionnaire de fichiers Cpanel la structure de votre site.
Eliminez alors tous les fichiers dans captcha/backgrounds/, qui ne sont pas des images .jpg, et dans captcha/fonts/ tous ceux qui ne sont pas des polices .ttf.

En outre, n'oubliez pas de contrôler que le CHMOD de ce dossier et ses sous-dossiers est fixé à 755.

Merci à olgaart de nous avoir éclairés à ce sujet.

13
Hi, all;
it must be in the FAQ! :D.

Many FTP tools uses to write their own log in uploaded directories, as WSFTP or CPanel's utility, writing a "wsftp.log" or similar file. CAPTCHA routine doesn't mind what is this file's extension and tries to use it as background, when placed in captcha/backgrounds/ directory.

Maybe users that tried to customize CAPTCHA design would face such problem, because of the file "thumbs.db" that MS Windows generates.

Just an advice: before uploading your files to your website, perform a search in the directory where you files are. Search for files having extensions like ".log", ".db", ".bak"... and delete them all before uploading the directory by FTP. Once uploaded, check your website to find such files.

At last, look at your FTP tool configuration. It must exist a way to avoid generating such logs (i.e. FileZilla does not generate any unwanted file).

Thanks olgaart for having given us the clue!

14
Bonjour;
navré, je suis en manque de disponibilité.
J'ai vu cela: [REQ}User promoted to usergroup after xx uploads? [SOLVED with details].
Cela consiste à promouvoir un membre dans un groupe donné au-delà de X téléchargements (uploads).

Peut-être pouvez-vous vous en inspirer pour l'adapter au nombre de commentaires.

Comme je l'ai dit, je n'aurai pas le temps de tester une quelconque adaptation avant longtemps, navré de ne pouvoir pas mieux aider.

Salutations.

15
Chit Chat / Re: V@no is back on web ...
« on: July 07, 2008, 03:37:21 PM »
Hello, V@no;
very glad to see you back!
I'm also from the "Paroxetine Club", and understand how it can be hard sometimes.

It's really a great pleasure to see you here, after all.

Pages: [1] 2 3 4 5 ... 13