bSuite 4

bSuite is a set of tools that help surface interesting and relevant posts, help your users navigate your content, and help authors develop and publish content. Take a look:

bSuite stats
cache-friendly stats
bSuite search word highlighting
search word highlighting
bSuite related posts
related posts
bSuite options
easy options

Features

Details


Hey! Here’s a cool thing: the list of pages and their contents up there is automatically generated using the shortcodes in this plugin.

License & Warranty

This software is provided as-is, with no warranty of any kind — use it at your own risk and don’t blame me if it makes your mother complain about your haircut — under the terms of the GNU Public License.

Bugs

I’m certain there are bugs in here, please report what you find in the comments below.

90 Comments

  1. Pingback by » bSuite 4 Public Beta on June 1, 2008 6:16 pm

    [...] is a lot of fun), kicked me into gear to actually get working on it again. The result is bSuite 4, which is probably what bSuite 3 should have been all [...]

  2. Comment by Timothy Haroutunian on June 3, 2008 12:06 am

    When I updated my SVN copy and activated it, I tried importing my stats. It told me it was complete and didn’t update my stats. I backed everything up and reverted it, but I just wanted to know if that was a possible bug or am I just missing a step.

    Thanks. Really excited about the new version though!

  3. Pingback by » bSuite 4 beta 2 on June 11, 2008 2:33 pm

    [...] SVN that addresses some of the bugs and fleshes out some of the features. I have yet to update the bSuite page, but here’s a preview of what’s new or [...]

  4. Comment by steve cooley on June 19, 2008 5:53 pm

    Hey, Casey! I’m excited to see how this new version does, but I’m getting an error on activation:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in (snip)/wp-content/plugins/bsuite/bsuite.php on line 470

    I’ve tried the zip file as well as the SVN version (which both say 40 beta 1, but that’s another topic).

    I’ll go try installing it on another blog and see how it goes.

  5. Comment by steve cooley on June 19, 2008 5:55 pm

    Sorry, I meant to type:

    “4.0 beta1″

  6. Comment by www.MaximumExchange.ru on July 7, 2008 2:35 am

    See Casey, The bSuite is really great thing!
    Thanx a lot.
    I use 4.0 beta2,
    - although the Plugins page shows it as beta1, plus
    - “Enhance WordPress search with full text keyword indexing” option makes a mess of Search results. Even after “Rebuild Indexes”. I’ve switched this off until successful release I guess.
    - “Insert related posts links at bottom of each post” - please do not enable it by default. I suppose this kinda useful thing, but it may not fit to any website design, as in my case 4example.

    and Stats is great!
    Thanx for a good tool.

  7. Pingback by » bSuite 4 MaisonBisson.com on July 8, 2008 10:52 am

    [...] bSuite [...]

  8. Pingback by Links e feeds de RSS: correções e ajustes | LULI RADFAHRER on July 17, 2008 8:40 am

    [...] um ou outro probleminha de link quebrado, minhas métricas são um caos, não consigo atualizar o bSuite sem afundar todo o resto, falta tempo para escrever algumas seções, colocar palestras no [...]

  9. Comment by Urban on August 14, 2008 4:22 am

    Have you added the option of incoming search tagging like you were speaking here:

    http://borkweb.com/story/bstat-search-cloud

    ?

  10. Comment by baron on August 30, 2008 8:31 pm

    hi. Thanks for plugin

    perfect.

    BestRegards

  11. Pingback by » Do WordPress Pages Better With bSuite MaisonBisson.com on September 24, 2008 4:25 pm

    [...] of the listed pages. You can even put the innerindex shortcode in the excerpt (see that at work here). Related:bsuite_innerindex WordPress PluginbSuite 4 beta 2bSuite 4 Public BetaMaisonBisson [...]

  12. Comment by nchenga on October 2, 2008 6:21 am

    i can’t activate the plugin… i’m getting this error. Same as Steve.

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in … snip … /wordpress/wp-content/plugins/bsuite/bsuite.php on line 470

    what’s the solution to this?

    any help is much appreciated

  13. Comment by Casey Bisson on October 3, 2008 1:59 pm

    @nchenga: can you confirm that you’re running the 4.0.1 version? What PHP are you running? This doesn’t seem to be a problem in a number of other installations.

  14. Comment by Dennis Wurster on October 3, 2008 2:53 pm

    Hi Casey, great plugin, I’m a big fan!

    I updated yesterday to bSuite4, but my reports now say that noone has visited my site all day! (Seems unlikely)
    Earlier this morning, I realized that I hadn’t upgraded my existing stats, so I went through the 7 step process. I felt better because my “Weekly Top Posts” widget was working again.

    However, my visitation stats don’t seem to be ticking. Is there a bit of code that I need to include in a template somewhere that has changed since the version previous to bSuite4?

  15. Comment by Casey Bisson on October 6, 2008 9:14 am

    @Dennis Wurster: can you look at the wp_bsuite_hits_incoming table using a MySQL tool? Are there any entries in there?

    If you don’t have access to view the contents of the MySQL table, you could try going to your site’s dashboard > Settings > bSuite and click the “force stats migration” button. It only moves the number of rows each set in the cron settings section of that page each time you push the button, but it’ll get you started.

    The voodoo part: stats are written to the incoming table first, then processed into the reporting tables using WP’s built in cron. But it won’t do that if the load is above the threshold, and it doesn’t do it for the first few hours after install (in part to give you time to import the old stats without database contention).

  16. Comment by Dennis Wurster on October 6, 2008 10:54 am

    273 rows in wp_bsuite_hits_incoming. Clicked ‘force stats migration’ three times. Still no-go.

    I’m ready to try whatever it takes, thank you for your attention.

  17. Comment by Dennis Wurster on October 6, 2008 11:51 am

    My mistake, that previous number was for ‘wp_bstat_hits’.

    In ‘wp_bsuite4_hits_incoming’, there are currently 7693 rows, with entries as recent as 2008-10-05 19:48:42. You’re right — the visits appear to be logging properly, but the reports aren’t aware of the new information.

  18. Comment by Jason Golod on October 9, 2008 3:49 pm

    Thanks for the continued work on this plugin Casey. I have a box running PHP 4.4.7 and I am getting:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/vhost/www/update.golod.com/wp-content/plugins/bsuite/bsuite.php on line 519

    when I try to activate the bsuite plugin. I am poking around in there to see what I can find, but am hoping that someone has found the cure already.

    Thanks.

  19. Comment by Casey Bisson on October 9, 2008 10:09 pm

    @Jason Golod:

    The problem is likely the result of prefixing the function name with “public,” as is the PHP5 standard. I may have fixed it in the development version: http://downloads.wordpress.org/plugin/bsuite.zip

    You can see all versions here: http://wordpress.org/extend/plugins/bsuite/download/

  20. Comment by Jason Larson on October 15, 2008 3:31 am

    Casey,

    Confirmed the dev version does solve the line 519 problem reported by Jason Golod

    Thanks for a great plugin!

    Jason

  21. Comment by digi on October 19, 2008 10:44 pm

    Hi, installed the latest version of the plugin and I got the same error as a few above: arse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in … snip … /wordpress/wp-content/plugins/bsuite/bsuite.php on line 470

    Read the last ccouple of posts and deleted it and installed the development version and it activated, but when I look into my stats they all say zero and I am getting this error message:

    Warning: min() [function.min]: Array must contain atleast one element in /home2/garp/domains/xxxxx/wp-content/plugins/bsuite/ui_stats.php on line 141

    Warning: max() [function.max]: Array must contain atleast one element in /home2/garp/domains/xxxxx/wp-content/plugins/bsuite/ui_stats.php on line 141

    Warning: min() [function.min]: Array must contain atleast one element in /home2/garp/domains/xxxxx/wp-content/plugins/bsuite/ui_stats.php on line 141

    Warning: max() [function.max]: Array must contain atleast one element in /home2/garp/domains/xxxxx/wp-content/plugins/bsuite/ui_stats.php on line 141

    I am running php version 4.47

    Any Idea’s?

    Thx Digi

  22. Comment by Casey Bisson on October 21, 2008 10:22 am

    @digi: Did you have any stats data collected prior to installing bSuite 4? The warnings are consistent with having no data and will disappear within a few hours if the stats collection is working properly.

  23. Comment by gautam on October 21, 2008 1:41 pm

    Hi Casey,

    Firstly thnks for your time and a great plugin. I tried installing the development version and got this error :

    Fatal error: Call to undefined function: plugins_url() in /home/theblack/public_html/wp-content/plugins/bsuite/bsuite.php on line 589

    Any idea how to resolve it?

    Thnks in advance.
    /G

  24. Comment by gautam on October 22, 2008 7:49 am

    Issue solved. I was on wp 2.5 .

    Thnks

  25. Comment by gautam on October 22, 2008 8:03 am

    /new issue :)

    Warning: shell_exec() has been disabled for security reasons in /home/xxxxx//public_html/wp-content/plugins/bsuite/bsuite.php on line 1890

    Fatal error: Call to undefined function: bstat_hitit() in /home/xxxxx/public_html/wp-content/themes/pro2/header.php on line 37

    any solution for this ?

  26. Comment by Casey Bisson on October 22, 2008 9:59 am

    @gautam: You’ve got two separate problems:

    1: bSuite tries to get the server’s load average so that it can limit or delay certain activity when load is over a user configurable threshold. The plugin tries to call sys_getloadavg(), but if that’s not available (older versions of PHP don’t have it), it tries to get that info via a shell_exec() call. You’re getting a warning message because your host has set PHP to not allow it to get the information (and/or it’s an old version of PHP).

    2: You should remove the call to bstat_hitit() from your header. It hasn’t been needed since bSuite 3.

  27. Comment by gautam on October 22, 2008 12:47 pm

    I checked with my host. The server on which the site is hosted has Php 4 and I was informed that its been set to not give out the information.

    Frankly, I badly want “Incoming Search Terms for the Article - tagging” feature of this plugin.

    If you can strip off all other functions and help me with a plugin just to achieve “Incoming Search Terms for the Article - tagging” will be really great.

    Thanks a ton for your time. I really mean it.

    Regards
    /G

  28. Comment by Pramudita on October 23, 2008 4:09 am

    Updated today and found an error
    Fatal error: Call to a member function bstat_insert_term() on a non-object in when autoupdate executed

    Thanks

  29. Comment by Casey Bisson on October 23, 2008 5:04 pm

    @Pramudita:

    Did you delete the old bSuite folder when upgrading from bSuite 3 as indicated in the installation instructions?

    http://wordpress.org/extend/plugins/bsuite/installation/

  30. Comment by gautam on October 26, 2008 1:38 pm

    Hi Casey,

    Changed my host and everything is working fine at http://www.techbuzz.in . I could get the related posts working fine but could not get “Top incoming search terms for this post” function to work:

    Top incoming search terms for this post

    Can you please guide me how to use this ?

    Thanks,
    /Gautam

  31. Pingback by » Creative Commons Licenses Not Compatible With GPL? MaisonBisson.com on October 28, 2008 12:51 pm

    [...] bSuite [...]

  32. Comment by jler on November 6, 2008 2:12 am

    Thanks for a great plugin.

  33. Pingback by wordpress stats | The Web Initiative on November 30, 2008 12:14 pm

    [...] bsuite - This suite of tools is designed to do a myriad of different things including search term [...]

  34. Pingback by » New Plugins, New Feautures Plymouth State University Blogs on December 1, 2008 3:36 pm

    [...] bSuite gives you stats about how many hits your blog has received and what stories are most popular. Available widgets allow you to put a list of those popular posts in your sidebar, and shortcodes make it easier to manage your pages. [...]

  35. Comment by Saif on December 11, 2008 7:01 am

    This is not working properly in wordpress 2.7. You cannot save your options without getting an error. Is there a fix for this?

  36. Comment by Casey Bisson on December 11, 2008 10:28 am

    @Saif: Yes, I just realized that myself. I’ll have a fix out soon.

  37. Comment by Marco on December 14, 2008 5:06 pm

    My situation:
    I am using “../author/[username]” to display author bio and all posts by this author.The automatic redirect if a (search) result page has only 1 (!) entry made me go nuts… (”Has something changed with the latest update of WP… ?”)

    Problem: Instead of displaying the author page with only 1 post by this author it forwarded to this post.

    If my understanding is correct than you want to forward to a post in case the search result comes back with only one post. I add “&& is_search()” to your if statement and all is good now. PUH! :)

    Took me a coupe of hours to figure this one out….


    // redirects the search to the single page if the search returns only one item
    if( !$wp_query->is_singular && 1 === $wp_query->post_count && is_search())

  38. Comment by Saif on December 15, 2008 3:19 am

    Any update on a fix for this?

    This is my favourite plugin and I’ve had to disable it because the ‘insert related posts’ option is messing up my template and I cannot turn it off. I also don’t want words highlighted when visitors come from search engines.

    As these two options are enabled by default, I cannot use the plugin :(

    Is there any way to disable these options via editing the plugin so that they are turned off by default when you activate bsuite?

  39. Comment by Carlo on December 15, 2008 8:21 am

    I’ve the same problem… i can’t modify the option panel (i’m using wp 2.7)!!!

  40. Comment by Carlo on December 15, 2008 8:22 am

    I also have this allert in option panel:
    Warning: array_reverse() [function.array-reverse]: The argument should be an array in ……/wordpress/wp-includes/wp-db.php on line 963
    What can i do?

  41. Comment by Casey Bisson on December 17, 2008 11:00 am

    bSuite 4.0.3 is just out with WordPress 2.7 compatibility. Auto update or download here http://wordpress.org/extend/plugins/bsuite/ .

  42. Comment by Saif on December 17, 2008 5:26 pm

    Great just upgraded. :)

  43. Comment by Suhendrawan on January 2, 2009 11:37 am

    thanks a lot for upgrade

  44. Comment by Dennis Wurster on January 6, 2009 5:33 pm

    Hi Casey, still a big fan of bSuite!

    But, searches at http://www.big6.com are getting redirected to big6.com/search/ which fails to load a page. I’ve unticked the checkboxes for full text indexes and show-related-stories, but don’t notice a difference. Tweeted you a URL with the wp-options settings.

  45. Comment by Casey Bisson on January 6, 2009 9:14 pm

    @Dennis Wurster:

    Actually, they’re getting rewritten to http://www.big6.com/go/search/history . This URL does work: http://www.big6.com/search/history

    Two problems:
    First, I really should make that search rewriting optional
    Second, I’ve gotta figure out why it’s rewriting to the wrong URL.

  46. Comment by Marco on January 11, 2009 7:20 pm

    Hi Casey,
    My stats table is getting pretty big after a couple of months. Am I able to delete some of the older stats data or what would you advise?
    Thanks and keep up the great work on this!!
    -Marco

  47. Comment by Dennis Wurster on January 12, 2009 1:44 pm

    Hi Casey!

    The extra ‘/go/’ in the problematic url is my doing; I have WP installed in a /go/ subdir. Anything I can do in the meantime?

    –Dennis (WildEep on Twitter)

  48. Comment by Casey Bisson on January 12, 2009 11:05 pm

    @Marco: How big is big? Megabytes or gigabytes?

    With the exception of the wp_bsuite_hits_incoming table (which gets emptied as the stats are processed via wp cron), the data that’s stored is pretty well normalized, so there’s not much that can be removed without losing functionality. Though you could drop a lot of historical data from wp_bsuite_hits_sessions (which is probably one of your largest bsuite-related tables). There’s no current functionality that uses that data. The next place you can cut is the wp_bsuite_hits_shistory table, that’s the table that tracks the individual clicks in each session. There’s about 500MB and 10 million rows between the two of them on my blog.

    The other question to ask is what your motivation is. If the concern is disk space, then those are the tables to delete; but if the real concern is mysql load, I don’t think you’ll see much performance gain by removing them.

  49. Comment by Casey Bisson on January 12, 2009 11:10 pm

    @WildEep:
    The URL it’s rewriting is coming from get_option(’siteurl’). If you change that value in your control panel, does WP still work? Does it fix bSuite?

  50. Comment by Dennis Wurster on January 13, 2009 1:29 pm

    If I remove the ‘/go’ from the siteurl, the layout of the site breaks, as it doesn’t know how to find the subdir for the themes and such. In the meantime, I’ve commented out line 1670, to prevent the search triggering the re-write. I’m interested in knowing more about the enhanced searching and indexing that bSuite brings to the table though.

  51. Comment by Marco on January 15, 2009 6:41 pm

    Casey,
    my question was mostly load related, but I started to see the DB growing very fast and was wondering why….
    And how I might be able to shrink down the size of the DB without loosing needed data.

    Would it make sense to add the option for a separated DB for the stats?

  52. Comment by Casey Bisson on January 22, 2009 12:23 pm

    @Marco:
    There’s no doubt that the bSuite stats architecture has scaling issues on high-traffic sites. At some point it would be good to allow stats collection on a separate host from the blog server, but I don’t know how to make a feature like that work easily for users. In the meantime, I’ve been addressing the scaling issues with caching, both object caching and whole-page caching. I use Memcached and Batcache on this site, and I’ve had good results from WP-Super-Cache elsewhere.

    Still, I’d like to know more about the traffic and load you’re seeing. I won’t turn down a chance to look for more optimization opportunities.

  53. Comment by Antik on February 10, 2009 5:44 pm

    i can’t install.. have an error :(

  54. Comment by idyl on February 19, 2009 1:21 am

    Hi Casey, Thanks for your plugin. I had to adapt it, however, to make use of it on my site. I have a domtab feature in the side bar, which is run by a jQuery script (it displays various tabs with navigation items to query the database by archive, recent posts, external RSS blog feed, and now popular post). Hence, I had no need for the widget, and needed direct code to integrate it onto my site. I didn’t find any documentation for this on your site. This worked for the “popular post widget”:

    <ul>
    pop_posts( array(
    'count' => 10,
    'days' => 15,
    'return' => 'formatted',
    'show_icon' => 0,
    'show_title' => 1,
    'show_counts' => 0,
    'icon_size' => 's',
    )); ?>
    </ul>

    Can you provide me with the other attributes and arguments for “related,” “recently commented” and “bStat Refs.”

  55. Comment by Casey Bisson on February 19, 2009 12:17 pm

    Related posts is a little more complex, but something like this should work:

    if( $related_posts = array_slice( $bsuite->bsuggestive_getposts( $id ), 0, 5 )) {
    echo'<ul class="relatedposts">';
    foreach ($related_posts as $post_id){
    echo'<li class="relatedposts"><a href="'. get_permalink($post_id) . '">' . get_the_title($post_id) . '</a></li>';
    }
    echo '</ul>';
    }

  56. Comment by Matthias Heil on March 1, 2009 3:11 pm

    Thanks for a marvellous suite. - Wasn’t there a way of adding excerpts (configurable number of words) to the related posts list items a few years ago? I can’t remember, but would surely like to have the excerpts…-) - Anyway, great job, Casey!

  57. Comment by Casey Bisson on March 3, 2009 1:02 am

    @Matthia Heil:
    Thank you for the fompliment. I hope to have that feature working again soon.

  58. Comment by idyl on March 10, 2009 1:01 am

    Hi Casey,

    I have a follow up question above. Regarding the code snippet to include “popular posts” without using the widget, I am getting a small error. From time to time, I get a blank list item. I think it has to do with pages (such as archives or category pages), which don’t have a “title” descriptor. Is there an argument to exclude all pages (archive and category pages) and just include “posts” in the most popular post listing?

  59. Pingback by bSuite 4 nu pÃ¥ dansk — WordPress tips, tricks og plugins on March 13, 2009 5:47 pm

    [...] Download: bSuite 4 (0) Websteder: bSuite hos WordPress.org og hos udvikleren [...]

  60. Comment by Georg on March 13, 2009 5:53 pm

    Hi,

    Thank you for a very fine suite of tools. I have localized it for the Danes. You are welcome to download the language files and include them in the distribution zip, if you like. Go to bSuite 4 nu på dansk and choose the link labelled Download.

    Corrections are welcome, of course!

    Cheers!

  61. Comment by webfooted on March 14, 2009 8:15 am

    Hi, I’ve just tried installing this on a fresh installation of WordPress 2.7.1 but am getting the following error:
    Warning: array_slice() [function.array-slice]: The first argument should be an array in [removed]/wp-content/plugins/bsuite/bsuite.php on line 2007
    and I go to what should be the WordPress home page it takes me to the page for the first post. Any suggestions?
    Thanks in advance ;-)

  62. Comment by Scott Prock on March 15, 2009 2:08 am

    I tried the plugin on my site as I was interested in the feed option to display a feed with in a post. After I installed the plugin, (downloaded 4.05 I believe) I was greeted with an upgrade notice in the plugins admin of my blog. I clicked the auto upgrade of the three plugins, and noticed the bstat upgrader wouldn’t update. I keep getting an upgrade notice but every time I click the upgrade it still shows as needing an upgrade. The current version is showing 4.04

    The bsuite tag importer won’t upgrade either. In fact when the plugin is activated and I click the upgrade link it deactivates the plugin. I then tried to upgrade before activating the plugin, then when it’s placed in active status it still shows as needing an upgrade, then the whole cycle starts again when I try to upgrade. The version is showing 4.04 with this plugin too. The only one that is 4.05 is the main bsuite plugin.

    I could have lived with that, however, the feed short code caused each feed item to duplicate, one with clickable link to the feed, and one that was not. and every post on the site had a Warning error regarding an array that it was expecting but couldn’t find.

    I had no choice but to deactivate all plugins.

    I’m running WP 2.7.1 on a new installation of WP - the site is less than a week old with only a few posts.

    … Scott

  63. Comment by jon on March 15, 2009 8:35 pm

    Casey, I still love your bSuite plugin, but I’m running into three problems— only one of which is seems particularly important.

    I just upgraded and got this:
    Warning: array_slice() expects parameter 1 to be array, boolean given in …/bsuite.php on line 2007

    It only showed this in my top post, which seems like it could be weird. As a band-aid I’ve thrown an @ into line 2007

    $posts = @array_slice($this->bsuggestive_bypageviews_getposts( $id ), 0, 5);

    I’m also getting this error in the settings window:
    WordPress database error: [Duplicate key name 'search']
    ALTER TABLE taistel_bsuite4_search ADD FULLTEXT KEY search (content, title)

    Finally, bStat Upgrader and bSuite Tag Importer refuse to recognize that I’ve done the right thing and upgraded them. The plugins page still says they are at version 4.0.4 and that they can be upgraded.

  64. Comment by Canon on March 16, 2009 2:34 am

    i have install 4.0.5 version and i have this following warning in Bstat Report page:

    “Warning: max() [function.max]: Array must contain atleast one element in …/wp-content/plugins/bsuite/ui_stats.php on line 141″

  65. Pingback by » Slideshare WordPress Embed Shortcode MaisonBisson.com on March 16, 2009 12:30 pm

    [...] bSuite [...]

  66. Comment by Canon on March 16, 2009 10:33 pm

    is this working with wp 2.7.1 ?

  67. Comment by mario on March 18, 2009 6:08 am

    hello Casey
    when i installed this plug in i had THE SAME problem as jon described so i supposed that must be because u used some theme as my default…
    i really love the suit so i guess there is something that colud be done to fix this! :-)

    btw
    i wanted to ask also can u please tell what Table Of Contents plugin do you use on this very site? its remarkable! thx!
    :-)

  68. Comment by zild on March 19, 2009 9:16 am

    Im also having this error.. how do i fix this?

    Warning: array_slice() expects parameter 1 to be array, boolean given in …/bsuite.php on line 2007

  69. Comment by nueman on March 20, 2009 9:33 pm

    Warning: array_slice() expects parameter 1 to be array, boolean given in …/public_html/wp-content/plugins/bsuite/bsuite.php on line 2007

    what with this error?

  70. Pingback by » Wufoo Forms WordPress Embed Shortcode MaisonBisson.com on March 23, 2009 12:35 pm

    [...] bSuite [...]

  71. Comment by keeira roney on March 23, 2009 8:48 pm

    well i keep having a dream that some ones drivi ng pass my house shooting at the house next to mine and they see me see them shoot and they start shooting at me and i just dont know what to do im scared to sleep in my room does this dream mens that it’s going to happen

  72. Comment by Bangladseh on March 28, 2009 4:42 am

    Same happen to my site that Jon said. Need a solution/help.

  73. Comment by Report on April 1, 2009 12:00 pm

    Any luck on how to solve to issue that Jon said.

  74. Comment by Rob on April 7, 2009 7:09 am

    hmm, seems a usefull pluggin, I will give it a try on my wp blog.
    thanks for your contribution

  75. Comment by Chris (Amateur Traveler) on April 8, 2009 10:03 pm

    When I try and install the 4.0.5 version I get:

    Fatal error: Call to a member function on a non-object in /bsuite/importer_bstat.php on line 277

  76. Comment by Host on April 14, 2009 3:33 pm

    I got this error when I active it:

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Call to a member function bstat_insert_term() on a non-object in /home/*******/public_html/wp-content/plugins/bsuite/importer_bstat.php on line 277

    Any one solve it why it happend?

  77. Comment by Casey Bisson on April 19, 2009 3:45 pm

    @Chris & @Host & others: The error about importer_bstat.php is because the bStat upgrader is being activated before bSuite. The newly release 4.0.6 version removes the upgrader, so this shouldn’t be a problem in the future (unless you’re trying to upgrade a bSuite 3.x install). Simply delete importer_bstat.php and importer_tags.php and try reactivating.

  78. Comment by Casey Bisson on April 19, 2009 3:47 pm

    I’ve fixed the situation that led to warnings about array_slice(). It was sloppy on my part, but you also may want to suppress warnings/error messages in your php install for security reasons.

  79. Comment by EL on April 20, 2009 2:22 pm

    Hi Casey,

    Bsuite calls an older duplicate version of JQuery from the WordPress installation when I use your plug-in on my site (I already have the most recent version installed for other programs). Is there a way to cancel the JQuery loading option in the head (this should be an options item in the settings configuration)?

  80. Comment by Casey Bisson on April 21, 2009 8:33 am

    @EL: is the version of jquery you’re using registered with the wp scripts functions? If it is, bsuite should be using it.

  81. Comment by EL on April 21, 2009 5:41 pm

    I did a little bit of reading on this, but have not figured out how to do it (use “wp_print_scripts,” “custom_add_javascript,” and “wp_enqueue_script” features in the functions.php file). I simply included a call for the script in the head section of the theme: custom and the jquery library. Everything is working, but I think the files are getting a little confused when I switch back and forth between the dashboard and the site itself. Any suggestions would be appreciated.

  82. Comment by Casey Bisson on April 22, 2009 9:25 am

    @EL:

    I think you’re on the right track. It’s probably loading different versions of jQuery in dashboard and on the site itself, but that shouldn’t be problematic. Can you say more about what you mean by “the files are getting confused”?

    Your site looks great, btw. It doesn’t look like you have bSuite activated now, so I can’t see for myself the conflicts. I can point you to another theme that uses a lot of JS (and uses the WP functions to avoid conflicts): P2 http://wordpress.org/extend/themes/p2 . Take a look in the functions.php http://svn.automattic.com/wpcom-themes/p2/functions.php , specifically at these bits:

    if (!is_admin()) add_action( 'wp_print_scripts', 'prologue_javascript' );
    function prologue_javascript() { ...
    wp_enqueue_script( 'p2js', get_bloginfo('template_directory' ).'/inc/p2.js', array( 'jquery' ), '200903301' );

    If you use the wp_register_script() function to register your version of jQuery, it will replace the built-in version. Something like this:

    wp_register_script( 'jquery', get_bloginfo('template_directory' ).'/js/jquery-1.3.2.min.js', array(), '200904221' );

    Then, for completeness, you should register and enqueue the other scripts used in your theme:

    wp_register_script( 'theme_functions', get_bloginfo('template_directory' ).'/js/functions.js', array('jquery', 'theme_domtab'), '200904221' );
    wp_register_script( 'theme_domtab', get_bloginfo('template_directory' ).'/js/domtab.js', array('jquery'), '200904221' );
    wp_register_script( 'theme_featured', get_bloginfo('template_directory' ).'/js/featured.js', array('jquery', 'theme_scrollable', 'theme_functions'), '200904221' );
    wp_register_script( 'theme_scrollable', get_bloginfo('template_directory' ).'/js/scrollable-1.0.2.min.js', array('jquery'), '200904221' );
    wp_enqueue_script( 'theme_featured' );

    (my guess about the dependencies of each script are just guesses and used to illustrate how it works.)

    Once the JavaScript is being loaded via the WP functions, WordPress will automatically manage dependencies and eliminate redundancy. So if you have other plugins that call jQuery, they’ll all use the same jQuery that you registered.

  83. Comment by EL on April 23, 2009 3:04 pm

    Thanks for the compliments, and for the valiant effort at getting the code right. I tried a few things out, and it broke my javascript. So for now, I think I’m going to leave things as they are. I have the code references in the section of the site, and this seems to be a one solution recommended in the WordPress codex. The documentation for wp_register_script, and wp_enqueue_script is minimal and almost non-existent. Someone needs to write some plain language description and upload it to the codex site.

    Regarding possible conflicts, I have “firebug” running in the background, and I think “it” gets confused, and slows down the site (giving me the appearance of a conflict … just things running really slowly). I never had a bug, although I find all the javascript in the WordPress administration pages to be slow, quirky, and a tad buggy. I read they are working on a major overhall of the “script-loader.php” core file for WordPress 2.8, so I think they know there are some inconsistencies with how this is done. Most people are just running a theme with minimal adjustments, but I’ve been adding and discovering some features that I like with javascript, particularly with the many scripts that run on the jquery library.

    Thanks for the help (as always).

  84. Comment by Franz on May 9, 2009 4:44 am

    Just upgraded to bsuite v 4.0.6. Until today everything was ok. Now I’m getting a non fatal error:
    WordPress database error: [Duplicate key name 'search']
    ALTER TABLE wp_bsuite4_search ADD FULLTEXT KEY search (content, title)

    Any idea?

  85. Comment by Saif on May 9, 2009 12:55 pm

    Hi

    I’ve installed this on 4 of my sites and everything is great except the incoming search terms.

    On three of my sites bstat is not recognizing any search terms that are used to find the sites. It still indicates that no search terms have been used to find the site from any search engine even though I know that is not the case as I access the sites through search terms myself.

    Any idea what may be wrong?

    Thanks

  86. Comment by Baba on May 10, 2009 12:48 pm

    Really like this plug but is there anyway to exclude the related posts element from Pages? Love it on the Posts.
    Thanks.

  87. Comment by Saif on May 11, 2009 7:01 am

    Any help on why my bstat searchphrases table is not populating?

  88. Comment by Dusit on May 11, 2009 7:56 am

    How to show the related post just only the single post page, now it show on both home page (bottom of each post) and single post page?

    Thanks

  89. Comment by Casey Bisson on May 15, 2009 9:59 pm

    @Franz:
    It’s a bug in WP’s database table creation function, it doesn’t know how to handle fulltext indexes and so keeps trying to create them.

  90. Comment by Saif on May 18, 2009 9:47 am

    Any feedback on why the search phrases table is not being populated?

Comments RSS TrackBack Identifier URI

Leave a comment