 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
June 6th, 2006, 08:46 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 41
| 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?
|
| |
June 7th, 2006, 07:06 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,662
|
You could make the change in bold here in contact.tmpl Code: Content visible to verified customers only.
|
| |
June 8th, 2006, 05:09 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 41
|
Thanks for the quick reply but, that did not change anything |
| |
June 8th, 2006, 05:17 AM
|
#4 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 41
|
In case it helps, I have attached a pic showing the area I am referencing.
|
| |
June 8th, 2006, 06:55 AM
|
#5 (permalink)
| | Member
Join Date: Apr 2006
Posts: 63
|
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... |
| |
June 8th, 2006, 07:04 AM
|
#6 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 41
|
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.
|
| |
June 8th, 2006, 08:36 AM
|
#7 (permalink)
| | Member
Join Date: Apr 2006
Posts: 63
|
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. |
| |
June 8th, 2006, 09:22 AM
|
#8 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 41
|
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.
|
| |
June 8th, 2006, 09:27 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,662
|
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.
|
| |
June 8th, 2006, 09:29 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 41
|
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" />
| |
| |
June 8th, 2006, 09:30 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 41
|
I was typing at the same time as you Chuck. All's good. Thanks again.
|
| |
June 8th, 2006, 09:35 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 41
|
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"
|
| |
June 8th, 2006, 09:50 AM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,662
|
change the string in your emails.php language file in the languages english directory |
| |
June 8th, 2006, 10:33 AM
|
#14 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 41
|
That string does not exist in my emails.php file. |
| |
June 8th, 2006, 10:54 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,662
|
english.php in the languages directory then
|
| |
June 8th, 2006, 11:18 AM
|
#16 (permalink)
| | Member Verified Customer
Join Date: May 2006
Posts: 41
|
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?  Thanks.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 03:07 PM. | |