Recent Topics

1 Sep 28, 2009 11:25    

My b2evolution Version: 3.3.1

I wanna add an option (button) to my menu, but only if someone is logged in.
Where in the code is the check if someone is logged in, how do i do this check ?

Thnx.

2 Sep 28, 2009 14:45

<?php if( is_logged_in() ) echo 'hello world'; ?>

¥

3 Sep 28, 2009 17:08

¥åßßå wrote:

<?php if( is_logged_in() ) echo 'hello world'; ?>

¥

I wanna use this in index_main.php because there is my menu, but when i do i get an error message. I think it couldn't found the function is_logged_in().
In what module is it described ?

What i wanna do is add an webmail button somewhere is the admin is logged in to acces there email. How can i do this ?
I was thinking to add an link in the menu.

4 Sep 28, 2009 19:24

that code should work in /skins/[skin]/_index.main.php ... I've got a pair of widgets somewhere that can achieve the same thing ... but I'd need to ask toppie where they are

¥

5 Sep 29, 2009 11:02

¥åßßå wrote:

that code should work in /skins/[skin]/_index.main.php ... I've got a pair of widgets somewhere that can achieve the same thing ... but I'd need to ask toppie where they are

¥

Ok. I hope you can ask the widgets for me. Thnx.


Form is loading...