1
ksatpro
changing the layout based on group
  • 2004/4/18 23:01

  • ksatpro

  • Just popping in

  • Posts: 14

  • Since: 2004/3/2 1


is it possable to dynamically changing the layout based on group permissions. I want to use a different theme for registered users and use another theme for non members. Any ideas?

Thanks
Kastpro

2
davidl2
Re: changing the layout based on group
  • 2004/4/18 23:37

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


I don't know about a complete different theme, but it may be possibile to reffer to some different images based on the status of the person logged in... perhaps using the groups variable as part of the name or something?

Just a thought....

3
irmtfan
Re: changing the layout based on group
  • 2004/4/19 12:26

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


in the database & in xoops_users table u can set default theme for every user.

but i cant see this options in the xoops_groups table or somewhere like that

i look at the database tonight and tell u best way

4
ksatpro
Re: changing the layout based on group
  • 2004/4/19 13:32

  • ksatpro

  • Just popping in

  • Posts: 14

  • Since: 2004/3/2 1


Thanks for the replays, I am trying to have a customer side of the site with no login and a dealer side with login. Once a dealer logs in then they will have a different theme that they would be working within. But I have had no luck in trying to do this...newbee...

Any help with get great.

Ksatpro

5
pdaddict
Re: changing the layout based on group
  • 2004/4/19 14:23

  • pdaddict

  • Friend of XOOPS

  • Posts: 106

  • Since: 2003/4/6 1


accessing group membership info from Smarty

After you've done that, copy the code for all themes you want to use to 1 theme.html, and enclose each layout with if-statements, to select the layout you wish to use.

Login

Who's Online

323 user(s) are online (212 user(s) are browsing Support Forums)


Members: 0


Guests: 323


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