1
Djiman
Hiding the user menu from demo user
  • 2006/8/27 9:07

  • Djiman

  • Just popping in

  • Posts: 91

  • Since: 2006/7/26


HOW DO I HIDE THE USERMENU FROM A PRESET DEMO USER?

some advise needed ....

I know I read something similar in concept some times back in the forum, but can't find it
So any of you with some ideas.


The idea;

Demo user.
the issue is, you want to set a DEMO user, giving the username and password to several peoples to login and test your site or post some content.

So you set a demo
- password and username .((and hoping that no demo user edit that particular account or even delete it ))
- paste it somewhere on your site, email it to several peoples, -for testing!

That is fine and at this point.
The 'DEMO' user is also a regular member, - some will try to edit,play with that demo account ! - change password !or delete it ! that is for sure.

The idea is after setting the demo user/pw, how do I hide the USERMENU from that particular demo username only?

Have anyone tried that before and how did you achieve it?

many thanks for any idea, i know it is very simple for you..





[size=x-small][edit by Bender] Please donĀ“t shout at us. Subject edited to lowercase. Thanks.[/size]

2
Bender
Re: Hiding the user menu from demo user
  • 2006/8/27 9:17

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Ok ... did not find the code in a quick search.

The lazy alternative would be to create a user group with the same rights as in the registered group except for access to the usermenu block.

Then remove the demo user from registered users groupsand only put him into this new group.
Sorry, this signature is experiencing technical difficulties. We will return you to the sheduled signature as soon as possible ...

3
Djiman
Re: Hiding the user menu from demo user
  • 2006/8/27 10:45

  • Djiman

  • Just popping in

  • Posts: 91

  • Since: 2006/7/26


Thanks Bender,
I will check into that lazy- option and will feed back.

But, if by chance you ever come across anything as below
=========
if xoops_isuser !== 'username'
echo 'this'; else;
echo 'that'
endif;

========
would have been the best option to just paste it in the template.

Login

Who's Online

125 user(s) are online (78 user(s) are browsing Support Forums)


Members: 0


Guests: 125


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