1
gecko
Hide user name in comments etc.
  • 2005/3/17 22:41

  • gecko

  • Not too shy to talk

  • Posts: 152

  • Since: 2004/10/11


Is there a way to hide user names in comments etc, from anonymous visitors.
Some of my members do not want to be identified to non members.
Any Ideas

Regards
Gecko

2
Bassman
Re: Hide user name in comments etc.
  • 2005/3/17 22:57

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


it wouldn't be hard to do, but you would have to edit the templates in a lot of different places

3
Bassman
Re: Hide user name in comments etc.
  • 2005/3/17 23:14

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


I just tried this in the News Item template and it works:

1) Clone your default template set.
2) Edit news_item.html:


<{$story.title}>


<{$lang_postedby}>
<{if $xoops_isuser}><{$story.poster}><{else}>User<{/if}>
<{$lang_on}> <{$story.posttime}> (<{$story.hits}> <{$lang_reads}>)


<{$story.imglink}>

<{$story.text}>




<{$story.adminlink}> <{$story.morelink}>



Bold code is what I added. Note that the <> don't get bolded for some reason?

3) Set your cloned template set as the default, and you're ready to go.

You just have to find all the places to change this code-that's the hard bit ;)

4
gecko
Re: Hide user name in comments etc.
  • 2005/3/17 23:19

  • gecko

  • Not too shy to talk

  • Posts: 152

  • Since: 2004/10/11


Thnx Bassman i will try it out and report back.

Login

Who's Online

313 user(s) are online (250 user(s) are browsing Support Forums)


Members: 0


Guests: 313


more...

Donat-O-Meter

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

Latest GitHub Commits