Announcement

  •  » Themes
  •  » Add links in the menu to other sites

#1 2023-02-10 01:10:07

rpeterson157
Member
2023-02-02
5

Add links in the menu to other sites

Hello/Hi/Greetings,
I am wanting to add links to other websites in the additional pages section of our photo album. But so far I can only ad links that reside within the /photo/ where the piwigo is installed.

I'm used to being able to edit the programs files, So I can edit these URLs in directly, but I can't find the files I need to edit.

Can anyone point me to the files which allow me to edit the header or menu items?   

thank you
Randy

Piwigo URL: http://spearfish.biz/photo/

Offline

 

#2 2023-02-10 06:23:36

Katryne
Member
2016-12-03
372

Re: Add links in the menu to other sites

Hello,
I add links to the menu bar using Local file Editor plugin.
In its local config tab, I enter someting like this :

Code:

$conf['links'] = array(
 'https://chauvigne.info/' => array('label' => 'Ma Tribu', 'new_window' => true, 'eval_visible' => 'return true;'),
 'https://clan.chauvigne.info/' => array('label' => 'GeneaKat', 'new_window' => true, 'eval_visible' => 'return true;'),
 'https://agora.chauvigne.info/' => array('label' => 'Agora forum', 'new_window' => true, 'eval_visible' => 'return true;'),
 'https://katryne.legtux/chronikat/' => array('label' => 'Chronikat', 'new_window' => true, 'eval_visible' => 'return true;'),
 'http://unbeaujour.comoni.org/' => array('label' => 'Un beau jour...', 'new_window' => true, 'eval_visible' => 'return true;'),
 'https://revestou.fr/' => array('label' => 'Les Carnets du Revest', 'new_window' => true, 'eval_visible' => 'return true;'),
);

Now, look at the "Links" or "Liens" menu item there : https://album.chauvigne.info/

Is it something of the kind you want to achieve ?


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

 

#3 2023-02-10 17:39:52

rpeterson157
Member
2023-02-02
5

Re: Add links in the menu to other sites

Thap appears to be part of your theme... it looks nice.  I'll look for the code to change.

Offline

 

#4 2023-02-10 19:00:52

Katryne
Member
2016-12-03
372

Re: Add links in the menu to other sites

Have you tried what I suggested ? With the plugin "Local Files Editor" ?
My theme is the same as yours : Bootstrap Dark room.
And I did exactly the same thing the same way with the Modus theme. Have look at the links in my signature.


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

 

#5 2023-02-11 17:36:12

BigIsland270972
Member
Norway
2022-03-15
374

Re: Add links in the menu to other sites


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#6 2023-02-13 18:00:41

rpeterson157
Member
2023-02-02
5

Re: Add links in the menu to other sites

Thank you.

Offline

 

#7 2023-11-20 16:41:01

March411
Member
2023-09-09
7

Re: Add links in the menu to other sites

Katryne wrote:

Hello,
I add links to the menu bar using Local file Editor plugin.
In its local config tab, I enter someting like this :

Code:

$conf['links'] = array(
 'https://chauvigne.info/' => array('label' => 'Ma Tribu', 'new_window' => true, 'eval_visible' => 'return true;'),
 'https://clan.chauvigne.info/' => array('label' => 'GeneaKat', 'new_window' => true, 'eval_visible' => 'return true;'),
 'https://agora.chauvigne.info/' => array('label' => 'Agora forum', 'new_window' => true, 'eval_visible' => 'return true;'),
 'https://katryne.legtux/chronikat/' => array('label' => 'Chronikat', 'new_window' => true, 'eval_visible' => 'return true;'),
 'http://unbeaujour.comoni.org/' => array('label' => 'Un beau jour...', 'new_window' => true, 'eval_visible' => 'return true;'),
 'https://revestou.fr/' => array('label' => 'Les Carnets du Revest', 'new_window' => true, 'eval_visible' => 'return true;'),
);

Now, look at the "Links" or "Liens" menu item there : https://album.chauvigne.info/

Is it something of the kind you want to achieve ?

On which file do you complete this edit/add?

Offline

 

#8 2023-11-20 16:50:25

Katryne
Member
2016-12-03
372

Re: Add links in the menu to other sites

That's written on top of my message :

I add links to the menu bar using Local file Editor plugin.
In its local config tab


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

 

#9 2023-11-21 18:51:55

March411
Member
2023-09-09
7

Re: Add links in the menu to other sites

Thank you Katryne for the response.

If you could guide me a little further it would be appreciated. If I did not want to create links with a drop down menu but a single static link to another website opening in the same window how would that work?

Would it look something like this:

$conf = array(
'https://chauvigne.info/' => array('label' => 'Ma Tribu', 'new_window' =>false, 'eval_visible' => 'return true;'),
);

Last edited by March411 (2023-11-21 18:53:11)

Offline

 

#10 2023-11-21 19:10:57

Katryne
Member
2016-12-03
372

Re: Add links in the menu to other sites

I do not know. Wait for somebody else : if I try your code, it gives me a blank page.
Note if it happens to you and you cannot enter admin to correct, go by ftp to local/config/config.inc.php and modify the file.


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

 

#11 2023-11-21 19:21:52

March411
Member
2023-09-09
7

Re: Add links in the menu to other sites

Katryne wrote:

I do not know. Wait for somebody else : if I try your code, it gives me a blank page.
Note if it happens to you and you cannot enter admin to correct, go by ftp to local/config/config.inc.php and modify the file.

Thanks for giving it a try Katryne, it is most appreciated! I will continue to research and learn.

Offline

 
  •  » Themes
  •  » Add links in the menu to other sites

Board footer

Powered by FluxBB

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