Search Results for 'wordpress'
-
Search Results
-
Hi
Like many people I’m after having nested fields…
I thought that this might be the solution http://wordpress.org/plugins/fields-framework/
Since it had a way of putting fields into groups..and well nesting those groups.
Would it be possible to take the code and integrate it into buddypress or http://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/
The code in question from what I can work out from the fields-framework plugin is…
Classes.php
if(!class_exists(‘FF_Field_Group’)) {
class FF_Field_Group extends FF_Field {
protected $fields = array();public function set_saved_value($saved_value) {
$saved_value = parent::set_saved_value($saved_value);if($this->repeatable != true) {
foreach($this->fields as $field) {
$set_saved_value = !ff_empty($saved_value) && is_array($saved_value) && array_key_exists($field->name, $saved_value) ? $saved_value[$field->name] : null;$saved_value[$field->name] = $field->set_saved_value($set_saved_value);
}
}
elseif(!ff_empty($saved_value) && is_array($saved_value)) {
foreach($saved_value as &$value) {
foreach($this->fields as $field) {
$set_saved_value = !ff_empty($value) && is_array($value) && array_key_exists($field->name, $value) ? $value[$field->name] : null;if(ff_empty($value) || is_array($value)) {
$value[$field->name] = $field->set_saved_value($set_saved_value);
}
}
}
}return $saved_value;
}public function html() {
$field_group_id = $this->id;$field_group_name = $this->name;
foreach($this->fields as $field) {
$original_field_name = $field->name;$original_field_id = $field->id;
$field->name = “{$field_group_name}[{$original_field_name}]”;
$field->id = “{$field_group_id}-{$original_field_id}”;
$value = is_array($this->value) && array_key_exists($original_field_name, $this->value) ? $this->value[$original_field_name] : null;
$field->set_saved_value($value);
$field->container();
$field->name = $original_field_name;
$field->id = $original_field_id;
}
}public function add_field($field) {
$this->fields[] = $field;
}
}
}Functions
if(!function_exists(‘ff_add_field_to_field_group’)) {
function ff_add_field_to_field_group($field_group_uid, $field_uid) {
if(empty(FF_Registry::$fields[$field_group_uid])) {
ff_throw_exception(__(‘Invalid Field Group UID’, ‘fields-framework’));
}if(empty(FF_Registry::$fields[$field_uid])) {
ff_throw_exception(__(‘Invalid Field UID’, ‘fields-framework’));
}FF_Registry::$fields[$field_group_uid]->add_field(FF_Registry::$fields[$field_uid]);
}
}It also features in builder but not able to work out the coding….
Idea of putting fields into groups and then nesting them, might be the way forward..
If that could then be combined with the conditional fields plugin, might then be onto a winner…
Sorry, I know zero about php coding, but I hope I might point someone onto the way…..
Can I just use the profile pages of a BuddyPress theme so I can keep my entire WordPress theme the way it is?
Hi,
I just set up a fresh new wp3.9 on my local host wampserver , but when I try install BuddyPress and bbPress latest versions I got a conflict. Below is my process:
– 1. Install WP 3.9
– 2. Install BuddyPress – 2.1 Active it.
– 3. Install bbPress (works fine) – 3.1 Active it ->> Error, blank page. Can’t go back to Admin Dashboard cause it stops working.– 4. Go to wordpress directory delete the bbPress plugin folder.
– 4.1 Refresh dashboard and deactivate BuddyPress.
– 5. Install bbPress (works fine) – 5.1 Active it (works fine)
– 6. Active BuddyPress – > Error Blank page.Does anyone has this problem and know how to fix this? please help!
Hi I just migrated my site to a new server, and everything works fine and all, but not it appears BP-Album is broken, and will no longer let me upload photos or make changes to avatars.
I get this nasty error when ever I log into wordpress admin.
Your sever does not meet the minumum requirements to run Bp-Album, this means the plugin may not function correctly. Please check that you have the required WordPress and BuddyPress versions, as well as up to date versions of PHP, MYSQL and the GDLib.
Server Specs:
PHP 5 suPHP
MySQL 5.5
Wordpress 3.9.1
BuddyPress 2.0.1
Apache 2.2.27Any help would be appreciated, thank you! 🙂
Hello,
I’m using BuddypPress 1.6.4 with WordPress 3.5.1
I want to upgrade my BuddyPress 1.6.4/WordPress 3.5.1 to BuddyPress 2 and WordPress 3.9.1 but cant find any information how to do the upgrade. In the codex there is information about how to upgrade from older versions of BuddyPress to 1.6. http://codex.buddypress.org/getting-started/upgrading-buddypress/ but no info about how to go from there to BuddyPress 2..
Also, there is no info in the plugin page in the admin panel next to the BuddyPress plugin about any new versions.
Anyone with more info about this or experience of upgrading from BuddyPress 1.6 to 2?
Thanks / Marcus
http://www.musiklararportalen.se/Topic: Override a BP class function
BuddyPress version: 2.0.1
Wordpress version: 3.9.1Hi all,
As part of an ongoing project, the wp_bp_friends table for us is of no use as we have our own system in place. That being said, the function bp_add_friend_button(); is regularly used and rather than changing all occurrences of this function to a custom one, we’d like to just override the function. I have noticed bp_get_add_friend_button(); has an apply_filter at the bottom so I can filter it, however filtering doesn’t help as that function still executes “bp_is_friend()” and “bp_is_friend()” tries to access the wp_bp_friends table (which has a completely different structure now)
Is there anyway I can override bp_add_friend_button(); and stop it from running any of the BP based content so we can just generate our own without having to replace the function call all over the project?
WordPress 3.9.1, bbPress 2.5.4, BuddyPress 3.0.1
I’m still learning BP and building my site. All my users have been added by Admin and I’m testing, debugging. But when I login as a non-admin user, that user cannot edit their profile. Trying to do so produces this error message:
Permission Denied
Not Found / No Access
The page you are looking for either does not exist, or you do not have the permissions to access it.
Any pointers would be appreciated.