could you replace them and then give me the script how it should be? because i have tried doing that
1 2005-11-17 22:09
Re: index.php?act=something links dont work? (9 replies, posted in PunBB 1.2 troubleshooting)
2 2005-11-17 21:36
Re: index.php?act=something links dont work? (9 replies, posted in PunBB 1.2 troubleshooting)
it you could help me out that would be much aprechiated
3 2005-11-17 19:58
Re: index.php?act=something links dont work? (9 replies, posted in PunBB 1.2 troubleshooting)
ok now i need more help
i am now using
<?php
if (isset($_GET['page']) && isset($act) &&
file_exists('pages/'.$act.'/'.$_GET[page].'.php')) {
include 'pages/'.$act.'/'.$_GET[page].'.php';
}
elseif(file_exists("pages/".$act."/index.php") && !$_GET['page']) {
include("pages/".$act."/index.php");
}
elseif(!$act && !$_GET['page']) {
include("pages/news/index.php");
}
else {
include("pages/news/index.php");
}
?>
and the dyanamic links do not work, please help, thanks
Joel
4 2005-11-11 23:38
Re: index.php?act=something links dont work? (9 replies, posted in PunBB 1.2 troubleshooting)
worked Thanks!
5 2005-11-11 22:08
Re: index.php?act=something links dont work? (9 replies, posted in PunBB 1.2 troubleshooting)
<?php switch($act){ default: include('pages/news.php');
break; case "1": include('pages/affiliates.php');
} ?>
6 2005-11-11 20:59
Topic: index.php?act=something links dont work? (9 replies, posted in PunBB 1.2 troubleshooting)
hey i have been using punbb and love it, but when i recently was working on my site i couldn't get index.php?act=affiliates to work, i know punbb is blocking it but could someone tell me how to fix it so i can
i have this included in my index.php page in my root
<?
define('PUN_ROOT', './forums/');
require PUN_ROOT.'include/common.php';
$punbb_path = $_SERVER['SCRIPT_FILENAME'];
$punbb_split = explode('/',$punbb_path);
$punbb_page = end($punbb_split);
$punbb_count = substr_count($punbb_path,'/')-2;
$punbb_path = str_repeat('../',$punbb_count).'./forum/';
define('PUN_ROOT', "$punbb_path");
define('PUN_TURN_OFF_MAINT', 1); // if forums go down the site will not
thanks