incorrect path to modules.php for link to photo,album

electronox

Joined: 2004-10-10
Posts: 3
Posted: Mon, 2004-10-11 00:10

is there a way i can modify block-random.php so it prints

"<a href="forum/modules.php?set_albumNam..." or better yet "<a href="http://forum.site.net/modules.php?set_albumNam..."? for links instead of just "<a href="modules.php?set_albumNam...", since modules.php doesn't exist in the root directory.

when i call it from www.site.net?

background info if you need it:

Gallery is embedded in phpBB2 at my site http://www.electronox.net.

I have block-random working on the index page with two different sources:

<?php include('http://forum.electronox.net/modules.php?op=modload&name=gallery&file=index&include=block-random.php') ?>
<?php include('http://www.electronox.net/forum/modules.php?op=modload&name=gallery&file=index&include=block-random.php') ?>

these both display images, but the links are incorrect.

forum.electronox.net is actually a virtual host rooted in the folder /forum of www.electronox.net. both url's point to the same forum, in other words.

but block-random returns the wrong path: it prints "<a href=modules.php?set_albumNam..."

EDIT: no longer important. gallery is no longer embedded and now is located at http://pix.electronox.net . go G2!