Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorqrczak
    • CommentTimeOct 5th 2006 edited
     
    Hello

    At the begining I'm wonna say I'm not php programmer but I found way to do that.
    When you wonna put Plogger into sub folder (other where is index.php file) you have to change few lines in two Plogger files.

    e.g.
    http://www.domain.com/index.php <-- this file shows your gallery
    http://www.domain.com/gallery/ <-- this is Plogger folder

    1 step
    file: plog-load_config.php
    you have to change line 16:
    $config["baseurl"] = "http://www.domain.com/gallery/";

    2 step
    file: plog-functions.php
    you have to add one line at the beginning e.g as a next line after "<?php"
    $trasa = "http://www.domain.com/";

    name "trasa" is example, you can rename it

    Next you have to find line:
    function generate_url($level,$id,$name = ""){
    and line:
    // Begin basic Plogger API functions
    and you have to change all $config["baseurl"] to $trasa beetwen these lines, e.g.
    was: return $config["baseurl"].rawurlencode($row["path"]);
    is: return $trasa.rawurlencode($row["path"]);

    and it's all

    ofcourse in index.php file must be:
    <?php require("./gallery/gallery.php"); ?>