Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Anyone?

    Thread Starter phrz

    (@phrz)

    @mattyrob … thanks for the quick response 🙂 @nasgo did it work?

    Thanks for sharing! I’ve been looking for this solution for the last 2 months!

    The only thing i can’t seem to get to work is: displaying the 3rd level of the navigation correctly. As you can see here the 3rd level is always showing the last navigation items in the array, in this case the children of the (child)page “parts”. And not the children of the current (child)page.

    Do you know how i can solve this problem? This is the code i’m using.
    Much appreciated.

    function custom_subnav(){
    	global $post;
    
    	if(!$post->post_parent){
    		// will display the subpages of this top level page
    		$master = wp_list_pages("title_li=&include=".$post->ID."&child_of=".$post->post_parent."&echo=0&depth=1");
    		$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0&depth=1");
    	}else{
    		// diplays only the subpages of parent level
    		$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0&depth=1");
    
    		if($post->ancestors)
    		{
    			// now you can get the the top ID of this page
    			// wp is putting the ids DESC, thats why the top level ID is the last one
    			$ancestors = end($post->ancestors);
    			$post_ancestors = get_post_ancestors($post);
    			$master = wp_list_pages("title_li=&include=".array_pop($post_ancestors)."&echo=0&depth=1");
    			$children = wp_list_pages("title_li=&child_of=".$ancestors."&echo=0&depth=2");
    
    			if(count($ancestors) >= 1){
    				$style = "style=height:64px;";
    			}
    			// you will always get the whole subpages list
    		}
    	}
    
    	if ($children) {
    		$output = '';
    		$output.='<div id="subnavigation" '.$style.' >';
    		$output.='	<div class="subnavouter">';
    		$output.='	<ul>';
    		$output.=		$master . $children;
    		$output.='	</ul>';
    		$output.='</div>';
    	}
    
    	echo $output;
    }

    cheers! Ronny

    Thread Starter phrz

    (@phrz)

    seriously, can no one help me with this at all?

    I have the same issue. The depth argument doesn’t solve it because i still want the navigation shown on the childs childpages.

    Thread Starter phrz

    (@phrz)

    I deleted the .maintenance file in my wordpress root. That did the trick. Sucks tho that there are so many unforseen bugs in this wordpress release.

    Thread Starter phrz

    (@phrz)

    Is that the case?

    Thread Starter phrz

    (@phrz)

    anyone?

    Looks like a PHP syntax error in your theme or your theme’s functions.php , or even in one of your plugins. Try using the default theme. If that works. There is an error in one of your theme files. If that didn’t work. It could be an error in your plugins. You can check that by de/activating them.

    Good luck!

    Hehe …

    Well i just re-installed and the 500 internal server errors where still there. So i decided to deactivate some plugins and when i deactivated the subscribe 2 plugin the errors in index-extra.php a and admin-ajax.php where gone.

    It seems like plugins that use the ajax libraries conflict with the wordpress core functionallity… i’m not sure why.

    Sofar i’ve installed these plugins succesfully:
    Add Logo to Admin
    Avatars
    flickrRSS
    Shopp
    Sidebar Login
    Subscribe2
    Twitter Widget Pro
    Widget Logic
    WordPress Database Backup

    BUT
    After activating vipers video quicktags the image editor stopped working when clicking on an editor button (ie. flip horizontal ) ….
    After deactivating things work fine.

    This is what my firebug said:

    http://www.mywebsite.com/site/wp-admin/admin-ajax.php?action=imgedit-preview&_ajax_nonce=1773f184eb&postid=128&history=%5B%7B%22f%22%3A2%7D%5D&rand=309569
    
    Request headers
    
    Host: www.mywebsite.com
    User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; nl; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6
    Accept: image/png,image/*;q=0.8,*/*;q=0.5
    Accept-Language: nl,en-us;q=0.7,en;q=0.3
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Referer: http://www.mywebsite.com/site/wp-admin/media.php?action=edit&attachment_id=128
    Cookie: wordpress_dead176dbc44556e7dae5ceb6f0dd8fc=admin%7C1261408863%7C4bb6a005843e164b0110fbe5d42308ad; wp-settings-1=m0%3Dc%26m1%3Do%26m2%3Dc%26m3%3Dc%26m4%3Dc%26m5%3Dc%26m6%3Dc%26m7%3Dc%26m8%3Dc%26m9%3Dc%26editor%3Dtinymce%26m10%3Do%26hidetb%3D1%26m11%3Dc; wp-settings-time-1=1261237139; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_dead176dbc44556e7dae5ceb6f0dd8fc=admin%7C1261408863%7Cc8c0087b94eb4a424b2d1a30840e5096; PHPSESSID=mrab0kc8u715hgk4s761vla074
    
    Response headers
    
    Date: Sat, 19 Dec 2009 15:41:51 GMT
    Server: Apache/2.2.0 (Fedora)
    X-Powered-By: PHP/5.2.11
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/site/
    Content-Length: 0
    Connection: close
    Content-Type: text/html; charset=UTF-8

    AND
    After activating wp-cufon the image editor stopped working when saving ….
    After deactivating it’s still broken.

    I now get 500 Internal server errors All over the place:
    – admin-ajax.php
    – index-extra.php

    And the automatic re-install stopped working aswell.
    So i guess i’ll re-install manually and restore the database..
    I’ve called with my hosting company support and they didn’t have a solution for it…

    This is what my firebug said:

    http://www.mywebsite.com/site/wp-admin/admin-ajax.php
    
    Request headers
    
    Host: www.mywebsite.com
    User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; nl; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6
    Accept: */*
    Accept-Language: nl,en-us;q=0.7,en;q=0.3
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    X-Requested-With: XMLHttpRequest
    Referer: http://www.mywebsite.com/site/wp-admin/media.php?action=edit&attachment_id=128
    Content-Length: 106
    Cookie: wordpress_dead176dbc44556e7dae5ceb6f0dd8fc=admin%7C1261408863%7C4bb6a005843e164b0110fbe5d42308ad; wp-settings-1=m0%3Dc%26m1%3Do%26m2%3Dc%26m3%3Dc%26m4%3Dc%26m5%3Dc%26m6%3Dc%26m7%3Dc%26m8%3Dc%26m9%3Dc%26editor%3Dtinymce%26m10%3Do%26hidetb%3D1%26m11%3Dc; wp-settings-time-1=1261237139; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_dead176dbc44556e7dae5ceb6f0dd8fc=admin%7C1261408863%7Cc8c0087b94eb4a424b2d1a30840e5096; PHPSESSID=mrab0kc8u715hgk4s761vla074
    Pragma: no-cache
    Cache-Control: no-cache
    
    Response headers
    
    Date: Sat, 19 Dec 2009 15:49:05 GMT
    Server: Apache/2.2.0 (Fedora)
    X-Powered-By: PHP/5.2.11
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/site/
    Content-Length: 0
    Connection: close
    Content-Type: text/html; charset=UTF-8

    So WP-CUFON and VIPERS VIDEO QUICKTAGS aren’t that compatible 🙂
    I’ll try re-installing now…

    I have the same problem. After deactivating all my plugins it worked… So i’m now trying to activate my plugins 1 at the time and test it. Then i can find out which plugin causes this to happen. Keep you posted.

    Thread Starter phrz

    (@phrz)

    Thanks, gonna look into that.

    btw. I’ve uploaded my theme to the server and the whole ttfhack stopped working. Could there be some kind of rights issue? The ttftitles still work. The widget text should be replaced (didn’t change the code)

    Any idea?

    Thread Starter phrz

    (@phrz)

    Hmm, it’s harder than i thought … Do you know of a possible way to add a “before” and “after” widget tag for each widget? Or do you know of a variable that i can set when i register my sidebar?

    register_sidebar(array(
    	'name' => 'blog',
    	'id' => 'blog',
            'before_widget' => '<li id="%1$s" class="widget %2$s">',
            'after_widget' => '</li>',
            'before_title' => '<h2>',
            'after_title' => '</h2>',
        ));
    /* filter widget_content and add ttftitles */
    add_filter('widget_content', 'ttftext_widget_title',2);
    
    function ttftext_widget_title($content='', $widget_id=''){
    	preg_match("/<h2[^>]*>([^<]+)/",$content, $matches);
        $heading=$matches[1];
        $insert_img=the_ttftext( $heading, false );
        $content=preg_replace("/(<h2[^>]*>)[^<]+/","$1$insert_img",$content,1);
        return $content;
    }
    Thread Starter phrz

    (@phrz)

    thanks a lot! it’s fixed.
    there was a tab in front of the <?php tag. as you said.

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