Skip Navigation

[Resolved] Mike

This support ticket is created 6 years, 11 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 10 replies, has 2 voices.

Last updated by Nigel 6 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#610547

I edit a page in frontend using a cred form I made. When I save the page, I have it set so it redirects to the original page. But it is adding ?cred_referrer_form_id=1005 to the end of every url when it takes me back to the original page. So if I edit

hidden link

Then I click save. It redirects me to:

hidden link

It never used to do this until the past 4 or 5 months. How do I remove this from the url?

#610679

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Mike

The way CRED edit forms are handled was changed significantly some months ago, you are right.

The URL referrer attribute you see added is part of the new workflow to enable passing messages to the edited post ("Post updated!" etc.), and is added whether there are any messages to pass or not.

There isn't any way to disable it, but it is only shown after submitting the edit form, not if your users are just visiting the page.

#610784
#611019

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Sorry, can you give me more details about your script and what it is supposed to do?

And where are you adding that link?

I can try and help fix the jQuery issue if I understand the workflow and what the script is doing.

#612449

It uses this jquery pageslide script: hidden link

So when I click edit button for a post, it opens up a sidepanel: hidden link

If you can fix it so it doesn't conflict with it, I'd appreciate it. It was working great until your software change the urls.

How do I give you login to check it out?

#612738

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Mike

I saw the video and followed your link, but I'd like to see how you have it set up if that's okay, so, yes, let me set up a private reply and you can give me credentials to check out your site.

Do make sure you have a current backup.

#617474

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Mike

I logged in with the credentials you gave but I am unable to access the back-end and when I visit the page you suggest I don't see any edit links.

I'm guessing you have some other layer of security I need to know about.

Let me mark your next reply as private again in case there is something else you need to tell me.

#617485

Somehow the user group got detached from that account. Please try now. Thanks!

#617905

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Mike

Thanks for that. I can see the issue now as you describe it.

I looked at our code to see if there might be a way to suppress adding the cred_referrer_form_id URL parameter but couldn't see a way to do that, so I've asked colleagues if it is possible.

In the meantime, I looked at footer-code.php and you only enqueue the pageslide library and instantiate it when the page URI does not include "cred".

Why do you do that?

Because of the URL parameter 'cred_referrer_form_id' obviously does include "cred" you don't set up pageslide.

What is that condition for?

#617962

I think I was trying to stop the sidebar from working at all when someone was editing a page... but you're right... that is what is stopping it from working once it saves the page. Do you know of different code I could use to stop that script from loading when in edit page mode?

The one I had was

<?php if(strpos($_SERVER['REQUEST_URI'], 'cred') !== false) { ?>
<?php } else { ?>
script here
<?php } ?>

I'd still like to see the ?credurl disappear though once you save a page. We do a lot of copying and pasting of urls and now it makes it more time consuming to have to keep deleting that extra text at the end that cred adds when you save.

Thanks so much! Mike

#618183

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Mike

You just need to be more specific about when you don't want the page slider loaded, i.e. change strpos($_SERVER['REQUEST_URI'], 'cred') to strpos($_SERVER['REQUEST_URI'], 'cred-edit-form').

I checked with the developers and it is not possible to prevent the CRED referrer URL parameter being added.

You could add a link to the current page which excluded any URL parameters so that you could right-click it and copy that.

The wpv-post-url shortcode will output just the URL without any parameters, for example.