PDA

View Full Version : Another integration problem


Robert Carver
10-03-2004, 10:45 AM
This is probably related to the problem I asked about in http://www.vbadvanced.com/forum/showthread.php?t=2750 but wanted to run this past everyone.

I have followed the directions on the VBadvanced manual for integrating other VB pages and hacks, and have applied the integration to index.php, forumdisplay.php, and showthread.php. However, when I follow the instructions and find this:

eval('print_output("' . fetch_template('FORUMHOME') . '");');

and replace it with this:

eval('$HTML = "' . fetch_template('FORUMHOME') . '";');

print_portal_output($home, $HTML);

I get this showing up TWICE on the page, once at the top (where it should be, and a second time in the middle of the page:

<html dir="ltr" lang="en">

<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
<title>BudoSeek! Martial Arts Community Forums - powered by vBulletin</title>

Here again are my test pages if someone would like to look at them.

http://www.budoseek.net/vbulletin/cmps_index.php
http://www.budoseek.net/vbulletin/cmps_forumdisplay.php?f=56
http://www.budoseek.net/vbulletin/cmps_showthread.php?t=7215

I have also included a screen shot of what one of my Windows users is having problems with. As you see, the forum table is starting below my cmps module on the left.

So why is the opening HTML tag and meta tags reprinting?

Thanks for your help in advance!

Brian
10-03-2004, 11:04 AM
It looks like you have an extra </table> tag somewhere in your code... I would guess either in your Shopping module, or somewhere in your 'SHOWTHREAD' template.

Our Sponsors
 

Robert Carver
10-03-2004, 11:22 AM
I checked the Shopping module over very carefully, and there is no extra </table> tag there. It may be in the 'SHOWTHREAD' template, but it is unmodified from the original vB 3.03. Only modification was to shorthread.php, but not the template. Just a note, but the problem does not happen on the sites main cmps page. Also, this would not cause the double HTML & meta tags would it?

Brian
10-03-2004, 12:14 PM
I just now had a look at those links you posted, but all of them appear fine under IE and Firefox...
The extra meta tags are from your 'SHOWTHREAD' template, but aren't going to hurt anything or cause the table to be messed up.

Our Sponsors
 

Robert Carver
10-03-2004, 03:35 PM
Brian:

Thank you again for taking time from your busy day to assist me. I have viewed my test pages in literally every operating system on the market and every web browser I can lay my hands on, and it looks fine in each of them. That is what is driving me nuts over the two individuals who are having problems. One is a windows user (judging from the IE icon in the upper right hand corner of the screen shot I posted is using an earlier version of IE) and a Mac user with OS 8.6. There has to be something that is making their display of the CMPS enhanced forum pages screw up, and I absolutely cannot fugure out what it is.

Silly question about the SHOWTHREAD template, but why would it be necessary to have that $headerinclude code there to begin with? Seems pretty redundant.

Thanks again!

Brian
10-04-2004, 10:40 AM
The best thing I can suggest would be to open your 'SHOWTHREAD' template and remove this code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $thread[title]</title>
$headinclude

</head>
<body onload="$onload">
$header
$navbar

If that doesn't help, the only other thing I could suggest would be to make sure the page is XHTML compliant (there were about 200 errors when I checked it).
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.budoseek.net%2Fvbulletin%2Fcmps_showthread.php%3Ft%3D 7215

Robert Carver
10-04-2004, 10:45 PM
Holy Moses! ONLY 200 errors! :cool:

Thanks Brian. I tried out your suggestion last night and had my problem user give it a try. The page still looks screwed up for him. However, turns out that he is running Win 98 with IE 5! He said his PC is such a piece of junk that he cannot even run Firebird on it! So, my solution to the problem is simple. Put up a "Best Viewed With" module with an icon for IE6 and Firebird, and let my two users with problems just deal with it. Progress cannot be stopped by two members with ancient browsers and operating systems! :p

Anyway, thank you again. I will be sure to crawl through all of them errors sometime in the near future.