Pages: 1
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
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
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
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
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.
Offline
Ok, thanks for your suggestion.
Offline
Pages: 1