Title: Scriptrunner (Doug Sparling)'s Replies - page 28 | WordPress.org

---

# Scriptrunner (Doug Sparling)

  [  ](https://wordpress.org/support/users/scriptrunner/)

 *   [Profile](https://wordpress.org/support/users/scriptrunner/)
 *   [Topics Started](https://wordpress.org/support/users/scriptrunner/topics/)
 *   [Replies Created](https://wordpress.org/support/users/scriptrunner/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/scriptrunner/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/scriptrunner/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/scriptrunner/engagements/)
 *   [Favorites](https://wordpress.org/support/users/scriptrunner/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 406 through 420 (of 520 total)

[←](https://wordpress.org/support/users/scriptrunner/replies/page/27/?output_format=md)
[1](https://wordpress.org/support/users/scriptrunner/replies/?output_format=md) 
[2](https://wordpress.org/support/users/scriptrunner/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/scriptrunner/replies/page/3/?output_format=md)…
[27](https://wordpress.org/support/users/scriptrunner/replies/page/27/?output_format=md)
28 [29](https://wordpress.org/support/users/scriptrunner/replies/page/29/?output_format=md)…
[33](https://wordpress.org/support/users/scriptrunner/replies/page/33/?output_format=md)
[34](https://wordpress.org/support/users/scriptrunner/replies/page/34/?output_format=md)
[35](https://wordpress.org/support/users/scriptrunner/replies/page/35/?output_format=md)
[→](https://wordpress.org/support/users/scriptrunner/replies/page/29/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Replacing text phrases sitewide](https://wordpress.org/support/topic/replacing-text-phrases-sitewide/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/replacing-text-phrases-sitewide/#post-4162609)
 * While I won’t recommend a plugin I haven’t tried, I will mention plugins that
   have good download numbers, a fairly high rating, and a good track support record.
   Search and Replace seemed to qualify.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Replacing text phrases sitewide](https://wordpress.org/support/topic/replacing-text-phrases-sitewide/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/replacing-text-phrases-sitewide/#post-4162608)
 * No, I don’t. I would definitely make a backup first, regardless of the method
   or plugin. If I get some time this evening, I can see how they perform.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Site Stats](https://wordpress.org/support/topic/site-stats-20/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/site-stats-20/#post-4162604)
 * You’ll need to use [Jetpack](http://wordpress.org/plugins/jetpack/), which now
   includes [WordPress.com Stats](http://jetpack.me/support/wordpress-com-stats/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Replacing text phrases sitewide](https://wordpress.org/support/topic/replacing-text-phrases-sitewide/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/replacing-text-phrases-sitewide/#post-4162599)
 * Have you tried any plugins like [Search and Replace](http://wordpress.org/plugins/search-and-replace/)
   or [Find Replace](http://wordpress.org/plugins/find-replace/)?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [redirect after register](https://wordpress.org/support/topic/redirect-after-register-1/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/redirect-after-register-1/#post-4162581)
 * As far as your first question, it would be problematic to redirect a newly registered
   user because they can’t get to the admin section until after they receive the
   new user confirmation email. However, you could try to redirect them on their
   first login. I’m not sure if any plugins do that, but I could post some code 
   if that’s of interest.
 * For local listing websites, I would think there would be plugins for that. You
   search at the WordPress.org [Plugin Directory](http://wordpress.org/plugins/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Duplicate category pages](https://wordpress.org/support/topic/duplicate-category-pages/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/duplicate-category-pages/#post-4157754)
 * What version of WordPress are you running? I want to make sure I’m using the 
   same version. (it sounds like from the Permalinks wording we may have different
   versions)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Need help with code error found on w3c](https://wordpress.org/support/topic/need-help-with-code-error-found-on-w3c/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/need-help-with-code-error-found-on-w3c/#post-4159373)
 * [@jaycee29](https://wordpress.org/support/users/jaycee29/) You’re quite welcome.
   Good luck and happy coding!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Duplicate category pages](https://wordpress.org/support/topic/duplicate-category-pages/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/duplicate-category-pages/#post-4157745)
 * In WordPress 3.6.1, I use:
 * `Custom Structure http://localhost/%category%/%postname%`
 * in Settings->Permalinks.
 * I only get one page. I get a 404 if I remove the category from the URL.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [unable to login t admin page](https://wordpress.org/support/topic/unable-to-login-t-admin-page/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/unable-to-login-t-admin-page/#post-4158887)
 * [@thatsananths](https://wordpress.org/support/users/thatsananths/) – You’re quite
   welcome!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to make page visible in the menu only if staying at that page?](https://wordpress.org/support/topic/how-to-make-page-visible-in-the-menu-only-if-staying-at-that-page/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/how-to-make-page-visible-in-the-menu-only-if-staying-at-that-page/#post-4159866)
 * A quick note for anyone who may try using this. You’ll probably need to add a
   priority to the add_filter function so it’ll run last:
 *     ```
       add_filter( 'get_pages','include_current_page_if_hidden', 1000 );
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Syntax Error](https://wordpress.org/support/topic/syntax-error-57/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-57/#post-4159784)
 * `define('DB_CHARSET', 'utf8');` is valid. It could be the line right before or
   after that line. (like a missing semi-colon on the preceding line).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to make page visible in the menu only if staying at that page?](https://wordpress.org/support/topic/how-to-make-page-visible-in-the-menu-only-if-staying-at-that-page/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/how-to-make-page-visible-in-the-menu-only-if-staying-at-that-page/#post-4159771)
 * OK, this is something I threw together real quick, not thoroughly tested, but
   seems to work for me. Add this to the `functions.php` file in your theme:
 *     ```
       add_filter( 'get_pages','include_current_page_if_hidden' );
       function include_current_page_if_hidden( $pages ) {
           global $post;
           if ( !is_page() )
               return $pages;
   
           for ( $i = 0; $i < count( $pages ); $i++ ) {
               $included_ids[] = $pages[$i]->ID;
           }
   
           if ( !in_array( $post->ID, $included_ids ) ) {
               $pages[] = get_post( $post->ID );
           }
           return $pages;
       }
       ```
   
 * If it’s remotely useful for anyone, I may create a plugin.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [unable to login t admin page](https://wordpress.org/support/topic/unable-to-login-t-admin-page/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/unable-to-login-t-admin-page/#post-4158815)
 * If you reset your password in the database via phpMyAdmin or MySQL console, make
   sure you use the MD5 hash of your plain text password.
 * To see more information on how to do that, or other methods of resetting the 
   password, read this section of the Codex:
 * [Codex tools: Log in Resetting Your Password](http://codex.wordpress.org/Resetting_Your_Password)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Need help with code error found on w3c](https://wordpress.org/support/topic/need-help-with-code-error-found-on-w3c/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/need-help-with-code-error-found-on-w3c/#post-4159194)
 * Take a look here for general explanations of your validation errors:
 * [Explanation of the error messages for the W3C Markup Validator](http://validator.w3.org/docs/errors.html)
 * Looking at your snippet, I imagine it’s complaining that you’re using a `span`
   tag directly after a `ul` tag, which is invalid. Off the top of my head, I’m 
   pretty sure only an `li` tag is allowed there.
 * It needs to be more like this:
 *     ```
       <ul>
       <li><span class="arri"></span><span class="arri2"></span></li>
       </ul>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Add HTML to WordPress homepage?](https://wordpress.org/support/topic/add-html-to-wordpress-homepage/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/add-html-to-wordpress-homepage/#post-4158728)
 * Generally you’ll want to enqueue your javascript in the theme’s functions.php
   file:
 * The basic way to do this is as follows:
 *     ```
       function load_my_js() {
           wp_register_script('myscript', 'http://www.example.com/myscript.js');
           wp_enqueue_script('myscript');
       }
       add_action('wp_enqueue_scripts', 'load_my_js');
       ```
   
 * If you want to load the Javascript at the bottom of the page (and the above doesn’t
   do it), then you can try this:
 *     ```
       function load_my_js() {
           wp_enqueue_script('myscript', 'http://www.example.com/myscript.js', '', '', true);
       }
       add_action('wp_enqueue_scripts', 'load_my_js');
       ```
   

Viewing 15 replies - 406 through 420 (of 520 total)

[←](https://wordpress.org/support/users/scriptrunner/replies/page/27/?output_format=md)
[1](https://wordpress.org/support/users/scriptrunner/replies/?output_format=md) 
[2](https://wordpress.org/support/users/scriptrunner/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/scriptrunner/replies/page/3/?output_format=md)…
[27](https://wordpress.org/support/users/scriptrunner/replies/page/27/?output_format=md)
28 [29](https://wordpress.org/support/users/scriptrunner/replies/page/29/?output_format=md)…
[33](https://wordpress.org/support/users/scriptrunner/replies/page/33/?output_format=md)
[34](https://wordpress.org/support/users/scriptrunner/replies/page/34/?output_format=md)
[35](https://wordpress.org/support/users/scriptrunner/replies/page/35/?output_format=md)
[→](https://wordpress.org/support/users/scriptrunner/replies/page/29/?output_format=md)