Make New Topic from Main Page help requested - 04/27/2004 2:40 PM
What I am looking for is code for how to make a New Topic in a Forum from the forum main page. There would be an arrow on the forum page like this, linking to newpost.php:
[]http://www.roxydollboard.com/temporary/examplenewtopic.jpg [/]
I was able to modify the ubbthreads.tmpl file to get the arrow to appear, but I would really appreciate it if someone can help me modify the ubbthreads.php file. I already tried this, but I need something more. I thank you in advance if you are able to help me!
// ---------------------------------------------------------------------
// We need to check and see if they have write privileges for this forum
$gsize = sizeof($Grouparray);
for ($i=0; $i <$gsize; $i++) {
if (strstr($CanWrite,"-$Grouparray[$i]-") ) {
$makepost = "yes";
break;
}
}
if ($makepost == "yes") {
$newpoststart = "<a href="{$config['phpurl']}/newpost.php?Cat=$Cat&Board=$Board&page=$page&view=$view&sb=$sb&o=$o">";
}
[]http:/
I was able to modify the ubbthreads.tmpl file to get the arrow to appear, but I would really appreciate it if someone can help me modify the ubbthreads.php file. I already tried this, but I need something more. I thank you in advance if you are able to help me!
// ---------------------------------------------------------------------
// We need to check and see if they have write privileges for this forum
$gsize = sizeof($Grouparray);
for ($i=0; $i <$gsize; $i++) {
if (strstr($CanWrite,"-$Grouparray[$i]-") ) {
$makepost = "yes";
break;
}
}
if ($makepost == "yes") {
$newpoststart = "<a href="{$config['phpurl']}/newpost.php?Cat=$Cat&Board=$Board&page=$page&view=$view&sb=$sb&o=$o">";
}