En vous promenant sur Beamreactor, nous stockons votre IP 48h pour des raisons de sécurité.

Lecteur Markdown

gallery_user Documentation › GALLERY_USER_DOCUMENTATION_EN

Gallery User Documentation En

Feature: Gallery User #

Per-user personal photo galleries. Each member has their own image directory, which they can fill and manage. Galleries are private by default (.lock lock file) and can be made public for portfolios (photographers, artists, etc.).

Installation and Configuration

Via FTP: Upload the gallery_user/ directory into /plugins/.

Via package manager: Select gallery_user from the available plugins list.

Paths:

  • Main plugin: /plugins/gallery_user/gallery_user.php
  • Relies on the library: /plugins/gallery_handler/lib/gallery_handler.lib.inc.php

Configuration parameters:

| Variable | Default | Description |

|---|---|---|

| $basedatadisplay | 'no' | Hidden from the management interface |

| $basedisplevel | BASE_LEVEL_USER | Available to logged-in users |

| $ftype | 1 | Content module |

| $cfg[13] | gif, jpg, jpeg, png, webp | Allowed image formats |

| $cfg['user_gallery_max_filesize'] | 5242880 (5 MB) | Max file size |

| $cfg['user_gallery_max_width'] | 1920 | Max width (px) |

| $cfg['user_gallery_max_height'] | 1920 | Max height (px) |

| $cfg['user_gallery_private'] | true | Galleries private by default |

Upload limits are intentionally stricter than those of gallery_handler.

Usage

Each logged-in user has a personal directory. They can:

  • Upload images (within the allowed formats and sizes).
  • Delete an image (gudel=…).
  • Toggle visibility of their gallery between private and public. Visibility is driven by the presence of a .lock file in the directory: present → private, absent → public.

Image display and processing reuse the gallery_handler plugin library.

Hooks and Entry Points

text
?obj=gallery_user.php             — Logged-in user's personal gallery
?obj=gallery_user.php&gudel=…     — Delete an image

Visibility toggle and upload are done via form (POST).

Dependencies

  • Beamreactor\Database\SQL
  • Beamreactor\Sanitizer\Parser
  • gallery_handler plugin — image processing and display library

Security

Restricted to logged-in users; each user acts only on their own gallery. Galleries are private by default thanks to the automatically created .lock file. Upload formats and sizes are restricted by configuration. Input is sanitized through Parser::sanitize().

de en fr