WordPress.org

Support

Support » Plugins and Hacks » Fixing a URL call from plugin

Fixing a URL call from plugin

  • 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 http://farmvillefanatic.com/blog/?thankyou=true when I need it to call http://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 http://farmvillefanatic.com/?thankyou=true ?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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. 🙁

    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.

    Bumping once again as I still need a solution.

    Somebody? I’m pretty surprised I haven’t gotten any help on this one… I have tried replacing get_option(‘siteurl’); with get_option(‘http://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.