PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   How do I make it so respondants can't change their email? (http://www.photopost.com/forum/classifieds-how-do-i/125370-how-do-i-make-so-respondants-cant-change-their-email.html)

snowbird June 6th, 2006 08:46 PM

How do I make it so respondants can't change their email?
 
When you respond to a seller's ad, the email address field is pre-populated, but can be changed. Is it possible to make that so you can't change it?

Chuck S June 7th, 2006 07:06 AM

You could make the change in bold here in contact.tmpl

Code:

Content visible to verified customers only.

snowbird June 8th, 2006 05:09 AM

Thanks for the quick reply but, that did not change anything :(

snowbird June 8th, 2006 05:17 AM

1 Attachment(s)
In case it helps, I have attached a pic showing the area I am referencing.

blankoboy June 8th, 2006 06:55 AM

Hey snowbird,

Which 'contact.tmpl' file are you editing?

public_html/templates/contact.tmpl
or
public_html/templates/vb3enhanced/contact.tmpl

If you have the latter I believe that is the one you should be editing with the change Chuck suggested. Give it a try...:)

snowbird June 8th, 2006 07:04 AM

1 Attachment(s)
Progress :) Thanks blankoboy

But there is a problem in that it no creates a blank spot that will likely confuse users. (See attachment) I would like to have it displayed but so the user can not change it (sort of "hard coded").

If that is not possible, maybe I should just remove the "Your email address" alltogether?

My motivation in doing this is that when I previously ran a classified ads script in this domain there were lots of scammers that tried to rip-off users. Giving the ability to change their email like that is only going to invite trouble.

blankoboy June 8th, 2006 08:36 AM

My pleasure..glad to be of some help! Try removing (or commenting out) this from the contact.tmpl.

Quote:

<tr>
<td class="{$Style['tddetails']}" width="30%" align="center">{$Globals['pp_lang']['youremail']}</span></td>
<td class="{$Style['tddetails']}" align="left"><input type="text" size="50" name="youremail" value="$fromemail" /></td>
</tr>
I completely agree with you and that is the same reason I want to remove it from mine. ;)

snowbird June 8th, 2006 09:22 AM

Hmm. It seems that can't be commented out. If you do, and then try to contact seller, you get "You have entered an invalid email address, message not sent."
So I am *guessing* that after commenting that block out you would have to insert the input tag somewhere outside the comment tags, but using hidden for type.

Chuck S June 8th, 2006 09:27 AM

You can not comment it out as its a value that needs to be passed. You can print $friendemail in there again just to show it. Try this

Code:

Content visible to verified customers only.

snowbird June 8th, 2006 09:29 AM

Yes, I commented out what you suggested blankoboy, then I inserted the following code just after the commented out part, and it works. Thanks both of you.
Quote:

<input type="text" size="50" name="youremail" value="$fromemail" />

snowbird June 8th, 2006 09:30 AM

I was typing at the same time as you Chuck. All's good. Thanks again.

snowbird June 8th, 2006 09:35 AM

Slightly off topic..... I just noticed with all this testing that the email Subject Line that gets sent says "A message about your ad on". Is there a place to change that either in the cp or a template. I would like to change that to "A message about your ad posted at The Name Of The Site"

Chuck S June 8th, 2006 09:50 AM

change the string in your emails.php language file in the languages english directory ;)

snowbird June 8th, 2006 10:33 AM

That string does not exist in my emails.php file. :confused:

Chuck S June 8th, 2006 10:54 AM

english.php in the languages directory then

snowbird June 8th, 2006 11:18 AM

Yes, there it is. I see the line that says
Code:

Content visible to verified customers only.
which implies the site name should be carried into the subject line of the emails.... but it is not. I have the name entered in the Web site name field of the global options section of the classifieds CP, but it is not carrying through to the email subject line. Any suggestion as to why that might be? :confused: Thanks.


All times are GMT -5. The time now is 11:49 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97