mrnobody Why does my sidebar show all the current domain names, not the folder names. Can anyone tell me? How should I set it.
Karl mrnobody Why does my sidebar show all the current domain names, not the folder names. This was fixed in new version 0.5.0. I have replaced PHP basename() with a custom function to make sure folder names with unicode characters are extracted correctly when PHP locale is not set to UTF8. No need to assign setlocale(LC_ALL, "en_US.UTF-8");. mrnobody Also I would like to ask. How do I change the name of my website? New version 0.5.0 now supports custom titles from config: /docs/config/#title 'title' => '%name% [%count%]', // foldername [38] 'title' => 'My website name › %name% [%count%]', // My website name › foldername [38]
Karl What PHP version is it? What is character encoding set to? Looks to me like PHP basename() function is not respecting characters in the path (Chinese folder name?) and therefore fails to extract the folder name. I have seen this before. Do you have a link?
Karl Try to open index.php and add at the top: setlocale(LC_ALL, "en_US.UTF-8"); What happens? To avoid cached menu, you may need to delete files in _files/cache/menu/* and test from a new "private" browser window to see if it works.
mrnobody Karl Sorry for not getting back to you in time. PHP7.4 I am trying to do what you said. Please wait.
mrnobody Karl If I delete_files/cache/menu/*, then it will work fine. I'll keep watching for a while.
Karl mrnobody If I delete _files/cache/menu/*, then it will work fine. I'll keep watching for a while. But you also added my code below, right? setlocale(LC_ALL, "en_US.UTF-8");
mrnobody Karl Yes, I added it. Also I would like to ask. How do I change the name of my website? Or you can send me the relevant documentation.
Karl ok mrnobody Also I would like to ask. How do I change the name of my website? What do you mean change the name of your website?
mrnobody Karl Here is the domain name of the website, I want it to display the specified name. For example, if you open google.com, it will show Google, not www.google.com
Karl mrnobody For example, if you open google.com, it will show Google, not www.google.com That's because "www" is HIDDEN in browsers. If your domain name is p.mrx.la, it will show p.mrx.la. If your domain is www.mrx.la, it will show mrx.la. p.mrx.la is your domain name. You can't remove the "p"! If it hides the "p", it would go https://mrx.la but that's a different website. You can't do this.
mrnobody Karl I think I must not have expressed myself clearly, what I want to change is the title of the website.
Karl mrnobody I think I must not have expressed myself clearly, what I want to change is the title of the website. 😄 OK. This is managed by Javascript when you navigate folders and view images. You can edit around line 1869 in the PHP, but that will only change title for the start page: <title><?php echo $init_path ? basename($init_path) : '/'; ?></title> // change to: <title>Your title here</title> I will add a configurable option for TITLE in an update coming soon.