Ok, I don’t know if anyone else here is programming inclined but Chris, I know you know your PHP and stuff so here’s my issue (I mentioned it before on here)
I have modified the PHP file that generates the list of stories on this main page. It now does everything I want except for the fact that with IE browsers, the HTML code being output by the PostNuke engine is not the same as Firefox.
Regardless, the code looks somewhat like this:
echo “font tag”.
.”table tag”
.”br tag”
.”various other format tags”
.”$preformat[more]\n” << the killer line here
This preformat variable is some sort of built in array I think that PostNuke populates through their API. It is supposed to contain the exact link to the “Comments” section of a story, so it will always have the story ID along with the bottom #Comments link appended to the story name (to jump the user to the comments). This Comments link somehow gets stripped off with IE.
So, when a Firefox user connects to Bobsroom and it reads the data coming from Postnuke, that preformat line generates a line that looks something like this (code mangled a bit so it wont get stripped by postnuke’s editor):
//**************
a href=”index.php?name=News&file=article&sid=1398#comments”>1 Comment /a
//**************
a href=”index.php?name=Recommend_Us&req=FriendSend&sid=1398″>
img src=”images/global/friend.gif” alt=”Send this story to someone” /a>
a href=”print.php?sid=1398″
img src=”images/global/print.gif” alt=”Printer-friendly page” /a
So if you look at that, it generates the “Comments” line that you see below a story, as well as links to the printable and email links, with images. Pretty straight forward stuff if you ask me.
Now, if a user has IE as their browser, the section I marked with ***’s is not sent to the browser. If I view the source of the HTML, that link line is missing but the rest is there. As a test, if you have Firefox and IE on your Windows box (or IE in a VM in Linux) bring up both browsers and go to the main Bobsroom page. You’ll notice that IE has no “Comments” at the bottom of each story. If you click on the story you see the comments, but the actual link is missing in IE, where Firefox puts it in.
There’s no browser specific code in the PostNuke engine. The only thing I can think of is that IE is mangling the data being sent from PostNuke and losing that line in the process. Wouldn’t surprise me if that was the case. It’s either that or whatever is in this preformat function/array is not forming the HTML correctly for IE. *shrug*
Dunno if that makes any sense to you but if you have any suggestions, let me know. I’d like to fix this problem.
4 Responses to Chris, any ideas?