825th_Outlaw
|
Making header iframe only show when logged in?Is there a way to do this ?
I have an iframe just under the logo with a calendar in. If possible, is there a way to make that part ONLY show when logged in ?
I assume some code would need to be placed either side of the iframe entry.
(Yes, I will be searching more too this time, but i think this is out of my league)
Thanks
Paul
|
admin (no pm's please)
|
There are loads of "switches" that can be used.
<!-- IF S_USER_LEVEL <> 0 -->
<!-- ENDIF -->
|
825th_Outlaw
|
Thanks, i'll have a go
paul
|
825th_Outlaw
|
o, I tried this, but it didnt work when logged out, the calendar still showed
| Code: | <!-- IF S_USER_LEVEL <> 0 -->
<IFRAME NAME="cal" SRC="http://my.calendars.net/60cal" frameborder=0 height=180 width=100% align="center" valign="top"></IFRAME>
<!-- ENDIF --> |
then I saw another post that had this
| Code: | <!-- IF S_USER_LEVEL == -1 -->
Logged Out
<!-- ELSE -->
logged in content
<IFRAME NAME="cal" SRC="http://my.calendars.net/60cal" frameborder=0 height=180 width=100% align="center" valign="top"></IFRAME>
<!-- ENDIF --> |
When logged in, the text 'logged in content' and the calendar showed as expected, but when logged out, the 'Logged out' text showed, but so did the calendar again. I cant see how the cal code could still work as its in the 'wrong' side of the if-else-end code.
What I wondered, is if the iframe tag could upset/override anything?
so now I am confused (again )
forum page (logged out)
appreciate your help
paul
|
Symon
|
the baisc code admin left would work.
or try
| Code: | <!-- BEGIN switch_user_logged_in-->
code here
<!-- END switch_user_logged_in--> |
|
825th_Outlaw
|
| Symon wrote: | the baisc code admin left would work.
or try
| Code: | <!-- BEGIN switch_user_logged_in-->
code here
<!-- END switch_user_logged_in--> |
|
Excellent!
The admin code still didnt work for what ever reason, but the | Code: | | <!-- BEGIN switch_user_logged_in--> | worked perfectly! odd huh ?
Thanks for the help again
I'll get there eventually, but it really helps being able to get this sort of pointer/advice
Paul
|
|
|