Support Forums

Contact the Owner

This is a discussion on Contact the Owner within the Technical Support forums, part of the Technical Support Forums category; What version of 68 Classifieds are you running? V4.2.0 Designer What template are you using? Default Please describe in detail ...


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

Reply
 
Thread Tools Display Modes
Old 10-14-2010, 10:39 PM   #1
Customer
 
Join Date: Sep 2006
Posts: 68
Rep Power: 21
rockabilly is on a distinguished road
Default Contact the Owner

What version of 68 Classifieds are you running?
V4.2.0 Designer

What template are you using?
Default

Please describe in detail the issue you are having:

When my guests click on the "contact owner" link on the viewlistings page, it prompts them to login.
It does not make sense for them to sign up when contacting an ad owner.

What could I do to prevent them clicking on this link, while still retaining this link for registered users?
If I remove that link, then registered users would not be able to send mail through the scripts.

I searched for a solution in the forum as I am sure this has been discussed before, but I could not find anything.

Thanks in advance.
rockabilly is offline   Reply With Quote
Old 10-14-2010, 11:28 PM   #2
Customer
 
Join Date: Sep 2006
Location: USA
Posts: 156
Rep Power: 22
BigOrange will become famous soon enough
Default

If I understand your question correctly...

Sign in as administrator.

Click on Users >> User Groups >> Guest

Scroll down to "This Usergroup can contact the owner" and select YES.

Click "Submit" at the bottom of the page.

That will allow visitors to contact the owner without sighing in.
__________________
v4.1.9 Designer - Default template (modified)

"I have never forgotten anything... if I have I can't remember what it was."
BigOrange is offline   Reply With Quote
Old 10-14-2010, 11:52 PM   #3
Customer
 
Join Date: Sep 2006
Posts: 68
Rep Power: 21
rockabilly is on a distinguished road
Default

Hi,
Thanks for your help. I did have YES selected, but the problem I have is when the guests click on the "contact owner" link. It sends them to the login page. I am trying to eliminate that. It would be nice to remove that link if the registered users can see it when they are logged in.

If anyone can help me solve this, I would appreciate it.



Quote:
Originally Posted by BigOrange
If I understand your question correctly...

Sign in as administrator.

Click on Users >> User Groups >> Guest

Scroll down to "This Usergroup can contact the owner" and select YES.

Click "Submit" at the bottom of the page.

That will allow visitors to contact the owner without sighing in.
rockabilly is offline   Reply With Quote
Old 10-15-2010, 08:21 AM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,392
Rep Power: 135
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Look at the layout.tpl template for the menu. By default menu items the users see's depending on if they are logged in our not by looking at the users level. Apply the same logic around the link to contact the owner so it only displays when logged in or maybe better yet, use an if/else and if not logged in simply display the test "login to contact ownr".
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 10-15-2010, 08:49 AM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,183
Rep Power: 78
seymourjames is a jewel in the rough
Default

This is a problem in the template in my opinion. I believe the test Larry refers to needs to go into the file with pathname viewlisting/listingsextra.tpl . Around this


{if $pmon=="Y" && $allowcontact=="Y"}
{if $smarty.session.username<>'' || $smarty.cookies.username<>""}
<span class="contact"><a href="{$smarty.const.URL}/private.php?action=contactowner&view={$view}" rel="nofollow">{$smarty.const.LANG_CONTACT_OWNER}</a></span>
{/if}
{/if}
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com
seymourjames is offline   Reply With Quote
Old 10-15-2010, 09:32 AM   #6
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,238
Rep Power: 66
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by rockabilly
When my guests click on the "contact owner" link on the viewlistings page, it prompts them to login.
It does not make sense for them to sign up when contacting an ad owner.
Actually, it does make sense from the simple fact that allowing a non-registered user to contact an owner sends email directly to them, which is of course coming from YOUR website. This means that ANYONE can send SPAM through this vehicle to others coming from your website and domain. Not only annoying to the sellers (your customers) of items on your website, but could also get your domain listed in several databases that track those things. As well as the lists sent amongst spammers that your domain can be used for sending SPAM email.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 10-15-2010, 10:51 AM   #7
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,183
Rep Power: 78
seymourjames is a jewel in the rough
Default

No it doesn't make any sense really. You can use the same contact form with a capture whether you are logged in or not. Unless you are going to really sit there and see who registers. His point is why have a link in that place if the person is not logged on even and a contact form just beside it.

At the end of the day, a spammer is going to spam there is nothing to prevent it. Nothing will work against a professional spammer. They simply move from one site to another after a while so the authorities find it more difficult track them.

A really interesting idea would be that the ip address of the visitor is tracked and you can limit the number of times they can use the contact form per unit of time for example.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com

Last edited by seymourjames; 10-15-2010 at 11:01 AM.
seymourjames is offline   Reply With Quote
Old 10-15-2010, 06:30 PM   #8
Customer
 
Join Date: Sep 2006
Posts: 68
Rep Power: 21
rockabilly is on a distinguished road
Default

I agree. I set the script so that registered users and guest all are required to use the contact form.
It's better this way so guests do not flee when their are prompted to login.
Is there was a way to configure the "contact the owner" link so when you click on it, it will take you to the contact form, regardless of being registered, or a guest?

Thanks for your help.

Quote:
Originally Posted by seymourjames
No it doesn't make any sense really. You can use the same contact form with a capture whether you are logged in or not. Unless you are going to really sit there and see who registers. His point is why have a link in that place if the person is not logged on even and a contact form just beside it.

At the end of the day, a spammer is going to spam there is nothing to prevent it. Nothing will work against a professional spammer. They simply move from one site to another after a while so the authorities find it more difficult track them.

A really interesting idea would be that the ip address of the visitor is tracked and you can limit the number of times they can use the contact form per unit of time for example.
rockabilly is offline   Reply With Quote
Old 10-15-2010, 07:23 PM   #9
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,238
Rep Power: 66
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

We may be confusing two different things here. There is Contact the owner form, which shows on the viewlisting page and there is private messaging link. I believe that you are referring to the private messaging link. This is something that I have never liked since the addition of the private messaging feature, because the link does indeed say, "Contact the Owner". If this is what you are referring to, then of course you would have to be logged in, because a guest doesn't have an account to send a Private Message from.

You said that you want both registered users and guests to use the contact form, so if that is the case, then just turn private messaging off in the admin. However if you still want to use that for registered users, then follow the advice given by either seymourjames or lhotch for the link.

something like:
{if session.username}
link
{/if}

You may even want to change the text for the link to something like "Private Message the Seller"
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 10-15-2010, 09:27 PM   #10
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,183
Rep Power: 78
seymourjames is a jewel in the rough
Default

Just remove the link and get the contact form to display on the viewlisting.tpl file whether you are logged in or not. Why would you even want to show the link if there is a contact form right next to it. It will be surplus to requirements.

To be clear - I personally remove all references to private messages from the layout file, from the viewlsitings, within the account management area and just use the normal contact form on the view listings whether someone is logged on or not. I also remove the contact owner link as it is no longer necessary.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates and list your 68C site on ClassifiedCodes.com

Last edited by seymourjames; 10-15-2010 at 10:11 PM.
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Contact the owner? sitewonders Technical Support 3 07-14-2009 08:10 AM
Contact the owner castus Technical Support 4 12-05-2007 11:17 PM


All times are GMT -4. The time now is 10:07 PM.


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