Help - Search - Members - Calendar
Full Version: Adding Php Files To A Forum
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
whoisJDEN
Hi

I recently downloaded and Installed iForum from http://iforum.iwebkit.com, and I wanted to know if I could make another PHP file viewable only when you are logged in. And if they are not have the login thingo.

Thanks

JDEN
whoisJDEN
Anyone???

JDEN
Andrew
You're probably better off asking the creators of the script. If they have a forum, or some way of contacting them it would be the best way (since they made it). If not contact me and i'll see if I can help. Probably just have to find their auth code and put it on the page you want. (but depending on how many files there are it could be quite the task searching for it).
whoisJDEN
QUOTE(Trippin7464 @ Jan 15 2009, 06:21 AM) *
You're probably better off asking the creators of the script. If they have a forum, or some way of contacting them it would be the best way (since they made it). If not contact me and i'll see if I can help. Probably just have to find their auth code and put it on the page you want. (but depending on how many files there are it could be quite the task searching for it).


I worked it out

xxxxxx is content for logged in

yyyyyy is content for logged out
CODE
<?
include("include/session.php")
?>

<?
if($session->logged_in){
?>

xxxxxxxx

<?
}
else{
?>

yyyyyyyy




JDEN
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.