Announcement

#1 2017-03-09 02:40:43

zomborama
Member
2017-03-09
2

How do I change the root url of the Home icon and Gallery Name?

Hi everyone,

I just installed Piwigo 2.8.6 and all is good but my Home icon link and my Gallery Name urls at the top left both point to the root as "/piwigo/" as in "http://www.mywebsite.com/piwigo/"

I changed the .htaccess rewrite rules to allow Piwigo to run as "http://www.mybsite.com/index.php" and that works fine but the Home icon and the "My Photo Gallery" urls both point to:

"http://www.mywebsite.com/piwigo/"

Is there any way I can change this to just point to "http://www.mywebsite.com"?

I looked and saw a variable in the following:

/piwigo/themes/bootstrap_darkroom/themeconf.inc.php

$home_link_content = '<a href="' . $u_home . '" title="' . $home_link_orig->nodeValue . '"><i class="fa fa-home" aria-hidden="true"></i></a >';

but I don't know where to change $u_home

Any help would be appreciated as I couldn't find it in the MySQL DB.

Many Thanks,
Z

Offline

 

#2 2017-03-09 05:22:19

zomborama
Member
2017-03-09
2

Re: How do I change the root url of the Home icon and Gallery Name?

I solved my own problem. I found in this post below that the "gallery_url" slug applies to the Home icon as well as the Gallery Name.

http://piwigo.org/forum/viewtopic.php?id=23475

I added the line below into my local conf file and now the Home icon & Gallery Name both point to http:/www.mysite.com/ and not http://www.mysite.com/piwigo/

$conf['gallery_url'] = '/';

Offline

 

#3 2022-10-16 21:20:15

passegua
Member
Italy
2017-04-20
37

Re: How do I change the root url of the Home icon and Gallery Name?

zomborama wrote:

I solved my own problem. I found in this post below that the "gallery_url" slug applies to the Home icon as well as the Gallery Name.

http://piwigo.org/forum/viewtopic.php?id=23475

I added the line below into my local conf file and now the Home icon & Gallery Name both point to http:/www.mysite.com/ and not http://www.mysite.com/piwigo/

$conf['gallery_url'] = '/';

I have the same problem I do not understand where could I find the "my local conf file " ? Please tell me its name and location so I could add the line:
$conf['gallery_url'] = '/';

Many thanks.

Offline

 

#4 2022-10-16 21:24:22

passegua
Member
Italy
2017-04-20
37

Re: How do I change the root url of the Home icon and Gallery Name?

I did it!

I used LocalFiles Editor and added that line.

It works!

Many thanks.

btw here is my gallery: https://www.sinapsi.org/piwigo/
now if I click on my top left logo I'll go to my web site home page and not to piwigo gallery.

Last edited by passegua (2022-10-16 21:27:26)

Offline

 

#5 2022-10-17 03:17:08

erAck
Only trying to help
2015-09-06
2035

Re: How do I change the root url of the Home icon and Gallery Name?

I doubt that is a good idea. $conf['gallery_url'] is used in include/functions_url.inc.php function get_gallery_home_url(), which in turn is used in various places expecting the gallery home URL, not some arbitrary page's URL; you may get an impression doing a
grep -r get_gallery_home_url piwigo

A mismatch of get_gallery_home_url() not pointing to or be rewritten to the gallery's page will break some functionality including extensions if they expect the gallery structure at that home URL.


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

Offline

 

#6 2022-10-23 20:20:11

passegua
Member
Italy
2017-04-20
37

Re: How do I change the root url of the Home icon and Gallery Name?

Ok, thanks for your suggestion.

Offline

 

Board footer

Powered by FluxBB

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