Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: ahmadtrco on March 29, 2008, 10:24:45 AM

Title: Problem in Forum if any php file include in index.php at end!
Post by: ahmadtrco on March 29, 2008, 10:24:45 AM
If we include any file at the end of index.php of forum then three problems come-on and from don't work properly problems are as fallows:

1.   Don't work v of boards "Jump to"   
2.   On reply any massage don't give massage "Preview" if we click on "Preview" button
3.   In [More Stats] if we click on any month of year don't show days stats preview

Is there any solution?

Yours truly,
Webmaster
Abu Ali
www.HazratSultanBahu.com
www.HaqBahu.com
Title: Re: Problem in Forum if any php file include in index.php at end!
Post by: Oldiesmann on March 29, 2008, 12:36:05 PM
The problem is due to the custom footer code you have above the main SMF footer. You are including an entire HTML document, complete with <html>, <head>, <body> tags. You only need to include the code in between <body> and </body> (excluding the body tags themselves).
Title: Re: Problem in Forum if any php file include in index.php at end!
Post by: ahmadtrco on April 03, 2008, 11:13:50 AM
I have successfully edited /Themes/default/index.template.php file and now our forum is working well and all three problems solved

Yours truly,
Webmaster
www.hazratsultanbahu.com/forum