Forum Replies Created

Viewing 15 replies - 616 through 630 (of 681 total)
  • I’m glad it’s working now! I had a similar problem using bloginfo() in code I had in my header – the whole page seemed to break. I figured it might be a similar issue with your site which is why I recommended the one-line format with get_bloginfo().

    Good luck with everything else!

    One thing that I see right off the bat is a breaking line in your first function, show_authors(). Your echo statements:

    echo '<li><a href="';
    bloginfo('url');
    echo '/people/#' . $user->first_name .  '">' . $user->first_name . ' ' . $user->last_name . '</a></li>';

    … will actually end up breaking across multiple lines. I’d recommend replacing it with a single-line echo:
    echo '<li><a href="' . get_bloginfo('url') . '/people/#' . $user->first_name . '">' . $user->first_name . ' ' . $user->last_name . '</a></li>';
    This will prevent your line from breaking and will echo back your

    • seamlessly. Using get_bloginfo() rather than bloginfo() will also let you display things in-line because it returns data rather than echo it back by itself.
    • Of course, if show_authors() is already working just fine for what you need, don’t change anything!

      I think including both functions in the same <?php ?> call will help, and you say it’s working so far … Have you tried adding functions back in one at a time to see which one(s) break?

    I’m glad you were able to fix it!

    Interesting problem … can you post your theme functions file for us to look at?

    Use the WP pastebin so we don’t take up too much forum space: http://wordpress.pastebin.ca/

    … If your footer file is encoded, I can’t really help you add anything to it. But seeing that you already have the counter on the bottom of your page, do you really need to put it directly into footer.php? You seem to have already added the counter, and it’s in an appropriate location on the page …

    The only way you could add it directly to footer.php is to contact the theme designer and ask for a non-encoded copy. You could also add a function to functions.php to call the javascript code and place it in the footer … is functions.php encoded as well?

    Do you have any redirection plugins, or log-in styling plugins installed?

    Forum: Fixing WordPress
    In reply to: Posts not showing

    WordPress usually limits the amount of content you show on any once page. You can increase the number of “posts” you display by changing the settings (Settings >> Reading). The default is 10.

    I went to your site and clicked the month of November. I could only see 10 events at a time, but clicking “<<Previous Entries” would take me deeper into the month.

    My recommendation would be to set the limit for your “posts” to something high … like 30 or so … if you want them ALL on the same page.

    I’ve found a similar problem elsewhere in the forums. It looks like some hosts have problems with the file_get_contents() function (some commercial hosts don’t have something enabled, your system might be doing the same thing).

    They’re solution was to add their own function and then call it instead:

    function my_file_get_contents($url) {
        $ch = curl_init();
        $timeout = 5; // set to zero for no timeout
        curl_setopt ($ch, CURLOPT_URL, $url);
        curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
        $file_contents = curl_exec($ch);
        curl_close($ch);
        return $file_contents;
    }

    Then change the $badge_url line to:
    $badge_html = my_file_get_contents($badge_url);

    You can add the above function directly into the functions.php file of your theme and it should work just fine. Let me know if it doesn’t.

    I’m wondering if it’s a problem with your system. I haven’t run into this kind of a problem before, so I don’t know what to tell you. Do the blank pages have content when you come back, or are they completely empty? Are you logging activity on your server? Maybe you have something else running that’s overwriting the files.

    @jeremyclark13 – sorry, completely forgot about the pastebin. 🙂

    @linter – try setting the first number in both the margin and padding definition to 0px, then slowly add to it until the page looks right.

    Go to your widgets menu and expand the ‘Pages’ widget to edit it. There’s an option to exclude pages based on the page ID. Enter ther IDs of the three pages you want to exclude and they will disappear from your sidebar.

    What kind of environment are you running on your local machine?

    linter – can you post your stylesheet here (inside backticks because it’s code) so we can tell you specifically what to change? If you want to reduce spaces, you will have to modify your stylesheet somewhat, but we can’t tell you where and how without seeing it.

    Dobo12 –

    I looked at your site, and it should be fairly easy to add the counter on your WP blog. Go to the Theme Editor (in the ‘Design’ menu) and open the file ‘footer.php.’ Add the following code where you’d like the counter to appear (I took this code off of your existing site http://www.accd.ge):

    <script language="JavaScript" src="http://counter.top.ge/cgi-bin/cod?100+25150" type="text/javascript"></script>
    <noscript>
    <a target="_top" href="http://counter.top.ge/cgi-bin/showtop?25150"><img src="http://counter.top.ge/cgi-bin/count?ID:25150+JS:false" border="0" alt="TOP.GE" title="accd" /></a>
    </noscript>

    This should add the same counter onto the bottom of your WP blog.

    … then again, looking at your blog (www.accd.ge/giga), I already see the counter on the bottom. Have you already solved this problem?

    A similar site can definitely be built in WP. To make it look the same, you just need to define the right styles (colors, fonts, sizes, and positions) within a WordPress theme. I’d recommend starting with a very basic 3-column theme and modifying it from there.

Viewing 15 replies - 616 through 630 (of 681 total)