1
surfinsaxman
catads - allow guests to view but not to reply

Hello, i use catads 1.4.
Is there a way to allow guests do view the announces but prevent to answer via email?

2
Anonymous
Re: catads - allow guests to view but not to reply
  • 2007/3/10 15:11

  • Anonymous

  • Posts: 0

  • Since:


Yes, just check the prefences of catads at admin area.

3
surfinsaxman
Re: catads - allow guests to view but not to reply

There is just one option, I see in preferences.

I can allow guests to publish announces or not.

4
nachenko
Re: catads - allow guests to view but not to reply
  • 2007/3/10 17:25

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


A simple trick in smarty:

Locate the "reply" button or link in your template.

-- Reply button or link --

and write this around it:

<{if $xoops_isuser}>
-- Reply button or link --
<{/if}>

If they are not logged on, they won't see the reply button

5
surfinsaxman
Re: catads - allow guests to view but not to reply

@nachenko

Thank you. It might be the right way.
Unfortunately I am not familiar with the syntax of php.
When I put the code around it as you wrote, I will see the code written on the page.
Perhaps it is just a small change.



<{if $annonce.suspend 0}> 
<{
$smarty.const._MD_CATADS_PUB_SUSP}> <{else}> <{$smarty.const._MD_CATADS_CONTACT}> 
<{
$annonce.msg_contact}> <{$annonce.maillink}> <{$annonce.pmlink}> <{$annonce.phone}><{/if}>


It would be the optimum, when the guest would see a message like "you must be a registered member to answer ..." instead of the buttons.

6
nachenko
Re: catads - allow guests to view but not to reply
  • 2007/3/12 11:16

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Two questions:

1 - What file / template did you put this code in?

2 - Did you use Dreamweaver to write this code?

If you use Dreamweaver, never write Smarty code in the Design view. Dreamweaver probably will rewrite it, understanding < > and all these as special characters. Use always the code view.

7
surfinsaxman
Re: catads - allow guests to view but not to reply

@nachenko
It was my mistake. I tried it again and now it works fine.

Thank you very much.

Login

Who's Online

204 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 204


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits