Topic: Adding an area in my template for logged in people only

I run a forum that is 100% private. you can't see anything unless you log in.
I want to embed my twitter updates code into the template but I only want the twitter information to be viewed by people who are logged in.

I know how to do all of the above apart from make the twitter information only viewable by people who are logged in.

So is there some code I can place around the twitter code that will achieve this?
Thanks in advance
Mark

Re: Adding an area in my template for logged in people only

if (!$forum_user['is_guest'])
{
  // Your code for authorized users here

?>
Hello, my dear users, who has successfully logged in :-)
<?php

}
Carpe diem

Re: Adding an area in my template for logged in people only

Thanks for that.
That doesn't seem to work in my main.tpl
I should have mentioned that the thing I want to hide is in the main.tpl file.

Thanks if you help further smile
Regards,
Mark

Re: Adding an area in my template for logged in people only

php does not run in the tpl files, you have to make a file in include/user and add that code there, Then use forum include

Sorry. Unactive due to personal life.

Re: Adding an area in my template for logged in people only

Thanks for that
Sounds good... but I've no idea how to use a forum include. Is there a help file for that?

Re: Adding an area in my template for logged in people only

yonnermark wrote:

Thanks for that
Sounds good... but I've no idea how to use a forum include. Is there a help file for that?

http://punbb.informer.com/docs/faq.html#faq3_4

Carpe diem