Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)
  • Thread Starter greg2008

    (@greg2008)

    Update!

    Using this plugin has helped.

    Now the child categories are not listed when users view a parent, they have to specifically click the child link to see articles for that category.

    And interestingly enough, it also seems to have solved the issue of LIMITING this entire area from being listed in other areas.
    On the homepage (index.php) I have a basic loop to show all posts from all cats. With query_posts('cat=-10'); in conjunction with this plugin, the category “10” and all child cats seem to have now been banished!

    So I can add new cats or rename them to that one parent cat and don’t have to edit the theme files all the time to limit all the IDs!

    Hopefully this will help someone else.

    I’m having the exact same issue, so am going to follow this thread.
    I have the get_footer() and the file footer.php in the theme dir, but it just wont show.
    I tried disabling all plugins and testing for JS errors, but still nothing – it’s weird.

    defmax, one thing I noticed in your “single.php” code is you don’t actually get the sidebar – I couldn’t find get_sidebar().

    Although that doesn’t resolve the footer issue or why it doesn’t work in the index,php where you do have the sidebar include function.

    Having searched the net and this site, I don’t find many others with the same problem, which points to it being something specific to our code/blog install.
    Although I’ve coded numerous WP themes now and know my way around the code very well.

    Thread Starter greg2008

    (@greg2008)

    Should add… I also have tried using include (TEMPLATEPATH . '/searchform.php'); but this has the same issue.

    Thread Starter greg2008

    (@greg2008)

    I should probably point out that $comments_count is my own variable I use to loop the array in a specific manner.

    Thread Starter greg2008

    (@greg2008)

    OK, it only took me 4 days to finally figure this out after hacking my way through core files, changing hooks, overriding filters in the header and reading about 200 wordpress related sites.

    I found the answer and as it annoys me to hell the support here is often bleak, with “help me with…” only to have no replies, I thought it would be good to post my findings for others.

    echo mysql2date('l jS F, Y, g:ia', $comments[$comments_count]->comment_date);

    All I needed to use is the mysql2date() function in my comments.php theme file with whatever PHP date formatting I wanted and voila.

    Thread Starter greg2008

    (@greg2008)

    Thanks for the flurry of ideas and advice. I’ll be sure to post again in the future on WordPresses own support area to get no support “once again”.

    Thread Starter greg2008

    (@greg2008)

    Thanks for the reply.

    Use php date function with what? The data available is a textual output with spaces, hyphens and colons. I could strip all that away and use it in a date/timestamp fashion, but it seems messy.

    greg2008

    (@greg2008)

    I dont want to change the width of sidebar, because alot of widgets depend on that width

    That’s the sort of thing I meant by it’s difficult to help and suggest code/CSS changes to someone else’s site.

    Again, we can still try though.
    You will have to give me a bit of time as the site doesn’t load for me (hope that’s just an issue for me)

    I don’t need access to the site for styling, the HTML and CSS is available by other means.

    greg2008

    (@greg2008)

    It’s probably becasue you call <div id="sidebar"> BEFORE <div class="rsidebar">, and sidebar has margin and padding 0.

    EG
    style.css (line 32)

    #sidebar {
    float:right;
    margin:0;
    padding:0;
    width:310px;
    }

    Try adding a left margin to that, or as it’s floated to the right, try reducing the width by 10px.

    We can help, but without knowing all your CSS and HTML, it’s hard to adjust little things like that.
    You really should try to play around with the code yourself and adjust things. Then once you have learned it you can adjust it with ease.

    Just backup any files you are playing with first, like style.css, then play with the declarations, if it all goes wrong, just overwrite it with your backed up one.

    greg2008

    (@greg2008)

    Do you have any error.log files in your wordpress directory? Probably the main folder, but check the wrp-admin folder too.

    Thread Starter greg2008

    (@greg2008)

    Changing the thumbnail settings will only affect any new images that you upload.

    It’s a new site, so re-uploading the 20 images I have now is fine.
    Thanks for the info, any images I upload from now will also be fine.

    I had a look at some plugins, but they all appeared to have way to much functionality for what I needed.

    Cheers!

    greg2008

    (@greg2008)

    Value Error : padding-left only 0 can be a length. You must put a unit after your number : 10
    Value Error : margin-bottom Too many values or values are not recognized : 0 px

    So lines 142 and 161 of your CSS file have errors.

    It informs you that “padding-left” cannot be “10”, only “0” can be. So it tells you to put a unit after your number. Like “px” etc
    eg “padding-left: 10px;”

    Then also “margin-bottom” has too many values.
    I.E. “Margin-bottom: 10px 10px;” you can only use ONE size when you specify a particular margin of the four.
    Otherwise, use eg “margin: 10px 10px 10px 10px;”

    You can ignore the warnings if you just want to validate, but sometimes it’s a good thing to correct them as it makes for tidier and better structured code.

    It also appears (for some bizarre reason) I cannot right click on your site.

    greg2008

    (@greg2008)

    No problem.

    You have put it in the script tag
    Here:
    <script target="_blank" src="http://www7.addfreestats.com/cgi-bin/afstrack.cgi?usr=00728172" type="text/javascript">

    So remove the target=”_blank” from that tag (as above) and add it to the <a href just underneath that
    Here:
    <a href="http://new.addfreestats.com/?usr=00728172">

    A <a href=""> is a link, and it’s the links you assign the target blank to so the link opens in a new tab (or page).

    greg2008

    (@greg2008)

    Validate here:
    http://validator.w3.org/

    greg2008

    (@greg2008)

    I edited your code and it worked fine for me.
    Not sure if you know, but you actually have TWO links to those stats

    1) The basic link for people with Javascript:

    <a href="http://new.addfreestats.com/?usr=00728172">
    </a>

    2) The no-script for people without Javascript
    <noscript> <a href="http://www.addfreestats.com" target="_blank" > <img src="http://www7.addfreestats.com/cgi-bin/connect.cgi?usr=00728172Pauto" border=0 alt="AddFreeStats.com Free Web Stats!">Web Stats</a> </noscript>

    You have added the target=blank ONLY to the no-script, for those without Javascript.
    So if you HAVE Javascript enabled in your browser then you are seeing the link 1) above WITHOUT the target=blank.
    SO you need to add that to both links.

    You can (and should really) test both links.. by having Javascript enabled in your browser, then disabled (refresh page after changing).
    Try disabling Javascript in your browser before editing any more code, the link will open in a new tab as you want. Just edit the other link, enable Javascript again refresh and you will be good to go!

    <a href="http://new.addfreestats.com/?usr=00728172" target="_blank">
    </a>

Viewing 15 replies - 1 through 15 (of 25 total)