wpismypuppet
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Safe Web designSounds like Health-Pond has some serious trust issues… why not use a legal contract like any real company to company business is done? At least then you’ll have legal backups if you think your developer is going to cause you issues… take ’em to court if needed.
In my 12 years of web development I’ve never heard of a developer being that malicious. The most I’ve seen is a take down of a site before it’s been pushed live due to the developer company not being paid! If they do their job, and you pay them according to your agreement, most developers won’t have an issue. If you are that paranoid, use legal documents and hired well trusted developers.
Forum: Fixing WordPress
In reply to: How to display wordpress popular posts outside of wordpressAll you have to do is make sure your pages outside of WordPress are .php files (or at least the files you wish to run WordPress stuff on). Then, at the very top of a page outside of WordPress you wish to include WordPress stuff, place this:
<?php require('/server/path/to/your/wordpress/folder/wp-load.php'); ?>Obviously replace the path to your own server’s path. You need wp-load.php in the root of your WordPress install. Once you have that one line of code, you can do any WordPress function, including get_posts(), which is most likely what you’ll need.
Forum: Fixing WordPress
In reply to: How to Add Spell Check to CommentsAlmost every modern browser is equipped with built-in spell checking capabilities. However if you want to add an option to the comment textarea, you’ll need to look into jQuery or other JavaScript solutions. Here is a decent jQuery solution:
Forum: Fixing WordPress
In reply to: Plugin for media libraryHow good/comfortable are you with SQL? You could do this easily with a simple SQL statement. But it’s dangerous if you don’t know what you are doing.
Forum: Fixing WordPress
In reply to: 400 Errors and 404 ErrorsYou need 301 redirects for all your products. Because you had 16,000+ products all with the word /product/ in front of them in the URL structure, your website was parsed in Google that way. Now that you have removed /product/ from your URL, Google is looking for it’s parsed links and is failing, resulting in the 400 and 404.
What you should have done is used a plugin, or manually created your own, to set up a 301 redirect for every single one of your products. This would tell the Google parser that this page: /product/someproduct is now at /someproduct. Google will now see that redirect and not penalize you for it.
Instead, Google sees the new page /someproduct and will now include that, but it’s still looking for the old page /product/someproduct and it’s getting a 404 because it doesn’t exist anymore. Now you get a penalty and lose credit with SEO.
Forum: Fixing WordPress
In reply to: Integrating a web service to wordpressWhy do you need to do it through WordPress? Can you be more specific in how your operation needs to execute? Where are you downloading the CSV file from? What purpose? Do you need it to be automatically, or manually? Your information is too vague for anyone to offer any real advice.
Forum: Fixing WordPress
In reply to: Simple javascript in page not workingThe reason it won’t work in the “text” section of the “edit page” is because PHP is executed on that area to help “format” the content in proper HTML format. It doesn’t really like JavaScript (or can’t interpret it as well). Most likely the format that’s taking place is probably converting the quotes or something silly.
Your best bet is to place your JavaScript in an external file. In your functions.php file, you should use wp_register_script() and wp_enqueue_script() to include your external JavaScript. Then, you can do a check:
if( document.getElementById("myTable").length > 0 ) { dropdownSelected(); }This code will check to see if that table exists on the page, and then execute your function. This way you’ll only run the JavaScript on the page that contains the proper element.
Forum: Fixing WordPress
In reply to: how to auth_redirect to specific pageFor cases like you are describing, I have use this as a solution:
<?php /** * Template Name: Login * The template for Employee Login form **/ if(have_posts()) : get_header(); // If the user is logged in, show them the content if( is_user_logged_in() ) : while(have_posts()) : the_post(); the_content(); endwhile; // If the user is not logged in, force them to log in else : wp_login_form(); echo '<p id="loginnav">'; wp_register( '', ' | ' ); echo '<a href="'; bloginfo( 'wpurl' ); echo '/wp-login.php?action=lostpassword" title="Password Lost and Found">Lost your password?</a></p>'; endif; get_footer(); else : header( 'Location: ' . esc_url( home_url( '/' ) ) . '/404' ); endif; ?>This is a simple page template that will show the user the content, but only if they are logged in. If not, it will show the login form (or a custom one if you prefer). Once the form is submitted, they will immediately see the content since they are never redirected away from the page in the first place.
All you have to do is create a page (template-login.php for example), paste in the code above and save the file. Then, on the pages that require the user to be logged in, simple select this “Login” from the template drop down.
Forum: Fixing WordPress
In reply to: Responsive HTML5 Background VideoOf course it’s possible. But not they way you’d like it to be. What you’ll have to do is create a custom field somewhere that the client can select which video they want. Then you’ll write a custom page template that pulls the video into the custom HTML and CSS that you’ve written based on what you said! Easy as that.
This way you’ll have complete control over the way things are done, and the client will just have to pick which video to place. All you have to do is store the ID of the video in question (if you are hosting the video yourself) or the URL of the video (if it’s off site such as YouTube or something). Using the ID/URL, you can do whatever you’d like.
Forum: Fixing WordPress
In reply to: Link to mp3 file won't play in Google ChromeLet’s get something straight here… it’s not a WordPress issue… this is a Chrome issue. It has something to do with the way Chrome is reading the files. This is a problem that dates back to 2012.
If you don’t believe me, try to embed that same problematic MP3 into a static HTML website that is NOT using WordPress. You’ll see what I mean. Read more about it here:
and here:
Forum: Fixing WordPress
In reply to: Link to mp3 file won't play in Google ChromeAh, a MAC user… well after a few minutes of research this seems to be a common problem for Chrome on MAC machines. Some websites play and some don’t. One website claims that the answer is in the length of the MP3. The user indicated that anything over 2 minutes won’t play without the artist’s name encoded with them!
Not sure how true that is, but if you created the MP3s, try to add the artist’s name in the and re-export and see if that helps. Other sites indicate similar responses that have something to do with the time stamp and other encoded issues. No surefire fix that I can find (unless the author piece works for you).
Forum: Fixing WordPress
In reply to: Positioning of contentThank The Sweeper… it was his solution. I just helped put the </div> in the right place!
Forum: Fixing WordPress
In reply to: Positioning of contentYou may have added the close div in the wrong place. The reason it’s all messed up is because your <div id=”main”> is inside the <div id=”innersidebar”>. You should close the innersidebar so that main is directly under your wrapper… This worked for me when I tested it.
Basically move that close div tag you inserted to right before where “main” starts.
Forum: Fixing WordPress
In reply to: Link to mp3 file won't play in Google ChromeThat play fine in my Google Chrome. If they work on all your other browsers, then this is an issue with your version of Google Chrome. Try another machine with Chrome on it… does it work for them?
You may have a plugin or add-on you aren’t aware of in your Chrome… try to run Chrome in safe mode and see if that fixes it. Or disable add-ons and plugins in Chrome.
Forum: Fixing WordPress
In reply to: Migrating WordPressI wrote an in-depth method for how we do it at my company. The article is here:
http://www.designprinciples.com/how-to-migrate-a-wordpress-installation-to-another-domain/
[ Moderator note: when possible please use the Codex versions instead of posting to your own site. ]
It’s a lot to read, but that’s only because I explain in detail what’s happening and why you do certain steps. When broken down, it’s a very short and simple process.
There are plugins, as Robin mentioned, that will do some of the work for you… but they aren’t fool proof as they don’t do all the necessary work. Even Robin admits that you have to know a little SQL to finish the job. The method in my article is one I do on a daily basis, so I can guarantee it works, and works well!