Email Display Name

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Ideas Centre
StoarceCreierul
Registered User
Posts: 50
Joined: Sat Mar 27, 2010 1:47 pm
Contact:

Re: Email Display Name

Post by StoarceCreierul »

This is the best thing that happened to my board, THANK YOU !
Stoarce Creierul - a splendid example of PhpBB and WordPress integration done with the WP-United MOD.

User avatar
Spaldo
Registered User
Posts: 53
Joined: Sun Nov 07, 2004 9:28 pm

Re: Email Display Name

Post by Spaldo »

I am just about to try this... It has bugged me since I installed phpBB3!
Image

User avatar
AmigoJack
Registered User
Posts: 5697
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Email Display Name

Post by AmigoJack »

Instead of hardcoding that name you can also use your board name intead.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

User avatar
ceil210
Registered User
Posts: 45
Joined: Sun Oct 30, 2011 4:31 pm

Re: Email Display Name

Post by ceil210 »

I am sorry but I can't find any of the strings in the code of the file specified :(
If you hear a voice within you say 'you cannot paint,' then by all means paint, and that voice will be silenced.
--Vincent Van Gogh

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69622
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Email Display Name

Post by KevC »

line 402
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

User avatar
ceil210
Registered User
Posts: 45
Joined: Sun Oct 30, 2011 4:31 pm

Re: Email Display Name

Post by ceil210 »

Perfect, thank you :)
If you hear a voice within you say 'you cannot paint,' then by all means paint, and that voice will be silenced.
--Vincent Van Gogh

dsfdfgdxb
Registered User
Posts: 8
Joined: Sat Mar 16, 2013 5:56 am

Re: Email Display Name

Post by dsfdfgdxb »

TiTex wrote:it's very simple to do this ...

open inclues/functions_messenger.php
find

Code: Select all

    /**
    * Return email header
    */
    function build_header($to, $cc, $bcc)
    { 
in this function find

Code: Select all

$headers[] = 'From: ' . $this->from; 
replace with

Code: Select all

//$headers[] = 'From: ' . $this->from;
$headers[] = 'From: Pixel and Grain - Forums ' . $this->from; 
THIS WORKED PERFECTLY!!
:D :D :D :D :D :D :D

STICKY????

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Email Display Name

Post by RMcGirr83 »

It is hard coded so more than likely not. Curious though as to why it wasn't suggested to use this

Code: Select all

$headers[] = 'From: ' . $config['sitename'] . ' ' . $this->from;
which will insert the name of the forum in the header instead of having it hard coded.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
AmigoJack
Registered User
Posts: 5697
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Email Display Name

Post by AmigoJack »

RMcGirr83 wrote:Curious though as to why
Because both your and TiTex's approaches are erroneous - the text needs to be encoded. That's why I linked to another topic while already addressing the hardcode issue.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.

abdullakushtia
Registered User
Posts: 134
Joined: Sat Jan 25, 2014 8:27 am
Location: Bangladesh
Contact:

Re: Email Display Name

Post by abdullakushtia »

TiTex wrote:it's very simple to do this ...

open inclues/functions_messenger.php
find

Code: Select all

    /**
    * Return email header
    */
    function build_header($to, $cc, $bcc)
    {
in this function find

Code: Select all

$headers[] = 'From: ' . $this->from;
replace with

Code: Select all

//$headers[] = 'From: ' . $this->from;
$headers[] = 'From: Pixel and Grain - Forums ' . $this->from;

thanks for share! It's work. :D

Locked

Return to “[3.0.x] MOD Requests”