1
allnewtome
Userinfo.php shows cbb forum posts even to anonymous users
  • 2010/4/19 19:28

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


I have called this a "bug report" even though technically it might not be a bug...

I use Xoops 2.4.2 and CBB 3.08.

The CBB forum is only visible to logged-in users.

Userinfo.php shows all forum posts by a particular user.

The problem is that userinfo.php shows the titles of all the forum posts the user has made.

So anonymous users can see what topics anyone has posted about.

How can I stop this from happening?

Many thanks.

2
allnewtome
Re: Userinfo.php shows cbb forum posts even to anonymous users
  • 2010/4/19 19:52

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


I hacked a very inelegant solution.

Change the template system_userinfo.html as follows.

After the IF clause beginning
<{if $user_ownpage == true}>


Add
<{if !$xoops_isuser}>Please log in to view this page.<{/if}>

<{if $xoops_isuser}>


At end add
<{/if}>


This means that logged-in users can see the details as normal but anonymous users see nothing except the "please log in" message.

I'm sure there must be an easier way though!

EDIT: Ignore the
 tags above....
    

Login

Who's Online

144 user(s) are online (35 user(s) are browsing Support Forums)


Members: 0


Guests: 144


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