jjsulzbach
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Post-Hack 'New Post' Text Editor Admin DifficultiesOkay, I just saw your reply after posting my follow-up.
Then answer is “yes,” and we did it this morning.
Do you want me to do it again to confirm this for your knowledge or is there a path we are going to take upon the reset?
I hope you will be patient with my questions. I do appreciate your help. But I must explain to the site’s administrator what will be going on before we start making changes, which is why I must ask.
Forum: Fixing WordPress
In reply to: Post-Hack 'New Post' Text Editor Admin DifficultiesFollow-up on previous reply…..
I did not write that we have contacted the theme vendor.
And, as to whether this is a WordPress issue, I must also point out that we have done quite a bit on Apache server to solve the problem without success. I must honestly admit, however, that it is possible there could still be some as-yet-unaddressed problem with Apache we have not entertained.
My best guess remains that there is something amiss in the configuration of the WordPress components which govern the use of the New Post functionality in the Administrator interface. If it is not tinymce–which is the one group of components we examined–then perhaps there is another?
Forum: Fixing WordPress
In reply to: Post-Hack 'New Post' Text Editor Admin DifficultiesThough I did not say that the second theme tested was a WordPress theme, which was twenty fourteen, I did mention that a second theme was tested. This is not an issue restricted to one commercial theme, but rather one that is apparent in both commercial themes and WordPress themes.
This means it must be a WordPress issue.
Forum: Hacks
In reply to: Stats Plugin: Excluding Homepage from stats_get_csv resultsKlark0,
Yes, it only requires a short modification to the above function, and what I will post here will work for only excluding one page, as the above function does.
Find this section of code:
foreach ($most_read_posts as $single_post) { $postTitle = $single_post['post_title']; if($postTitle == 'Home page') { $blnHasHome = true; $intRowFound = $intRowsLoop; } $intRowsLoop = $intRowsLoop + 1; }and go to this line:
if($postTitle == 'Home page') {All you have to do is replace ‘Home page’ with the post_title value of the page you wish to exclude.
Keep in mind that if you want to exclude more than one page, say the homepage plus an “about me” page or something like that, that the algorithm used above would have to change, and how it would be changed would depend upon how many pages you wanted to exclude. I don’t want to start speculating on that right now, just that this comment does zero in on where the naming of the page to be excluded takes place.
Forum: Hacks
In reply to: Stats Plugin: Excluding Homepage from stats_get_csv resultsWell; a friend just e-mailed me and told me I ought to post the whole function as it should be and since he’s right …
<?php function get_stats_exclude_home($numDays,$numPosts) { $numPostsPlus = $numPosts + 1; $blnHasHome = false; $intRowsLoop = 0; $intRowFound; $intRowsCount; $most_read_posts; $strArgs = 'days=' . $numDays . '&limit=' . $numPostsPlus; if (function_exists('stats_get_csv')) { $most_read_posts = stats_get_csv('postviews', $strArgs); } foreach ($most_read_posts as $single_post) { $postTitle = $single_post['post_title']; if($postTitle == 'Home page') { $blnHasHome = true; $intRowFound = $intRowsLoop; } $intRowsLoop = $intRowsLoop + 1; } $intRowsCount = $intRowsLoop + 1; if($blnHasHome) { unset($most_read_posts[$intRowFound]); } else { if($intRowsCount > $numPosts){ unset($most_read_posts[$numPosts]); } } return $most_read_posts; } ?>Forum: Hacks
In reply to: Stats Plugin: Excluding Homepage from stats_get_csv resultsDoggone it!
Please forgive me everyone, but I just went back and checked my original code and I have found a mistake in my above code.
I have:
$intRowsCount = $intRowsLoop;That should read:
$intRowsCount = $intRowsLoop + 1Forgive me everyone, it was late.
My bad, sorry.
I also needed to exclude the homepage from the get_stats_csv returns, but I needed to avoid editing the original function.
So I wrote a wrapper function and posted it in the “Hacks” forum at:
Maybe it might help someone.