FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Problem Relative Links, IE
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Problem Relative Links, IE [message #30390] Wed, 22 February 2006 10:07 Go to next message
horst is currently offline  horst   Germany
Messages: 2
Registered: February 2006
Location: Germany
Karma: 0
Junior Member
I've already seen some post's concenring this problem but the
hints did not solve our problem.

We've used FUDforum 2.3.4 with relative links (WWW_ROOT = /FUDforum2/) without problems. To get popup windows (like password change) working we commented 'BASE HREF' out in header.tmpl (header_plain).

Now we've upgraded to 2.7.4 and relative links are not working via IE (all links are http:///FUDforum2/).

Because our site is reachable under 2 addresses via http and https I cannot change WWW_ROOT in GLOBALS.php to "http://" . $_SERVER['HTTP_HOST']."/";

If I set WWW_ROOT without 'http://' I can reach our site via https but all links are still http://

Can anyone help ?!

Thanks
Horst
Re: Problem Relative Links, IE [message #30395 is a reply to message #30390] Wed, 22 February 2006 15:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
If your base href is set to just /FUDforum2/ (you can do that by editing header.tmpl) it should work fine. When forum accessed via https:// all links will be https, when accessed via http:// all links will be http

FUDforum Core Developer
Re: Problem Relative Links, IE [message #30399 is a reply to message #30395] Wed, 22 February 2006 17:51 Go to previous messageGo to next message
horst is currently offline  horst   Germany
Messages: 2
Registered: February 2006
Location: Germany
Karma: 0
Junior Member
Thanks for the Info.

Now we solved the Problem. Smile

We had to comment out (or delete) BASE HREF="{FULL_ROOT}" in header.tmpl (header and header_plain).

Now relative links (WWW_ROOT = /FUDforum2/) also work's via IE.

Cheers
Horst
Re: Problem Relative Links, IE [message #31070 is a reply to message #30399] Thu, 30 March 2006 15:06 Go to previous messageGo to next message
empororvader is currently offline  empororvader   United States
Messages: 7
Registered: March 2006
Location: Brentwood TN
Karma: 0
Junior Member
I was wondering what type of error you got in IE when the links did not work...? My problem with the search result IE links maybe related, but do your links just not work, or do they kick up a Windows "Not Responding" error like mine? My problem is only with IE and only when clicking links inside the excert part of messages matching the search criteria. If they are related, your fix may fix my problem too.

Please PM me or reply to my post regarding "IE link bug...".
Re: Problem Relative Links, IE [message #31079 is a reply to message #31070] Thu, 30 March 2006 19:59 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Do you have <base> tag in the header of your HTML page?

FUDforum Core Developer
icon5.gif  Re: Problem Relative Links, IE [message #31088 is a reply to message #31079] Fri, 31 March 2006 15:13 Go to previous messageGo to next message
empororvader is currently offline  empororvader   United States
Messages: 7
Registered: March 2006
Location: Brentwood TN
Karma: 0
Junior Member
No, there is no <base> tag nor is there a <meta name='base' ...> tag. Should there be for IE to use the links? If so, what should the HREF and TARGET attributes be? Confused

For example, sould the HREF url be the url of the forum page itself ("http://www.somesite.com/fud/forum_page.php"), the base ("http://www.somesite.com/") of the site, or a library page (something from MS IE) to make it work for IE links? Rolling Eyes
Re: Problem Relative Links, IE [message #31098 is a reply to message #31088] Sat, 01 April 2006 18:02 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Inside the HTML <head> block you should have a tag such as:
<BASE HREF="http://fudforum.org/forum/">

If you do not, that could explain your JavaScript troubles. The value of the href attribute should be the full URL of your forums.

You can check for the presense of this tag by doing view source in your browser on any of your forum's pages.


FUDforum Core Developer
Re: Problem Relative Links, IE [message #31538 is a reply to message #31098] Thu, 04 May 2006 21:31 Go to previous messageGo to next message
empororvader is currently offline  empororvader   United States
Messages: 7
Registered: March 2006
Location: Brentwood TN
Karma: 0
Junior Member
The <base href='MYSITE-URL'> trick worked for a while... And after about two or so weeks, the problem has reappeared. I verified that the base tag is still in the code template for that page. It still crashes IE...again Mozilla Firefox is not affected. Does this tag need to be anywhere else?

[Updated on: Thu, 04 May 2006 21:32]

Report message to a moderator

Re: Problem Relative Links, IE [message #31549 is a reply to message #31538] Sat, 06 May 2006 16:35 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The tag should be in the <head> block of every single page of the forum.

FUDforum Core Developer
Re: Problem Relative Links, IE [message #31580 is a reply to message #30390] Mon, 08 May 2006 21:57 Go to previous messageGo to next message
empororvader is currently offline  empororvader   United States
Messages: 7
Registered: March 2006
Location: Brentwood TN
Karma: 0
Junior Member
Indeed, the <base href='....'> tag is in every template and our template. The problem still exists. IE search result links still crash IE. Are there any other ideas?

Has anyone else had this problem? If so, what solved the problem? And has the problem ever returned later? Sad
Re: Problem Relative Links, IE [message #31607 is a reply to message #31580] Tue, 09 May 2006 22:20 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
base tag crashing IE? Hrm does it happen for you in this forum, as it uses base href tag quite extensively. I have never seen base href tag being a cause of a crash, but it could be a contributing factor in combination with something else.

FUDforum Core Developer
Re: Problem Relative Links, IE [message #31610 is a reply to message #31607] Tue, 09 May 2006 22:39 Go to previous messageGo to next message
empororvader is currently offline  empororvader   United States
Messages: 7
Registered: March 2006
Location: Brentwood TN
Karma: 0
Junior Member
Well, I am not saying that the <base href='...'> tag is the cause of IE crashing. I was just confirming that it was present. It was suggested to confirm the header contained this tag...and then to verify it was in each template. I was simply answering that it was within the templates and our template. I also verified the href-URL was correct. Mozilla has no problem either way. IE crashes either way.

What is funny is that for a small time, it was fixed, then came back. It came back about a week later. Could a recent Java update that WINDOWS XP updates regularly have imposed a new problem or backstepped to it? Confused

UPDATED: I just confirmed the error does not happen through this forum.

For my information, would having two <base> tags nested cause a problem? Of course, it seems odd that this is the one and only forum bug we have...I would think if nested templates were a problem, more would go wrong than one very specific and not always performed set of tasks. Below might help you understand what I'm refering to:

//our general template that contains the forum output...
< html>
< head>
< base.....>
< /head>
< body>
.
.
.

//general and dynamic code within our template
.
.

//FUD TEMPLATE picked by FORUM coding inserted in our template
< html>
< head>
< base.....>
< /head>
< body>
.

//FUD coding here
.
< /body>
< /html>

//TEMPLATE DONE....entire forum output placed in our template

//back to our coding and template form...mainly our page footer
.
.
.
< /body>
< /html>

[Updated on: Tue, 09 May 2006 22:58]

Report message to a moderator

Re: Problem Relative Links, IE [message #31623 is a reply to message #31610] Wed, 10 May 2006 12:59 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
If you have >1 base href tag, the browser would normally pick and use the one that appears later. But, it is possible that this combination is causing IE to misbihave, perhaps you may want to save the HTML code of one of the forum pages on your site and play with values to try to identify if >1 base tag is the source of the crash.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: maillist mail charsets
Next Topic: creating a topic
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 10:05:49 GMT 2024

Total time taken to generate the page: 0.02509 seconds