Skip Navigation

[Resolved] I have a editing form and i don't want that other users can see others titles

This support ticket is created 5 years, 1 month 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 16 replies, has 2 voices.

Last updated by Joan 5 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1362579

I have a editing form of a CPT. In this form users can change the fields of this item of the CPT. But I don't want that a user was able to navigate to other items of this CPT that the owner is another user. I would like that not appear the navigation at the bottom of the page.

Is there a way to erase the navigation.

Thanks.

#1362605

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please tell me how you are displaying the Edit form links and exactly where?

As I understand - you want to display the Post edit links for the posts whose author is current loggedin user - correct?

#1362619

Hello,

I have a page where there are a view where I can see the list of CPT1 where the current user is the author. A field of this list for every CPT1 is a table td that bring you a page where the are a form where you can modify the data of the specified CPT1. In this page at the bottom appears the link of previous or next CPT1. The problem is that through this links you can see the title of all the CPT1. Like you say I would like that you can navigate only for the CPT1 that of the current user was the author.

The link to acces to the form to modify data is:

<td class="fila_socis boto-modif-llista"><div>[toolset-edit-post-link content_template_slug='template-for-socis-2']Modificar Dades[/toolset-edit-post-link]</div></td>

You will see if need more information.

Thanks.

#1362647

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Sorry - it is still not clear to me. How the previous and next links are added to your page/post?

Can you please share probem URL and wp-admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1362649

The previous and next link apears automatically. I hasn't done anything to make them appear. That I want is that this links not appears in the page.

#1362651

Can you give and email in order to give you access to the wp-admin?

Thanks

#1362653

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

my email is minesh.s@onthegosystems.com

I have set the next reply to private which means only you and I have access to it.

#1363255

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I do not able to regenerate the wp-admin password using my email as you said. It says Invalid email or username.

However - I can log in to user account and I found that the edit link is added to display the single post.

You have two options here - either hide the prev - next links by adding custom CSS.
Or
Create a new page and to this page add your edit form and change the edit link to link to this page.

What if you try to follow the following steps:
- Create a new page and add Toolset Edit form to it as given under.
For example:

[cred_form form='edit-product' post='[wpv-search-term param='edit_post_id']']

- Now, try to link to the newly created edit form page above as given under:

<a href="link-to-your-page/?edit_post_id="[wpv-post-id]> Edit </a>
#1363269

Sorry, now you have access to wp-admin

#1363275

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

thanks but what option you would like to go with that I mentioned with my previous reply:
=> https://toolset.com/forums/topic/i-have-a-editing-form-and-i-dont-want-that-other-users-can-see-others-titles/#post-1363255

#1363285

The second option seems better. Not the css one.

Thnaks

#1363309

I try the second option,

It seems not to work. When I click to the edit link I get a 404 error.

What can I do?

Thanks

#1363333

I get the message:

Form type and post type do not match

#1363347

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I see that you added the Edit form on the single post: hidden link

- Is that OK if we add just edit link and when you click on that link you will be redirected to the edit form?
- Have you created new page where you added the form?

#1363359

When I click just to the edit link I get the message "Form type and post type do not match"

You can see the link on the page: hidden link int he link "edit"

I crated a new page for the form :hidden link