Advertisement:

Author Topic: Advanced Contact Form  (Read 77329 times)

Offline SONSiVRi

  • Full Member
  • ***
  • Posts: 418
    • Lair Of Knowledge
Re: Advanced Contact Form
« Reply #80 on: March 01, 2010, 02:34:30 PM »
How can i add a dropdown box that says category and they can select like feedback/report error/other under subject??

Search in the Contact.template.php file;
Code: [Select]
//--------------------------------------------------------------------------------------------------
// Subject line
//--------------------------------------------------------------------------------------------------
You can realize how user interface is created. Each row (subject, email, name...) is divided by <div> tags. You need to create new <div> section and add those lines below as a content;
Code: [Select]
<select name="category" id="category">
  <option>help</option>
  <option>suggestion</option>
</select>

Also you need to add code that captures this dropdown's value and adds in email content. Search this line in Contact.php
Code: [Select]
$content .= stripslashes($message);
Add this code above of it (if you want category name is placed above user's message);
Code: [Select]
$content .= isset($_POST['category']) ? trim($_POST['category']) : '';

I didn't test the codes, I just made it up. In case doesn't work, it will show you direction. Hope it helps.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

Offline Mr. Pirate

  • Jr. Member
  • **
  • Posts: 176
Re: Advanced Contact Form
« Reply #81 on: March 01, 2010, 11:31:14 PM »
how can i make it where if they pick "other" there's something that pops under it that says "Please Specify"

Offline SONSiVRi

  • Full Member
  • ***
  • Posts: 418
    • Lair Of Knowledge
Re: Advanced Contact Form
« Reply #82 on: March 02, 2010, 12:42:13 PM »
Its HTML question and I don't have an answer for you. But its easy to rip off from site that you know exist.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

Offline Saxon044

  • Semi-Newbie
  • *
  • Posts: 59
Re: Advanced Contact Form
« Reply #83 on: April 07, 2010, 05:17:26 PM »
Just a small irritation....

I hope someone can help me out here - The form works perfectly on my 2 RC3 forum, but the menu button text is in uppercase! (i.e. CONTACT). Please, please tell me where the text for the button is held so I can edit it to read "Contact"?

Offline SONSiVRi

  • Full Member
  • ***
  • Posts: 418
    • Lair Of Knowledge
Re: Advanced Contact Form
« Reply #84 on: April 08, 2010, 06:00:34 PM »
Just a small irritation....

I hope someone can help me out here - The form works perfectly on my 2 RC3 forum, but the menu button text is in uppercase! (i.e. CONTACT). Please, please tell me where the text for the button is held so I can edit it to read "Contact"?
Code: [Select]
/Themes/default/languages/Modifications.english.php
Code: [Select]
$txt['contact_form_default_tab_label'] = 'CONTACT';
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

Offline Saxon044

  • Semi-Newbie
  • *
  • Posts: 59
Re: Advanced Contact Form
« Reply #85 on: April 09, 2010, 06:48:37 PM »
Thnk you for your help. I found and changed CONTACT to Contact in the file you suggested. But the button remains CONTACT! Wierd!

Offline SONSiVRi

  • Full Member
  • ***
  • Posts: 418
    • Lair Of Knowledge
Re: Advanced Contact Form
« Reply #86 on: April 10, 2010, 12:01:53 PM »
Thnk you for your help. I found and changed CONTACT to Contact in the file you suggested. But the button remains CONTACT! Wierd!
The code displays your button is;
Code: [Select]
'title' => !empty($modSettings['contact_form_tab_label']) ? $modSettings['contact_form_tab_label'] : $txt['contact_form_default_tab_label'],It seems there is a settings entry in your admin panel somewhere, you have to change from there.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

Offline FlatFX

  • Semi-Newbie
  • *
  • Posts: 14
  • Gender: Male
    • Forty Hertz Muzik
Re: Advanced Contact Form
« Reply #87 on: April 10, 2010, 05:25:43 PM »

This happens when I try to send the source code of the contact page in a message.

Offline CommanderMadi

  • Jr. Member
  • **
  • Posts: 255
  • Smf Arabic Translator
    • Adorology - Power of Adoring
Re: Advanced Contact Form
« Reply #88 on: June 07, 2010, 04:10:08 PM »
Hello Mate, that mod is GREAT, I thank you very much.

Just one problem considering it, All emails go to junk and I went to error logs to see if there are any, it gave that error:

Undefined Variable: hostName

I think this might be the reason of the sending to junk..

Any help would be greatly appreciated.

Thank you
Relationships counselling and advice blog
http://www.adorology.com

Offline SONSiVRi

  • Full Member
  • ***
  • Posts: 418
    • Lair Of Knowledge
Re: Advanced Contact Form
« Reply #89 on: June 08, 2010, 12:01:23 PM »
Hello Mate, that mod is GREAT, I thank you very much.

Just one problem considering it, All emails go to junk and I went to error logs to see if there are any, it gave that error:

Undefined Variable: hostName

I think this might be the reason of the sending to junk..

Any help would be greatly appreciated.

Thank you

I remember hostName is for a lookup, resolving sender's IP. There is no relation I guess.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

Offline CommanderMadi

  • Jr. Member
  • **
  • Posts: 255
  • Smf Arabic Translator
    • Adorology - Power of Adoring
Re: Advanced Contact Form
« Reply #90 on: June 08, 2010, 12:53:14 PM »
Ok, so what am I supposed to do with it, Sony?
Relationships counselling and advice blog
http://www.adorology.com

Offline SONSiVRi

  • Full Member
  • ***
  • Posts: 418
    • Lair Of Knowledge
Re: Advanced Contact Form
« Reply #91 on: June 08, 2010, 01:05:41 PM »
you are using smf v ?
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

Offline CommanderMadi

  • Jr. Member
  • **
  • Posts: 255
  • Smf Arabic Translator
    • Adorology - Power of Adoring
Re: Advanced Contact Form
« Reply #92 on: June 08, 2010, 01:12:07 PM »
2.0 RC3
Relationships counselling and advice blog
http://www.adorology.com

Offline SONSiVRi

  • Full Member
  • ***
  • Posts: 418
    • Lair Of Knowledge
Re: Advanced Contact Form
« Reply #93 on: June 08, 2010, 03:06:56 PM »
2.0 RC3
I didn't use that version of smf, so I can't help.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

Offline Scratching my Head

  • Jr. Member
  • **
  • Posts: 172
  • Yes. I see. Thanks.
Re: Advanced Contact Form
« Reply #94 on: June 11, 2010, 04:13:39 PM »
May I ask? I have installed this mod - installed no problem.

But where is the page supposed to show up?
I don't see it anywhere?

I can configure it fine, but where is the contact page once it's installed?
How do I navigate to it?


Offline SONSiVRi

  • Full Member
  • ***
  • Posts: 418
    • Lair Of Knowledge
Re: Advanced Contact Form
« Reply #95 on: June 12, 2010, 12:47:20 AM »
May I ask? I have installed this mod - installed no problem.

But where is the page supposed to show up?
I don't see it anywhere?

I can configure it fine, but where is the contact page once it's installed?
How do I navigate to it?



In the top menu, beside "help search profile ..."
You need to manual install if you have custom theme.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

Offline Scratching my Head

  • Jr. Member
  • **
  • Posts: 172
  • Yes. I see. Thanks.
Re: Advanced Contact Form
« Reply #96 on: June 12, 2010, 05:47:16 PM »
Yeah. I installed it for the custom theme, but I couldn't find it.

Thanks anyway.

Offline SONSiVRi

  • Full Member
  • ***
  • Posts: 418
    • Lair Of Knowledge
Re: Advanced Contact Form
« Reply #97 on: June 13, 2010, 04:58:07 PM »
Yeah. I installed it for the custom theme, but I couldn't find it.

Thanks anyway.

There is no permission required I presume. Which codes you are applied to your custom theme, I mean did you parsed it here?
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.

Offline Scratching my Head

  • Jr. Member
  • **
  • Posts: 172
  • Yes. I see. Thanks.
Re: Advanced Contact Form
« Reply #98 on: June 13, 2010, 05:27:20 PM »
Parsed, and installed per the parser. That's why I was confused when it didn't show; and wondered if there was a specific url I could tap -- for instance:

hxxp://somedomain.com/forum/index.php?=contactpage - or whatever -- since I didn't see it on the default curve theme or the custom theme.

Offline SONSiVRi

  • Full Member
  • ***
  • Posts: 418
    • Lair Of Knowledge
Re: Advanced Contact Form
« Reply #99 on: June 14, 2010, 04:14:43 PM »
Parsed, and installed per the parser. That's why I was confused when it didn't show; and wondered if there was a specific url I could tap -- for instance:

hxxp://somedomain.com/forum/index.php?=contactpage - or whatever -- since I didn't see it on the default curve theme or the custom theme.

Yes, there is a specific url; http://www.domain.com/forum/index.php?action=contact

Btw, I checked button codes that you need to apply on your custom theme, and there is a modSettings condition to display button. So you have to enable those options via your admin panel if haven't to do so.
My Mods - IP View Permission - Recycle Bin Cleaner - Ip to Country
www.sonsivri.com - microcontrollers
- Houston, we have a problem.