Forum Replies Created

Viewing 15 replies - 16 through 30 (of 53 total)
  • Forum: Fixing WordPress
    In reply to: php help please
    Thread Starter carmeljune

    (@carmeljune)

    I had missed the ‘change’ button.

    Forum: Fixing WordPress
    In reply to: php help please
    Thread Starter carmeljune

    (@carmeljune)

    thank you, thought I had done that … it is such a satisfying thing to do!

    Thread Starter carmeljune

    (@carmeljune)

    This is the final solution

    function kish_picture_page_no_sidebar() {
     global $post;
     if ( !is_category() ) return;
     $cats=get_the_category($post->ID);
     foreach($cats as $cat) {
     if( in_array($cat->cat_name,array("Birds", "Gardens", "Technology")) ) {
     {?>
     <style>
     #sidebars { display: none; border: none; }
     #container {width:940px}
     #content  {width:100%; background}
     #content_box { background:none; }
     #content_box img{max-width:850px;height:auto;}
     </style>
     <?php }
     }
     }
    }
    add_filter('thesis_hook_before_html', 'kish_picture_page_no_sidebar');

    Sorry, I don’t know about the code but this plugin works well for controlling widgets: TS Custom Widgets v2.0 WP Plugin

    Thread Starter carmeljune

    (@carmeljune)

    this is the complete code

    /*
    function kish_picture_page_no_sidebar() {
     global $post;
     if ( !is_category() ) return;
     $cats=get_the_category($post->ID);
     foreach($cats as $cat) {
     if( in_array($cat->cat_name,array("Birds", "Gardens", "Technology")) ) {
     {?>
     <style>
     #sidebars { display: none; border: none; }
     #container {width:940px}
     #content  {width:100%; background}
     #content_box { background:none; }
     #content_box img{max-width:850px;height:auto;}
     </style>
     <?php }
     }
     }
    }
    add_filter('thesis_hook_before_html', 'kish_picture_page_no_sidebar');
    */

    Forum: Fixing WordPress
    In reply to: php help please
    Thread Starter carmeljune

    (@carmeljune)

    Thank you vtxyzzy, now I have complete control over the sidebar.

    Forum: Fixing WordPress
    In reply to: php help please
    Thread Starter carmeljune

    (@carmeljune)

    thanks vtxyzzy, this works now. Unfortunately it isn’t doing exactly what I wanted. I want the code to remove the sidebar on all of the category pages except the first one which is the home page. This code removes the sidebar from the 3 category pages, but I assume it is reading those names into the home page because it contains posts in those categories, and there fore removes its sidebar too.

    Maybe the code has to say if the page contains only posts in these categories, than remove side bar.

    Can someone translate that into php?

    In my limited experience, I can’t imagine what is causing this. But to find out if it is the server or not, why not try a different host, just for a short period to see if it is more stable.
    Could you run 2 installations on the same server, keep them as parallel as possible with the same set up, but public traffic only using the one, and see if it is the heavy traffic causing the problem.
    It is a really strange problem for the restore not to work and yet the server is fine. Have you used a few different computers to look at the site when it goes wrong?
    Sorry I can’t be of any real help.

    From the beginning I have been using TS Custom Widgets v2.0 WP Plugin and I have had no problems with the widgets at all. I can put whatever wherever, maybe it will help you too. Good luck! sounds like a really strange and frustrating problem.

    Forum: Fixing WordPress
    In reply to: Category Problem

    on the add post page or edit post page, are you selecting a category that you have made for the posts? It is hard to see what is wrong from the front end of your blog.

    I’m sorry I can’t help you. But I did look it up and found that this error is referring to the 3rd last line of the following code. Maybe this might help someone else work out what is wrong. If you don’t get a reply I think in this case I would resort to reinstalling wp. But hopefully some one can see what is happening.

    $i++;
    $style = ”;
    $hidden_class = in_array($box[‘id’], $hidden) ? ‘ hide-if-js’ : ”;
    echo ‘<div id=”‘ . $box[‘id’] . ‘” class=”postbox ‘ . postbox_classes($box[‘id’], $page) . $hidden_class . ‘” ‘ . ‘>’ . “\n”;
    echo ‘<div class=”handlediv” title=”‘ . __(‘Click to toggle’) . ‘”>
    </div>’;
    echo “<h3 class=’hndle’><span>{$box[‘title’]}</span></h3>\n”;
    echo ‘<div class=”inside”>’ . “\n”;
    call_user_func($box[‘callback’], $object, $box); //<<<<<<<<<<<< this line
    echo “</div>\n”;
    echo “</div>\n”;

    Thread Starter carmeljune

    (@carmeljune)

    Thanks Samuel, no 4. worked!!! PlanetDomain.com.au have fixed it for me.

    Thread Starter carmeljune

    (@carmeljune)

    Azadeh at Planet domain has fixed this for me.
    .htaccess now says:
    suPHP_ConfigPath /home/cajo/public_html/carmeljames/myblog/
    AddHandler application/x-httpd-php5 .php

    and the php.ini file, that didn’t even exist before, is now about 5 pages long!!!

    but it works!!!

    3 cheers for PlanetDomain.com.au

    (if anyone wants more details, contact me through my blog! carmeljames.com)

    my wonderful hosts at Planet Domain fixed it and have given me 300mb. Now all works.
    Instructions given so often in posts are right, the .htaccess file and the php.ini and they have to be at the top level. I had them in the uploads folder, and/or in the plugins folder, and when I tried them at the top level, I no doubt had something wrong with the code.

    Thread Starter carmeljune

    (@carmeljune)

    I have found 2 solutions for this .. one costs, thesis theme, but it’s a good theme, really worth looking at for the way it organises modifications in custom files that aren’t changed when making updates.
    But the other is a neat bit of code from this page:
    https://www.kisaso.com/technology/thesis-customization-selected-category-posts-without-sidebar/

Viewing 15 replies - 16 through 30 (of 53 total)