Notifications
Clear all

[SOLVED] Menu links to off-site in "new" directory structures

7 Posts
2 Users
0 Reactions
1,390 Views
 Elle
(@jenny)
Posts: 594
Honorable Member
Topic starter
 

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: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 06/02/2010 5:48 pm
(@tammy)
Posts: 2577
Member Moderator
 

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. 


 
Posted : 06/02/2010 6:40 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
Topic starter
 

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: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 06/02/2010 7:24 pm
(@tammy)
Posts: 2577
Member Moderator
 

Where are you getting $url from?  and where did you change it?


 
Posted : 06/02/2010 7:33 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
Topic starter
 

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: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 06/02/2010 7:35 pm
(@tammy)
Posts: 2577
Member Moderator
 

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


 
Posted : 06/02/2010 7:46 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
Topic starter
 

It works. πŸ˜€ Thank you, Tammy!


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 06/02/2010 7:51 pm
Share: