Page 1 of 1

Many Re: Re: etc

Posted: Fri Jan 12, 2007 2:26 pm
by windsock
Script URL:http://www.windsock.dk/mboard/mboard.php
Version of script: 1.22 from April 21, 2006
Hosting company:windsock.dk
URL of phpinfo.php:-
URL of session_test.php:-
What terms did you try when SEARCHING for a solution:

Write your message below:

Hi;Klemen
My forum is working god, and the members in our flight club is using the forum more and more.
http://www.windsock.dk/mboard/mboard.php

I have a added a search function, and after many different test I decide to use a simple search by Goggle. works perfect.
I have an additional question, from some of the users in the forum;
Before every topic Re: is added and if it's many topics it is allot of Re; Re; etc.
And to have a more clear vie of the forum this disturbing due to many topics.
My question is could I make the form value="Re: blank ? or how you suggest ?

<form method=post action="'.$settings['mboard_url'].'/mboard.php" name="form" onSubmit="return mboard_checkFields();">
<p><input type="hidden" name="a" value="reply"><b>Namn:</b><br><input type=text name="name" size=30 maxlength=30><br>
E-mail (om så önskas):<br><input type=text name="email" size=30 maxlength=50><br>
<b>Ämne:</b><br><input type=text name="subject" value="Re: '.$subject.'" size=30 maxlength=100><br><br>
<b>Meddelande:</b><br><textarea cols=50 rows=9 name="message"></textarea>

Thankful for a reply
Best regards Windsock/Peter Andersson

Posted: Fri Jan 12, 2007 3:05 pm
by Klemen
Hi,

You can try changing line 399 from

Code: Select all

<b>Subject:</b><br><input type=text name="subject" value="Re: '.$subject.'" size=30 maxlength=100><br><br>
to something like:

Code: Select all

<b>Subject:</b><br><input type=text name="subject" value="';
if (strpos($subject,'Re:') === false) {
	$content.='Re:'.$subject;
} else {
	$content.=$subject;
}
$content.='" size=30 maxlength=100><br><br>
be careful to use 3 equal signs (===). Haven't tested but should work.