hello,
i've been restricting tp blocks from showing up during specific actions (as has been outlined in this thread: http://www.tinyportal.net/index.php?topic=21282.0) such as 'post', 'arcade', 'chess' (to name a few), but i need help with another part of it...
a chat block that i have (it's a cbox) takes control of the cursor during login... for example, when a user starts typing in their username on the login screen, typing freezes once the cbox block loads... the user then has to click out of the username field then back into it to re-activate typing...
now, i added the action 'login' to the 'tp_hidebars' code modification in my index_template.php file and it works fine EXCEPT when a user session expires or if a user accidentally types in the wrong password, the resulting login screen loads with none of the blocks hidden (resulting in the cbox block loading and the typing freeze)...
is there anything i can do to achieve the blocks being hidden during this 're-login action' (for lack of a better term)?
thanks...
Sure would help if you'd give us some info to work with.
Please read the Posting Guidelines (http://www.tinyportal.net/index.php?topic=581)
my apologies... here's the info:
Link to my site: http://www.bluewaterbeat.org
SMF version: SMF ver. 1.1.6
TP version: TP ver. 0.9.8
Theme name and version: default
Mods installed:
YouTube BBCode
SMFChess
Googlebot & Spiders Mod
Custom Board Sort
SMF Arcade
FlashChat Integration
Related Error messages: none
Thanks for the info it helps.
Do you know what the URL is when the user is kicked out of the session?
??? sorry, i don't know what the URL is... when it happens to me, it could be anywhere in the forum... not sure how to determine what the URL is when the user is kicked out of the session... how do i determine what it is?
it usually happens to me at work because of being idle for so long when i'm away from my computer actually working and not fooling around with the forum ::)
for example, i'll be typing up a post, then leave to do something, come back to finish and submit, but when i hit submit, i am prompted to login - so i assumed this was because of being idle and thus my login session expired...
i've expired in the arcade, in chess, while posting, etc.... all different areas...
I'm not talking about the URL that you get kicked off of when you're session ends. I'm talking about the URL of the page AFTER you've been kicked out of your session.
jeeeeeeeeeeeeeeeeeezz... that was easy... so easy that i'm upset for not figuring it out myself :tickedoff:
thanks for pointing me in the right direction IchBinâ,,¢... (and, *ahem*, all i had to do was pay better attention)... i had been watching the status bar in my browser to try and figure out what action was executing, not even looking at the address bar that displayed the URL from the expired session (which contained the action i needed)...
so 'login2' is the answer, i added it to my 'tp_hidebars' modification in index_template.php and ALL IS GOOD...
~ solved ~
Marked as solved
oops... my bad... not solved...
adding 'login2' to the 'tp_hidebars' code took care of when a user types an incorrect password or username, but it did not take care of when the session expires...
--- sorry for jumping the gun
i was just in the arcade and the session expired... the login screen came up with the panels showing... the resulting URL is simply: http://www.bluewaterbeat.org/waveforum/index.php?action=arcade (i already have the action 'arcade' added to my 'tp_hidebars' code)...
same thing if i go to check who's online if the session is expired... i get the login screen with panels showing... the URL for that of course is: http://www.bluewaterbeat.org/waveforum/index.php?action=who
How is your url set in your settings.php
Are they any diffrent = like http://yoursite or http://www.yoursite
no difference (i believe)...
$boardurl is set to http://www.mysite.........
still trying to figure this one out and the only thing i can add to the discussion is that the 'tp_hidebars' code does not work for the action 'login2' if the 'Warning!' label is added to the login window...
for example, if a user types in a wrong password, the action 'login2' is executed an a 'password incorrect' message appears above the login fields and no tp panels show - all good...
if a user session expires, and they try to access a members only area, then the action 'login2' is executed, but now shows a 'Warning!' message at the top of the login box - tp panels do not hide in this instance... (login2 does not show in the url, but shows it being called in 'view source' - so i assume login2 is the action being called)...
not sure if there is anything possible to do to hide the tp panels for the warning!/login2 screen... any help is welcome - and thanks for the support so far - much appreciated...
Since I don't know anyone that uses the session timeout, you're going to have to show me the URL for that. What does the URL look like where you are having the problem of not being able to hide the sidebars.
assuming i am saying this correctly, when i am logged in an idle for a while, i become logged off (i assume this to be that the session expired)... so after sitting idle, i come back to the screen and it looks like i'm still logged in...
then i will click on 'arcade' (for example) and then get prompted to login (but with the 'Warning!' message in the title bar)...
the URL when i am at this screen is: http://www.bluewaterbeat.org/waveforum/index.php?action=arcade (i have the action 'arcade' and 'login2' both included in the 'tp_hidebars' code)...
when i am logged in and enter the arcade, the blocks hide as they should... when i type in a wrong password, the action 'login2' is called an the blocks hide as they should... when the 'Warning!' message is applied to the login screen, the blocks do not hide (no matter what section i go into)...
you can see an example of this by going to www.bluewaterbeat.org and typing in a wrong username and password and you will see the blocks hide when it reports back that the login was incorrect (as it should)...
when you click on the arcade button, you will see the 'Warning!' login appear (because guest access is not allowed), but now the blocks do not hide...
I will point Bloc at this topic. I understand what you're saying, but don't know enough about how TP loads if/when in those types of situations. I'll see if he can give an answer on whether its possible to do what you want.