Forum Replies Created

Viewing 15 replies - 586 through 600 (of 681 total)
  • Forum: Themes and Templates
    In reply to: Broken Footer

    It works in IE8 … the problem in IE7 might be your positioning. That’s just my first guess, though. The CSS fix was a quick patch, but you should really go back through your design and try to fix the markup issues preventing it from validating: Click here to go to validator.w3c.org

    Once you fix these, it might be an easier bug to track down.

    The alternative is to set the page template directly in the database itself. This is tricky, can cause a lot of problems if done incorrectly, and requires you to be somewhat adept at working directly with the WP database through phpMyAdmin.

    If you’re up to that, let me know and I’ll give you pointers.

    There is an alternative – that actually works better for valid coding. Put the mouseover code directly in the img tag instead.

    For example:
    <a href="#"><img src="normal" onmouseover="src='hover'" onmouseout="src='normal'" style="border-style;none;" /></a>

    Just make sure you use the “border-style:none;” tag otherwise you get the annoying blue box around your image in IE.

    First, don’t put your function in header.php. Functions belong in functions.php.

    Second, the correct function is:

    function fotogalerija($povezava, $slika)
    {
    echo '<tr><td class=galerija_slika><a href="http://galerija.smucka.com/categories.php?cat_id='.$povezava.'"><img src="/foto/'.$slika.'/prva_s.jpg" width=340 height=120></a>
    </td></tr></table>';
    }

    This will give you a function you can call on your page templates. Unfortunately, you cannot call the function directly in post or page content. You need to edit the page template (the code that generates the page) in order to use a function like this. If you want to execute php code in the content section of a post or page, you need to install the following plugin:
    http://wordpress.org/extend/plugins/exec-php/

    This will allow you to execute php code directly.

    Jeff,

    Now that you’ve added a template file to your theme directory, you need to deactivate and reactivate the theme (switch to a different theme, load your blog, and then switch back). Otherwise, WordPress doesn’t know you have a template file.

    After you’ve reactivated the theme, you *should* have an additional option on the Page screen for the new template.

    Gary,

    Please post a link or reference some screenshots so we can diagnose the problem.

    A “class” is a set of functions within a web application, in this case WordPress. The specific file you’re having problems with is the part that handles translation from whatever language a WordPress plugin or template is in to whatever language you have set as your default. My guess is that something went wrong in your installation/upgrade (perhaps a file didn’t get copied correctly during FTP).

    Just for reference, the Translations class is defined in: /wp-includes/pomo/translations.php. Take a look at the file (assuming it’s there) and you’ll see just what a “class” does.

    Back up your database and re-install the WordPress core. That should take care of any missing/corrupt files and restore the Translations class in your system.

    1. Yes, this is safe to do.
    2. See above.
    3. You’ll need a little bit of custom coding to make this work …

    It’s possible to have multiple sites run off the same database (pulling the same content from the same tables) without having to copy anything back and forth. The problem comes when you want different themes for each site. The blog theme is actually set in the wp_options table, so if your sites are all pulling from the same database they will all use the same theme.

    There are several theme-switching plugins available already that you can look into using. That would be the easiest solution for you assuming you don’t want to spend any time or budget on developing custom functionality.

    Here are a couple of theme switching plugins:

    1. http://wordpress.org/extend/plugins/nkthemeswitch/
    2. http://wordpress.org/extend/plugins/theme-switcher/

    The alternative is to use a modification of a system like WP Hive. This plugin allows you to install multiple blogs on the same database using different tables – the plugin actually handles which blog points to which table. This could be modified to give you a separate options table for each blog while leaving the rest of the tables alone. This would require a significant amount of custom coding, so I recommend either contacting a developer (I can recommend a few) or dropping a request on http://jobs.wordpress.net. In either case, this route would probably cost you money.

    4. The maximum number of blogs depends entirely on your server setup and traffic. I run 10 blogs off the same database with no trouble at all.

    Forum: Themes and Templates
    In reply to: Broken Footer

    You’re also going to want to remove the “height:2000px;” line from the definition for #wrap or the white background for the posts will extend below the footer.

    Forum: Themes and Templates
    In reply to: Broken Footer

    If it is meant to be beneath the footer text (“Our Green Friends,” “Navigation,” etc) do the following:

    Add “clear:both;” to the CSS definition for #footerbg

    That should fix any problems you’re having. If that’s not the behavior you want, let me know here.

    The easiest way would be with a set of “hidden” categories. So you’d have a “parent” category and “child” categories. You’d hard-code in the category.php template to ignore these and hard-code any category lists to exclude them as well. Then you can use them in your loop to pick a post with categories x and “parent” first and then list all posts with categories x and “child” in some particular order after that.

    Basically, it’s a form of sorting using hidden fields. Just make sure you keep track of the category slug of your hidden categories … the category ids will likely change if you install the theme on a different server, but you can always retrieve the new ids if you know the slugs.

    A fix that I’ve used is more of a workaround. I create a transparent GIF alternative (it’s lower quality, but I live with it) and add a couple of lines in my CSS file to override the PNG.

    So if you have:

    #headbg {
    	background:transparent url(images/logo.png) no-repeat scroll center right;
    }

    Then you add this immediately below that line:

    * html #headbg {
    	background:transparent url(images/logo.gif) no-repeat scroll center right;
    }

    The * html at the beginning of the line is only read by IE, all modern “nice” browsers will ignore this, but for IE6 it will replace the PNG image with the GIF. IE6 plays nice with transparent GIFs, so this shouldn’t cause any issues.

    See it in action here: http://www.ghcnews.org (the logo on the right-hand side of the top banner).

    Demetris, that’s just fine for accessibility, but it’s not valid markup at the moment. With clients who demand validated website scripts it makes it very difficult to “sell” WordPress as a long-term CMS solution. If roles remain in core, then the automatic update feature will un-do any hardcode editing we do to force WP to validate.

    I found this issue as well, thanks for letting me know which core file to tweak to fix it. I did some more research, though, and it looks like “role” will be a valid attribute in XHTML 2. Since we can’t even validate XHTML 2 yet, though, I’m wondering if there’s a better way to fix this in the short run …

    There’s a quick fix that will allow you to use the Featured Content Gallery and WP e-commerce together. I don’t know if it will fix the problem with your contact form, though. You’ll have to let me know so I can try to fix that as well.

    In any case, you can find the details of the fix here: http://mindshare.eamann.com/talk-it-out/

    The fix is towards the bottom of the page under the red “techno-babble” warning.

    Let me know if it works or doesn’t work for you!

Viewing 15 replies - 586 through 600 (of 681 total)