Skip Navigation

[Resolved] Redirect from limited content to Login form

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 24 replies, has 2 voices.

Last updated by JanP6468 6 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#616853

Ok, crisis resolved, found the solution for the biggest new issue. 99% my own fault - incorrect setup, I was misled due to being logged in as administrator, and testing via regular user account didn't run well. Anyway, let me try adding the php code now.

#616866

So, I added the code (using Snippets plugin), but nothing's changed. (I only added a couple pages' slugs into the array, my-account being the key one.)

Is there perhaps anything I need to setup in the Post Groups settings (in Access Control)?

#616879

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jan,

Awesome, i'm happy to see the issue was resolved.

Lets test the code. Could you send me a page that is suppose to redirect guests to the login screen?

Thanks,
Shane

#617505

This one is set up in the array:
hidden link

#617897

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2018-02-20 at 9.12.11 AM.png

Hi Jan,

I tried to test this but when I log in through FTP to add the code I wasn't able to find any of the wordpress folders , See Screenshot.

Could you check on this and let me know.

Thanks,
Shane

#618076

I think it depends on the client you use to access it. Direct access via my hosting provider does the same, access via Filezilla works well for me.

#618305

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jan,

I'm using filezilla and the items from the screenshot are the only ones showing.

I'm not able to find the directory for the wordpress installation.

Thanks,
Shane

#618361

I think you are searching in a wrong folder. Can you access this one:
/webspace/siteapps/WordPress-537482
?

#618441

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jan,

Thanks you I was able to debug and fix the snippet.

It should now be working.

Thanks,
Shane

#618599

Hi Shane,

It looks like it works! Many thanks for your help.

Jan