1
rsalomone
Working with Custom Blocks
  • 2007/6/15 13:51

  • rsalomone

  • Just popping in

  • Posts: 21

  • Since: 2005/6/21


Is there a way to make a Custom Block's text based on Logged in user level?

For example:

THIS IS MY CUSTOM BLOCK

{if anonymous user}
Welcome to our site, please login
{elseif admin user}
Hi Dude
{else}
Welcome username
{end if}

2
BroHam
Re: Working with Custom Blocks
  • 2007/6/15 14:18

  • BroHam

  • Just popping in

  • Posts: 100

  • Since: 2007/3/31


Just making more than one block would be the quick fix. Make each block seen by only the respective group you want.
• "Welcome guest, please login" -block seen only by anonymous group
• "Hi dude" -block seen only by admin
• "Welcome username" -block seen only by registered users

Yeah, I'm sure that's not the fix you're looking for though.
I don't know.

3
huzhenghui
Re: Working with Custom Blocks
  • 2007/6/15 15:08

  • huzhenghui

  • Just popping in

  • Posts: 53

  • Since: 2007/3/24


Quote:

rsalomone wrote:
Is there a way to make a Custom Block's text based on Logged in user level?

For example:

THIS IS MY CUSTOM BLOCK

{if anonymous user}
Welcome to our site, please login
{elseif admin user}
Hi Dude
{else}
Welcome username
{end if}

<{$xoops_isadmin}>
<{$xoops_isuser}>
gmail & gtalk: huzhengh (at) gmail (dot) com
Skype: huzhenghui

Login

Who's Online

274 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 274


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