1
Yurdal
Every user group own footer
  • 2010/4/14 11:21

  • Yurdal

  • Friend of XOOPS

  • Posts: 386

  • Since: 2005/3/27


I want to each user group has his own environment normal code was :

<{if $xoops_isadmin}><{includeq file="$theme_name/xotpl/xo_footerstatic.html"}><{/if}>

This works well , only admin can see the footer , than i tried :

<{if $xoops_isadmin}><{includeq file="$theme_name/xotpl/xo_footerstatic.html"}><{/if}>
<{if $xoops_isuser}><{includeq file="$theme_name/xotpl/xo_user.html"}><{/if}>

So that the user and the admin has his own footer, this works partly, now i only see the user side , even when im admin, how can i fix this ?

2
deka87
Re: Every user group own footer
  • 2010/4/14 11:47

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


I guess this happenss because administrators belong to both of the groups. I think you should try something like:

<{if $xoops_isadmin}><{includeq file="$theme_name/xotpl/xo_footerstatic.html"}><{else}><{if $xoops_isuser}><{includeq file="$theme_name/xotpl/xo_user.html"}><{/if}><{/if}>


Maybe this can be shortened somehow but I believe my code should work fine.

3
ghia
Re: Every user group own footer
  • 2010/4/14 11:59

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
So that the user and the admin has his own footer, this works partly, now i only see the user side , even when im admin, how can i fix this ?
The user footer should be present when you are logged in.

For user group dependencies see this (no hack required for 2.4.4).

4
Yurdal
Re: Every user group own footer
  • 2010/4/14 12:45

  • Yurdal

  • Friend of XOOPS

  • Posts: 386

  • Since: 2005/3/27


Deka this works !
I did play some with the else code but i think i made some mistakes, but your code works !


Login

Who's Online

160 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

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

Latest GitHub Commits