WordPress.org

Ready to get started?Download WordPress

Forums

Fixing a URL call from plugin (5 posts)

  1. Jakets
    Member
    Posted 4 years ago #

    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!

  2. Jakets
    Member
    Posted 4 years ago #

    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. :(

  3. Jakets
    Member
    Posted 4 years ago #

    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.

  4. Jakets
    Member
    Posted 4 years ago #

    Bumping once again as I still need a solution.

  5. Jakets
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.