In the contact us page i would like to add any kind of text above the form. I dont know, the adress, business hours, a google map....in a way that admin can edit it easily !
Actually i have created another page and created a link to this one to use the form, but everything on one page would be more logical!
Hello Mike,
2en and 3rd are ok, but when I add the following code into includes/controllers/contact_us.ing.php
gives the following error.Code:Only registered members can view the code.
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /var/www/my.domain/httpdocs/includes/controllers/contact_us.inc.php on line 4
the line 4 it's
here is the code from line 1 into line 11PHP Code:
Only registered members can view the code.
is that correct?PHP Code:
Only registered members can view the code.
and in 1st thing you typed $deparments["deparment1"] are this correct? or must be department?
Last edited by Mike; May 20, 2013 at 03:41 AM.
Now, doesn't gives any error.
But in contact page, the select option is Empty, I already added the following phrases department1_name, department2_name into the language in admin panel, but shows as empty on contact page.
In admin: 1.jpg
In contact page: 2.jpg
the code below are placed in include tpl/controllers/contact_us.tpl
PHP Code:
Only registered members can view the code.
another mistake i see now in the php code (Name --change to--> name)
sorry for inconveniences, let me know in case it still have problemsPHP Code:
Only registered members can view the code.
still are same issues.
here is all my codes.
File: tpl/controllers/contact_us.tpl
File: template/tpl/controllers/contact_us.tplPHP Code:
Only registered members can view the code.
I did everything as you said, but still shows as empty in select option.PHP Code:
Only registered members can view the code.
Sorry, there is misspelling again (. we see what happens when you do not test code =) Problem was in {$department.name} variable it was {$deparment.name}
Here is the corrected code.
PHP Code:
Only registered members can view the code.
Hello Mike F.
Now everything is looking fine, only one thing it doesn't working as will.
If I choose any one in Contact forum department1 or department2, I receive the email to Site main email of my website (admin@domian.com) not to department1 ===> info@domain.com.PHP Code:
Only registered members can view the code.
How we can fix it.
I think the line is not changed as i described in first message ?
PHP Code:
Only registered members can view the code.