Footer Link Logging Me Out (General)

by Ryan, Friday, January 29, 2021, 15:30 (32 days ago)

Can you help at all, I'm using a couple of versions back to the most recent.

I changed the footer link so users didn't have to scroll back to the top of the page

so I changed the footer link from (my domain)

https://mylittleforum.net/

to

https://mylittleforum.net/forum/index.php?mode=index


but every few times I click the footer link now as a user I get logged out?

Do you know why this would be happening?

Avatar

Footer Link Logging Me Out

by Micha ⌂, Friday, January 29, 2021, 16:31 (31 days ago) @ Ryan

Hello,

Can you help at all, I'm using a couple of versions back to the most recent.

This feature is already implemented - see the green arrow. So, updating the software is the best choice. If you don't like to update the software, just take a look to the source code to figure out how it works.

/Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

Footer Link Logging Me Out

by Ryan, Friday, January 29, 2021, 16:58 (31 days ago) @ Micha

Hello Micha thank you for your reply. I don't really want to update at this time yet.

But I just don't understand why clicking this link

[image]

never logs me out but clicking the footer link which is now the exact same link does log me out sometimes? Do you know why that would be? it baffles me.

Avatar

Footer Link Logging Me Out

by Micha ⌂, Friday, January 29, 2021, 17:16 (31 days ago) @ Ryan

Hello Ryan,

Do you know why that would be? it baffles me.

No, but I wonder that you are using a link instead of a hash, i.e., How to create a link that goes to the top of a web page.

/Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

Footer Link Logging Me Out

by Ryan, Friday, January 29, 2021, 17:29 (31 days ago) @ Micha

Micha I don't want the footer link to go back to the top of the page

I want the footer link when clicked to act exactly like this link

[image]

Avatar

Footer Link Logging Me Out

by Micha ⌂, Friday, January 29, 2021, 17:43 (31 days ago) @ Ryan

Hi,

oh, I'm sorry for this misinterpretation. :lookaround:

How do you specify the link - relative or absolute?

/Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

Footer Link Logging Me Out

by WorldofBB, Friday, February 05, 2021, 21:05 (24 days ago) @ Ryan
edited by WorldofBB, Friday, February 05, 2021, 21:39

Micha I don't want the footer link to go back to the top of the page

I want the footer link when clicked to act exactly like this link

[image]

As someone who has done some fairly extensive modifications to the script for a site that needed some fairly heavy customization - I can tell you that certain functions aren't as easy as they look.

If you look at the way that I modified the theme on worldofbb.com, I wound up replicating the functionality that you're looking for by making the button on the bottom work exactly the same way it does at the top. That's because that button is built using a conditional statement, so it isn't a static link.

The conditional statement is located in the file themes\default\subtemplates\subnavigation_1.inc.tpl

(The forum spam filter won't let me post the relevant code.  It's the code in lines 11 through 13)

I used this code as the basis of my footer link. Mine has a bit more code in it because I've made other modifications to the script above and beyond modifying the theme - but the basic concept remains the same: You would need to use this code to also form the link in the footer if you want it to work consistently. That means the link can't ALWAYS be a "Back to the forum index" button for the simple reason that the link "/forum/index.php?mode=index" is actually not always going to perform the same function at all times. Depending on the page you are on it will perform different actions, which is why the link is not always offered on all pages.

Now, having said that - off the top of my head I can't think of a specific page where using that link SHOULD cause you to logout - but I do know I specifically had some issues where I had to make some modifications to the way the 'back' links worked when someone visited the register and login pages. There were various situations where I would run into login issues if the exact wrong sequence was followed which required me to use some workarounds to avoid them - but it was a while ago so I don't remember specifics.

But honestly, the easiest way to resolve it is to make the link work the same way in both places.

RSS Feed of thread

powered by my little forum