549 reputation
314
bio website morganestes.me
location Edmond, OK
age 39
visits member for 1 year, 8 months
seen Sep 18 at 19:10

I build websites.

I like WordPress, and I prefer to use PHP, HTML, CSS, jQuery, and LESS in my projects. I'm starting to learn Phonegap, Node.js, and anything else that piques my interest as I move through the tech world.


Apr
26
comment How do I get an external php page to load using javascript
Thanks for catching that @Pieter. Typo fixed now.
Mar
11
comment Menu of pages with an image
Would you mind posting your solution as an answer so others can learn from it?
Mar
11
comment Menu of pages with an image
Does this code work already and you're just trying to modify it so others can use it, or is some aspect of it not working? Plugin recommendations are off-topic, but if you can clarify what you've tried so far it'll help folks who are trying to help you.
Mar
9
comment Wordpress 3.8.1 Multisite blog slug problem
Editing core files is almost never a good suggestion. The changes you make will be overwritten when you update versions and may cause other problems with your site that you're not expecting.
Mar
4
comment my self hosted blog
Where did you transfer the site from, and how did you do the transfer?
Mar
4
comment Create a blank admin page from plugin
What have you tried so far? Post the code you've used so we can test it out.
Mar
2
comment Text editor has problem with having '<html>' in a post
Please reread the question. The OP isn't using invalid code in a theme or plugin; code is being used inside a pre tag inside a post.
Mar
1
comment Super administrator db name
I've set up a test multisite install with a single test site, an admin user on the site, and an additional network admin. All three of them show up in the user_capabilities column as "administrator".
Feb
27
comment Can't figure out why a jquery file is not loading!
When you're adding an external JavaScript file, it doesn't get parsed by PHP on the server, just by the browser. So this line: url: '<?php echo admin_url('admin-ajax.php'); ?>' doesn't actually produce the URL to admin-ajax.php so it's not going to work. You can add a line to your functions.php to create the URL for use in JavaScript, and I see that the fitvids script has already done this so you can follow their method to create a JS object that you can use in your scripts.
Feb
27
comment Can't figure out why a jquery file is not loading!
It's probably for the best that it's not loading. The code has a couple of serious issues, like triggering a print when the page is loaded, and trying to parse PHP inside the external JS file. Even if the script did load, it'd cause problems for you.
Feb
26
comment Warning: Illegal string offset on theme options page
@RichardMišenčík I've updated my answer with an update specific to the line 75 echo problem. Take a look and let me know if it helps or if you have any questions about it.
Feb
25
comment Warning: Illegal string offset on theme options page
Also, there are other Codex examples of using echo for HTML, so that method is perfectly valid (if more challenging to read and maintain). codex.wordpress.org/Settings_API
Feb
25
comment Warning: Illegal string offset on theme options page
Since both are supported and useful, I'm not sure there's a "proper" technique. I do my best to follow the WordPress coding standards, but on this one there's not a standard yet (see make.wordpress.org/core/handbook/coding-standards/php/…), although many examples do use the opening and closing tags to offset the html (see codex.wordpress.org/Creating_Options_Pages).
Feb
23
comment How do I get an external php page to load using javascript
I don't understand. The code you have loads both a stylesheet and a JavaScript file from the SAME URL (thepage.php?uid=1234)? Also, are you just trying to load a script from an external source, as the code suggests?
Feb
23
comment How To Add WordPress Style Toggle Boxes
Take a look at the code AIOSEO uses to create the box you reference and try to replicate it in your plugin.
Feb
17
comment How to redirect to a passworded page based on password entered on login screen
Okay, a couple of more clarifying questions: is each client a registered user on the site (with info stored in wp_users)? I'm picturing a scenario where they have a regular login from WP to access the site, but a secondary password/key to access their page (via redirect from the login button in main nav). Is that close?
Feb
17
comment How to redirect to a passworded page based on password entered on login screen
Is the password unique to the page, or to the client? Will you have multiple passwords that can access a specific page, or does everyone get the same password for the page?
Jan
20
comment Genesis loading of html5shiv for IE8
One way to verify is to use a virtual machine (check out modern.ie for free ones), or a service like BrowserStack (browserstack.com/list-of-browsers-and-platforms?product=live) to run your site on an actual IE8 browser. Testing on the actual platform is definitely the way to go.
Jan
16
comment Can I have both front-page.php and index.php?
Sorry, it seems I added to the confusion. I've updated my answer to help clarify things a bit more based on some testing I just completed.
Jan
16
comment Get comment content by comment ID
@ChristopherRoss Good idea. I've updated my code to check for a valid $comment, plus typecast the param into an int up front.