Support Forums

Getting the Contact form to auto populate

This is a discussion on Getting the Contact form to auto populate within the Technical Support forums, part of the Technical Support Forums category; Seymourjames mentioned that changing viewlisting2.tpl to viewlisting.tpl within the admin would change the layout of a specific post to look ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-15-2009, 02:32 PM   #1
Member
 
Join Date: May 2009
Posts: 66
Rep Power: 0
Post Getting the Contact form to auto populate

Seymourjames mentioned that changing viewlisting2.tpl to viewlisting.tpl within the admin would change the layout of a specific post to look like how he has it demoed on his site: My Classifieds Website Featured Listing

However, we have changed the admin to use viewlisting.tpl and still doesn't look like how seymourjames has it. I have asked him how to do it, but perhaps he is too busy to give more detail to me. I wanted to open this up to anyone who might know if his demo is a tweak of the code or if the layout is controlled within the admin (if so where?) as well as using the Freecap Captcha feature which is not currently being used in this form. Thanks!
__________________
68C | Developer License | Running v4.1.3
industrialpost is offline  
Old 06-15-2009, 02:57 PM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

It does look like your site is using viewlistinsg2.tpl which puts the images across the top of the ad. Viewlisting.tpl puts them down the right side of the ad.

If you change the template via admin under settings->listing view settings, it should change the layout for you. If not try clearing the contents of the folder /templates_c.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-15-2009, 03:17 PM   #3
Member
 
Join Date: May 2009
Posts: 66
Rep Power: 0
Post

Ok, I took a look and you are right. I wasn't sure how the admin was relaying the file name association. Based on understanding this, my question then has nothing to do with the viewlisting.tpl. So can you tell me if what seymourjames has on his demo site is a custom code of getting the contact form for contacting the owner to autopopulate and having the Freecap Captcha to interact with the form? If it is a custom script, is this something like a Module? If not, how can we get our listings to look like his?
__________________
68C | Developer License | Running v4.1.3
industrialpost is offline  
Old 06-15-2009, 03:22 PM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

I dont see where the form is autopopulating so Im not sure I am following you. That site is using one of their custom templates so my guess is it is custom code but not hard to do.

When a user is logged in they have session variables associated with their identity. Its probably just a matter of placing the smarty variable in the value of the html element to have it autopopulate.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-15-2009, 03:29 PM   #5
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

The freecap is an included module. You just have to activate it and it will show on the contact form.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 06-15-2009, 03:39 PM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

No it is the default template file being called. There may be some minor css styling to the form but that is all. The settings are in the 68C admin control panel as mentioned to you. I think it is actually in usergroups, contactowner = YES . The demo site is using viewlisting.tpl and showlisting.tpl .

Specifically the code at the end of the file tells you what needs to be set to on and the conditions. And of course you are not logged in as an administrator or registered user - that is not your problem is it??

{if $preview!="Y"}
{dynamic}
{include file=viewlisting/listingextras.tpl}
{/dynamic}
{/if}
<p> </p>
{dynamic}
{if $pmon=="Y" && $smarty.session.uid > 0}

{elseif $allowcontact=="Y" && $display=="Y"}
{include file=contact/contactowner.tpl}
{/if}
{/dynamic}
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline  
Old 06-15-2009, 10:48 PM   #7
Member
 
Join Date: May 2009
Posts: 66
Rep Power: 0
Default

Ok let me clarify. After observing the behavior, I now know what all you are all talking about. And it was my fault in not being clear. This is what I want: As you all know, when not logged in (as a guest) and you are viewing the ads, the contact owner form is already down at the bottom of the ad. The contact owner link is not visible and it has the Freecap Captcha enabled and the fields are set up to actually email the owner and also referencing the users email. That is fine and dandy. Now when logged in (as a registered user) the same ad will not show the contact form because it doesn't rely on emails to contact the owner, but rather PMs. And the Contact Owner link is visible. However, I want this page with the ad and logged in, to have a similar behavior as when not logged in. But I realize that it would still be using the PM system to deliver the message and not using the Freecap Captcha. And I want the contact owner link to not be visible. Does this make sense?
__________________
68C | Developer License | Running v4.1.3
industrialpost is offline  
Old 06-15-2009, 11:04 PM   #8
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by industrialpost
Ok let me clarify. After observing the behavior, I now know what all you are all talking about. And it was my fault in not being clear. This is what I want: As you all know, when not logged in (as a guest) and you are viewing the ads, the contact owner form is already down at the bottom of the ad. The contact owner link is not visible and it has the Freecap Captcha enabled and the fields are set up to actually email the owner and also referencing the users email. That is fine and dandy. Now when logged in (as a registered user) the same ad will not show the contact form because it doesn't rely on emails to contact the owner, but rather PMs. And the Contact Owner link is visible. However, I want this page with the ad and logged in, to have a similar behavior as when not logged in. But I realize that it would still be using the PM system to deliver the message and not using the Freecap Captcha. And I want the contact owner link to not be visible. Does this make sense?
The settings for captcha, pm contact owner form are all aspects of the user group. Edit your users groups to hide/show the components you want.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-16-2009, 01:44 AM   #9
Member
 
Join Date: May 2009
Posts: 66
Rep Power: 0
Default

Yes, and I get all that. But what I don't see is the option of having the contact form right on the same page as the ad details when logged in. The contact form being what you get when you click on the link "Contact Owner" and get the simple form that sends a PM to the ad owner. If the users don't have to go one extra step of clicking on the link, that might make it easier for them to contact the owner since they automatically see the PM form as a registered user. Does this make sense? This is not a matter of turning on and off settings in the admin. I just need some clarification if this is a custom request.
__________________
68C | Developer License | Running v4.1.3
industrialpost is offline  
Old 06-16-2009, 04:00 AM   #10
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

That is the default behavior. Remove the test for logged in etc. Like this in your viewlisting file. Have not tested it but I think it should work when you are logged in. Do a test to make sure the form still sends an email.

{dynamic}

{if $allowcontact=="Y" && $display=="Y"}
{include file=contact/contactowner.tpl}
{/if}
{/dynamic}
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to auto populate category in search naidu01 Technical Support 3 01-18-2009 02:36 AM
Captcha on contact form ? philoo Technical Support 0 08-22-2008 02:48 AM
help for a contact form... frommarcq Off Topic 0 11-19-2006 12:38 PM


All times are GMT -4. The time now is 08:28 PM.


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