5,464 reputation
1835
bio website markratledge.com
location Missoula, MT
age
visits member for 3 years, 11 months
seen 10 hours ago

Jul
25
comment Add a new checkbox in theme options
Ah, that worked! Must have to get_option first, then call it. Like you say, this seems to be the old way of handling theme options. Thanks for all the help! - Mark
Jul
25
comment Add a new checkbox in theme options
option_name under wp_options is vertigo_theme_options
Jul
25
comment Add a new checkbox in theme options
Hmm.... Still no luck. But maybe we're getting closer. Added what the options look like in the DB: are they serialized? And gain substituting vertigo_font for disable_comments_link in the the template call to test with no luck.
Jul
25
comment Add a new checkbox in theme options
Thanks! Good point to see if the option is getting saved to the DB; it is, in the same option value as the two other options that were already part of the theme. So I think it is being santized and serialized correctly near the bottom of the main code sample above, becuase it gets saved in the DB as either true or false. I substitued vertigo_font for disable_comments_link in the if (get_option(... in the template file with no luck; so something is wrong with the template file option call?
Jul
25
comment Add a new checkbox in theme options
It would be nice to work with what's here rather than rewrite it all. One existing option hooks into wp_head to load scripts.
Jul
25
comment Add a new checkbox in theme options
Thanks, and that would work, but I need to fix the built-in options rather than use a plugin.
Jul
24
comment Add a new checkbox in theme options
No, it doesn't use register_setting()
Jul
24
comment Add a new checkbox in theme options
Ah, starting to make sense. Yes, the options checkbox appears (small screenshot above; the extra closing parenthesis might be a clue to what's broken?). This is a theme I'm adapting from wp.com to self-hosted. I grabbed all the files from wp.com subversion. Everything in the theme works; just trying to add another option.
Jul
19
comment Import old SQL dump into new Wordpress version
No. Make a new database in phpmyadmin, import dump. Add the new DB details - name, user, password, localhost - in wp-config.php. Simply upload WP2.9 files and folders; don't run install.
Jul
19
comment Import old SQL dump into new Wordpress version
Ok, then you can probably do a auto-update to 3.2, but maybe best to go to 3 manually. Load the 2.9 files from wordpress.org/download/release-archive to start.
Jul
14
comment After finishing building a site on localhost, how do I transfer everything to a client's server?
@hakre: wp.tutsplus.com/tutorials/hosting/… advocates using a text editor to change URLs; that will break serialized data.
Jul
12
comment Not enough memory
64 is plenty; you're not going to have 256 or 512 available on a shared host (and that will result in more errors), and you don't need that much unless you're running multisite and on a VPS.
Jul
12
comment Not enough memory
64 is plenty; you're not going to have 256 or 512 available on a shared host (and that will result in more errors), and you don't need that much unless you're running multisite and on a VPS. If you can't get WP to run OK bumping to 64M at your host, ask them; you may need to think about changing hosts.
Jul
8
comment Get current logged in user under 3.1, re: remove “Howdy”
Ah, very smart. I was using the original function as I stole it from a plugin called "Better Howdy." Didn't realize there was an easier way. Thanks!
Jul
8
comment Get current logged in user under 3.1, re: remove “Howdy”
I don't know; that's the complete function I am using. I don't see in the first place where user is grabbed.
Jun
21
comment Restrict access of admin uploads to certain logged-in users?
I need to restrict certain uploads to certain users, not all uploads to some users.
Jun
21
comment Restrict access of admin uploads to certain logged-in users?
Yes; in WordPress nomenclature, uploads - like documents - are also available for download by users and can be called downloads, too.
Jun
20
comment SQL query to delete comments older than 90 days?
and @Jan: Yes, I need to delete child comments, too.
Jun
2
comment Add function to Simple Twitter Connect to not Tweet pages
@Otto did; see below.
Jun
2
comment Add function to Simple Twitter Connect to not Tweet pages
Ah hah, that is. I'll use it instead of changing your plugin. Thanks!