How To Do Zones Only Visible To Logged Users? »  Show posts from    to     

Icy Phoenix


Old Support Topics - How To Do Zones Only Visible To Logged Users?



tiolalu [ Tue 09 Sep, 2008 14:21 ]
Post subject: How To Do Zones Only Visible To Logged Users?
I have modified the viewtopic_body and the album_index_body.tlp to do some parts of the page only visibles to logged users through inserting: <!-- BEGIN switch_user_logged_in --> (and END blablabla), but they don't work.

What may I do to make this code work?

Thanks.


novice programmer [ Sun 14 Sep, 2008 18:09 ]
Post subject: Re: How To Do Zones Only Visible To Logged Users?
Try MG_SWICH

Then trun on and off the ligths at MG's house


tiolalu [ Sun 21 Sep, 2008 14:27 ]
Post subject: Re: How To Do Zones Only Visible To Logged Users?
I had took this code from another part of the code in the overall header.


novice programmer [ Sun 21 Sep, 2008 21:41 ]
Post subject: Re: How To Do Zones Only Visible To Logged Users?
Ok, tagging solved...

Which was the answer?

I guess you did not set "reg" at the CMS....


tiolalu [ Mon 22 Sep, 2008 00:12 ]
Post subject: Re: SOLVED - How To Do Zones Only Visible To Logged Users?
I dont' know the answer yet xD, I tried with this code I took from overall_header (so it works) but it don't work in the viewtopic_body (As I remember, that is the file which you can modify the avatar, user info, and signs).


Mighty Gorgon [ Mon 22 Sep, 2008 00:58 ]
Post subject: Re: SOLVED - How To Do Zones Only Visible To Logged Users?
If it is not working it is because you are trying to use that switch within another switch... and it is not going to work.

You need to create another variable in your php file.

If you are using MG_THEMES you can use this:
Code: [Hide] [Select]
<!-- IF S_LOGGED_IN -->
YOUR CODE
<!-- ELSE --->
YOUR CODE
<!-- ENDIF -->


tiolalu [ Mon 29 Sep, 2008 23:42 ]
Post subject: Re: SOLVED - How To Do Zones Only Visible To Logged Users?
Mighty Gorgon, aha!

Thanks very much MG, I will try that .


tiolalu [ Sat 04 Oct, 2008 19:07 ]
Post subject: Re: SOLVED - How To Do Zones Only Visible To Logged Users?
Mighty Gorgon, I have been busy and ill, but I have tried now and it works perfectly! .

PD: I don't know how to create another variables to create new switches, but this solution works perfectly for me .


Mighty Gorgon [ Fri 10 Oct, 2008 14:37 ]
Post subject: Re: SOLVED - How To Do Zones Only Visible To Logged Users?
Great!




Powered by Icy Phoenix