Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Forum Login Refresh Issue (1 viewing) (1) Guest
TOPIC: Forum Login Refresh Issue
#62223
Re:Forum Login Refresh Issue 1 Month, 1 Week ago  
Hi, since it applies the patch, users told me that a important error that may have to do with it.

It has corrected the Login refresh problem but now, when a user enters his username using the mod_login joomla, it says "Welcome Administrator. Then when It try to access the forum does not recognize it and tells you to enter. This has happened to multiple users. Watch out that you do not happen the same.

I was also using the cache plugin and now I've turned off by what you have to do with it.

We'll let you know.
juanma (User)
Junior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#62240
Re:Forum Login Refresh Issue 1 Month, 1 Week ago  
I take it, it's sorted it out for your Flex? Do please reply and tell us

Confirmed. It works perfectly. Thank you again for your hard work.
Flex (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#62345
Re:Forum Login Refresh Issue 1 Month, 1 Week ago  
Hello,

I believe I applied the patch correctly, and have the Remember me and legacy plugins next to each other, but it didn't work for me.

All I changed was the legacy.php file, to insert the new function.

I that all that is needed? Sorry, I am new to this stuff.
trevorz (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#62350
Re:Forum Login Refresh Issue 1 Month, 1 Week ago  
hi trevorz,

Yes, that's right, ensure the remember me and legacy plugins are the correct way round and enabled.

Make sure you put the new code in the correct location, and without the +'s at the begining of the lines.

Also ensure in your config the Remember Me box is either non visible and checked/enabled or visible and you logged in with it checked. Also that you've not set the session timeout to 0 or a high number, 15 (mins) is the default.

You can also use this instruction from the patch page, to easily tell if it's working or not:
3. echo $GLOBALS['my']->id; to the end of the file (after the echo JResponse::getString...)

This will print either a 0 (not logged in or lost login) or a user id number at the bottom of the page (working ok).
AJStevens (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#62383
Re:Forum Login Refresh Issue 1 Month, 1 Week ago  
Well, unfortunately it didn't work for me. I have the remember me and legacy plugins ordered 0 and 1 (remem ber me first).

I put the code in the legacy.php file in plugins/system, and no joy. I have both login modules running, (CB login and regular login), and I see the regular one is logged in, and the CB one is not. Same for Fireboard. If you have any other suggestions on what I could have incorrect, please let me know. I've attached the legacy.php code.

One item I wonder about (and excuse my ignorance here), but the code added is function onAfterInitialise().

I am not familiar at all with PHP, but if it is like C, then it is a function, but what actually calls that function? i.e. where is onAfterInitialise called?

Thanks for finding this error, it has been a thorn for months for me, and I did ask before about it but not as persistent as you!
File Attachment:
File Name: legacy_php.txt
File Size: 13655
trevorz (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/11/29 05:55 By trevorz.
 
 
#62384
Re:Forum Login Refresh Issue 1 Month, 1 Week ago  
Here is a screen capture of my system plugins...<br>
trevorz (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/11/29 05:58 By trevorz.
 
 
#62539
Re:Forum Login Refresh Issue 1 Month ago  
trevor,

I wouldn't recommend having both login modules active at the same time.
The echo $my->id code should suffice if it's not obvious (cblogin, fireboard showing as guest or logged out).

I would skip using "0" in the sort order, instead start with "1". Maybe nothing, but might be the cause.

Your legacy.php code looks right to me.
AJStevens (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#62541
Re:Forum Login Refresh Issue 1 Month ago  
trevorz wrote:
One item I wonder about (and excuse my ignorance here), but the code added is function onAfterInitialise().

I am not familiar at all with PHP, but if it is like C, then it is a function, but what actually calls that function? i.e. where is onAfterInitialise called?

Thanks for finding this error, it has been a thorn for months for me, and I did ask before about it but not as persistent as you!


Thanks Trevor, yes I knew that since a refresh sorts it out, it could be fixed somewhere, and it was simply a case of something not happening in the correct sequence. I've had similiar issues coding my own website login forms from scratch.

I'm fairly good at asp and php (well, understanding it, can take me a while to code some things), but obviously not experienced at understanding Joomla's usage of it.

Joomla has it's own system, and I've understood a little waiding through it, but OnAfterInitialise() would be called in a main file, possibly in the framework. Suffice to say it's after the main code is initialised and the main section of plugins, so after remember me and legacy have run, this does a check to see if the $my information is filled or not, if not, it populates it again.

Admittedly, the question really should be why remember me doesn't ALWAYS run before legacy, but having a check afterwards is also desired since it's quite important. Personally, I might also have investigated why the expected behaviour doesn't always happen, but since there won't be any 1.0 legacy mode in 1.6 this is probably now a mute point to spend time on, at least it's a fix.
AJStevens (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
Go to top