Problem and one solution with Modul contactowner

slart

Joined: 2013-11-11
Posts: 112
Posted: Sun, 2013-11-24 14:17

Hi, i have installed the modul Gallery3:Modules:contactowner. The newest is the contactowner_2.zip.

The Problem is a false labeling and display the Owner Emailaddy in the Field "From".

I have the Gallery3 and the Dark Canvas Theme.

I have modified the File:
/modules/contactowner/controllers/contactowner.php

Line 50:
modify:
->label(t("You e-mail address:"))
delete:
->value(identity::active_user()->email):

delete Line 46 to 48:
$sendmail_fields->input("email_to")
->label(t("To:"))->value($str_to_name)
->id("g-contactowner-to-name");

and in the Contact Owner Setting Page write the "Owner Email Address".

Special Feature:
The contact formulare can linked in the footer with Gallery3:Modules:purifier and html code
<a href="http://******.***/contactowner/emailowner">Contact</a>

Than you can remove "Contact Owner" from sidebar. (You Lost the feature to send directly from a album or fotopage with the link from this site in the email.)
and only write in the Contact Owner Setting Page you Email Adress in the field "Owner Email Address".

Test it!