Forum Replies Created

Viewing 15 replies - 436 through 450 (of 3,008 total)
  • If you want to use your theme on an outside-of-wordpress site, you just add require(‘PATH TO wp-blog-header.php’); Then you can use *any* WordPress calls on an outside site – including the theme stuff. That requirement *has* to appear before anything else – including the Doctype.

    The only issue is, if your site is .html files, it won’t work – your files have the parsed as .php. So you either have to use a .php extension for your filenames, or use your .htaccess to make the files parse the .html as .php.

    Oh. My. God. I think I love you both.

    Yeah, a folder called “2.9.2” is what as created for me, as well.

    Honestly, I don’t know. I know if I’ve ever wanted to move my svn directory, then I’d rename it and move it to where I wanted it to go. However, I usually keep my svn installations in a separate directory from my other development installs.

    Sorry I couldn’t help more!

    Well, the part that confuses me is that your localhost is at 127.0.0.1. It should not be there. usually, IP addresses of 127.0.0.1 (or 168.x.x.x) or just general IP addresses for your machine. But again, like I said, I use MAMP, which is similar – it’s been a while since I’ve used XAMPP – and if you set your localhost IP to be 127.0.0.1 then that’s what it is. But if it’s not working on the server environment, then something isn’t set up correctly. Can you access phpMyAdmin on your localhost installation? If so, then it’s probably running correctly, and you’ve done something odd with your WordPress installation. you say you got the “file not found” error when you created the user and password for the database – so that sounds like an issue with the PHP installation, and you haven’t even begun to start on WordPress yet.

    When I used XAMPP, I remember I had to install PHP and Apache separately (although I think XAMPP comes with it installed now). IN all honesty, this sounds more like an issue for the XAMPP forums, not WordPress. The only other thing I can offer is to maybe try following this tutorial – maybe it’ll show you something that was missed?

    services are running…. not a problem

    Okay….but that’s not what I said. I didn’t say your services weren’t running – I said it sounds like you haven’t finished properly configuring your environment. A “localhost” server *usually* runs with an IP address of “192.168.x.x”. “127.0.0.1” is basically the *computer’s* address – not the server address. Sounds to me like you’ve started it, but haven’t edited your Apache to use the directory you want as the “server”, or you’re putting your files outside of the “server” directory that Apache created for you to use. You might want to look at the XAMPP documentation and find out what you need to do to finish configuring your localhost environment.

    Glad it worked for you! 🙂

    I have.

    I used Liam McKay’s tutorial for them. (as a note, he has updated this year-old tutorial to streamline it, and it’s terrific. I have it running on WP 3.0 beta – but I haven’t tried to add checkboxes or anything to it yet – so what I’m about to share is for the older stuff)

    Anyway, I had a site where I needed checkboxes, textareas, dropdowns, radio buttons and I got it to work. Now I have to dig for it…. ah – here it is.

    If you’re following Liam’s tutorial, then in the “new_meta_boxes()” function (be aware that I changed some of his names because I wanted to use a different set of field for pages over posts, and they couldn’t have the same names) – put the following:

    function new_meta_boxes() {
      global $post, $new_meta_boxes;  
    
      foreach($new_meta_boxes as $meta_box) {
    	$meta_box_value = get_post_meta($post->ID, $meta_box['name'] . '_value', true);  
    
    	if($meta_box_value == "")
    	$meta_box_value = $meta_box['std'];  
    
    	// we want different types of fields - not just text input.  Let's create the variety of types.
    	$hidden = '<input type="hidden" name="' . $meta_box['name'] . '_noncename" id="' . $meta_box['name'] .'_noncename" value="' . wp_create_nonce( plugin_basename(__FILE__) ) . '" />';
    	$label = '<span style="font-size:1.1em; color:#999; margin-bottom:0; padding-bottom:0;">' . $meta_box['title'] . '</span>';
    
    	if($meta_box['type'] == 'text') {
      	  $input_type = '<input type="text" name="' . $meta_box['name'] . '_value" value="' . $meta_box_value . '" style="width:' . $meta_box['width'] . ';" />';
    	} else if($meta_box['type'] == 'checkbox') {
    	  if($meta_box_value == "yes") $checked = 'checked="checked"';
    		$input_type = '<input type="checkbox" name="' . $meta_box['name'] . '_value" value="yes"' . $checked . ' />';
    	}
    
    	$description = '<span style="font-style:italic; color:#999; margin-top:0; padding-top:0;"><label for="' . $meta_box['name'] . '_value">' . $meta_box['description'] . '</label></span>';
    
        echo '<div style="font-size:1em; width:48%; text-align:right; padding:3px 5px 0 0; vertical-align:top; float:left;">' . "\n";
    	echo $hidden . $label . '<br />' . $description . "\n";
    	echo '</div><div style="width:50%; float:left;">' . "\n";
    	echo $input_type . "\n";
    	echo '</div>' . "\n" . '<br style="clear:both;" />' . "\n";
      }
    }

    Hope that helps!

    By default, the_excerpt strips formatting from your excerpts, and for very good reason. if you don’t, and your excerpt closes before a tag or link has closed, it’ll possibly break your site (at worst, it’ll just mess up the formatting for everything beneath tat particular excerpt, or turn your site into one huge link – but I had a custom theme I did for someone who wanted this same thing, and it actually broke the entire site. I *told* them and they didn’t believe me until they saw it for themselves.)

    If you want to allow formatting, you have toi either write your own function to make it happen, or use a plugin. A really good one is the_excerpt_reloaded. But be sure to visit this site to get a small fix for it.

    Do you just open up your terminal and type in the SVN command? You dont’ explain what process you take, so I’m assuming that’s what you do. if so, that’s incorrect. You have to use terminal to change the directory to where you *want* to put the files. Once you do so, you *will* get a directory – it won’t just install the files.

    For example, if you want to install the current nightly build, you open up Terminal (which is Mac, so if you’re on a PC, you have to use some other utility) and it’ll tell you what directory you’re currently in – which is generally the root user area. You need to change your directory to the localhost directory. So for me, I would type in “cd \Desktop” and then “cd \Websites”.

    THEN I would type in svn co http://core.svn.wordpress.org/tags/2.9.2

    In fact, I just did it, and I now have the SVN of 2.9.2 in my Websites directory (which is my root localhost – in the folder called “2.9.2”)

    Does that help?

    Although 127.0.0.1 is usually your localhost IP (to access your root directory) you have to be sure that this is set as the directory for your localhost installation in your Apache setup. It’s been a while since I’ve used XAMPP (I use MAMP myself, but they’re very similar) but you have to edit your apache’s http.conf file to recognize where your “server directory” is. Usually, when you install a localhost enviroment with XAMPP or MAMP, it already creates a “Server” area for you to use and install things. If you didn’t install in that folder (and you didnt’ create one) then you’ll get issues. You can place files anywhere, but only one directory is usually set to run things like PHP in a server environment.

    As an example, when I want to go to my localhost directory, I have to run MAMP (i.e. start the servers) and then I go to “http://localhost&#8221; or “http://192.168.1.100&#8221;. 127.0.0.1 is just a regular “localhost” that doesn’t really do much.

    To sum up: sounds like you haven’t fully configured your localhost environment, and/or put the files in the wrong place.

    This isn’t really a WordPress issue, it’s an IANA one.

    You might find this article to be interesting – it’s one of many you’ll find if you Google about non-ASCII characters in URLs (Webmaster World has a couple of discussions on the issue).

    The end idea is, of course, that it *can* be done. It’s just whether or not you actually *want* to do it. The IANA standard is English (or ASCII characters), and there’s a lot of discussion on the subject right now as to whether or not it’s a good idea to mix or alter the standard, and if you’ll take an SEO hit. But the IANA does have lists of characters you can use in your URLS.

    And another idea is to install WordPress in your language, and it might be possible that route – but I’ve never tried it myself.

    Forum: Fixing WordPress
    In reply to: WordPress date

    Are you running a Dutch installtion of WordPress? If you used the regular installation, it’s in English. you need to have the .po files in there (in the languages folder – which I *think* needs to be in the admin folder, but it’s been a while so I can’t remember for sure) – and your theme has to allow Dutch to be seen.

    Installing WordPress in your Language
    WordPress in your language
    Translating WordPress

    Wow – I just found this, thanks to someone who emailed me about this issue! I thank you for the compliment, bipolar, (and thanks, Michael, for your awesomeness, yet again!) but I should let you know that the code you’re using is pretty old. (As a side note, I didn’t invent it either – I found it here on the forums, and I’ve searched for it to see who to give proper credit to but haven’t been able to find it again – it may well have been MichaelH!) I know the post is dated this year, but I do indicate in the content that I got the code a long time ago – which is true. I initially found it for a WP 2.0 site I was developing… I think about 2 years ago? Anyway, I’ve since found out that it messes with your RSS feed, and I still haven’t been able to figure out how to fix that yet. The “custom fields” thing is new to me too – especially since the original site I was using it on used a ton of custom fields and worked fine.

    But again, that was 2.0.

    I know there has been several changes since then. 😉

    I’m going to update my original post to reflect these issues. But I can say this: because of how WP has developed, this code is pretty much pointless. There’s a lot of functions that are now within WP that pretty much make this code obsolete and unnecessary to use – especially with the issues it presents.

    Like I said, I’ll update the post to make note of the issues that are coming about – but I will also post something that might be able to help those of you who want to use something that has the same end result, but works a LOT better than this old stuff.

    Assuming your page is actually a Page, and the name is “Products”…

    <?php if(is_page('Products')) { ?>
    show the sidebar you want
    <?php } ?>

    it’s called a conditional.

    Thread Starter Doodlebee

    (@doodlebee)

    Well, THAT won’t be hard, since I just live about 1.5 hours from Boston! (of course, I live 1.5 hours from NYC too…) but okay – Go Red Sox! XD (I like them better anyway.)

Viewing 15 replies - 436 through 450 (of 3,008 total)