Advertisement:

Author Topic: Problem in Forum if any php file include in index.php at end!  (Read 3371 times)

Offline ahmadtrco

  • Semi-Newbie
  • *
  • Posts: 48
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

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,937
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Problem in Forum if any php file include in index.php at end!
« Reply #1 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).
Michael Eshom
Cincy Space - now open!

Offline ahmadtrco

  • Semi-Newbie
  • *
  • Posts: 48
Re: Problem in Forum if any php file include in index.php at end!
« Reply #2 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