treehousetim
Forum Replies Created
-
Forum: Plugins
In reply to: [Page Links To] How to add link rel="nofollow"?I need to do this as well. Anyone else figure this out?
Forum: Plugins
In reply to: Strange 404 error using template_redirectok… here’s what you need
add_filter( 'query_vars', 'addRelated' ); function addRelated( $qv ) { $rq = trim ( $_SERVER['REQUEST_URI'], '/' ); if ( $rq == 'zeitgeist/feed' ) { return; } return $vars; }This means you’ll need to use this same if in your template_redirect handler.
Forum: Plugins
In reply to: Strange 404 error using template_redirectignore that – I’m a moron.
Forum: Plugins
In reply to: Strange 404 error using template_redirectI just dealt with this myself.
You need to do something with a filter.
For example, I was working with http://www.lightafire.net to add related pages.
The url of these is http://www.lightafire.net/related/achievement/
but that /related url does not exist. I coded a function that handled it using template_redirect, but a 404 was being sent before getting to that function.
What ended up working for me is a simple bit of code – not sure if this will help you or not, but I hope so.
add_filter( 'query_vars', 'addRelated' ); function addRelated( $qv ) { $vars[] = 'related'; }hope this helps!
Forum: Installing WordPress
In reply to: Widgets broken in 2.2I’m getting this error on:
php version 4.3.11
fresh upload of freshly downloaded wordpress files with default theme with no plugins installed
wp 2.2in Firefox 2.0.0.4, using firebug, I see the following errors:
Prototype is not defined: effects.js line 147
class is not defined: dragdrop line 224
$ is not defined widgets.php line 115
Sortable has no properties: widgets.php line 268
Event.observe is not a function: widgets.php line 203I can’t figure out what’s going on with this.
This blog was an older version that was upgraded to 2.2
I have 2.2 running on a different server and it works fine there.Very puzzling – please post if you figure it out.
Forum: Fixing WordPress
In reply to: can’t drag and drop widgetsI’m getting this error on:
php version 4.3.11
fresh upload of freshly downloaded wordpress files with default theme with no plugins installed
wp 2.2in Firefox 2.0.0.4, using firebug, I see the following errors:
Prototype is not defined: effects.js line 147
class is not defined: dragdrop line 224
$ is not defined widgets.php line 115
Sortable has no properties: widgets.php line 268
Event.observe is not a function: widgets.php line 203I can’t figure out what’s going on with this.
This blog was an older version that was upgraded to 2.2
I have 2.2 running on a different server and it works fine there.Very puzzling – please post if you figure it out.
Forum: Fixing WordPress
In reply to: Warning: Illegal offset type inI just ran into this problem – still not sure why this is happening, but around line 281 in users.php the value of $_GET[‘userspage’] is an array, when doing a var_dump on it, it looks like Array{0} or something like that – it’s an empty array. I’m assuming this has something to do with either: php.ini, the version of php, or apache.
To fix it, I added new lines above the line:
$wp_user_search = new WP_User_Search($_GET['usersearch'], $_GET['userspage']);New lines to add
if ( isset( $_GET['userspage'] ) === false ) { $_GET['userspage'] = null; }Forum: Fixing WordPress
In reply to: Uploading camtasia videosI just had to figure this out. Turned out my problem was the MovieURL in the config.xml file camtasia creates.
I put the video files in a folder in the root of the blog (which is the site root) named video.
I also had to turn off the visual editor.
Then I made sure the post source html was referencing the files in /video/.
Then in /video/ I had to edit the config xml file for the video. (it’s referenced in the html source for the object)
I changed MovieURL to include /video/ on the front of the swf file to the movie file.
Bam!
Forum: Fixing WordPress
In reply to: writing options ping list 403 forbidden errorI’m not completely sure, but it also might have something to do with what I found, and documented on my blog:
http://www.sunflowerroad.com/blog/timstidbits/2006/11/30/quick-solution-to-vexing-http-post-problem/
Forum: Plugins
In reply to: Adding a hook for custom plugin activationHi nkoenig,
Try this code:
$activateFunction = ‘activateMyPlugin’; // change this;
add_action( ‘activate_’ . preg_replace( ‘/.*wp-content.plugins./’,”,__FILE__ ), $activateFunction );
Forum: Fixing WordPress
In reply to: writing options ping list 403 forbidden errorI just ran into this. I believe it has something to do with a domain name that has a slash in it.
Here is a list I was saving…
http://rpc.weblogs.com/RPC2
http://rpc.pingomatic.com/
http://api.moreover.com/RPC2
http://api.feedster.com/ping
http://ping.feedburner.com
http://coreblog.org/ping/
http://ping.cocolog-nifty.com/xmlrpcwhich failed
403
Forbidden
You don’t have permission to access /blog/timstidbits/wp-admin/options.php on this server.But, if I remove the last line (the only one with a dash in the domain) it works!