Attention:

Support Rules and Guidelines
Before you post your support topic, please remember to:
  • Read the support forum rules.
  • Check the wiki and use search to see if your problem can be answered there first.
  • Link your board please, and make sure that the problem on your board is visible to guests or provide a test account.
  • Do not post Board Wrappers and CSS unless requested. With a board link, this is not necessary.
  • Be as descriptive as you can and use as many details as possible when describing your problem.
  • Please briefly mark any links to forums that may not be work-safe.
This will help ensure your support issue will be attended to in a quick and efficient manner.

  Add ReplyNew TopicNew Poll

 Access Issue w. Domain Name
#
I finally figured out the problem, but I'm not really sure how to fix it.

I have a category that's set to "hidden from forumhome list - can access via URL - removed from forum jump." The subsections are all set so members have permission to read. I was testing it out and apparently some members can see and some are being denied access. Turns out some of them are using our original .jcink URL, others are using the .org URL. People on the .org can see when I link to the .org page; people on .jcink can see when I link to the .jcink page. Otherwise, it's access denied.

I went ahead and tested this with other (visible) member-only sections of the forum, as well. Same issue. They only have access when given a link with their in-use domain URL.

Is there some sort of setting I need to activate so that I can use either link and all members will have access, regardless of which URL they're using? Or some redirect function to get everyone on the same URL? (I am using namecheap)

This post has been edited by MaddOryxite: Jan 9 2018, 10:14 PM
PM
#
    They aren't logged in when they access a different url. They have to log in again on the .jcink if they are redirected away from .org.
PM
#
QUOTE (multiplicity! @ Jan 10 2018, 02:02 PM)
    They aren't logged in when they access a different url. They have to log in again on the .jcink if they are redirected away from .org.


I mean that is a fix, but it's not the most convenient to ask all my members to log into both domains http://files.b1.jcink.com/html/emoticons/unsure.gif
PM
#
Sounds like those categories need to be hidden from guests, as well.

In terms of them needing to log in both places, if both domains are used there's no way around that - I suspect it has something to do with the way cookies are used in general, but at any rate that's how it is.

What I do to combat is two things:

1. Make sure literally all links go to your custom domain so that people are not unknowingly being routed to a new domain - it's confusing. This is a sort of tedious manual process, but it's worth it for your members.

What I do, is use relative URLS. So, for instance, if i was linking to this thread on this board instead of

CODE
https://forum.jcink.com/index.php?showtopic=29021


I'd use

CODE
/index.php?showtopic=29021


As long as you're linking to something that's on the same domain the browser will fill that part in for you. If you can't manage that it's just best to use your custom domain, but you'd have to change it back if you ever lose that domain.

2. Use a code on the index that re-routes anyone who was using the wrong domain. They still have to log in, but only once at the beginning and that's much less confusing.

This post has been edited by owl: Jan 10 2018, 04:54 PM

signature
user posted image

kindly do not use my site Discord / DM / PM me for support.
#
QUOTE (owl @ Jan 10 2018, 05:54 PM)
In terms of them needing to log in both places, if both domains are used there's no way around that - I suspect it has something to do with the way cookies are used in general, but at any rate that's how it is.


This is correct. It is not a Jcink issue, it is a browser security feature. One domain or subdomain can never read cookie or login data from another. If this was possible, well, that would be one huge security hole.

Besides the approach suggested by owl, you could also setup your domain to simply redirect to your jcink.net name -- although this is less pretty.

We can also provide a script that will detect if a user is on the jcink subdomain and redirect them to your primary domain.

This issue is basically one that should solve itself in time as you push your domain as the primary link and remove references, at least within your layout, to the old subdomain.

signature
email: admin@jcink.com :: blog: John C.
#
I really like owl's link suggestion so I definitely will be going around changing the links as such, but could you also provide me with the script to redirect to the primary domain? A good chunk of my member base is not tech savvy and anything I can do to help automate a process is extremely helpful.

EDIT: So I guess the relative links don't work with bbcode? That's fine; I can work around it. Just wondering if that's absolutely the case or if I need to be using html for that to work

This post has been edited by MaddOryxite: Jan 10 2018, 06:59 PM
PM
#
They currently don't for the links in posts, unfortunately. HTML links are necessary.

signature
email: admin@jcink.com :: blog: John C.
#
QUOTE (John @ Jan 11 2018, 07:38 AM)


We can also provide a script that will detect if a user is on the jcink subdomain and redirect them to your primary domain.


That's fine! Could I have the script for this? ^
PM
#
Yes here it is, but actually, this is probably not good for you now that I see it.

CODE
<script>
if(window.location.hostname == 'your.jcink.net') {
document.location='http://yourdomain';
}
</script>


This script just redirects to the root domain name no matter, rather than linking them to the page they were looking at. Let me try to see if there's a better way of doing that.

signature
email: admin@jcink.com :: blog: John C.
#
Hmm, there might be some way to have that only trigger on the index, or something? I think I used to have one set up like that, but I since lost the domain so I removed the code without backing it up.

signature
user posted image

kindly do not use my site Discord / DM / PM me for support.
#
Yeah even if we could just get it on the homepage it'd be helpful. I'll try to get current members to switch, but we still have some links on other sites directing new users to the jcink domain (and I'd edit those links but we don't have access to do that).
PM
#
What I think i did (I believe, can't be for sure but it might be worth a shot) is I put a new forum at the top of my site, and use it as a way to have some info I want everyone to see. (If you click the link in my signature, you can see the one at the top titled 'welcome' - I have this set so no new posts can be made there.)

You could do something like that, only maybe add a note about the new domain. Then you can put the code into the description of that board. If it works, it'll only really show up on the index.

It's a little bit of a complicated work around, and John may still very well have a code for you, but in the meantime this might help.

signature
user posted image

kindly do not use my site Discord / DM / PM me for support.
#
I have a welcome area, so I'll probably put a notice in there. But, yeah code that would detect and alert/redirect people would be much more efficient for newcomers.
PM
#
What I mean is i put a re-direct code into a description of a forum as described above - that forum only shows on the index, and so it only redirects people on the index.

signature
user posted image

kindly do not use my site Discord / DM / PM me for support.
#
QUOTE (John @ Jan 13 2018, 02:41 AM)
Yes here it is, but actually,  this is probably not good for you now that I see it.

CODE
<script>
if(window.location.hostname == 'your.jcink.net') {
document.location='http://yourdomain';
}
</script>


This script just redirects to the root domain name no matter, rather than linking them to the page they were looking at. Let me try to see if there's a better way of doing that.


Forgive me if I'm mistaken (I'm familiar with Java but new to scripts), couldn't you theoretically take the window url and put it in a string, substring it to pick up after jcink.net, then string new domain + substring and use that as the document location to get it to the exact page?
PM
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Share this topic:
« Next Oldest | General Support | Next Newest »

Options Add ReplyNew TopicNew Poll