Forum Replies Created
-
In reply to: Is it possible to have custom themes for groups?
ops stupid error
<?php
/*
Author: Nicola Greco
Author URI: http://nicolagreco.com
*/
require_once( ‘bp-core.php’ );
require_once( ‘bpdev-core.php’ );
function bpdev_search_css() {
global $group_obj;
bpdev_theme_register_style(
‘my-styles’, // your style slug name
‘XBOX Styles’, // your style name
‘xbox_styles_function’, // callback
‘on’, // status “on” on default
‘off’, // off will not display it in admin interface
( $groups_obj->id == 1 ) ? ( true ) : ( false ); // the group ID
);
}
function xbox_styles_function() { // example of css content
?>
#header {
background: #FFF;
}
<?php
}
add_action( ‘bpdev_theme_extra_setup_globals’, ‘bpdev_search_css’ ); // it will add the style
?>
In reply to: Is it possible to have custom themes for groups?if (the group is XBOX) add_action(‘wp_print_styles’, ‘your style hook’)
i made a good set of functions in bpdev theme to add stylesheet with condition, look here:
http://trac.bp-dev.org/plugins/browser/trunk/bpdev-theme/bpdev-theme-extra.php
look line 9:
function bpdev_theme_register_style( $slug, $name, $callback, $default = 'off', $admin_show = 'on', $condition = true, $priority = 1 ) {it means that with this function you will be able to add styles in wordpress/buddypress integrating them in the bpdev admin interface to activate or deactivate them,
in your example you need a plugin like that called for example my-styles-bpdev.php
<?php
/*
Author: Nicola Greco
Author URI: http://nicolagreco.com
*/
require_once( 'bp-core.php' );
require_once( 'bpdev-core.php' );
function bpdev_search_css() {
global $group_obj;
bpdev_theme_register_style(
'my-styles', // your style slug name
'XBOX Styles', // your style name
'xbox_styles_function', // callback
'on', // status "on" on default
'off', // off will not display it in admin interface
$group_obj->id = 1; // the group ID
);
}
function xbox_styles_function() { // example of css content
?>
#header {
background: #FFF;
}
<?php
}
add_action( 'bpdev_theme_extra_setup_globals', 'bpdev_search_css' ); // it will add the style
?>In reply to: BPDEV.org down?Yes it goes down when lot of people is updating svn,
i hope i’ll receive donation to change the server when datas are stored..
I’m working to make it more stable right now
In reply to: Subscribe to blogs idea?Almost done

asap on bpdev svn

Nicola
In reply to: multi-db for buddypressI think that if multi-db was under gpl, i may to be interested to develop on it
In reply to: latest profile visitors widgetit has to be mentioned in the disclaimer
In reply to: latest profile visitors widgeti’ll do that, if you’re patient it will be included in BPDEV Widgets (BPDEV Plugins)
In reply to: Announcing: toksta* chat plugin for BuddyPressadd it on bp-dev, i’m working on a thing like!
I’ll share or meybe integrate my code in yours,
good work,
nicola
In reply to: Google Map Integrationyou should extend this plugin to have it working, i hacked js/group-maps.js
In reply to: widget for bp login and searchi was waiting your email about !

Can i grab the download link and post them to bpdev ?
In reply to: BuddyPress + amember.com for Campaign Websitei wrote a plugin to integrate Your Member in buddypress
In reply to: Announcing BPDEV-AUTOSUGGEST for searchesIt has now groups search!
as soon i will announce on bpdev how to have it working
In reply to: Facebook connectnow i’m working on bpdev plugins, i hope that i will have time next weekend..
In reply to: BPDEV-Plugins PlansThe list contains now
Theme
|- Home Theme
|- Member theme
In reply to: Only one blog for userYou should use wordpress hooks to do that,
but if it works that’s ok, but when will be the next update you’ve to hack the code again
OT “haaah “Che culo!””
In reply to: BPDEV-Plugins Plans@mark this is not included in bpdev-plugins,
i’ll develope it not for bpdev i think
In reply to: Only one blog for usermake a function:
if (a user has a blog)
return false
and then apply that do an action
(this is the basic concept)
In reply to: Adding Topic View Count to forumsyou should update your script with the new $bp structure
$bp should be $bp->current_component
In reply to: status? and more…database spaces? what?
a post is huge?
In reply to: status? and more…you can do status thing using the main blog as status manager

like prologue and integrate prologue in the member theme
In reply to: BP Content Tags Project – Call For Ideasburt next time read better: “A funny ajax box says me: Autocompletation : Mammalucco Group, Mammaluna Group”
An autocompletation box where it says “type here the group name”
In reply to: BP Content Tags Project – Call For IdeasWhat i think of that
The user:
Yuhu, i’m an user
I read a post,
i say that’s amazing it talks about ‘Mammalucco group’!
I’ve to tag this content for the group ‘Mammalucco group’!

(after the post there is a blank field where there is written, SHOW THIS ON A GROUP)
The user:
Ok, i type in the fields ‘Mammalu’
A funny ajax box says me: Autocompletation : Mammalucco Group, Mammaluna Group
I click on Mammalucco Group and i click <Tag it!>
After loading appear a message that says tagged!
I say Yuhu!
I go to groups page and in the “Tagged Items area” appears my item!
( Sorry for the stupid and funny workflow but this is my idea
)
In reply to: Announcing: Events componentegerrits are you working too on that?
I’ve almost finished mine

Add it here http://buddypressdev.org/add-plugin
In reply to: Announcing BPDEV-AUTOSUGGEST for searches@BeLogical when i’ll finish groups integration
In reply to: members/groups/blogs directory template overridethe custom template needs the hooks you can see inside the plugin-template.php
You’ve only to make a new copy of that file and name it ‘members-directory.php’ for example, and customize this one so you can use different layouts