Remember Position After Login/Logout

Started by vbgamer45, August 30, 2010, 06:37:52 PM

Previous topic - Next topic

distante


supersasho

#61
Thanks for the quick reply, here are some info:

forum http://sgalaxy.cz/forum [nofollow]
wiki http://sgalaxy.cz/wiki [nofollow]
testing account login: pokus
pass: hokus
The language is czech, so if you want to login in wiki, just click on "přihlaste se" in upper right corner. It redirects you to the forum login page and after you enter the previous data in the fields it redirects you to the main page (http://sgalaxy.cz/forum [nofollow]). To logout click "odhlasit (se)".

EDIT: I changed the language for the pokus profile to english, but only in forum, wiki is still only in czech.

distante

Ok, I see the "problem", that isn't really a problem, is just the way this mod works, it sees if you are in a topic or in the login screen, if you are in the login screen, the redirect code sends you to the portal, if you are in a topic then the mod makes sure that you stay there.

Since the wiki login link sends you to the forum login page, is normal that after log it redirects to the forum main page (or portal), because as I said before, you are in the login screen

In the way the mod is write, isn't possible return to the wiki page. I already have an Idea of how can this be made, but will need some DB access and the code wouldn't be so transparent (I think).

Regardless, I have some (heavy) financial problems now and because of that can't develop the new version soon enough... sorry.

anicolac

Muchas gracias por el mod, es justo lo que estaba buscando. ;)

Lo único que me ocurre, es que cuando lo tengo instalado y entro en la sección de paquetes me aparece un error sin importancia.
Estuve desinstalando paquetes para ver cual era el que lo provocaba y sólo me ocurre con este, aunque quizás me equivoque.


http://www.xxxxxxxx.es/index.php?action=admin;area=packages
8: Undefined offset: 1Archivo: /usr/xxxx/Sources/Subs-Package.php
Línea: 1489

1487: // Build an array of parts.
1488: $versions[$id] = array(
==>1489: 'major' => (int) $parts[1],
1490: 'minor' => !empty($parts[2]) ? (int) $parts[2] : 0,
1491: 'patch' => !empty($parts[3]) ? (int) $parts[3] : 0,
1492: 'type' => empty($parts[4]) ? 'stable' : $parts[4],
1493: 'type_major' => !empty($parts[6]) ? (int) $parts[5] : 0,
1494: 'type_minor' => !empty($parts[6]) ? (int) $parts[6] : 0,
1495: 'dev' => !empty($parts[7]),
1496: );
1497: }


Aunque no entiendo nada, se os ocurre algo a vosotros?
www.applemaniacos.es - SMF 2.0.4


distante

Bueno el mod no toca ese archivo para nada, ni idea.

anicolac

Quote from: distante on April 05, 2012, 01:59:14 PM
Bueno el mod no toca ese archivo para nada, ni idea.

Ya, es raro.

A ti no te pasa, no?
www.applemaniacos.es - SMF 2.0.4


distante


Geor'G

In the file - package-info.xml

This is:
<uninstall for="for="1.1 - 1.99.99"">

Fix:
<uninstall for="1.1 - 1.99.99">

GL700Wing

In relation to the error:
http://www.xxxxxxxx.com/index.php?action=admin;area=packages
8: Undefined offset: 1
File: /home/account/public_html/forum/Sources/Subs-Package.php
Línea: 1489

There is an error in the file package-info.xml

Replace this:
<uninstall for="for="1.1 - 1.99.99"">

With this:
<uninstall for="1.1 - 1.99.99">
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

congminh1709

This mod doesn't compatible with smf 2.0.3.

Install can't find this code in file LogInOut.php

if (empty($_SESSION['login_url']))
redirectexit();


Any help for this issue? Thanks.

Colin

"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Biology Forums

How could I make the exception for this mod so that if the member is in http://xxx.com/index.php?action=activate, he/she gets redirected to the main board?

dougiefresh

I changed this line in LogInOut.php:
//Let's see if the REFERER is empty if it's no, take the next step
if (!empty($_SERVER['HTTP_REFERER']))

to this:
//Let's see if the REFERER is empty if it's no, take the next step
if (!empty($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'action=activate') == 0 && && strpos($_SERVER['HTTP_REFERER'], 'action=admin') == 0)

The replacement line also logs out of the admin center  8)  Hope this helps!

Advertisement: