Menu links to off-site pages in "new" directory structures e.g. blocks/shoutbox/archive.php display wrongly.
I can't show the site publicly at the moment, but in my menu block, I have an extra link in the form of a subdomain; so it isn't connected to eFic. When I'm browsing through the site normally, it's clickable. But, when viewing the shoutbox archive, I get something like "../../ http://subdomain.domain.com".
I'm not sure how to fix it? I did change things in pagesetup.php so now it displays, instead of ../.., the actual $url. However, how can it be changed so it will correctly go to the off-site URL?
archive:
site:
Available for skin/mod commission! π
What did you do? I'm sorry, I just don't understand. Even if you put eFiction in a sub-domain you shouldn't need to edit pagesetup.php.
Ah, no.
I think it will be OK to reference the site nowww.
http://dramione.org/blocks/shoutbox/archive.php -- "Help" in the left menu panel.
eFiction is in the parent directory. I made a subdomain and pointed the Help link in the page links to it; changing the URL from viewpage.php?page=help to the subdomain. When browsing the shoutbox archive though, the menu link points -- before I changed to $url :S -- to ../../ http://help.dramione.org instead.
archive:
site:
Available for skin/mod commission! π
Where are you getting $url from? and where did you change it?
pagesetup.php:
while($link = dbassoc($linkquery)) {
if($link['link_access'] && !isMEMBER) continue;
if($link['link_access'] == 2 && uLEVEL < 1) continue;
if($link['link_name'] == "register" && isMEMBER) continue;
$tpl->assignGlobal($link['link_name'], "<a href="""._BASEDIR.$link['link_url'"]."" title="".$link['link_text'].""".($link['link_target'] ? " target="_blank"" : "").(!empty($link['link_key']) ? " accesskey='".$link['link_key']."'" : "").($current == $link['link_name'] ? " id="current"" : "").">".$link['link_text']."</a>");
$pagelinks[$link['link_name']] = array("id" => $link['link_id'], "text" => $link['link_text'], "url" => _BASEDIR.$link['link_url'], "key" => $link['link_key'], "link" => "<a href="""._BASEDIR.$link['link_url'"]."" title="".$link['link_text'].""".(!empty($link['link_key']) ? " accesskey='".$link['link_key']."'" : "").($link['link_target'] ? " target="_blank"" : "").($current == $link['link_name'] ? " id="current"" : "").">".$link['link_text']."</a>");
}
And I seem to have lied; it's not $url... OK. I think I may have changed and then reverted back upon failure. π
I'm under the impression that is where the page links are concocted, though?
archive:
site:
Available for skin/mod commission! π
Yes. I just put a fix for this in the SVN.
http://efiction.svn.sourceforge.net/viewvc/efiction/includes/pagesetup.php?r1=40&r2=39&pathrev=40
It works. π Thank you, Tammy!
archive:
site:
Available for skin/mod commission! π
