Then to change things like the layout you have to edit two files.
2 2006-04-07 12:38
Topic: Forum integration (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?
3 2006-04-07 03:40
Re: Showing forums on other page (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Also, is there a way i can use the same login system for two forums?
4 2006-04-07 03:38
Topic: Showing forums on other page (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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.
5 2006-03-26 04:49
Re: Can't run PHP scripts. (10 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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?
6 2006-03-26 01:57
Re: Can't run PHP scripts. (10 replies, posted in PunBB 1.2 modifications, plugins and integrations)
My code works on all other pages except the forums page, it doesn't make sense!
7 2006-03-25 23:51
Re: Can't run PHP scripts. (10 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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.
8 2006-03-25 11:51
Re: Can't run PHP scripts. (10 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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.
9 2006-03-25 04:03
Topic: Can't run PHP scripts. (10 replies, posted in PunBB 1.2 modifications, plugins and integrations)
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.