• Jakets

    (@jakets)


    I host my blog within a directory (/blog) most plugins are able to cope with this, but occasionally one will not. I am using Donate Plus and once a donation has been completed, the button directing the user back to my site calls the url which is incorrect as it calls https://farmvillefanatic.com/blog/?thankyou=true when I need it to call https://farmvillefanatic.com/?thankyou=true

    Here is the code that is causing the issue I believe:

    $button = $img_urlz[$dplus['button_img']];
    			if( $dplus['wall_url'] == 'sidebar') $wall = get_option('siteurl');
    			else $wall = get_permalink($dplus['wall_url']);
    			if( strpos($wall, '?') === false )
    				$tyurl = $wall.'?thankyou=true';
    			else
    				$tyurl = $wall.'&thankyou=true';

    How can I change this to correctly call https://farmvillefanatic.com/?thankyou=true ?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Jakets

    (@jakets)

    Could someone please help? Are these forums a bit dead? This is my 3rd post in the last week asking for help about an issue, I am detailed and polite and yet I have received 0 help. ??

    Thread Starter Jakets

    (@jakets)

    Anyone please? I can just use the full link address coded into it if someone would just let me know where to slap it in.

    Thread Starter Jakets

    (@jakets)

    Bumping once again as I still need a solution.

    Thread Starter Jakets

    (@jakets)

    Somebody? I’m pretty surprised I haven’t gotten any help on this one… I have tried replacing get_option(‘siteurl’); with get_option(‘https://farmvillefanatic.com/’); and this does not help, it just causes the page to redirect within paypal instead of even going to my site.

    I would really appreciate a solution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fixing a URL call from plugin’ is closed to new replies.