adding some PHP - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Community Archive (https://community.mybb.com/forum-106.html) +--- Forum: Archived Forums (https://community.mybb.com/forum-143.html) +---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html) +----- Forum: MyBB 1.2 Series (https://community.mybb.com/forum-3.html) +------ Forum: MyBB 1.2 General Support (https://community.mybb.com/forum-4.html) +------ Thread: adding some PHP (/thread-543.html) |
adding some PHP - guillaume.lafrance - 2004-08-25 I want to have a PHP code at the top of every webpage (before the <html> tag) and another PHP code before the </body> tag. Where do I go / what do I edit? Thank you. RE: adding some PHP - k776 - 2004-08-25 just edit all the files that you download in the zip pack (edit index.php, and all the others in the folder. What exactly is it that you want to do?? RE: adding some PHP - guillaume.lafrance - 2004-08-25 get a page generated in *** seconds on the bottom ef each page RE: adding some PHP - k776 - 2004-08-25 ok, well, whats the code you are using?? RE: adding some PHP - guillaume.lafrance - 2004-08-25 put before the <html>and put in the body
RE: adding some PHP - k776 - 2004-08-25 ok, well, I would have said add it to the header and footer template, unfortunatly, I dont think they support php :/ So, I would suggest this: before the <html> like you said, but put Then: in the header and footer template. Im not sure if this will work, you could try for one of the pages.
RE: adding some PHP - guillaume.lafrance - 2004-08-25 the page im using it for is at http://guillaumelforum.theglassprison.net/index.php (you can see the results for yourself) RE: adding some PHP - guillaume.lafrance - 2004-08-25 it just says Page generated in %f secs I know the script works see http://guillaumelforum.theglassprison.net/test.php RE: adding some PHP - Matt Light - 2004-08-25 I would recommend waiting for Chris to do this. There might already be a timer a you can print to the page. If there isn't he'd probably know the easiest way to accomplish what you are trying to do. And no... the templates don't support PHP so placing anything PHP related in a template besides variables will not work. RE: adding some PHP - k776 - 2004-08-25 hmm, ok, maybe putting the code into functions somewhere and calling it might work?? |