simoneast
Forum Replies Created
-
Forum: Plugins
In reply to: [Root Relative URLs] Doesn't work with Protocol Relative URLsI’m having the same problem. The fix I came up with is to add two lines to the top of
function proper_root_relative_url($url)in\wp-content\plugins\root-relative-urls\sb_root_relative_urls.php…if (substr($url, 0, 2) == '//') return $url;(Underneath the function declaration, just above
if (self::$massage).)Hope that helps.
Forum: Plugins
In reply to: [Database Sync] "Sync failed. SQL error."+1. Getting the same error message.
Forum: Fixing WordPress
In reply to: Unable to locate WordPress Content directory (wp-content)Oh sorry, they go in
wp-config.php. I don’t think it really matters where, just look for some similar lines that are also callingdefine().Yeah I solved the problem for the Mazda Missions Blog by just combining some custom fields (name, email address, subscription yes/no) into the image’s description field. Take a look at the changes I made to
npu_upload.phphere:http://dl.dropbox.com/u/9911892/Wordpress_NPU_Upload.html
(the code I changed is in orange)or see this link for code in raw form:
http://dl.dropbox.com/u/9911892/npu-upload.php.txtSorry it’s not as simple or as clear as it could be. I don’t really have time at the moment to package it into an easy-to-use form, but hopefully it might help you get started.
Simon.
Forum: Fixing WordPress
In reply to: Unable to locate WordPress Content directory (wp-content)I think you’re better off using the official WordPress constants to fix the “Unable to locate WordPress Content directory” problem. See the documentation here:
http://codex.ww.wp.xz.cn/Editing_wp-config.php#WordPress_Upgrade_Constants
These two lines fixed the problem for me, but you can try some of the other settings to see if they help you:
define('FS_METHOD', 'ftpsockets');
define('FTP_BASE', '/public/www/');Forum: Plugins
In reply to: Prevent plugin from updatingI think the simplest option is just to adjust the version number in the plugin.
For example, after I customized an existing plugin, I then opened the code, looked for the version number in the header, and updated it:
1.1.2 –> 100.1.2The “update” notice disappeared immediately, and I can still track which version the plugin is based on and apply updates manually.
Simon.
I’m interested in this functionality too.
I think what I will do for my current project is just add a couple of custom HTML fields to the NPU form, and then in the PHP combine them into the image’s description field.
Might be the easiest. Hopefully only a few lines of code…
Simon.
Forum: Plugins
In reply to: [Hikari Krumo] Fatal errorYep, I got that too. Had to completely delete the plugin folder.
Simon.
Forum: Fixing WordPress
In reply to: line breaks*bump*
Still having this issue… Is it really that hard to insert extra blank lines?Forum: Fixing WordPress
In reply to: line breaksI’m using WordPress 2.1 and I cannot figure out how to add more than 1 blank line either…. I’m an experienced web developer and BR tags won’t work… it all gets cleared as soon as a I switch from Visual to Code view using the TinyMCE editor.
Can anyone help??
Simon