Re: how do u include php code in the add pages feature
I tried something else in the meantime, you're gonna be proud of me since I know squat about php :) LOL
I took your code and between the lines for STemplate::display('header.tpl');STemplate::displa y('footer.tpl');, I put in my html and other php code to make a "contact us" page that runs on php. I was careful to put in the ?> statements and everything.
Worked like a charm! The header now has the login stuff on it like it should. I'll be trying the email templates thing too. That's quite ingenious.
Here's the code for extra pages that I'm using...
Create a .php page and call it whatever you want like "links.php" and put this in it:
Code:
<?php
session_start();
include("include/config.php");
include("include/function.php");
STemplate::display('header.tpl');
?>
YOUR SITE CONTENT HERE BLAH BLAH BLAH
<?php
STemplate::display('footer.tpl');
?>
Re: how do u include php code in the add pages feature
OK, now that I'm a "pro" at creating pages outside the ACP's "add pages" thingie, does anybody know how to get it so that a page can be accessed only by members? The problem is with the new RTE, I can't have <object>, <textarea> and <form> tags in it and I need to have this, especially on pages that are for members only.
Re: how do u include php code in the add pages feature
Re: how do u include php code in the add pages feature
I'm really new at this php stuff but basically by creating the php page, that will allow the added pages to function like all the other pages? I want to add a comment box just like the one on the video page. I copied the code but it won't work. I can see it on my page though.
Re: how do u include php code in the add pages feature
The comments box, I believe, is related to the user/video/group ID information on the page where it exists...like their profile, or the video or the group etc...so you might want to find a different script for that.
Re: how do u include php code in the add pages feature
Yeah..I'm working on getting a comment script now. I'll let you know how it turns out.
Re: how do u include php code in the add pages feature
I tend to agree with you.
You just saved me a bunch of time and headaches!!!
Thank you soooo much for creating this!!! 8)