Search…

X3 Photo Gallery Support Forums

Search…
 
alterastro
Topic Author
Posts: 1
Joined: 04 Jul 2007, 06:00

Frontpage _vti problem

04 Jul 2007, 06:05

Hi All

Hope someone can help... I've successfully installed Imagevue and all is fine except... I'm using it in conjuction with a Frontpage website and Frontpage keeps creating a _vti_cnf folder everywhere in the imagevue17 folder and subfolders. This means that in my menu, there is a _vti_cnf folder showing up. I cannot stop Frontpage from creating these folders, but is there a way to ignore this particular folder in the Imagevue config, or another way around this problem?

Many thanks

Nick
 
Paully
Posts: 1
Joined: 27 Sep 2008, 01:03

15 Dec 2008, 13:18

Not sure if this has been answered yet, so here is my 2 cents....

I'm not a PHP guy, but I can hack my way around it. I have a requirement for the use of the FrontPage server extensions, so I can't get away from them.

What I did was modify the getContent method in the functions.inc.php file (in the .../imagevue/include folder). I added a line that evaluates if the folder includes '_vti', and if so, skip it.
Code
function getContent($path)
{
        $list = array();
        if ($handle = opendir($path)) {
                while (false !== ($file = readdir($handle))) {
                        if (substr($file, 0, 1) != '.') {
                               if (substr($file, 0, 4) != '_vti') {                                        $list[] = $file;
                                }
                        [color=blue]}[/color]
                }
                closedir($handle);
        }
        return $list;
}
It's dirty, but it works.