• [MOD] Contact Form 5 0 5 1
Currently:  

Author Topic: [MOD] Contact Form  (Read 367991 times)

0 Members and 2 Guests are viewing this topic.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Contact Form
« Reply #240 on: March 31, 2010, 03:34:17 PM »
... if so ( the reason can't be 4images upgrading and contact form mod installation ) ...
... reinstall your backups and try it again with a new installation ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Peaces

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: [MOD] Contact Form
« Reply #241 on: March 31, 2010, 04:21:52 PM »
Thank you for your suggestion.
Are there any specific docs/files I should try to replace before I scrap and reinstall?

Offline Peaces

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: [MOD] Contact Form
« Reply #242 on: April 07, 2010, 01:16:32 PM »
Thanks for all the help. the issue was in my server settings.

All works great.

Here's a Thank You to you!

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: [MOD] Contact Form
« Reply #243 on: October 31, 2010, 07:02:34 AM »
Rembrandt thanks. Work fine if i write "contact.php?user_id=33". But in details.php not show link or image to contact page. And else, i haven`t this path in my details.php:

if (!check_permission("auth_viewcat"$cat_id) || !check_permission("auth_viewimage"$cat_id) || !$image_row) {
  
redirect($url);
}


 :cry:

Rembrandt

  • Guest
Re: [MOD] Contact Form
« Reply #244 on: October 31, 2010, 07:15:21 AM »
... i haven`t this path in my details.php:

above:

$random_cat_image 
= (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" get_random_image($cat_id);

has a user in Control Panel "show email" to "off" do you not see the button on the detail page.

set "user" with "user_id=33"  in Control Panel  "Show Email" to "on"


Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: [MOD] Contact Form
« Reply #245 on: October 31, 2010, 08:52:52 AM »
Now it work`s fine. How to set radio by default "Show E-mail" as "YES"??? Now it set "NO" during new user registration.

Many Thanks!

Rembrandt

  • Guest
Re: [MOD] Contact Form
« Reply #246 on: October 31, 2010, 09:20:24 AM »
search in admin/user.php:

show_radio_row
($lang['field_showemail'], "user_showemail_".$i0);

and replace:

show_radio_row
($lang['field_showemail'], "user_showemail_".$i1);


Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: [MOD] Contact Form
« Reply #247 on: October 31, 2010, 09:32:23 AM »
No this doesn`t work. After registration radio button set on "Show Email  - NO"  :cry:

Rembrandt

  • Guest
Re: [MOD] Contact Form
« Reply #248 on: October 31, 2010, 01:00:46 PM »
test ,.. search in register.php:
$user_showemail = (isset($HTTP_POST_VARS['user_showemail'])) ? intval($HTTP_POST_VARS['user_showemail']) : 0;
replace:
$user_showemail = (isset($HTTP_POST_VARS['user_showemail'])) ? intval($HTTP_POST_VARS['user_showemail']) : 1;

Offline MrAndrew

  • Sr. Member
  • ****
  • Posts: 302
    • View Profile
    • Aviation PhotoBase
Re: [MOD] Contact Form
« Reply #249 on: October 31, 2010, 01:11:31 PM »
Works! Thanks!

Offline kubiczek

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • Gross Peterwitz
Re: [MOD] Contact Form Zusatzfeld
« Reply #250 on: December 12, 2010, 05:49:58 AM »
Mit der folgenden änderung lässt sich ein zusatzfeld einbauen in der Kontakt Seite.

habe es für meine Sterbefall meldung genutzt sehe
http://www.grosspeterwitz.org/friedhof/4images/contact.php

1.) suche in der contact.php
 $message stripslashes(trim($_POST['message'])); 

danach einfügen
 $message1 stripslashes(trim($_POST['message1']));

suchen
 "message" => $message

danach einfügen
 "message1" => $message1,

suchen
if (!$sendprocess) { 
    
$subject ""
    
$message ""


danach einfügen
$message1 "";

suchen
"sender_email" => $sender_email
      
"subject" => htmlspecialchars($subject), 
      
"message" => htmlspecialchars($message),


danach einfügen
"message1" => htmlspecialchars($message1), 

suchen
"lang_message" => $lang['message'],

danach einfügen
"lang_message1" => $lang['message1'],

2.) in der contact_mailform.html

suche
<tr
      <
td align="right" valign="top"><b>{lang_message}</b></td>
      <
td align="left" valign="top"><textarea name="message" cols="60" rows="10" wrap="VIRTUAL"  tabindex="4">{message}</textarea> </td>
    </
tr>


davor einfügen
<tr>
      <
td align="right" valign="middle"><b>{lang_message1}</b></td>
      <
td align="left"><input  class="input" name="message1" type="text"  tabindex="3" value="{message1}" ></td>
    </
tr>


3.) in der lang/deutsch/main.php

suchen
$lang['your_mail'] = "Ihre Email:";

danach einfügen
$lang['message1'] = "Ihr Text:";


Viel Spass


Offline haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: [MOD] Contact Form
« Reply #251 on: December 18, 2010, 10:27:20 AM »
i dont understand german language..i tried to figure out from posts but most of them were in german language i guess..

please tell me what is wrong..and what settings i have to do to make this mod working for me.?

Code: [Select]
un unexpected error occured. Please try again later.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/haider/public_html/directory/includes/db_mysql.php on line 116

Rembrandt

  • Guest
Re: [MOD] Contact Form
« Reply #252 on: December 18, 2010, 03:16:07 PM »

Offline haider512

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Re: [MOD] Contact Form
« Reply #253 on: December 28, 2010, 03:47:06 AM »
REMOVED


Awesome ....working great....Many Many Many Many Many Many Many THanks....

Long Live 4images...

Superb mate..

[EDIT by V@no]
Please stop leaving quote of the entire post!!!!
[/EDIT]
« Last Edit: December 28, 2010, 04:17:26 AM by V@no »

Offline milanNN

  • Newbie
  • *
  • Posts: 40
    • View Profile
    • http://www.planesphotos.net
Re: [MOD] Contact Form
« Reply #254 on: December 30, 2010, 07:15:02 PM »
Could you tell me how can i hide e-mail?
See attach.