1

(2 replies, posted in PunBB 1.2 troubleshooting)

Then to change things like the layout you have to edit two files.

2

(2 replies, posted in PunBB 1.2 troubleshooting)

I want to be able to show the forums on more than one page, if that's possible.

Is it?

Also, is there a way i can use the same login system for two forums?

I want to show some particular categories on other pages. Not the whole forums itself, just specific categories.

For example, i might want to have only the "Gaming" category on /gaming.php

Can I do that?


--


I would even be happy to be able to show the forums on more than one page, if that's possible.

Yeah, the download is perfect. However, is there a version of the exact same thing that will work externally to the forums, like on a different page of a website?

My code works on all other pages except the forums page, it doesn't make sense!

I did all those fixes and it didn't work.

I also tried: <pun_include 'login2.php> And when I view the source I actually see <pun_include 'login2.php'> in it.

The script doesn't work properly. For example:

In a normal webpage, the following code shows things depending on whether you're logged in or not.

<?php 
define('PUN_ROOT', './forum/'); 
require PUN_ROOT.'include/common.php';  

 
echo $pun_user['username']; 
?>

<?php
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_QUIET_VISIT', 1);


echo $pun_users['id']; 

if($pun_user['username'] == "Guest"){
    echo "  <a href=\"forum/login.php\"><u><font face=\"arial\" color=\"white\"><b>Login</u></a>   <a href=\"forum/register.php\"><font face=\"arial\" color=\"white\"><b><u>Register</u></a>   <a href=\"http://localhost/ausesports/forum/login.php?action=forget\"><font face=\"arial\" color=\"white\"><b><u>Forgot Password?</u></a>  ";
} else {
    echo("  <a href=\"forum/login.php?action=out&id=".$pun_user['id']."\"><u><font face=\"arial\" color=\"white\"><b>Logout</a>");
}

?>

But on the forums page it's ruined. It prints...

Login   Register   Forgot Password? "; } else { echo("  Logout"); } ?>

...in text. With some of the links not working.

I cannot run PHP scripts. I have tried to use the <pun_include "filename"> function and the normal PHP include function.

When I do it nothing shows up at all, and they are in the right directory.