jwz
Forum Replies Created
-
Forum: Plugins
In reply to: [OpenID] OpenID 3.4.0 breaks commenting on WP 4.4Well, I have it disabled on my blog because when it is enabled, nobody can post. “diff” indeed shows that I am running your latest changes, but it still requires me to fill in both “name” and “user”, not just URL — and even when I do fill those in, I get an error saying they aren’t filled in, like before.
Forum: Plugins
In reply to: [OpenID] OpenID 3.4.0 breaks commenting on WP 4.4I’m afraid not. Exactly the same set of errors with 3.4.1.
Ok, I just pushed out version 1.3 — I think this should fix it! Thanks for your help.
Ugh, again with the backslashes. Maybe this works:
[Code moderated as per the Forum Rules. Please use the pastebin]
Ok, it looks like the difference is that you’re on a 32-bit machine and I’m on a 64-bit machine, and PHP is dumb about bit-shifting. Let’s try this:
[Code moderated as per the Forum Rules. Please use the pastebin]
Ok, let’s try this:
<? print "<pre>\n"; print (1875 >> 15) . "\n"; print (1875 >> 16) . "\n"; print (1875 >> 31) . "\n"; print (1875 >> 32) . "\n";
Damn, that got corrupted. Apparently you can’t type backslashes here. Change all the occurrences of “00” (zero zero) to be a backslash followed by three zeroes. Or send me email ([email protected]) and I’ll mail you the right version. Thanks!
If things are going the way I expect, output should be
1: 1875 2: =00=00=00=00 3: =00=00=07S 4: =00=00=00=00=00=00=07S 5: B1M= 6: =07S=00=00=07S 7: 1875 7: 1875 8: =07S 9: 0 9: 1875
Well, that’s not right! The link should be just
https://dg.gs/b/B1M
. I’m not sure what’s going wrong. Can you save this as a PHP file on your server, load it, and send me the output? Also, what version of PHP and WordPress are you running?[Code moderated as per the Forum Rules. Please use the pastebin]
No, it should work regardless of your permalink format; this only sets the shortlink. That’s returned by wp_get_shortlink() and you can see it if you View Source on any post and look for <link rel=’shortlink’ href=’…’> That should be in the new format instead of in the ?p=123 format.
Hey there, have you had a chance to give this a try yet?
Ok, I think I see it. Can you change line 424 from
if (!preg_match ('@^[a-z]+://([^/:]+)/(.*)[:\d]*(.*)$@i', $blog_base,$match))
to
if (!preg_match ('@^[a-z]+://([^/:]+)[:\d]*/?(.*)$@i', $blog_base,$match))
and let me know if that works?
Thanks!
Yeah, nothing unusual there… that should work!
What is ‘home’ set to? The result of get_option(‘home’). Maybe that’s confusing it…
It’s going wrong inside b64sl_make_rewrite_rule but I’m not sure why.
What prefix URL are you trying to use exactly?
Forum: Plugins
In reply to: [Base64 Shortlinks] Base64 ShortlinksGetting a syntax error is very weird. Maybe your download was corrupted?