jabdo
Forum Replies Created
-
Sorry, it was 3.9.1, a fresh install.
Sorry, I forgot to post my logs.
[Tue Jul 22 06:50:31.617837 2014] [mpm_prefork:notice] [pid 954] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.3 configured -- resuming normal operations [Tue Jul 22 06:50:31.617877 2014] [core:notice] [pid 954] AH00094: Command line: '/usr/sbin/apache2' sh: 1: /usr/sbin/sendmail: not found sh: 1: /usr/sbin/sendmail: not found
That’s lines 1 through 4, which is the entirety of the error logs.
I am also a technically skilled user. I have to check with company policy if I can let you
ssh
in.Forum: Plugins
In reply to: [Force Login] whitelist wp_registration_url() ?OK great, thank you.
You may have a different way of doing it, but I was reading up and found that a better way than checking each value is:
if( !is_user_logged_in() && !in_array( v_getUrl(), array( wp_login_url(), wp_registration_url(), wp_lostpassword_url() )
Forum: Plugins
In reply to: [Force Login] whitelist wp_registration_url() ?Because you can’t
OR
wp_login_url
andwp_registration_url
like that. You have to check each one individually. Here is myif
statement white listing both the Registration page and the Forgot Password pageif( !is_user_logged_in() && ( ( v_getUrl() != wp_login_url() ) && ( v_getUrl() != wp_registration_url() ) && ( v_getUrl() != wp_lostpassword_url() ) ) )
It’s possible to do a little boolean algebra and take out some of those parentheses, but I think it makes it clearer this way. I actually came here to suggest the post author adds this to the plugin in the repository.
One last thing, apparently you can really only have one level of Subcategories, because the second page doesn’t really display subcategories at all.
I was going to write up the solution here, but honestly I don’t want to do it twice, so here is the solution on WordPress.StackExchange, formatted nicely.
https://wordpress.stackexchange.com/a/154223/49581
As it mentions, this doesn’t adhere to the
posts_per_category
. Also, there may be a more elegant solution for the category_parent file, but I’m not familiar enough with PHP and WordPress to figure it out right now.Forum: Themes and Templates
In reply to: Is there a way to track when .css changes are being madeBump.
Someone changed the css on my site, but it’s not in Simple History or Wordfence. The whole site was without CSS for 10 minutes. I checked the server logs, and it did tell me that the css file was modified at the time I thought it was. When I tried changing the .css to see what changes were tracked, no changes to the css were tracked at all on the WordPress side.
Forum: Plugins
In reply to: [BuddyPress Docs] How to get the "code" tag working?Ok, I directly copy-pasted this from the
twentyfourteen
theme, so let me know if you think there’s a better way. I addedcode,
kbd,
tt,
var,
samp,
pre {
font-family: monospace, serif;
font-size: 15px;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
line-height: 1.6;
}to the
_inc/css/style.css
file. I’m working on a background/font color that matches the theme, but I think I’m going to go withbackground-color: #222;
to match the bar and a bright terminal-like color., although I have no eye for design.Forum: Plugins
In reply to: [BuddyPress Docs] How to get the "code" tag working?Comparing it to
twentyfourteen
, it seems like it’s not defined in thestyle.css
file, if I’m reading this correctly. It’s referenced once, but in thetwentyfourtee/style.css
file, it’s referenced many times, and I’m not even sure how to read this. I’m going to go through the W3 CSS thing, but if someone could give me some pointers as to how to define this, that would be very helpful.