Many Re: Re: etc

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
windsock
Posts: 3
Joined: Tue Nov 07, 2006 3:17 pm

Many Re: Re: etc

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
Locked