Search found 6 matches
- Mon Nov 05, 2007 7:53 am
- Forum: Joombie Coding Q/A
- Topic: Plugin question
- Replies: 6
- Views: 1013
Re: Plugin question
The plugin I'm trying to create works differently, this was just a test. Because of the redirect error I thought something didn't work, but now that I know it keeps executing the same redirect plugin over and over I know all works fine.
- Fri Nov 02, 2007 2:48 pm
- Forum: Joombie Coding Q/A
- Topic: Plugin question
- Replies: 6
- Views: 1013
Re: Plugin question
I think I already see what goes wrong. When the redirect is done, the plugin will be called again and redirects again etc, etc.
So I guess I got it solved!
So I guess I got it solved!
- Fri Nov 02, 2007 2:26 pm
- Forum: Joombie Coding Q/A
- Topic: i just wanna know if someone is logged in LOL
- Replies: 2
- Views: 923
Re: i just wanna know if someone is logged in LOL
I think you should check the $user->guest variable which is 0 if the user is logged in I believe. In Joomla 1.5 I do:
$user = & JFactory::getUser();
if($user->guest)
{
}
$user = & JFactory::getUser();
if($user->guest)
{
}
- Fri Nov 02, 2007 2:14 pm
- Forum: Joombie Coding Q/A
- Topic: Plugin question
- Replies: 6
- Views: 1013
Re: Plugin question
Apparently it does work when I put my plugin in the system plugin folder. There is another problem however. When I redirect to another page I get a browser error. Yet when I disable the plugin and refresh the very same page, it does work. The browser error is that the page incorrectly redirects in a...
- Fri Nov 02, 2007 9:15 am
- Forum: Joombie Coding Q/A
- Topic: Plugin question
- Replies: 6
- Views: 1013
Re: Plugin question
I can't seem to get it to work. The redirection doesn't go. I tried the following: function onAfterInitialise() { global $mainframe; $mainframe->redirect('index.php?option=com_media'); } When I do the same in the onLoginUser event, the redirection does work like this. I would expect the above snippe...
- Thu Nov 01, 2007 2:30 pm
- Forum: Joombie Coding Q/A
- Topic: Plugin question
- Replies: 6
- Views: 1013
Plugin question
I'm trying to execute some code just before any backend-components is displayed. What I want to do is check some user-parameters and redirect the user somewhere depending on these parameters. I know how to retrieve user parameter data, but the problem is that I can't find any plugin event which alwa...