Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
Would it be possible to show only the numbers of replies but hide their subjects on the front page?
hiding replies
solved
Ok, I think I managed to do it just deleting these lines of code... might try it for a while just to see how it works.
$threads[$i] .= "<!--s $count--><ul><li><a href=\"msg/$count.$settings[extension]\">$subject</a> - <b>$name</b> <i>$date</i>\n";
$threads[$i] .= "<!--o $count--> (0)\n";
$threads[$i] .= "</li></ul><!--k $count-->\n";
But now I'm on to something more difficult: is there a way to limit the levels of the thread, like "no replies to a reply"?
$threads[$i] .= "<!--s $count--><ul><li><a href=\"msg/$count.$settings[extension]\">$subject</a> - <b>$name</b> <i>$date</i>\n";
$threads[$i] .= "<!--o $count--> (0)\n";
$threads[$i] .= "</li></ul><!--k $count-->\n";
But now I'm on to something more difficult: is there a way to limit the levels of the thread, like "no replies to a reply"?
Never mind, did it!
$threads = file_get_contents("threads.txt");
$pos = strpos($threads, '<!--o '.$count.'-->');
if ($pos !== false)
{
$content .= '</p>
<p><font color="#996600">'.$comments.'</font color="#996600"></p>
<hr>
<p align="center"><b></b></p>
<ul>
<!-- zacni --><p></p>
</ul>
<hr></td>
</tr></table>
</center></div>
<p align="left"><a name="new"></a><b></b></p>
<div align="center"><center>
<table border="0"><tr>
<td>
<form method=post action="'.$settings['mboard_url'].'/mboard.php" name="form" onSubmit="return mboard_checkFields();">
<p><input type="hidden" name="a" value="reply">comentário<br><input type=text name="subject" value="Re: '.$subject.'" size=30 maxlength=100><br><br>autor<br><input type=text name="name" size=30 maxlength=30><br><br>
texto<br><textarea cols=25 rows=7 name="message"></textarea>
<input type="hidden" name="orig_id" value="'.$count.'">
<input type="hidden" name="orig_name" value="'.$name.'">
<input type="hidden" name="orig_subject" value="'.$subject.'">
<input type="hidden" name="orig_date" value="'.$date.'"><br>';
$content.='
<p><input type=submit value="Enviar">
</form>
</td>
</tr></table>
</center></div>
';
}
else
{
$content .= '</p>
<p><font color="#996600">'.$comments.'</font color="#996600"></p>
<hr>
<p align="center"><b></b></p>
<ul>
<!-- zacni --><p></p>
</ul>
<hr></td>
</tr></table>
</center></div>
<p align="left"><a name="new"></a><b></b></p>
<div align="center"><center>
<table border="0"><tr>
</tr></table>
</center></div>
';
}
$threads = file_get_contents("threads.txt");
$pos = strpos($threads, '<!--o '.$count.'-->');
if ($pos !== false)
{
$content .= '</p>
<p><font color="#996600">'.$comments.'</font color="#996600"></p>
<hr>
<p align="center"><b></b></p>
<ul>
<!-- zacni --><p></p>
</ul>
<hr></td>
</tr></table>
</center></div>
<p align="left"><a name="new"></a><b></b></p>
<div align="center"><center>
<table border="0"><tr>
<td>
<form method=post action="'.$settings['mboard_url'].'/mboard.php" name="form" onSubmit="return mboard_checkFields();">
<p><input type="hidden" name="a" value="reply">comentário<br><input type=text name="subject" value="Re: '.$subject.'" size=30 maxlength=100><br><br>autor<br><input type=text name="name" size=30 maxlength=30><br><br>
texto<br><textarea cols=25 rows=7 name="message"></textarea>
<input type="hidden" name="orig_id" value="'.$count.'">
<input type="hidden" name="orig_name" value="'.$name.'">
<input type="hidden" name="orig_subject" value="'.$subject.'">
<input type="hidden" name="orig_date" value="'.$date.'"><br>';
$content.='
<p><input type=submit value="Enviar">
</form>
</td>
</tr></table>
</center></div>
';
}
else
{
$content .= '</p>
<p><font color="#996600">'.$comments.'</font color="#996600"></p>
<hr>
<p align="center"><b></b></p>
<ul>
<!-- zacni --><p></p>
</ul>
<hr></td>
</tr></table>
</center></div>
<p align="left"><a name="new"></a><b></b></p>
<div align="center"><center>
<table border="0"><tr>
</tr></table>
</center></div>
';
}
By the way, Mr. Klemen, congrutulations for the mboard! I've been messing around with the code (but it's working, so far... ), to make it even simpler, for a "miniboard" version. If you'd like to take a look... www.neilisboa.com.br/indexnovo
best regards
best regards
Yes, it is "mini", I see now why you needed to hide replies
Enjoy the script.

Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools