501

(6 replies, posted in PunBB 1.2 troubleshooting)

Hi,

I want to change the color of scrollbar. In html files I'm used in puting this script:

BODY {
scrollbar-face-color: #FFCE01;
scrollbar-shadow-color: #000000;
scrollbar-highlight-color: #000000;
scrollbar-3dlight-color: #000000;
scrollbar-darkshadow-color: #000000;
scrollbar-track-color: #FFFFFF;
scrollbar-arrow-color: #000000;
}

I put this script in the css file but it had no effect.
Can I use this script with punbb. If yes, where and in which file do I have to put it to make it work?

Thanksfully,

Ludo

502

(14 replies, posted in PunBB 1.2 troubleshooting)

Rickard wrote:

I honesly don't have any idea why this is happening. It's hard to diagnose the problem "from here" if you know what I mean. AFAIK you're the only one having this problem.

I understand you don't want to loose too much time with me beceuse I'm the only one to have that kind of problem. I can understand that whithout any problems. I thank you for the time you gave me.
BUT, who else that PUNBB developper would be able to solve my problem?

It's a very anoying problem. For example when a user write an e-mail to another with forum mailer, the sender appears to be me (the from). It's not a problem affecting only the process of pass forgotten.

Finally, I can't understant why a simple script you gave me for example(see below) works perfectly and PUNBB does not. Is it impossible to use the same script in PUNBB?

<?php

mail('your@email.com', 'Test', 'Testing...', 'From: blaha@example.com');
exit('Mail sent');

?>

If it can help to solve the problem, I'm ready to give you access to my ftp and to make you become temporarly administrator.

Thanksfully,

Ludo

503

(14 replies, posted in PunBB 1.2 troubleshooting)

I've modified the punmail fonction as you told me.
Unluckily, it doesn't work, I've always got the same FROM.
I also must say that in the e-mail reveived, at the beginning, when I asked for a new pass, I had that:

"MIME-Version: 1.0

Content-transfer-encoding: 8bit

Content-type: text/plain; charset=iso-8859-1

X-Mailer: PunBB Mailer
Message-Id: <20040630082429.87687931D2@perso0.free.fr>
X-Spam-Check: DONE|type 2&3|H 0.000271995
X-Remote-Ip: 212.27.40.248
X-Remote-Reverse: perso0.free.fr
"

Usually there was not that

Any idea?

Ludo

504

(14 replies, posted in PunBB 1.2 troubleshooting)

Rickard wrote:

Ok, try this. Create a new php script that contains this:

<?php

mail('your@email.com', 'Test', 'Testing...', 'From: blaha@example.com');
exit('Mail sent');

?>

Does that work as expected? You have to replace your@email.com with your actual e-mail address (duh!).

This worked as expected. Indeed, the FROM is the one I defined.

Ludo

505

(14 replies, posted in PunBB 1.2 troubleshooting)

Rickard wrote:

Just to be sure, you haven't entered an SMTP server in the admin interface, right?

Absolutely sure. Even if I had done it, remember my webhoster has desactivated the smtp fonction, (fsockopen desactivated on the server) so I would have got an error message "can't connect....)

Ludo

506

(14 replies, posted in PunBB 1.2 troubleshooting)

Rickard wrote:

Regarding the hardcoding of the reply-to adress, open up email.php and look for

$from = $pun_config['o_board_title'].' '.$lang_common['Mailer'].' <'.$pun_config['o_webmaster_email'].'>';

And replace it with e.g.

$from = 'bla@example.com';

or whatever you want.

I succeded in modfying what you told me to do.

But always the same problem. The e-mail adress I put after $from= doesn't appear. It's always the e-mail adress corresponding to my user account at my webhoster which appears.

Any other idea?

Thanks,

Ludo

507

(14 replies, posted in PunBB 1.2 troubleshooting)

Rickard wrote:

Try editing email.php and hardcoding the reply-to address in the call to mail().

I'm able to edit email.php but what do you mean by hardcoding. It seems too hard for me. I don't know what I must modify in this file.

Rickard wrote:

I can't see why you would want that though. E-mails sent from the forum shouldn't be replied to.

You say "shouldn't" and not "can't". And that's the problem. The e-mail adress which appears is my personal adress and I don't want to receive any mail from users to this adress. Moreover, an adress like forum@...com would be better.

I'm sorry again if I ask too much questions but I'm very interested in using PunBB forum because it seems to be a good one and reliable.

Thanks,

Ludo

508

(14 replies, posted in PunBB 1.2 troubleshooting)

No one can help me?

I can't believe that.

509

(14 replies, posted in PunBB 1.2 troubleshooting)

Hi,

I've already written a post but I haven't obtained simple solution to solve my problem.
So, I sum up.

My webhoster doesn't allow using smtp (fsockopen desactivated on the server).

So I use the local method which works but not as I Want it to.
Mails are send but the from is not the one I defined in the options. The adress which appears is the default one for my webhoster. I don't want forum users to know my real adress so that's why I want an adress like forum@...com appears.

To be sure that php works on the server I've made a test with this:

In an html page I put this:

<form method="POST" action="nadform.php3" name="AVIS">
<input type="hidden" name="champ8[]" value="aucune">
<table width="100%" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
<tr>
<td width="817">
<p align="center">
<font face="Verdana" style="font-size: smaller" class=link2>Votre e-mail</font><font face="Verdana"><br>
<small><input type="text" name="champ1" size="20"></small></font></p>

<p align="center"><font face="Verdana" style="font-size: smaller" class=link2>Objet de votre message</font><font face="Verdana"><br>
<small><input type="text" name="champ2" size="20"></small></font></p>

<p align="center"><font face="Verdana" style="font-size: smaller" class=link2>Votre message</font><font face="Verdana"><br>
<small><textarea rows="4" name="champ3" cols="40"></textarea></small></font></p>

</td>
<td width="25">
 </td>
</tr>
</table>
<p align="center"> </p>
<p align="center"><small><font face="Verdana">
<input type="submit" value="Envoyer" class=link3 name="envoyer" onClick="this.value='Patientez...'" style="border-style: solid; border-width: 1; background-color: #10315A"> </font></small> <br>
<br>
</p>
</form>

Then this is the nadform file which is called in the page:

<?
$MailTo = "administrateur@xxxxx.net"; //adresse à laquelle sera envoyé le contenu du formulaire
$MailSubject = "$champ2"; //texte qui va figurer dans le champ "sujet" du email
$MailHeader = "From: $champ1"; //adresse email qui va figurer dans le champ "expéditeur" du email et qui peut être remplacé par la variable "$champx" ("$champ3").

/* Les routines suivantes permettent à chacune des variables de prendre la valeur des champs du formulaire et de les stocker ensuite dans la variable globale MailBody qui constituera le corps du message */

$Envoi = 1; //initialisation de la variable envoi à 1

if ($champ1 == ""){ //nom du champ1
echo("<center class=link2><p> </p>Vous n'avez pas saisi d'email</font><br>"); //message qui s'affiche si le visiteur n'a pas rempli ce champ
$Envoi = 0; //si le champ1 n'a pas été rempli, la variable envoi prend la valeur de 0
}
else {
$MailBody = "Question 1 : $champ1\n"; //si le champ1 contient de l'information, elle est stockée dans la variable MailBody
}
if ($champ2 == ""){
echo("<center class=link2><p> </p>Vous n'avez pas mis d'objet pour le message</font><br>");
$Envoi = 0;
}
else {
$MailBody .= "Question 2 : $champ2\n";
}
if ($champ3 == ""){
echo("<center class=link2><p> </p>Vous n'avez pas écrit de message</font><br>");
$Envoi = 0;
}
else {
$MailBody .= "Question 3 : $champ3\n";
}

//Envoi du message

if ($Envoi == 1) { //vérification que la variable envoi est bien à 1
mail($MailTo, $MailSubject, $MailBody, $MailHeader); //envoi du message
echo("<center class=link2><p> </p>Votre message a bien été envoyé.<br>Nous y répondrons dès que possible s'il y a lieu</font>"); //affichage d'un message de confirmation.
}
?>


So this script works perfectly on my sever and I can define the adress sender I want.

So what's the problem with punbb the best forum? Why a so simple php script works whereas punbb do not?

For information you can consult php.info about my server here: http://ldevergne.free.fr/test.php

I'm really waiting help from everybody here because I'm not a specialist in php langage.

THanks,

Ludo

510

(25 replies, posted in PunBB 1.2 troubleshooting)

ok. It's too hard for me.
I'll try to obtain an answer with a new post.

Thank you for all.

Respectfully,

Ludo

511

(25 replies, posted in PunBB 1.2 troubleshooting)

Hi,

So I tell you what I made and what I obtained.
As you asked me to, I have created a file named test.php in which I put this:

<?php
$email = <<<EOMAIL
From: ludo <ludo at free d0t fr>
To: ludo <ldevergne at free d0t fr>
Subject: Test

testing

EOMAIL;
$fh = popen('/usr/sbin/sendmail -t -i', 'w');
fwrite($fh, $email);
fclose($fh);

?>

I've uploaded this file to the root of my website.

I've executed it entering ldevergne.free.fr/test.php

This is what I obtained:

Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/free.fr/1/7/ldevergne/forum/test.php on line 11

Warning: fclose(): supplied argument is not a valid stream resource in /var/www/free.fr/1/7/ldevergne/forum/test.php on line 12

Waiting for your reply,

Ludo

512

(10 replies, posted in PunBB 1.2 troubleshooting)

You're absolutely right.
The solution you gave me is the good one.
I thank you a lot!

Respectfully,

Ludo

513

(25 replies, posted in PunBB 1.2 troubleshooting)

pgregg wrote:

Hmm, ok - this might work:

$email = <<<EOMAIL
From: ludo <ludo at free dot fr>
To: ludo <ldevergneat free dot fr>
Subject: Test

testing

EOMAIL;
$fh = popen('/usr/sbin/sendmail -t -i', 'w');
fwrite($fh, $email);
fclose($fh);

If this works, then there is your method for sending emails...

Sorry to have problem to understand but In which file must I ad or modify this code?

PS: please could you edit your last post and modify the email adress you write in order to avoid spam. For example, you can write ludo at free dot fr and ldevergne at free dot fr. I thank you for this.

514

(10 replies, posted in PunBB 1.2 troubleshooting)

Rickard wrote:

I might be misunderstanding you, but wouldn't that be .punhot in the css files?

Apparently no. When I modify .punhot it has no effect on the text "New reports" and "10 last zapped reports" in the reports part. It doesn't change the caracter color of these words.

It must be another variable. But which?

515

(10 replies, posted in PunBB 1.2 troubleshooting)

Hi,

you haven't answered my first question so I try to be more precise.

Go to admin, then to reports
you've got a message in head : "New reports" then you have also a message in other head "10 last zapped reports".
My question is: how to change this character color in head, but only this police color. Which variable in the css? I've got this problem because, in white, characters are not readable on a yellow background.

I've looked in the css but I can't find which variable I must modify. I also looked in the faq file but I've seen nothing to solve my problem.

I think you certainly what I must modify.

Thanks,

Ludo

516

(25 replies, posted in PunBB 1.2 troubleshooting)

Hi,

It's a choice made by my webhoster. It's ot an error. They assume it.
They made this choice because of people who abused with sending lots of mail whith php. There were problems because it was too much. Since this moment, only
<FORM METHOD="POST" ACTION="http://perso0.free.fr/cgi-bin/form2mail.pl">
works.
It's a free webhoster so I can't complain

Apparently this is the php info for my webhoster :
http://free.box.free.fr/info.php3

Ludo

517

(25 replies, posted in PunBB 1.2 troubleshooting)

sorry but I don't know what shell access is.... so I think I don't have any access unless I would certainly know it.

Second, I had a look at curl but it's very hard for me. I just wanted to have an easy solution for my problem. Am I the only one to have this kind of problem?

Thanks,

Ludo

518

(10 replies, posted in PunBB 1.2 troubleshooting)

Yes police color.

Euuuhhh, sorry I'm french. I wanted to say caracter color... You understand?

Concerning the second point, do you accept to give me your main.tpl file so that it could be more simple for me?

respectfully,

Ludo

519

(10 replies, posted in PunBB 1.2 troubleshooting)

Hi,

I can't find how to change the police color of a part.
Go to admin, then to reports
you've got a message : "New reports" then you have also a message "10 last zapped reports".
My question is: how to change this police color, but only this police color. Which variable in the css?

Second question: I've seen that on this forum (punbb.org) there is a link "go back to punbb.org" on the same line as the menu. I want to ad link exactly like that.
What must I modify? which file?

thanks,

Ludo

520

(25 replies, posted in PunBB 1.2 troubleshooting)

RNilsson wrote:

I've had some problems dealing with mail() and the 5:th arg in a win32 dev env.
Just FYI.

I don't understand what you mean. I prefer waiting an answer from Rickard or pgregg

Ludo

521

(25 replies, posted in PunBB 1.2 troubleshooting)

Hi,

I've forgotten to tell you that the webserver on which is intalled punbb does not allow mail with php but only with cgi. For example, my provider give this script to send mail :
<FORM METHOD="POST" ACTION="http://perso0.free.fr/cgi-bin/form2mail.pl">

So I think the problem is here but I don't know how to resolve it.

To reply to your demand this is for example the route used by email to be delivered via this route. This is the header.

Return-Path: <ldevergne ats free dot fr>
Delivered-To: online.fr-ldevergne ats free dot fr
Received: (qmail 1676 invoked from network); 24 Jun 2004 13:09:05 -0000
Received: from b1.ovh.net (HELO mail26.ha.ovh.net) (213.186.33.51)
  by mrelay5-1.free.fr with SMTP; 24 Jun 2004 13:09:05 -0000
Received: (qmail 22088 invoked by uid 508); 24 Jun 2004 13:09:04 -0000
Delivered-To: oyre.net-administrateur ats oyre dot net
Received: (qmail 22086 invoked by uid 503); 24 Jun 2004 13:09:03 -0000
Received: (QMFILT: 1.0); 24 Jun 2004 13:09:03 -0000
Received: from perso0.free.fr (212.27.40.248)
  by mx1.ovh.net with SMTP; 24 Jun 2004 13:08:58 -0000
Received: by perso0.free.fr (Postfix, from userid 33)
    id 8D77A92F3A; Thu, 24 Jun 2004 15:08:52 +0200 (MEST)
To: administrateur ats oyre dot net
From: ldevergne ats free dot fr
Subject: Demande de nouveau mot de passe
XOriginateFrom: http://ldevergne.free.fr
From: Oyre dot net@perso0.free.fr:le forum Mailer <forum ats oyre dot net>
Date: Thu, 24 Jun 2004 15:08:53 +0200
MIME-Version: 1.0
Content-transfer-encoding: 8bit
Content-type: text/plain; charset=iso-8859-1
X-Mailer: PunBB Mailer
Message-Id: <20040624130852.8D77A92F3A@perso0.free.fr>
X-Spam-Check: DONE|type 2&3|H 0.000109481
X-Remote-Ip: 212.27.40.248
X-Remote-Reverse: perso0.free.fr


respectfully,

Ludo

522

(25 replies, posted in PunBB 1.2 troubleshooting)

Rickard wrote:

Could you give me an example of where this happens. I just can't seem to find anything wrong with the code.

I don't know what wrong with your SMTP setup. Have you entered a username and a password? Are you sure you need one to just send e-mail?

It happens for example when a user has forgotten his pass and ask for receiving a new one by mail.

As I told you, I've tried whith a username and a password and it doesn't work. I also tried without password and username and it doesn't work yet. It's strange because as I told you, with outlook my username and pass make it work.

Respectfully,

Ludo

523

(25 replies, posted in PunBB 1.2 troubleshooting)

Rickard wrote:

What address appears in the mails then?

The adress e-mail which appears is the default one used by my host.
So, as my web site is http://ldevergne.free.fr/forum e-mails are sent from ldevergne at free dot fr

Thanks for your answers,

LD

PS: I ad that i've tried with others smtp (with or without authentification, with or without pass) and always the same problem occured :
"an error was encountered, could not connect to smtp host"
What's the problem with smtp?
I also ad that my smtp works with outlook. (smtp.free.fr)

524

(25 replies, posted in PunBB 1.2 troubleshooting)

Rickard wrote:

1. Currently no.

2. Go to admin/options and edit "Webmaster e-mail".

That's what I do but the adress i enter is not the adress which appear in sent mail. I also tell you that I do not use any smtp because when I do there is an error.
So it doesn't work as I want it to.

Have you got a solution

525

(25 replies, posted in PunBB 1.2 troubleshooting)

Hi,

I'm french. So please don't be surprised if I make mistakes.
As I said in the title, I have 2 questions:

1 - I use the pack for french langage. The problem is that only in the admin part the langage is english yet. How can I modify the langage for the admin part?

2 - I've got a second problem with the mailer. Is it possible to specify the name which will appear (from) in the mails which will be sent? In the admin part?Apparently, at the moment I've got a default name I would like to change.

Really thanks for you answers,

Respectfully,

Ludo