Hi to all friendly folk :-)
I'm popping my cherry and writing my first plugin... yay!
It's a simple bit of code resulting from some inspired snippets from David Lewis and Jens Wedin at bp.org.
What it does is aggregate all BP directories and WP pages into the BP adminbar, like so:
1 – All “standard” BP Directory links appear automatically in a Community dropdown;
2 – All BP plugin directories (Links, Gallery, etc) are automatically added to the Community dropdown;
3 – All WP pages are added automatically to the adminbar;
4 – All added WP pages respect whatever page hierarchy and order is set in the WP-Dashboard.
I've been reading through the following tutorials and I'm almost there.
http://codex.wordpress.org/Writing_a_Plugin
http://codex.buddypress.org/how-to-guides/creating-a-custom-buddypress-component/
http://codex.buddypress.org/how-to-guides/checking-buddypress-is-active/
But I need a bit of help with this first foray into real coding 'cuz, as it is now, my baby plugin shows up in the plugins menu, but activating it gives me nothing but a white screen :-(
Here's the plugin file code if any of you friendly, kind and generous folk would care to take a look or lend a hand: http://pastebin.com/RgGyAnLT
(I know, I know... I can be a suckup when I need to be.)
:-)