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:

<div class="item">
<div class="itemHead"><span class="itemTitle"><{$story.title}></span></div>
<div class="itemInfo">
<span class="itemPoster"><{$lang_postedby}>
<{if $xoops_isuser}><{$story.poster}><{else}>User<{/if}></span> <span class="itemPostDate"><{$lang_on}> <{$story.posttime}></span> (<span class="itemStats"><{$story.hits}> <{$lang_reads}></span>)
</div>
<div class="itemBody">
<{$story.imglink}>
<p class="itemText"><{$story.text}></p>
</div>
<div class="itemFoot">
<span class="itemAdminLink"><{$story.adminlink}></span> <span class="itemPermaLink"><{$story.morelink}></span>
</div>
</div>

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

104 user(s) are online (55 user(s) are browsing Support Forums)


Members: 0


Guests: 104


more...

Donat-O-Meter

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

Latest GitHub Commits