Results 1 to 5 of 5
  1. #1

    mod_layout with PHP forum problem

    Hi!
    I'm using mod_layout and I have some problems with major bulletin board PHP scripts - phpBB and Invision board. When I am inserting any code with mod_layout I am getting the following:
    
    No errors, no new records in apache or PHP logs, absolutely nothing? Anyone faced this problem? Any help will be appreciated.

  2. #2
    Paste the code you are inserting. You must remember PHP scripts are parse as PHP. So whatever you insert must be something that will appear even after parsing.
    Like us on Facebook to qualify for discounts!
    http://www.sprintserve.net
    Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting |
    Services: | Managed Multiple Cores 64bit Servers | Server Management |

  3. #3
    Join Date
    Jan 2002
    Location
    New York, NY
    Posts
    322
    Change mod_layout from using the header command to the footer (on php pages) and that should fix it.
    █ Alex Melen. CO-CEO at Melen, LLC - a NJ Digital Media Company.
    █ Web Hosting, Internet Marketing and Web Development Solutions.
    █ Multiple IP SEO Hosting & Servers (since 2009): http://www.hostseo.org.
    █ Shared cPanel Web Hosting & Servers (since 1997): http://www.t35.com.

  4. #4
    Join Date
    Jan 2002
    Location
    New York, NY
    Posts
    322
    Or better yet, don't let mod_layout touch php pages, and use the php function php footer or header to add content globally. (its added into httpd.conf)
    █ Alex Melen. CO-CEO at Melen, LLC - a NJ Digital Media Company.
    █ Web Hosting, Internet Marketing and Web Development Solutions.
    █ Multiple IP SEO Hosting & Servers (since 2009): http://www.hostseo.org.
    █ Shared cPanel Web Hosting & Servers (since 1997): http://www.t35.com.

  5. #5
    It doesn't work with any code I insert - even if it is a space or some text. I've tried to use php_auto_prepend, but it does not work with forums - it has some problems with headers and I keep getting the page telling me that headers are already sent. What I want to insert is a little table; I have 2 ways to insert it: mod_layout and auto_prepend, but none of these works with bulletin board software.
    I've tried to use it like footer - it does not help I am getting the same  with mod_layout

  6. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •