The plugin updates just fine and the wizard kindly prompts me to make a new ‘Snippets’ page. However the formatting of the code doesn’t seem to happen. I suppose the highlighterscript isn’t loaded (will hopefully have time to confirm that later).
Here’s an example of BP Code Snippets running in BuddyPress 1.5:
Furthermore, the plugin seems to break with the BP 1.5.1 update.
As i told you on my blog, i’m a bit overloaded right now. I just ran some test on BP 1.5.1. What i can tell you is that i have a really big issue with activity recordings when a snippet is added to a forum or a blog post. So before i upgrade anything i have to find a way to solve it.
Meanwhile, you can try to fix the trouble of your page by editing bp-code-snippets.php replacing line 588 with this new code :
add_action( 'get_header', 'bp_code_snippets_add_js', 1 );
Then in BP 1.5.1 WordPress admin, you should be able to attach a page to display the public snippets. But you still have an extra nav, to avoid it you can comment line 15 of home-code-snippets.php, for example :
//add_action( 'bp_nav_items', 'bp_code_snippets_dtheme_header_nav_setup');
<b>I strongly advise to avoid enabling snippets embeding in forum or blog posts till i fix my activity trouble</b>
Hope it will help you to solve your trouble.
Just an update. I’m currently working on version 2.0 of this plugin (some new features to expect and fully compatible with BuddyPress 1.5+. So the problem will be solved really soon now.
Sorry for the delay.
That sounds great. I trust there will be an upgrade (i.e. migration) option for the old version?
Also, which forum will you be targeting? Legacy (bbPress 1.x bundled in BP) or bbPress 2.0?
As an additional note, are you giving any thought to forward compatibility, or a “fallback mode” of sorts? By that I mean, the biggest problem we experienced with this plugin was when we realized that we couldn’t update to BuddyPress 1.5.1 because we couldn’t afford to break BP Code Snippets. It would have been great if the plugin was more native in its implementation, so that if it’s disabled/deleted, the content it created is still available. I realize it’s a tall order and I can’t even fully articulate what a better solution would be, but I figured you should be aware nonetheless 😉
I’ll try to do my best for the content generated by old version.. I actually changed a lot of things to the plugin…
I target the forum bundled in BP.
The content is not deleted in database if the plugin is disabled ?!? I don’t understand what you mean in your last paragraph..
Sorry, that was very unclear. When we attempt to update to BP 1.5.2 or newer, we get this error:
Fatal error: Call to undefined function bp_is_group_forum() in /var/www/test/org/wp-content/plugins/bp-code-snippets/bp-code-snippets.php on line 578
And by “content still being available”, I mean that it would be available in some sort of fallback mode. E.g. if it was added as custom forms attached to posts (dunno if this would be possible with bbP 1.x, but should be doable with 2.x), when the plugin is disabled you wouldn’t be able to create new ones any more, but the existing codes snippets could remain, just without code highlighting for instance, because it’s native WordPress content.
I know, i’m very late on the upgrade of this plugin, i’m very sorry.
I’m sorry, may be i’m too in the next release to figure out what you are saying.
As far as i can remember, there is (and really soon was) 2 kinds of way to add snippets :
1/ using the Group Snippets component (and then you can eventually use a shortcode to retrieve the content in forums or posts such as [snippet id=”1″]
2/ directly adding content in forum or posts thanks to a thickbox that actually write the content in forums sql table or posts sql table.
Now all the content you created with 1st method, even if the plugin is deactivated or deleted is still in a [table_prefix]code_snippets and comments in [table_prefix]code_snippets_comments. And this because i didnt add an uninstall.php script.
Now, if you look at the link you first gave me, i just checked : the content is still there !!!! (but without code highlighting…)
I’ve noticed that you didn’t apply the patch i gave you on this reply
Now, let’s think about the future !
I’m finishing BP Code Snippets version 2.0. It should be in repository very soon. I just need to take care at the previous versions generated content (as you asked me to).
This was the first plugin i submitted to WordPress repo, since then i’ve learnt a lot, and the next release has completely changed the way of managing the content.
So, i strongly recommand you when it will come to upgrade the plugin to make a back up the 2 tables the plugin created :
The main trouble will be for the content written using the 2nd method…
Have a nice day.
imath, I want to first thank you for such a brilliant plug-in. I have the latest and greatest version 2.0 however I am having some issues with it on my website http://technation.org If you see in the snippets directory, the snippets do not show properly. Furthermore, in the group snippets (technation) group you will see the same error.
Thank you for all of your help.
- The topic ‘[Plugin: BP Code Snippets] Partially broken in BuddyPress 1.5’ is closed to new replies.