Search Results for 'profile fields'
-
AuthorSearch Results
-
January 21, 2009 at 4:38 am #36522
In reply to: required, not-required, other
Famous
Participant1.) Okay, I see “add new group” under profile fields, that will enable to separate groups. How can I remove the automatic linking of text from let’s say, Group B and post Group B as an includes PHP function while removing it from the user profile?
Any feedback is much appreciated… Thanks
January 11, 2009 at 4:10 pm #36087In reply to: Google Map Integration
Bergsten
ParticipantApart from the BP-profile integration, each user can easily add a Google Map on their blogs using the tags in http://www.ezbizniz.com/wordpress-plugins/google-maps
I’ve also added the possibility to get markers from an XML-feed. If you, in the WP Google Maps settings, click on the “See example…”-link you see the URL to an XML-feed that will return markers for 20 of the users withint the viewport of the current map. You can use this to display a map on your front page displaying where the different members on your site lives.
In the “Marker XML Feed Fields” input field you can specify the names of the different fields of the markers returned by the XML-feed.
In the “Marker XML Feed HTML Pattern” you can set how the information will be presented when someone clicks on a marker.
I will write a more detailed description on how things work on http://www.ezbizniz.com/wordpress-plugins/google-maps when I get the time to do so.
January 11, 2009 at 1:18 pm #36077In reply to: Google Map Integration
Meerblickzimmer
ParticipantHi bergsten!
Plugin works fine so long. What´s your plan with the plugin? Mayby a profile-integration is possible (under profile fields under the wp-mu backend)?
January 7, 2009 at 12:47 pm #35805In reply to: How to get rid of autolinking on profile fields
yu
Participanti’ve found this function –
function xprofile_filter_link_profile_data( $field_value, $field_type, $field_id ) {
if ( $field_type == 'datebox' )
return $field_value;
if ( !strpos( $field_value, ',' ) && ( count( explode( ' ', $field_value ) ) > 5 ) )
return $field_value;
$values = explode( ',', $field_value );
if ( $values ) {
foreach ( $values as $value ) {
$value = trim( $value );
if ( count( explode( ' ', $value ) ) > 5 )
$new_values[] = $value;
else
$new_values[] = '<a href="' . site_url() . '/' . MEMBERS_SLUG . '/?s=' . $value . '">' . $value . '</a>';
}
$values = implode( ', ', $new_values );
}
return $values;
}
add_filter( 'bp_the_profile_field_value', 'xprofile_filter_link_profile_data', 2, 3 );so EVERY field is ‘link’ field.. i think this is not so good ;/
next stape i think should be creation of new field_types, and applying filters to this field_types in this function. but where are this types and how to create new ones i don’t know..
January 7, 2009 at 12:30 pm #35804In reply to: How to get rid of autolinking on profile fields
yu
Participantand other question – how to check user added info posted in this extra fields? cause i just saw hundreds spaces in ‘link’ field…
January 7, 2009 at 11:01 am #35801In reply to: How to get rid of autolinking on profile fields
karthik_kastury
Memberfishbowl81, thanks for the help.. am not sure of where exactly to put that code.. chk out my profile @ http://ignitte.in/members/admin/profile
over here i would like everything in the contact group to be delinked except for the URL.. hw do i go about this?
January 7, 2009 at 10:51 am #35800In reply to: How to get rid of autolinking on profile fields
gpo1
Participantfishbowl81, I like your member theme.which file did you use to change the top bar ie to red & black.
That is how did you do it?
And also can you adapt it for lastFM widget?
Link for lastfm api
http://apps.sourceforge.net/mediawiki/phplastfmapi/index.php?title=Usage
January 7, 2009 at 5:24 am #35790In reply to: How to get rid of autolinking on profile fields
fishbowl81
ParticipantThis post maybe a little more clear, as it has a full working music player.
https://buddypress.org/forums/topic.php?id=604#post-3382
#1, the 2 is priority of the filter.
#2, I have been lazy and just made everything inside of the “social details” group active links. In the future I maybe validating them with some regular expressions or substring checking.
#3, check for an @ and at least 1 period in the string and no spaces? There are some very complex regular expressions which can validate e-mail addresses, but regular expressions are slower then substrings.
Brad
January 7, 2009 at 4:14 am #35787In reply to: How to get rid of autolinking on profile fields
Mike Pratt
ParticipantBrad – nicely done. a few beginner questions:
1. where are you applying this filter? I assume 2 was the field_id?
2. For the web site link (non-bp link) in your example, do users need to merely enter a valid url? just http://www.example.com or what, specifically – I will need to steer them.
3. How would you go about configuring a mailto: link (assuming they were safe behind the login walls form scrapers
January 7, 2009 at 4:08 am #35786In reply to: Purely Genius Way to Add Custom Profile Fields
fishbowl81
ParticipantHere it is, save as bp-music.php and copy into your muplugins
you must create a profile details group “Audio Details”, and all values will be replaced by a music player.
Check out a working copy on:
http://gorgeousgamers.com/beta/members/bradmkjr/
Brad
http://gorgeousgamers.com/beta/
<?php
/*
* Created on Dec 29, 2008
*
* Project Buddypress Addons
*
* File bp-music.php
*
*/
function bp_profile_music_player( $field_value =””, $field_type = “”, $field_id = “” ) {
if($field_value == “”)
return “Nothing to show”;
else
{ // clean up input
return “<script type=’text/javascript’>
var amzn_wdgt={widget:’MP3Clips’};
amzn_wdgt.tag=’gorgeousgamers-20′;
amzn_wdgt.widgetType=’ASINList’;
amzn_wdgt.keywords='”.addslashes($field_value).”‘;
amzn_wdgt.title=’What I’ve been listening to lately…’;
amzn_wdgt.width=’250′;
amzn_wdgt.height=’250′;
amzn_wdgt.shuffleTracks=’True’;
amzn_wdgt.marketPlace=’US’;
</script>
<script type=’text/javascript’ src=’http://wms.assoc-amazon.com/20070822/US/js/swfobject_1_5.js’>
</script>”;
}
}
function bp_profile_music_groups( $group_name =””) {
if($group_name == “Audio Details”){
remove_filter( ‘bp_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 2);
add_filter( ‘bp_the_profile_field_value’, ‘bp_profile_music_player’, 2, 3);
}else{
add_filter( ‘bp_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 2, 3);
remove_filter( ‘bp_the_profile_field_value’, ‘bp_profile_music_player’, 2);
}
return $group_name;
}
add_filter( ‘bp_the_profile_group_name’, ‘bp_profile_music_groups’, 10, 1 );
?>
January 7, 2009 at 3:38 am #35784In reply to: How to get rid of autolinking on profile fields
fishbowl81
Participantvery simple
remove_filter( ‘bp_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 2);
That removes the autolinking
I have developed a nice plugin (now a pair) which changes profile values rendering depending on the name of the group. I have not yet released the code, as I’m offering it as beerware.
Here is my profile on my beta site:
http://gorgeousgamers.com/beta/members/bradmkjr/
I made the social details, normally clickable so people can enter myspace, facebook, or personal sites.
I also made a fun mp3 player plugin to allow people to suggest music for their profiles and listen to samples.
Brad
January 6, 2009 at 4:48 pm #35755In reply to: show user email
Mike Pratt
ParticipantI have done the same. Shame that all profile fields deal with everything as plain text. Can’t make links look pretty or email addresses function as mailto links
January 6, 2009 at 3:18 pm #35747In reply to: Purely Genius Way to Add Custom Profile Fields
Anonymous User 303747
Inactive*bump*
It would be helpful to see your code, Brad. Are you willing to share?
December 31, 2008 at 12:50 am #35356In reply to: Purely Genius Way to Add Custom Profile Fields
gpo1
Participantwhen are you going to release it and also can you apply it for youtube media ?
December 29, 2008 at 5:54 pm #35273In reply to: Purely Genius Way to Add Custom Profile Fields
Andy Peatling
KeymasterFilters are very useful, I’ve tried to include filters on every template tag, so you can modify template tag output as you see fit.
December 29, 2008 at 5:44 pm #35272In reply to: Purely Genius Way to Add Custom Profile Fields
David Bisset
ParticipantThis is a good solution (or hack) for when this has to be in the profile page. I can easily see this expanding into it’s own page for bigger sites. And I forgot about the filter hint from Andy. Good job.
December 29, 2008 at 5:11 pm #35268fishbowl81
ParticipantFinished,
Wrote it as a customization to the profile fields, managed to do it in about 10 or so lines of php. Read my complete post here:
https://buddypress.org/forums/topic.php?id=604
or check out the running example here:
http://gorgeousgamers.com/beta/members/bradmkjr/
Thanks,
Brad
December 29, 2008 at 12:05 am #35217In reply to: Add a link to others network
Mike Pratt
ParticipantIf I had the time, I’d build a plug-in that 1. added a section to the profile page that 2. worked like myBlogLog in that it showed a bunch of username/profile url fields for the various other social networks and then validated prior to 3. showing on a member profile as a nice icon/button to that site/platform/service. Otherwise, odds are many noob users won’t go the extra mile to paste links or do whatever it takes to make text look right.
December 29, 2008 at 12:03 am #35215In reply to: Error when trying to create a group
oceandoctor
Memberlol! OK, I just did a clean install (1and1). Same symptom…tables not created. Here are the relevant fields from wp_sitemeta:
bp-activity-version 1.0b1
bp-core-version 1.0b1
bp-xprofile-base-group-name Base
bp-xprofile-fullname-field-name Full Name
bp-xprofile-fullname-conversion 1
bp-xprofile-version 1.0b1
bp-messages-version 1.0b1
bp-groups-version 1.0b1
bp-friends-version 1.0b1
bp-blogs-first-install 1
bp-blogs-version 1.0b1
P.S. Actually I liked the lady floating in space with the bowl on her head. I have exotic tastes.
December 28, 2008 at 8:30 pm #35191In reply to: Error when trying to create a group
oceandoctor
MemberHere’s another snippet. This is the first error log entry that appears after invoking BP:
[suexec 11345] kundenfile = 1, mustkundenfile = 1, file = /kunden/homepages/14/d123456789/htdocs/exploreouroceans/index.php, cgifeature = 350
[suexec 11345] Chdir to /kunden/homepages/14/d123456789/htdocs/exploreouroceans
[suexec 11345] Executing PHP5 /usr/lib/cgi-bin/php5 /kunden/homepages/14/d123456789/htdocs/exploreouroceans/index.php
WordPress database error Table ‘db270846977.wp_bp_xprofile_data’ doesn’t exist for query SELECT d.value, f.name FROM wp_bp_xprofile_data d, wp_bp_xprofile_fields f WHERE d.field_id = f.id AND d.user_id = 0 AND f.parent_id = 0 AND f.name = ‘Full Name’ made by get_value_byfieldname
WordPress database error Table ‘db270846977.wp_bp_xprofile_data’ doesn’t exist for query SELECT d.value, f.name FROM wp_bp_xprofile_data d, wp_bp_xprofile_fields f WHERE d.field_id = f.id AND d.user_id = 0 AND f.parent_id = 0 AND f.name = ‘Full Name’ made by get_value_byfieldname
WordPress database error Table ‘db270846977.wp_bp_messages_recipients’ doesn’t exist for query SELECT unread_count FROM wp_bp_messages_recipients WHERE user_id = 0 AND is_deleted = 0 made by get_inbox_count
WordPress database error Table ‘db270846977.wp_bp_messages_recipients’ doesn’t exist for query SELECT unread_count FROM wp_bp_messages_recipients WHERE user_id = 0 AND is_deleted = 0 made by get_inbox_count
WordPress database error Table ‘db270846977.wp_bp_groups’ doesn’t exist for query SELECT id FROM wp_bp_groups WHERE slug = ‘public’ made by group_exists
WordPress database error Table ‘db270846977.wp_bp_groups_groupmeta’ doesn’t exist for query SELECT gm.group_id FROM wp_bp_groups_groupmeta gm, wp_bp_groups g WHERE g.id = gm.group_id AND g.status != ‘hidden’ AND gm.meta_key = ‘total_member_count’ ORDER BY CONVERT(gm.meta_value, SIGNED) DESC made by get_popular
[Sat Dec 27 13:46:21 2008] [warn] (2)No such file or directory: mod_mime: analyze_ct: cannot get media type from ‘x-mapp-php5’
[Sat Dec 27 13:46:21 2008] [warn] mod_mime: analyze_ct: cannot get media type from ‘x-mapp-php5’
[suexec 11347] started: /usr/lib/apache-ssl/suexec dummywwwexecuser ftpusers php5exe
[suexec 11347] REDIRECT_STATUS: 200
[suexec 11347] doing chroot
Can you tell I’m desperate?
December 27, 2008 at 7:04 pm #35150In reply to: Error when trying to create a group
oceandoctor
Member1and1 just notified me that they’re redirecting Apache error logging to a file I can access. I went to the back site admin area, which is supposed to trigger the creation of the BP tables. Some of the log corresponding to that looks like what I’ve pasted below. Not sure if the SQL syntax error is causing all the trouble. Please let me know what else you need. Again, thanks.
exec 11368] Executing PHP5 /usr/lib/cgi-bin/php5 /kunden/homepages/14/d123456789/htdocs/exploreouroceans/index.php
WordPress database error Table ‘db270846977.wp_bp_xprofile_data’ doesn’t exist for query SELECT d.value, f.name FROM wp_bp_xprofile_data d, wp_bp_xprofile_fields f WHERE d.field_id = f.id AND d.user_id = 1 AND f.parent_id = 0 AND f.name = ‘Full Name’ made by get_value_byfieldname
WordPress database error Table ‘db270846977.wp_bp_xprofile_data’ doesn’t exist for query SELECT d.value, f.name FROM wp_bp_xprofile_data d, wp_bp_xprofile_fields f WHERE d.field_id = f.id AND d.user_id = 0 AND f.parent_id = 0 AND f.name = ‘Full Name’ made by get_value_byfieldname
WordPress database error You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘DEFAULT CHARACTER SET utf8’ at line 17 for query CREATE TABLE wp_bp_activity_sitewide (
id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
user_id int(11) NOT NULL,
item_id int(11) NOT NULL,
secondary_item_id int(11),
content longtext NOT NULL,
primary_link varchar(150) NOT NULL,
component_name varchar(75) NOT NULL,
component_action varchar(75) NOT NULL,
date_cached datetime NOT NULL,
date_recorded datetime NOT NULL,
KEY date_cached (date_cached),
KEY date_recorded (date_recorded),
KEY user_id (user_id),
KEY item_id (item_id),
KEY component_name (component_name)
) DEFAULT CHARACTER SET utf8; made by dbDelta
WordPress database error You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘DEFAULT CHARACTER SET ‘utf8” at line 1 for query ALTER TABLE wp_bp_activity_sitewide DEFAULT CHARACTER SET ‘utf8’ made by bp_activity_sitewide_install
December 25, 2008 at 4:40 pm #35066In reply to: Error when trying to create a group
oceandoctor
MemberFresh domain. Fresh upload. Fresh install. Fresh cookies. Triple-checked permissions. Same problem: Can’t create groups, either from back admin side or front side. I always get the message, “”There was an error saving group details. Please try again.”
I’m afraid I’m close to throwing in the towel.
The installation directions say, “7. Head to: “Site Admin > Profiles†in the wp-admin area.” I don’t see a “Profiles” option, just “Profile Fields.” Just a typo?
My install is at: http://exploreouroceans.org
Thanks and Happy Holidays.
December 24, 2008 at 6:49 pm #35025In reply to: Cannot access Account Settings under Users
Trent Adams
Participantzanzoon, dimensionmedia is right in asking what exactly are you referring to? The site linked in your profile looks fine and seems to be operating fine. That error is on what page? What theme are trying to access it on as the 2 default themes seem to be working fine. As well, in your admin the URL to access the xprofile fields is like this:
/wp-admin/wpmu-admin.php?page=xprofile_settings
Are you trying to access the URL directory or something?
December 22, 2008 at 10:18 pm #34848In reply to: Profile fields linking dumped?
belogical
Participantsweet, I’ll try that out, thanks!
December 22, 2008 at 6:51 pm #34838In reply to: Profile fields linking dumped?
Andy Peatling
Keymasterit will link anything shorter than 5 words and anything between commas, 5 words or less.
-
AuthorSearch Results