WordPress.org

Ready to get started?Download WordPress

Forums

WP-dTree wp 2.3 compatible version? (33 posts)

  1. Cmarc
    Member
    Posted 6 years ago #

    Is there a wp 2.3 version in preparation?

  2. Cmarc
    Member
    Posted 6 years ago #

    the complete question is:
    Is there a wp 2.3 compatible version for WP-dTree in preparation?

  3. sg11111
    Member
    Posted 6 years ago #

    Please ulfben, kindly consider the version for 2.3 asap. wp-dtree is an indispensible plugin and we are all waiting for the 2.3 version since 2.3 has inbuilt tags and many cool features. Thanks.

  4. ulfben
    Member
    Posted 6 years ago #

    WP-dTree3.0 does run on 2.3.

    Make sure you've added the proper display calls to sidebar.php.

    I will widgetize this plugin so we won't have to mess around in the theme source, but it might be a few weeks or so until I get the time to.

  5. ulfben
    Member
    Posted 6 years ago #

    Right, Michelle emailed me and explained the problem. Categories are broken since WP 2.3 - I apologize for missing that one.

    I'll try and fix it this weekend.

  6. lecactusnsk
    Member
    Posted 6 years ago #

    WORDPRESS 2.3 COMPATIBLE VERSION you can download at
    http://lecactus.ru/blog/2007/07/29/566/ (RUSSIAN VERSIONS)
    if you use english version - get wp-dtree_cat-functions.php file from my russian version to your installation

    IT'S TESTED ON RUSSIAN AND ORIGINAL VERSION wordpress 2.3
    -----for russin users----
    Wordpress 2.3 совместимую РУССКУЮ версию вы можете скачать здесь
    http://lecactus.ru/blog/2007/07/29/566/
    ПРОТЕСТИРОВАНО на русской и оригинальной версии wordpress
    2.3
    -----for russin users----

    direct link for download for not russian users

  7. sg11111
    Member
    Posted 6 years ago #

    >I'll try and fix it this weekend.

    Great, really looking forward to it...on Monday.

  8. boober
    Member
    Posted 6 years ago #

    i had this awesome plugin working perfectly before upgrading to 2.3, i was getting, probably the same database error as everyone else, relating to categories. im glad to see the plugin author is fixing it this weekend. in the meantime i decided to try out lecactusnsk's posted fix and it didnt quite work. the bottom category on my tree doesnt expand or have the expand + mark, even though it has posts in it and i have the plugin set to list post. the category above it lists posts fine.

    ......just thought i'd let you know :)

  9. Samgreen
    Member
    Posted 6 years ago #

    oh good.

    I use this plugin to.

  10. ulfben
    Member
    Posted 6 years ago #

    I uploaded the new version just now. Fully widgetized and supports WP 2.3 properly.

  11. ninad79
    Member
    Posted 6 years ago #

    many thanks ulfben :-)

    just one more question. if i need to make two different menus

    say first one for category 1,2 and 3

    and second one for category 4,5, and 6

    can i do that by using the function silpstream_wp_dtree_get_categories() and passing different arguments for $catresults

    if i copy paste the function and define $catresults as an array [1,2,3] will that work ??

  12. sg11111
    Member
    Posted 6 years ago #

    I uploaded the new version. It does not show any Categories or Archive posts. I put the widgets at the end of my bottom left sidebar and it just shows the title of the widgets Categories and Archives and open all and close all links but no categories or posts. My blog is here. You can see these widgets at the bottom of the left sidebar.

  13. sg11111
    Member
    Posted 6 years ago #

    I see the javascript source of all the Wp-dTree cats and posts in the page source of the sidebar but they don't appear on the page. Is this a wp-dtree bug or theme incompatibility? Thanks.

  14. ulfben
    Member
    Posted 6 years ago #

    I'm unable to reproduce your problems. Since you bring up theme incompatibility - have you tried any othere themes? If so - whas it still broken? If not - how does the themes differ?

    If it breaks no matter what theme; please give me your complete WP-dTree settings. They're in the table wp_options -> wp_dtree_options.

    Just copy/paste the serialized array here or send me an email.

  15. freebords4u
    Member
    Posted 6 years ago #

    When trying to activate I get this message, running version 3.2

    Någon ide vad det kan vara ulf ?

    hls
    Johan

    Fatal error: Cannot redeclare init_wp_dtree_widget_goodness() (previously declared in /usr/home/web/wse190175/blog/wp-content/plugins/wp-dtree-30/wp-dtree.php:118) in /usr/home/web/wse190175/blog/wp-content/plugins/wp-dtree-30/wp-dtree.php on line 167

  16. ulfben
    Member
    Posted 6 years ago #

    freebords4u - I haven't got a clue actually. Obviously it's complaining about the widget set up function, but I can't see a reason for it, except perhaps if you've got two copies of wp-dtree running somehow.

    If you're unable to find the cause, try this quick-&-dirty include guard:

    if ( !function_exists('init_wp_dtree_widget_goodness')
    {
    /*move init_wp_dtree_widget_goodness() here*/
    }

    Simply put that around the function in wp-dtree.php, it might help.

  17. freebords4u
    Member
    Posted 6 years ago #

    Sorry ULF, I dont have a clue what to do with the above decription, can you elaborate more or even cut and paste the whole modified wp-dtree.php for me to use..

    Or better mail it to me at johan@freebords.se

    Best Johan
    Sweden

  18. ulfben
    Member
    Posted 6 years ago #

    Delete everything from (and including) line 116 to 167, and replace with the following:

    if ( !function_exists('init_wp_dtree_widget_goodness') )
    {
    function init_wp_dtree_widget_goodness()
    	{
    		if ( !function_exists('register_sidebar_widget') ) {
    			return;
    		}
    
    		function widget_wp_dtree_get_archives($args) {
    	    	extract($args);
    	    	$wpdtreeopt = get_option('wp_dtree_options');  	
    
    	        echo $before_widget . "<li>";
    	        echo $before_title . $wpdtreeopt['arcopt']['topnode'] . $after_title . "<ul>";
    	        if (function_exists('silpstream_wp_dtree_get_archives')){
    			    silpstream_wp_dtree_get_archives();
    			}else{
    				wp_get_archives('type=monthly');
    			}
    	        echo $after_widget . "</ul></li>";
    		}
    
    		function widget_wp_dtree_get_categories($args) {
    	    	extract($args);
    	    	$wpdtreeopt = get_option('wp_dtree_options');  	
    
    	        echo $before_widget;
    	        echo $before_title . $wpdtreeopt['catopt']['topnode'] . $after_title . "<ul>";
    			if (function_exists('silpstream_wp_dtree_get_categories')){
    				silpstream_wp_dtree_get_categories();
    			} else {
    				wp_list_categories('show_count=1');
    			}
    	        echo $after_widget . "</ul></li>";
    		}
    
    		function widget_wp_dtree_get_pages($args) {
    	    	extract($args);
    	    	$wpdtreeopt = get_option('wp_dtree_options');  	
    
    	        echo $before_widget;
    	        echo $before_title . $wpdtreeopt['pgeopt']['topnode'] . $after_title . "<ul>";;
    	        if (function_exists('silpstream_wp_dtree_get_pages')) {
    				silpstream_wp_dtree_get_pages();
    			} else {
    				wp_list_pages();
    			}
    	        echo $after_widget . "</ul></li>";
    		}
    
    		register_sidebar_widget('WP-dTree Pages', 'widget_wp_dtree_get_pages');
    		register_sidebar_widget('WP-dTree Archives', 'widget_wp_dtree_get_archives');
    		register_sidebar_widget('WP-dTree Categories', 'widget_wp_dtree_get_categories');
    	}
    }

    NOTE: this is an ugly work around and doesn't fix the cause of your problems. I've not tested it but I see no reason why it shouldn't work. But then again - you shouldn't be having that problem to begin with...

  19. sg11111
    Member
    Posted 6 years ago #

    ulfben, it is a theme problem. I tried with the default theme and it is showing the Wp-dtrees. I don't know why it is not showing for my theme. I have uploaded my theme here. Please fix the problem at your end. I have deleted almost all other plugin code in the theme so that it works at your end.

  20. ulfben
    Member
    Posted 6 years ago #

    Sorry, but unless you're hiring me to fix it I suggest you sort out your own code.

  21. sg11111
    Member
    Posted 6 years ago #

    How much will it cost to fix it for my theme? I cannot find your email address to contact you.

  22. ulfben
    Member
    Posted 6 years ago #

    Tell you what - buy me a book or two and I'll happily sort it out for you.

    Don't hesitate to buy used copies - it's the content I'm after, not the covers. I buy the second hand stuff all the time so I can buy several books at once. :)

    If you think that's reasonable, just send me an email at ulf at ulfben dot com. I can have your theme done by this evening.

  23. boober
    Member
    Posted 6 years ago #

    maybe this is a stupid question, but, how do i prevent pages from showing up in my category tree when i have it set to show posts under categories?

  24. eikman
    Member
    Posted 6 years ago #

    i have the exact same problem as freeboards4u. fatal error while activating the plugin, something about the widget thing...

    i've been using the "old" wp-dtree version before, but i can't see how that is the problem, considering that i deleted that folder and deactivated the plugin...

  25. ulfben
    Member
    Posted 6 years ago #

    Boober - download the plugin again, that behaviour is gone now. I really should do a better job of versioning my updates...

    If anyone wants pages to show in their tree(archives or categories), just open wp-dtree_arc-functions.php or wp-dtree_cat-functions.php and search for $checkPostType.

    I've left the extended query (allowing pages in the tree) in the comments, just put it back in.

    eikman - did you try the fix I posted for freeboard's problems?

  26. eikman
    Member
    Posted 6 years ago #

    yes i did, and i get the following fatal error afterwards:

    Fatal error: Cannot redeclare silpstream_wp_dtree_add_option_page() (previously declared in C:\xampp\htdocs\wordpress\wp-content\plugins\wp-dtree-30\wp-dtree.php:173) in C:\xampp\htdocs\wordpress\wp-content\plugins\wp-dtree-30\wp-dtree.php on line 176

    my theme does not support widgets, but i get the same error(s) with the default theme...

  27. ulfben
    Member
    Posted 6 years ago #

    Disable all your other plugins and tell me if anything changes.

  28. eikman
    Member
    Posted 6 years ago #

    tried it - no change.

  29. ulfben
    Member
    Posted 6 years ago #

    eikman - what version of WP and PHP do you run?

  30. eikman
    Member
    Posted 6 years ago #

    2.3 and PHP4

Topic Closed

This topic has been closed to new replies.

About this Topic