Git Product home page Git Product logo

pwg_stuffs's Introduction

Piwigo logo

Manage your photo library. Piwigo is open source photo gallery software for the web. Designed for organisations, teams and individuals.

screenshot

The piwigo.org website introduces you to Piwigo. You'll find a demo, forums, wiki and news.

Requirements

  • A webserver (Apache or nginx recommended)
  • PHP 7.4+. Piwigo can run with PHP 7.0+ but these end-of-life versions are no longer maintained and may expose your site to security vulnerabilities.
  • MySQL 5 or greater or MariaDB equivalent
  • ImageMagick (recommended) or PHP GD

Quick start install

NetInstall

More information

Manual

More information

If you do not have your own server, consider the piwigo.com hosting solution.

Contributing

Piwigo is widely driven by its community; if you want to improve the code, fork this repo and submit your changes to the master branch. See our Contribution guide.

License

Piwigo is released under the GPL v2 license. See our Copying details.

pwg_stuffs's People

Contributors

arno153 avatar ddtddt avatar erack avatar matthieulp avatar mistic100 avatar modus75 avatar moy avatar patdenice avatar piwigo-translationteam avatar plegall avatar riopwg avatar ttomasini avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pwg_stuffs's Issues

Limited support for HTML tags?

Not sure how much you want to allow, but I would like a horizontal rule to work and maybe some other small items. Text formatting such as P and Headers seem to work, but a HR ends up in the administration of the plugin... seems a bit werd.

Do not transform html entities to chars

I have added a personal block.

Into personal block I write html code that contain html enties like   or 
 . After I save if I try to edit the block again, the entities are transformed into characters (space, enter, ...).

Please keep the html entities intact.

PHP 7.4: Trying to access array offset on value of type bool in PWG_Stuffs/modules/FeaturedPhotos/main.inc.php on line 32

Notice: Trying to access array offset on value of type bool in my path/plugins/PWG_Stuffs/modules/FeaturedPhotos/main.inc.php on line 32

This is a new message I got after updating to PHP 7.4 from PHP 7.2.

It seems to be caused by

$page['nb_image_page'] = $datas['nb_images'];

Could probably be fixed by e.g. https://stackoverflow.com/q/59674903/2603230.

php tag gets closed when using >

Hi,
Im trying to print an object from a json url using "echo $status->{'port'};".
When running this code:

<?php
$status= json_decode(file_get_contents('https://api.mcsrvstat.us/2/example.com'));
echo $status->{'port'};
?>

the website shows:

{'port'}; ?>

maybe Im doing something wrong, Im fairly new, but I tried a lot of stuff and this is my only explanation: Somehow the php tag is closed after the arrow (->)

Doesn't de-install properly

Hi,

I have installed the plugin and played around with it a bit. Since I decided not to use it I have de-activated and deleted it. Unfortunately, it hasn't de-installed itself completely! The "blocks" of albums still remains behind - previously all albums where shown in one line next to each other.

clipboard02

$block.WIDTH not assigned, $block.given_width instead

I'm trying to add better support for PWG_Stuffs into Bootstrap Darkroom, the templates can be overridden by the theme, which is great.
But I'm having a really hard time understanding some of the template variables.

For example in stuffs_blocks.tpl there is a {if !empty($block.WIDTH)}style="width: {$block.WIDTH}%;"{/if}
https://github.com/Piwigo/PWG_Stuffs/blob/master/theme/template/stuffs_blocks.tpl#L6

Though, I'm unable to get a $block.WIDTH assigned to the template. If I set a blocks line ID to something, let's say A, and width to 50, this is what I get when doing a {$block|@print_r} in the template's foreach loop:

Array
(
    [U_LOST_PASSWORD] =&gt; password.php
    [F_LOGIN_ACTION] =&gt; identification.php
    [authorize_remembering] =&gt; 1
    [TEMPLATE] =&gt; stuffs_logon.tpl
    [ID] =&gt; 3
    [TITLE] =&gt; Anmeldung
    [id_line] =&gt; A
    [given_width] =&gt; 50
    [CLASS] =&gt; middle_block
    [new_line] =&gt; 
    [end_line] =&gt; 1
)

It does have a given_width, but no WIDTH like it's used in the template.

Is there an issue with my installation (tried two Piwigo instances each running Piwigo 2.9.2 and the latest version of the Plugin), or is that bug?

Repair and Optimize Database throws warnings clustered index

When running Repair and Optimize Database I got following Message:
Warning: [mysql error 1105] ORDER BY ignored as there is a user-defined clustered index in the table 'pi_stuffs'
ALTER TABLE pi_stuffs ORDER BY id; in /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php on line 856

This is a table created by the PWG Stuffs plugin.
The Database Optimisation attempts to sort the table pi_amm_blocks by id. This is rejected by MySql as this table is already sorted by the (clustered) index.
Either the plugin needs to be modified so no clustered indexes are created in tables or Piwigo has to change the Repair and Optimize Database module such that tables with clustered indexes are skipped from re-sorting.
Any suggestions?

See also https://piwigo.org/forum/viewtopic.php?id=30714

Advanced search bloc?

Hi,

Before all thanks a lot for that great plugin that let me customize the home page of my gallery.

But i have a little question or perhaps an improvement request :
Is it possible to add an advanced search bloc?
It would be great for the project i'm on.

Title page link to filter

I just discovered this extension which make my front page much more interesting. I find it much more relevant to show last/best pictures than showing a list of root albums with no knowledge of where to find recent stuff.

I quickly had the idea though, that it would feel intuitive that I could click on the title "Last Pictures" to get to a page of all pictures sorted by date posted (or date created?). I see you do it for last comments, but is it also possible to do for (some of) the other blocks?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.