fruey
Forum Replies Created
-
Forum: Plugins
In reply to: [Social] Tokens : How Add the excerpts ?I don’t know if this is the best way to do it, but hacking service.php in the social/lib directory to add these lines works :
break; /* already there */ case '{excerpt}': $content = $post->post_excerpt; $content = htmlspecialchars_decode(strip_tags($content)); break; case '{author}': /* already there */ ;(somewhere around line 410)
and then adding in social.php (root of plugin)
'{content}' => '', '{excerpt}' => '', /* add this line around line 151 */ '{date}' => sprintf(__('Example: %s', 'social'), $date),People who customise excerpts are very likely to want to use them instead of the post content I think!
Forum: Localhost Installs
In reply to: wp-login POST to https but http on different port (not port 80)Just by the way, WordPress works fine on other ports (as long as you don’t want to use SSL for logins, so mainly only for dev environments) as long as you set siteurl and home in wp_options to the full URL (including port, e.g. “http://dev.example.com:8080”). Tested on WP 3.3.1
Forum: Localhost Installs
In reply to: wp-login POST to https but http on different port (not port 80)Hmm I can’t work out who to do that redirect because in fact my server will never “see” the port 8080 traffic since it’s listening on port 80 but seeing URLs with :8080 on them (NAT + port redirect on router).
http://dev.example.com:8080 -> port redirect 192.168.0.8:80
https://dev.example.com -> direct NAT 192.168.0.8:443Can I get this to work?
Forum: Localhost Installs
In reply to: wp-login POST to https but http on different port (not port 80)I just realised I have found
define(‘FORCE_SSL_LOGIN’, true);
in my wp-config.php file. So I can solve the login over HTTP which now works
However if I do want to do it over SSL but keep the site on port 8080 I’m going to need to try maybe forcing port 80 to redirect to port 8080 for non SSL traffic.
Forum: Plugins
In reply to: Twitter Tools Authentication IssueMaybe it needs to be a registered app now?