xoops forums

krystinevo

Friend of XOOPS
Posted on: 2008/4/11 14:30
krystinevo
krystinevo (Show more)
Friend of XOOPS
Posts: 199
Since: 2004/6/29
#1

wf-downloads 2.05 - How to change subject line of notifications?

Hi everyone

In wf-downloads 2.05, is there a way I could change the subject line of the notification email/message to include the actual name of the file? Right now the subject line is "[Site Name] Downloads auto-notify : New file"

Users have suggested it would be helpful to know which file has been uploaded without having to go in and open the email.

Thanks in advance,

Kristine in Toronto
Everything is as it should be

Bender

Home away from home
Posted on: 2008/4/11 19:39
Bender
Bender (Show more)
Home away from home
Posts: 1899
Since: 2003/3/10
#2

Re: wf-downloads 2.05 - How to change subject line of notifications?

Hi Kristine,

you could check the file \wfdownloads\language\english\modinfo.php

Search for line 00157:
define('_MI_WFD_GLOBAL_NEWFILE_NOTIFYSBJ''[{X_SITENAME}] {X_MODULE} auto-notify : New file');


(should be line 157 most likely - since there were different versions of 2.05 in the old days it might slightly differ)

You can try to use
{FILE_NAME}
for placing the filename.

However i have no installation currently at hand so i can´t really check myself. I hope the variable is actually filled with the filename at that point in time.

If it doesn´t work you could post also on the wf-downloads forum.


[Edit]Any special reason why you did not update to wf-downloads 3.x yet? Some issues, features and security fixes were done over time.

(the usual reminder: as with any kind of update: backup db and files first)
Sorry, this signature is experiencing technical difficulties. We will return you to the sheduled signature as soon as possible ...

krystinevo

Friend of XOOPS
Posted on: 2008/4/11 19:49
krystinevo
krystinevo (Show more)
Friend of XOOPS
Posts: 199
Since: 2004/6/29
#3

Re: wf-downloads 2.05 - How to change subject line of notifications?

Bender, you're awesome! Remind me to name my first-born after you ;)

Thanks again, worked like a charm.

Kristine in Toronto
Everything is as it should be