Outline of plug-in

It is a plug-in that replaces dynamic URL generated with NucleusCMS with static URL of a free name.
Operation only in FancyURL mode and required 'mod-rewrite'.
Categories, the Sub-Categories, Archive list, etc. are considered to be a directory respectively.When narrowing it by the category, it becomes an image that refers to the index file that exists in the directory of a category concerned.
Member's detailed page and individual item page become images accessed a file concerned html file.

Installation and operation beginning procedure

  1. After up-loading the "NP_CustomURL.php" file and the "customurl" directory that can be done by developing the downloaded compression file to the "plugins" directory of the server.It installs it from the management area.
  2. First of all, "URL mode" is changed to "Fancy" on "Global setting" page of the management screen.
  3. "fancyurls.config.php" is copied to a top directory according to the procedure of FancyURLs and it edits it.
    At this time, copying it should not copy the following file with "fancyurls.config.php" file alone.
  4. Next, "index.php" is edited."$CONF['Self']" and the line that is are rewritten as "$CONF['Self'] = '.'" and One line is written "$curl_blogid = 1;" and it adds. ("1" is ID of Brog accessed by "index.php".)
    <?php
    // This file will generate and return the main page of the site
    $CONF = array();
    $CONF['Self'] = '.';
    $curl_blogid = 1;
    
    include('./config.php');
    include('./fancyurls.config.php');
    
    selector();
    
    ?>
    
  5. Next, .htaccess is edited.
    • The content is here.
      RewriteEngine on
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ index.php?curl=$1 [L,QSA]
      
      Even if nothing is written now by these four lines alone, it is safe.
It is preparation completion by this.

Note:Please delete or save operation in another directory the file for FancyURLs with FancyURLs now.It is not necessary because everything has been received by this plug-in.

How to use.

Skin/Template variable

It is possible to fill it in skin, the template, and in the article.
Useage:<%CustomURL(link ahead, link text, title text)%>
Filling in example: When only id is filled in like skin template article both "<%CustomURL(123)%>", URI to the item with the id is written.
Moreover, passing set to the item with the id like item_123 can be written by writing "<%CustomURL(123/path)%>" only for the item.

Operation report and bug report

...following URL.. I hope the comment or the track back the operation report and bug report.
http://shizuki.kinezumi.net/NucleusCMS/Plugins/NP_CustomURL/NP_CustomURL.html

Version history