Forum Replies Created

Viewing 15 replies - 646 through 660 (of 1,478 total)
  • ivovic

    (@ivovic)

    That’s not really all you did is it?

    you also either set your category base to ./ or installed a plugin that removes the category base, right?

    that’s what’s causing the problem.

    Category base manipulation is fickle at best, and requires certain conditions to be met – which it seems as though you’re not meeting.

    ivovic

    (@ivovic)

    you can prevent paragraph tags, but all of them, not just the ones around images.

    Can I ask you, what’s the effect you’re trying to achieve? I’m confident there’s a way to do it without being concerned about the paragraph tags.

    Thread Starter ivovic

    (@ivovic)

    if I could please request the thread to be renamed:
    “defining theme for multiple domains in wp-config.php”

    and for the thread to be moved to wp advanced that would be great.

    Cheers.

    edit: thanks to the kind mod who moved this.

    Thread Starter ivovic

    (@ivovic)

    Well, I revisited this with a clearer head, and I’ve worked out why it wasn’t working.

    Here’s the section of wp-settings.php responsible for loading the functions.php.

    // Load functions for active theme.
    if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists(STYLESHEETPATH . '/functions.php') )
    	include(STYLESHEETPATH . '/functions.php');
    if ( file_exists(TEMPLATEPATH . '/functions.php') )
    	include(TEMPLATEPATH . '/functions.php');

    as you can see there, because the second conditional isn’t an ‘elseif’ it tries to load the functions PHP *twice*, if TEMPLATEPATH doesn’t match STYLESHEETPATH.

    Of course this results in error central as existing functions are defined again.

    So, either one hacks that, or better yet, one defines both in wp-config.php:

    I’ve modified my function above, to make it simpler to add as many domains (and their themes) as you like.

    Put this into wp-config.php, under the $table_prefix definition, and edit to match your details:

    function domain_theme($domain) {
       define('WP_SITEURL', 'http://'.$domain);
       define('WP_HOME', 'http://'.$domain);
       define('TEMPLATEPATH', '/path/to/public_html/wp-content/themes/'.$domain);
       define('STYLESHEETPATH', '/path/to/public_html/wp-content/themes/'.$domain);
    }
    $domain = $_SERVER['SERVER_NAME'];
    $domain = str_replace('www.', '', $domain);
    if ($domain == 'altsite.mobi') domain_theme($domain);

    Now, your main site’s theme folder can be called whatever you want, but your alternate site themes should be named after the domain they’re intended for, and bob’s your uncle. Just copy the if-statement at the end, to add additional domains safely.

    If you want to be a rogue about it, you can just assume that you’ve done everything correctly, and forget the error checking by changing the last line to:

    if ($domain !== 'mainsite.com') domain_theme($domain);

    this will just assume that you’ve uploaded a theme for every domain you have parked at your site, and if you happen to access your site via a domain which doesn’t have a theme, you’ll probably get lots of error messages, so the first one is safer, but the second one is shorter if you have 15 domains parked at your site.

    I thoroughly suggest you don’t use this to stuff google full of duplicate content, but there are PLENTY of legitimate reasons you might want it, so here it is.

    ivovic

    (@ivovic)

    welcome 🙂

    ivovic

    (@ivovic)

    Put a blog name into your general settings page.

    ivovic

    (@ivovic)

    well, there sort-of is… if you’re familiar with page templates.
    http://codex.wordpress.org/Pages#Page_Templates

    you can use get_posts to pull your original page, to be displayed on any other page which uses the page template you create.

    http://codex.wordpress.org/Template_Tags/get_posts

    this way, your subsequent “copies” of this page will be blank, and won’t turn up in searches… but when viewed, they’ll have the same contents as the original page you created.

    ivovic

    (@ivovic)

    no, the password in wp-config.php isn’t encrypted. This is quite normal, as that file can’t be opened in a browser.

    it’s executed by the server, so the contents of that file never leave the box, unless the server is grossly misconfigured.

    ivovic

    (@ivovic)

    It’s not really going to be much easier for us to find the php file in question…

    I can tell you though, the errant definition seems to be in your “panels” area… the three big boxes you have there on your site.

    <div id="panels">
       <div class="p1">
          <style type="text/css">
          <!--
             .style1 {color: #0000FF}
          -->
          </style>

    if you know where that is, then you can fix it. I can’t actually see anything using that style anyway, since there’s nothing in that area that’s 100% blue.

    Forum: Fixing WordPress
    In reply to: Jumpy links
    ivovic

    (@ivovic)

    wow, that’s really annoying.

    look for a:hover and remove all the instances of font-size in each definition that includes it.

    ivovic

    (@ivovic)

    no need to edit files…

    index.php?cat=5&feed=rss2

    where rss2 is the name of your preferred feed template.

    this works for most every URL.

    Forum: Fixing WordPress
    In reply to: Blog Kaput
    ivovic

    (@ivovic)

    homescholar, if you can find your way to your site via FTP, then do so, and delete your .htaccess file.

    ivovic

    (@ivovic)

    LOL, I would never say such a thing… except while naked.

    I love the term sheeple, and I think that sheeple trust men in white coats mostly because they don’t have their own white coat. If they did, they might see through the prestiege and even let a certain amount of familiarity=contempt creep into the equation.

    Paypal is so familiar and so reachable to pretty much everyone, that when it comes to running a professonal site, the impression is that if I can sell using paypal on ebay, you using paypal on your website means you’re not much better at this stuff than I am.

    It might be subtle psychology and not hugely relevant to the actual transaction, but subtle psychology makes sales — and repeat sales.

    Anyway, it has little to do with the bad press for me, and more to do with the branding. I don’t want my customers to “leave” my site to have their payment processed. If paypal ever offer the ability to upload a css file I think it will shift my opinion.

    …at that point, even if it has a big honking paypal logo on it, you look more like a paypal partner, than some schmuck selling $3 taiwanese ipod covers.

    I’ve rambled on again without really addressing the question… but yeah, I actually do feel like sheeple trust obscure things more than they do familiar ones, precisely because they know their own knowledge/skill level is hugely lacking.

    If they know about it, it must be crap, because there’s so much they don’t know.

    ivovic

    (@ivovic)

    I don’t understand the question… you want to turn the RSS feed of your blog category, into a new page?

    isn’t that “page” right here: http://ipsource.tv/?cat=3 ?

    if I’ve misunderstood you, please try to clarify what you want exactly.

    ivovic

    (@ivovic)

    interesting that you’d be so wounded by my post instead of seeing that I really did make an effort to help you, and in a couple of ways.

    first, your plugin DOES have its own style-sheet as I pointed out… I even told you where it was.

    secondly, I pointed out that you’re just hurting your chances of getting a response if you post on “resolved” threads, because by definition, there’s nothing left to solve in there.

    So instead of being an arse about it, you could just say thanks.

    You think I didn’t get close to a solution before? watch how close I get now.

Viewing 15 replies - 646 through 660 (of 1,478 total)