OneNav Bookmark Management Program 0.9.18 Update: Site Information, Themes, and Transition Pages Can Be Set Directly via the Backend

Publish: 2022-04-15 | Modify: 2022-04-15

OneNav is an open-source and free bookmark (navigation) management program developed by xiaoz using PHP + SQLite 3. It has a simple interface, easy installation, and convenient use. OneNav can help you centralize and manage browser bookmarks, solving the problems of synchronization and access difficulties across devices, platforms, and browsers, allowing you to deploy in one place and access anywhere.

OneNav

Install OneNav: https://doc.xiaoz.org/books/onenav/page/5ef69

0.9.18 Update

  • Added: Site information, theme, and transition page can be directly set through the backend
  • The theme now has an info.json to describe the theme
  • Removed custom Javascript and replaced it with custom headers set in the site settings
  • Some resources have been localized
  • BaisuTwo adapted to OneNav 0.9.18

Upgrade

Backup the entire site and download the latest source code: https://github.com/helloxz/onenav/releases and overwrite for upgrade.

  1. After the upgrade, visit the backend: https://yourdomain/index.php?c=admin and wait for the database to upgrade automatically.
  2. Open OneNav backend - Site Settings - Fill in your site information. Refer to Site Settings
  3. Open OneNav backend - Theme Settings - Select the theme you want to use.

For more information, refer to the upgrade documentation: https://doc.xiaoz.org/books/onenav/page/5ef69

Site Settings

Starting from version 0.9.18, site information can be set through the OneNav backend without modifying the config.php configuration file.

Open OneNav backend - System Settings - Site Settings - You can set the website title, keywords, description, and other information.

Site Settings

Parameter Description:

  • Website Logo: You can enter text or use relative paths, absolute paths, or URL addresses for images. It depends on the theme you are using. Additionally, some themes may not support website logos.
  • Website Keywords: Multiple keywords separated by commas in English.
  • Custom headers: Here you can enter CSS or JS content. If you are unsure, please do not fill it in.

Detailed description of custom headers:

Custom headers only take effect on the user homepage and transition page. Some themes may not support this feature, but the default theme does.

For example, you can add Baidu Analytics code:

<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?xxx";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

Or customize website CSS:

<style type="text/css">
            /*Link description display*/

            .site-main .site-list .list .desc {
                /*none: do not display, block: display*/
                display: none;
            }
        </style>

Transition Page Settings

Starting from version 0.9.18, transition page settings have been added. When the transition page is enabled, clicking on a link will redirect to the transition page and wait for a few seconds before redirecting to the target address based on your settings.

Transition Page Settings

Benefits and drawbacks:

Benefits:

  1. The transition page is convenient for search engine crawling and SEO optimization.
  2. You can customize some content on the transition page, such as placing advertisements.

Drawbacks:

  1. Poor user experience.

Go to OneNav backend - System Settings - Transition Page to configure.

Transition Page Settings

The meanings of each parameter are as follows:

  • If the transition page is disabled, clicking on a link will directly redirect to the target address without displaying the transition page. Therefore, visitor stay time and administrator stay time are not effective.
  • If the transition page is enabled, visitor stay time and administrator stay time are effective.
    1. Visitor stay time: Refers to the duration that non-logged-in users stay on the transition page after clicking on a link before being redirected to the target address.
    2. Administrator stay time: Refers to the duration that administrators stay on the transition page after clicking on a link before being redirected to the target address.

Finally


Comments