TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,250
  • Total Topics: 21,354
  • Online today: 626
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Eliminate panels on login screen

Started by ogmios, September 12, 2008, 03:57:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ogmios

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...

IchBin


ogmios

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

IchBin

Thanks for the info it helps.

Do you know what the URL is when the user is kicked out of the session?

ogmios

 ???   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...

IchBin

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.

ogmios

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 ~


G6Cad


ogmios

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




G6Cad

How is your url set in your settings.php

Are they any diffrent = like http://yoursite  or http://www.yoursite

This website is proudly hosted on Crocweb Cloud Website Hosting.