Support Forums


Go Back   68 Classifieds Forums > Legacy Help & Support > v3.1 Suggestions and Feedback

 
LinkBack Thread Tools Display Modes
Old 10-21-2006, 01:30 PM   #1
Senior Member
 
SkGold's Avatar
 
Join Date: Mar 2006
Location: Best city in the World � Calgary, Canada
Posts: 468
Rep Power: 23
SkGold has a spectacular aura about
Default Copy of �contact the owner� email to admin

I want to get the copy of all emails with the sender IP, sent through the �contact the owner� form. I will appreciate if somebody could post instructions how to do it. I guess it will be good for everybody.
__________________
Thanks,
Sergey

Bargain Finder in Calgary, Alberta, Canada.
Calgary Business Directory V3.1.10 Dev - Calgary Classifieds V3.1.10 Dev - Calgary Real Estate V3.1.10 Dev - Calgary Used Cars V3.1.10 Dev - Calgary Rent V3.1.10 Dev - Calgary Dating V3.1.5 Dev

A website without well-done Internet Marketing and Search Engine Optimization is as good as non-existent.
SkGold is offline   Reply With Quote
Old 10-21-2006, 05:21 PM   #2
Moderator
 
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,182
Rep Power: 59
juven14 is a jewel in the rough
Default

Open contact.php:

find:
PHP Code:
$mail = new Mailer();
$mail->AddAddress($to);
$mail->From $from;
$mail->FromName $name;
$mail->Subject $subject;
$mail->IsHTML(true);
$mail->Body    $htmlContent;
$mail->AltBody $textContent;
if(
$mail->Send())
{
    
$class_tpl->assign('title',LANG_CONTACT_SUCCESS_TITLE);
    
$class_tpl->assign('pPageContent',LANG_CONTACT_SUCCESS_BODY);
    
$class_tpl->assign('body','content.tpl.php');

replace with:
PHP Code:
$mail = new Mailer();
$mail->AddAddress($to);
$mail->From $from;
$mail->FromName $name;
$mail->Subject $subject;
$mail->IsHTML(true);
$mail->Body    $htmlContent;
$mail->AltBody $textContent;
if(
$mail->Send())
{
    
    
$htmlContent .= "<br />IP: ".$_SERVER['REMOTE_ADDR'];
    
$textContent .= "\n IP: ".$_SERVER['REMOTE_ADDR'];
    
$mail = new Mailer();
    
$mail->AddAddress(ADMIN_EMAIL);
    
$mail->From $from;
    
$mail->FromName $name;
    
$mail->Subject $subject;
    
$mail->IsHTML(true);
    
$mail->Body    $htmlContent;
    
$mail->AltBody $textContent;
    
$mail->Send()    
    
    
$class_tpl->assign('title',LANG_CONTACT_SUCCESS_TITLE);
    
$class_tpl->assign('pPageContent',LANG_CONTACT_SUCCESS_BODY);
    
$class_tpl->assign('body','content.tpl.php');

I haven't tested this but it should work. Let me know if you get any errors, and I'll take another look.
__________________
TemplateCodes.com
juven14 is offline   Reply With Quote
Old 10-21-2006, 05:44 PM   #3
Moderator
 
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,182
Rep Power: 59
juven14 is a jewel in the rough
Default

If you do this you might update your privacy statement or policies so your users are aware that this form is being monitored by the admin.
__________________
TemplateCodes.com
juven14 is offline   Reply With Quote
Old 10-23-2006, 11:17 AM   #4
Senior Member
 
SkGold's Avatar
 
Join Date: Mar 2006
Location: Best city in the World � Calgary, Canada
Posts: 468
Rep Power: 23
SkGold has a spectacular aura about
Default

Thanks John.
Yes, I probably need to think about it.
From privacy reason may be it is not a good idea to monitor all contacts.
I will check the code anyway on the test site to make sure it is working.

Another thought. What about to include the warning notice and sender IP in the email body to the ad owner? Maybe this will make the ad owners to stay alert?

Anybody has any idea what is better to do?

I think Eric is on the right way regarding the spam issues, but I want to implement something right away as my site becoming more popular and this spam issue arising every day.
__________________
Thanks,
Sergey

Bargain Finder in Calgary, Alberta, Canada.
Calgary Business Directory V3.1.10 Dev - Calgary Classifieds V3.1.10 Dev - Calgary Real Estate V3.1.10 Dev - Calgary Used Cars V3.1.10 Dev - Calgary Rent V3.1.10 Dev - Calgary Dating V3.1.5 Dev

A website without well-done Internet Marketing and Search Engine Optimization is as good as non-existent.
SkGold is offline   Reply With Quote
Old 10-23-2006, 11:29 AM   #5
Moderator
 
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,182
Rep Power: 59
juven14 is a jewel in the rough
Default

Maybe you could insert a link to report the email which just automates an email to the admin, and just say that messages which are reported get read. Or randomly read certin emails. Just about any phone call you make for support or service gets the message "this call may be monitored..." I don't see it being a problem as long as it is stated upfront.

You might just note their IP in the contact form so they know it is being recorded. Then just send an email with the IP to the admin.
__________________
TemplateCodes.com
juven14 is offline   Reply With Quote
Old 11-08-2006, 12:27 AM   #6
Senior Member
 
SkGold's Avatar
 
Join Date: Mar 2006
Location: Best city in the World � Calgary, Canada
Posts: 468
Rep Power: 23
SkGold has a spectacular aura about
Default

Quote:
Originally Posted by juven14 View Post
Open contact.php:

find:
PHP Code:
$mail = new Mailer();
$mail->AddAddress($to);
$mail->From $from;
$mail->FromName $name;
$mail->Subject $subject;
$mail->IsHTML(true);
$mail->Body    $htmlContent;
$mail->AltBody $textContent;
if(
$mail->Send())
{
    
$class_tpl->assign('title',LANG_CONTACT_SUCCESS_TITLE);
    
$class_tpl->assign('pPageContent',LANG_CONTACT_SUCCESS_BODY);
    
$class_tpl->assign('body','content.tpl.php');

replace with:
PHP Code:
$mail = new Mailer();
$mail->AddAddress($to);
$mail->From $from;
$mail->FromName $name;
$mail->Subject $subject;
$mail->IsHTML(true);
$mail->Body    $htmlContent;
$mail->AltBody $textContent;
if(
$mail->Send())
{
    
    
$htmlContent .= "<br />IP: ".$_SERVER['REMOTE_ADDR'];
    
$textContent .= "\n IP: ".$_SERVER['REMOTE_ADDR'];
    
$mail = new Mailer();
    
$mail->AddAddress(ADMIN_EMAIL);
    
$mail->From $from;
    
$mail->FromName $name;
    
$mail->Subject $subject;
    
$mail->IsHTML(true);
    
$mail->Body    $htmlContent;
    
$mail->AltBody $textContent;
    
$mail->Send()    
    
    
$class_tpl->assign('title',LANG_CONTACT_SUCCESS_TITLE);
    
$class_tpl->assign('pPageContent',LANG_CONTACT_SUCCESS_BODY);
    
$class_tpl->assign('body','content.tpl.php');

I haven't tested this but it should work. Let me know if you get any errors, and I'll take another look.
Hi John, it doesn�t work. I am getting error:
Quote:
Parse error: syntax error, unexpected T_VARIABLE in /home/......./public_html/....../contact.php on line 124
Line 124 has:
Quote:
$class_tpl->assign('title',LANG_CONTACT_SUCCESS_TITLE);
__________________
Thanks,
Sergey

Bargain Finder in Calgary, Alberta, Canada.
Calgary Business Directory V3.1.10 Dev - Calgary Classifieds V3.1.10 Dev - Calgary Real Estate V3.1.10 Dev - Calgary Used Cars V3.1.10 Dev - Calgary Rent V3.1.10 Dev - Calgary Dating V3.1.5 Dev

A website without well-done Internet Marketing and Search Engine Optimization is as good as non-existent.
SkGold is offline   Reply With Quote
Old 11-08-2006, 04:05 AM   #7
Senior Member
 
Join Date: Oct 2006
Posts: 134
Rep Power: 13
manilaboy is on a distinguished road
Default

Hello Guys!

What files should I edit to change the following:

1. subject line the seller gets when a user contacts a seller via contact form
2. thank you message when a user contacts the admin
3. subject line admin gets when a user contact admin via contact form

In addition, is there a module to put multiple ads on a shopping cart where a user can remove, update or pay for them all together? Will it save the adw be saved in the cart if they decide to pay later?

I am not sure if this feature is already included on the script.

Thanks for your help.
__________________
Mike D.
manilaboy is offline   Reply With Quote
Old 11-08-2006, 07:59 AM   #8
Moderator
 
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,182
Rep Power: 59
juven14 is a jewel in the rough
Default

skGold - find this in that new bit of code:

PHP Code:
$mail->Send() 
And put a ; after it:

PHP Code:
$mail->Send(); 
__________________
TemplateCodes.com
juven14 is offline   Reply With Quote
Old 11-08-2006, 08:02 AM   #9
Moderator
 
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,182
Rep Power: 59
juven14 is a jewel in the rough
Default

Quote:
Originally Posted by manilaboy
What files should I edit to change the following:

1. subject line the seller gets when a user contacts a seller via contact form
2. thank you message when a user contacts the admin
3. subject line admin gets when a user contact admin via contact form
templates/default/contact/contactus.tpl.php and contactowner.tpl.php

Quote:
Originally Posted by manilaboy
In addition, is there a module to put multiple ads on a shopping cart where a user can remove, update or pay for them all together? Will it save the adw be saved in the cart if they decide to pay later?
No such module exists, but I think it is a planned feature for a future version.
__________________
TemplateCodes.com
juven14 is offline   Reply With Quote
Old 11-09-2006, 01:09 AM   #10
Senior Member
 
SkGold's Avatar
 
Join Date: Mar 2006
Location: Best city in the World � Calgary, Canada
Posts: 468
Rep Power: 23
SkGold has a spectacular aura about
Default

Quote:
Originally Posted by juven14 View Post
skGold - find this in that new bit of code:

PHP Code:
$mail->Send() 
And put a ; after it:

PHP Code:
$mail->Send(); 
Thanks a lot John, it is working perfect now.

Another question.
How can I insert the IP address into email body sent to owner?
I want the ad owners to know sender IP as well.
I tried to play around but can�t make it work.
__________________
Thanks,
Sergey

Bargain Finder in Calgary, Alberta, Canada.
Calgary Business Directory V3.1.10 Dev - Calgary Classifieds V3.1.10 Dev - Calgary Real Estate V3.1.10 Dev - Calgary Used Cars V3.1.10 Dev - Calgary Rent V3.1.10 Dev - Calgary Dating V3.1.5 Dev

A website without well-done Internet Marketing and Search Engine Optimization is as good as non-existent.
SkGold is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email to admin when new user registers BABBSELA v3.1 Questions & Support 5 12-29-2006 11:39 AM
Email Admin When Listings Change DVM v3.0 Questions & Support 4 10-11-2006 02:18 PM
Copy of Contact e-mail to Admin sporthorsebreeder v3.0 Questions & Support 12 04-17-2006 03:29 PM
�Contact The Owner� form and Junk Mail SkGold v3.0 Questions & Support 5 04-08-2006 08:28 PM
Phpnewads munky20 v3.0 Questions & Support 10 03-30-2006 06:59 PM


All times are GMT -4. The time now is 04:09 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0