Skip Navigation

[Resolved] Display link to cred form

This support ticket is created 7 years, 2 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)

Author
Posts
#563681

I have a cred form to submit content which is controlled by Access to only allow those with a custom role to submit.
I have a link to the form in the sidebar.
At the moment the link is not seen unless you are logged in as a breed note writer.

I want the link to be seen by everybody, but if they are not logged in as per the custom role (breed note writer) it takes them to a log in page, very much like the 'My Account' that woocommerce has.

#563703

Shane
Supporter

Languages: English (English )

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

Hi Jill,

Thank you for contacting our support forum.

Is this link currently generated by our CRED shortcode ?

Please let me know.

Thanks,
Shane

#564592

Thank you for your reply. Unfortunately I did not receive notice of it and have only just seen it.

The link is a normal link in a sidebar widget. Not quite sure what you mean by generated by a cred shortcode.

#564750

Shane
Supporter

Languages: English (English )

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

Hi Jill,

So I read your post over again, so you want the link to be displayed to everyone correct but when they click the link, unless they are part of a certain roll then you want them to get redirected to the login page?

What if the user is already logged in but not a part of the roll.

Please let me know.

Thanks,
Shane

#564859

Yes. If they are logged in but not part of the role then ideally a message (page) would be displayed saying they do not have permission

#564867

Shane
Supporter

Languages: English (English )

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

Hi Jill,

Would you mind providing me with admin access to the page so I can have a look at this for you ?

The private fields will be enabled for your next response.

Thanks,
Shane

#564869

Shane
Supporter

Languages: English (English )

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

private field

#565349

Shane
Supporter

Languages: English (English )

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

Hi Jill,

Could you let me know where on the website is the edit link located?

Thanks,
Shane

#565471

So far I have merely placed it in a custom menu (Members Area) on the primary sidebar

#565678

Shane
Supporter

Languages: English (English )

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

Hi Jill,

So this wouldn't be possible with our access plugin.

Actually what happens is that that when a user doesn't have access to the page at all it doesn't show up for them.

So if its a link to that page it will be hidden. However you can manually link to the page yourself so it stays static and then adjust the permissions on the page so that if the user doesnt have permissions they are redirected.

That is one solution.

Thanks,
Shane

#565775

That is what I was asking in my original post.

HOW do I get the page to redirect if they do not have permissions?

#565906

Shane
Supporter

Languages: English (English )

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

Screen Shot 2017-09-01 at 8.57.15 AM.png

Hi Jill,

When I mention redirect it was in the sence of showing them some content template instead of a 404 error.

Take a look at the screenshot.

You can create a content template to show the user if they dont have the permissions to view the page.

Thanks,
Shane

#565968

Which brings us back to my original question - HOW?

You have given a screenshot but not told me where I find that!!!! It's not on the actual page, it's not on the cred form. I can't find it!

I added a link to the sidebar. It is now visible to all but when you click on it it takes you to the page but, apart from the title, it is blank. It does not go to a 404 error as you state.

#565983

Shane
Supporter

Languages: English (English )

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

Screen Shot 2017-09-01 at 1.35.16 PM.png

Hi Jill,

Sorry for that, when you go to toolset -> Access Control -> Post Group there is a small icon beside the checkbox to give a role permissions to a group.

Click this icon and it will bring up the window to set the content template. See Screenshot.

Please let me know if you were able to find this.
Thanks,
Shane

#566047

When I did find this there was no edit icon beside the user group, but the group was checked. I unchecked it and the edit icon appeared. I edited it to go to a specific content template.

However, it is still not redirected and a non-registered visit still just gets taken to the Add Breed Notes page which is blank except for the title (as I stated above)