Announcement

#1 2021-11-28 09:21:45

ebaque
Member
2021-11-16
5

Doubts to be able to advance

Hello,
I am developing a gallery for a project in my city. I have started, I like the first results and I have some doubts.
My configuration is:
Piwigo 12.1.0
Sistema operatiu: WINNT
PHP: 8.0.11
MySQL: 5.5.5-10.4.21-MariaDB [2021-11-20 15:06:52]
Llibreria gràfica: External ImageMagick 7.1.0-14

Plugins: LocalFilesEditor, Read Medatada, Extended Description, Additional Pages, Manage Properties photos

1.- I get many warning messages. What should I do so that they do not appear? For example when mouse over TAGS appear:
C:\xampp\htdocs\Fotosdeseva\_data\templates_c\x41tyy^79f8df201c723b445a0fcb83b8b0915a50bc0aaa_0.file.menubar.tpl.php on line 91
" href="index.php?/tags/8-campanar" title="visualitza només les fotos enllaçades amb aquesta etiqueta">campanar

When I enter Additional Pages --> Configuration -> Edit a page

Warning: Undefined array key "TEMPLATES" in C:\xampp\htdocs\Fotosdeseva\_data\templates_c\p6jhns^55a5fe7481c40a760458fb33bc2a3a0da7dad105_0.file.add_page.tpl.php on line 102

Warning: Attempt to read property "value" on null in C:\xampp\htdocs\Fotosdeseva\_data\templates_c\p6jhns^55a5fe7481c40a760458fb33bc2a3a0da7dad105_0.file.add_page.tpl.php on line 102

2.- When enter at Piwigo Administration appear this text, no original graphic page

57Fotos 12Àlbums 29Etiquetes 49Pàgines vistes 4Connectors
0.0GBEmmagatzemament utilitzat
1 diaS'ha afegit la primera foto
Pic d'activitat en les darreres setmanes
Setmana 44
Setmana 45
Setmana 46
Setmana 47

3.- I am trying to create an additional page with the plugin. I have managed to include text and potos. But how can I put them in the place on the page that I want, with the font I want and with the size I want, for example?Thanks!

Offline

 

#2 2021-11-28 11:51:59

ebaque
Member
2021-11-16
5

Re: Doubts to be able to advance

Hello again,

I think I have solved point 1 with erAck's answer written at:
https://piwigo.org/forum/viewtopic.php? … 78#p180778

If anyone can help me with 2 and especially 3, I would really appreciate it.

Thanks!

Offline

 

#3 2021-11-28 15:10:17

Katryne
Member
2016-12-03
368

Re: Doubts to be able to advance

Hello ! Personnally, I do not use the Additionnal pages plugin for the texts I want to convey. Piwigo is a CMS, specialised for galleries, for photos.I present what messages i have to give in the descriptions fields : on home page, the description of the site, on galleries and subgalleries pages, on the picture page.

For me, Piwigo is a tool easy to use, ready-made. Additional pages would mean some tinkering with html, which I am not ready (or able) to do.

Last edited by Katryne (2021-11-28 15:10:58)


http://photos.katrynou.fr/ v.14.1.0 https://album.chauvigne.info/ v.13.8.0
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 8.0.28 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#4 2021-11-28 17:53:00

ebaque
Member
2021-11-16
5

Re: Doubts to be able to advance

Thanks Katrine,
but where do I find a tutorial to learn how to modify texts and create pages?

Thanks!

Offline

 

#5 2021-11-28 18:07:44

Katryne
Member
2016-12-03
368

Re: Doubts to be able to advance

Read this : https://piwigo.org/doc/doku.php?id=user … onal_pages and check that the Plugin FCKEditor is installed, to make writing easy to do and smart to look at.


http://photos.katrynou.fr/ v.14.1.0 https://album.chauvigne.info/ v.13.8.0
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 8.0.28 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#6 2023-05-24 20:54:11

Christian Girstmair
Member
Austria
2023-05-24
16

Re: Doubts to be able to advance

Hi guys,

i've been playing around with Piwigo for ~2 weeks and just setting it up. Unfortunately, some plugins are outdated and with a current server running PHP 8.x and the latest Piwigo version 13.7.0, errors / warnings occur again and again. And since there is hardly any help on the web apart from this thread, here is some information about it.

Personally, I'm not a big fan of disabling PHP warnings, it's just taking them with you and running into more problems sooner rather than later. Since I also use Additional Pages and had the same warnings with other plugins (Undefined array key), here is a short description of how to solve this a little more elegantly than just deactivating the warnings, which is generally not recommended.

In this case i will solve the Undefined array key "template_selected" warning in AddionalPages - you can use the same method for similar warnings, also in other plugins. You should ensure that the variable $template_selected exists before using it in the condition. To do this, without wasting too much time here, you can use the isset() function to check if the variable is defined. This will prevent the PHP warning from being raised if the variable is not defined.

Here is the updated code fragment for AdditionalPages/admin/template/add_page.tpl:

<p>
    <strong>{'Load a page model'|@translate}</strong>
    <br>
    <select name="template" id="template">
        <option value="-1">---------</option>
        {foreach from=$TEMPLATES item=tpl}
            <option value="{$tpl.tpl_id}" {if isset($template_selected) && $template_selected==$tpl.tpl_id}selected="selected"{/if}>{$tpl.name}</option>
        {/foreach}
    </select>
</p>

Offline

 

#7 2023-05-24 21:17:57

erAck
Only trying to help
2015-09-06
2020

Re: Doubts to be able to advance

Thanks for finding. You may also want to submit a pull request with that change at https://github.com/Piwigo/AdditionalPages


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact