This seems the appropriate place to post this.
I have noticed that with my site, when I am logged into the front end, I leave the site, and then come back some time later, I am already logged into the frontend. However, if I try to do anything in the forum (ie post a new thread, find admin area etc), then I am redirected to
http://www.mysite.com/forum/ and asked to login again with my password. This means that I get thrown out of Joomla!
So from then on, I am no longer seeing the forum through the Joomla Wrapper, instead, I am looking direct at the forum.
Now if I implement the code above, I get another problem. As above, I am logged into Joomla, but not SMF. So SMF will ask me to login again, but the code above will redirect me back to Joomla again, and I still will not be logged in. The only way to login to the forum therefore is to logout of Joomla, and then log back in again. This is very confusing for users.
Therefore, is there a way of implementing the code above ONLY if a member logs into the forum?Hope that makes sense coz it does to me :>