|
|
#1 |
|
Member
Join Date: Mar 2006
Location: United Kingdom
Posts: 89
Rep Power: 15 ![]() |
V3.0.15 Developer
Hello, when an ad is being viewed by a member, is it possible to have the Name and Email fields ready populated with the viewers details in the 'contact the owner' form in such a way that they can not be altered? Thanks, Don.
__________________
Thanks, Don. Version 3.1 Developer May God bless you in mighty ways. |
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,140
Rep Power: 118 ![]() |
I believe the only user information that is stored in the session is their userid and username. So you would have to create a new query on the viewlisting.php and get out the rest of their information then assign it to the template.
Probably something like this: PHP Code:
<input name="name" type="text" size="{$smarty.const.FIELD_SIZE}" value="{$user_firstname|escape}" /> <input name="email" type="text" size="{$smarty.const.FIELD_SIZE}" value="{$user_email|escape}" /> To make them not be altered I believe you can add disabled to the form field: <input name="email" type="text" size="{$smarty.const.FIELD_SIZE}" value="{$user_email|escape}" disabled="disabled" /> The only thing is I am not sure if they will actually send when submiting the form so you would need to test it.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
#3 |
|
Coder
Join Date: Mar 2006
Posts: 4,574
Rep Power: 111 ![]() ![]() |
Perhaps that would be a good addition to 3.1? In admin have the ability to set the "contact owner" form auto use the senders registered e-mail addy/name.This of course would only be available if you have the site set so you had to be a registered user to contact the owner.
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Mar 2006
Posts: 110
Rep Power: 16 ![]() |
I agree with Lhotch. It would be nice to have this option via ADMIN.
sleepy |
|
|
|
|
#5 |
|
Member
Join Date: Mar 2006
Location: United Kingdom
Posts: 89
Rep Power: 15 ![]() |
A good start...
The 'Contact Owner' form was populated with my name and email (neither could be changed...as requested). I sent a message. I was redirected to /contact.php with the 'contact Owner' form still showing. The name and email fields were now blank but the message was still showing. No email was sent. Thanks, Don.
__________________
Thanks, Don. Version 3.1 Developer May God bless you in mighty ways. |
|
|
|
|
#6 |
|
Member
Join Date: Mar 2006
Location: United Kingdom
Posts: 89
Rep Power: 15 ![]() |
Hi Larry / Eric
just wondering if there is any more I can try here Thanks, Don.
__________________
Thanks, Don. Version 3.1 Developer May God bless you in mighty ways. |
|
|
|
|
#7 |
|
Coder
Join Date: Mar 2006
Posts: 4,574
Rep Power: 111 ![]() ![]() |
Un-disable the fields and see if mail will send.
|
|
|
|
|
#8 |
|
Member
Join Date: Mar 2006
Location: United Kingdom
Posts: 89
Rep Power: 15 ![]() |
Hello Larry,
I removed "disabled="disabled" and it works great. If there is no way of disabling then so be it. Thanks, Don.
__________________
Thanks, Don. Version 3.1 Developer May God bless you in mighty ways. |
|
|
|
|
#9 |
|
Coder
Join Date: Mar 2006
Posts: 4,574
Rep Power: 111 ![]() ![]() |
What you could do is simply change the fields to be hidden so the user wont see them at all. And, if you really wanted to the user to see something just replace the input field itself with the value so it shows as just text instead of input field.
|
|
|
|
|
#10 |
|
Member
Join Date: Mar 2006
Location: United Kingdom
Posts: 89
Rep Power: 15 ![]() |
You the man, Larry.That works a treat. Once again (and don't you just get sick of saying it) thanks. Best wishes, Don.
__________________
Thanks, Don. Version 3.1 Developer May God bless you in mighty ways. |
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Contact The Owner | gppromano | v3.1 Modules & Modifications | 1 | 01-19-2007 10:11 AM |
| Contact Owner Form | SteM | v3.1 Questions & Support | 2 | 01-02-2007 09:47 AM |
| After Contact Owner | CB | v3.1 Questions & Support | 3 | 09-09-2006 04:13 AM |
| Direct link to user listing in contact email | SkGold | v3.1 Questions & Support | 2 | 07-10-2006 02:42 PM |
| Contact the Owner - make form optional | fjarabeck | v3.1 Modules & Modifications | 2 | 05-14-2006 10:17 PM |