marcusstenbeck
Forum Replies Created
-
You’re welcome. ??
The problem is in the file
admin.pg
on line ~41 (the one beginning with<p id="submit"><input …
). To fix it, change the line to the code below.<p><input type="submit" onclick="document.getElementById('currentsettingsuser').style.opacity='0.3';this.disabled=true;this.style.cursor='wait';this.form.submit();" value="Save Settings" class="button-primary" id="btnSubmit" name="btnSubmit" /></p>
Hey!
I had the same problem and fixed it by altering line 729 in the file profile-pic.php in the plugin folder (it could be https://yoursite.com/wp-content/plugins/profile-pic/).
Change line 729 in profile-pic.php from
return $path;
to
return site_url() . $path;
and all your problems will be solved.Forum: Plugins
In reply to: Custom field with media libraryHey guys,
I ran into the same problem, and just wanted you to know that I’ve found a solution to the problem. I want to switch out the hacks I used while searching for this functionality with some nicer code, and I might also write a plugin to make this process simple.
For anyone curious where to look in the source: theres a function called send_to_editor() that’s possible to override with a function containing wp_enqueue_script(), and then attaching that function to the “admin_enqueue_scripts” action hook. With that combination I was able to snatch the output from the media library before it hit the editor, and thus I could get it into my custom fields box.
I can’t get into it deeper than that right now, so pray that I get some time to write this plugin!