PDA


View Full Version : Displaying info screwing up my page


rockabit
06-14-2005, 11:00 AM
I just posted the same thing in another forum, but this seems to be more the place for it. My problem is the following:

I've installed CMPS on a vBulletin forum so that I would be able to display stuff like recent threads, specific poll results and a user login box on the homepage of the website the forum belongs to.

For the homepage I had made a neat HTML layout and then I used the cmps_index.php to add the info to this page. Basically, I put all the code on the top of the page, except the code that prints all the info, which I placed where it should be printed.

It works fine, except that after the part php prints out, the page's source code simply stops. It ends right there. This ofcourse results in a missing part of the page.

Does anyone have any idea why this is and how I can fix it?
You can see what I mean at www.ferrycorsten.com/test (just look at the end of the source code)

Thanks!

Brian
06-14-2005, 12:49 PM
How exactly did you add your HTML page?

KW802
06-14-2005, 12:59 PM
Rockabit,

That page doesn't appear to be the output of CMPS_INDEX.PHP -- Please clarify if you're trying to add HTML to your CMPS pages or if you're attempting to use the CMPS code to add output to your own HTML pages.

rockabit
06-14-2005, 01:03 PM
I renamed my own HTML page to index.php and added the code of cmps_index.php in the appropriate place. Next, I adjusted the default page to show only poll results (I'll have it show more later, when I get it to work :) )

I have also adjusted some templates, but only ones from the vBadvanced CMPS section.
I noticed that the page ends where the adv_portal_module_shell template ends...

Brian
06-14-2005, 01:29 PM
Get a fresh copy of the cmps_index.php file and replace your index.php file with that. Then, instead of adding your HTML to that file just edit your 'adv_portal' template instead and add the HTML from your page in there.

rockabit
06-14-2005, 01:48 PM
Heh, wow! :D

Thanks a lot, it works great! And to think the solution was so simple...