donmik
Forum Replies Created
-
Hi,
Can you check if this is a javascript error? Check if one of the other plugins you are using is causing this error? Disable all plugins (not buddypress and mine of course) and try to activate one plugin and check if it works.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] PHP If Statement HelpHi,
This is not in the scope of my plugin…
Checkboxes are stored as an array. If you make a var_dump of the data like this:
<?php $games = xprofile_get_field_data( 'What Games Are You Frequently Playing?', $member_id ); var_dump($games); ?>You will see something like this:
array (size=2) 0 => string 'Call of Duty' (length=12) 1 => string 'Other games' (length=11)So, to check against an array you must do this:
if (in_array('Call Of Duty: Ghosts', $games)) echo '<img src="codghosts.png">';Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Image Field Name TruncatedI say before, this is not from my plugin, it’s from your theme. Check your code.
The field name is:
<dt>Double Thumbs-Up Verification Photo</dt>
This tag has a class applied:.dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; }Delete the line “text-overflow: ellipsis;” and increase the width of this class “width: 160px;”.
This code is located inside “/wp-content/themes/sweetdate/assets/styles/app.css”
It’s a css from your theme, so talk with the support team of your theme because they are wrong…
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Fields not shownYou’re welcome!
Hi,
This question is not in the scope of this plugin. I don’t know any plugin to do this, you will probably need to check inside profile loop if the logged_in_user is in the same group as displayed user.
If you have no access to your folders… it’s too hard to debug this. We need to know if some error is displayed, maybe the error is with folder permissions…
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Image Field Name TruncatedThis is not happening with buddypress default theme, so I guess it’s because you are using a custom theme. If you are looking for the profile view, you need to find this file:
“wp-content/themes/your-theme-directory/members/single/profile/profile-loop.php.Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Fields not shownYou need to search this code:
<?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a> </p> <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> <fieldset> <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend> <?php bp_profile_visibility_radio_buttons() ?> </fieldset> <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a> </div> <?php else : ?> <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> </p> <?php endif ?>Just before this code you need to write:
<?php do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>With my plugin, there is no upload button. You choose the picture, save the changes and the picture should be located in “your uploads directory”/profiles/”id of your user”/yourpicture.jpg.
Check if profiles folder exists.
Hi,
I understand you are using an xprofile field from this plugin with the type “Image”. Where this is not working? When you register or you edit profile?
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Fields not shownFor register page, you need to add this hook to register page and not edit profile form. If you read the faq you have read you need to put this code in edit.php and register.php.
You can try this: http://tareq.wedevs.com/2011/07/add-your-custom-columns-to-wordpress-admin-panel-tables/
<?php function test_modify_user_table( $column ) { $column['name of the column'] = 'display name of the column'; return $column; } add_filter( 'manage_users_columns', 'test_modify_user_table' ); function test_modify_user_table_row( $val, $column_name, $user_id ) { switch ($column_name) { case 'name of the column' : return xprofile_get_field_data('name of the field', $user_id); break; default: } return $return; } add_filter( 'manage_users_custom_column', 'test_modify_user_table_row', 10, 3 );This code must work, you must change the following:
“name of the column” => The name of the column.
“display name of the column” => The name of the column you want to be displayed.
“name of the field” => The name of the xprofile field you want to display the value.Sorry, I have too much work now and I have no time to answer all your questions.
I believe you need to use a custom query to database to do this. I don’t know a function you can use to display all values from an xprofile field.
Hi,
It’s really difficult to debug this because every web is different.
“/customers/c/0/1/website.com/httpd.www/” This part is the absolute path to your website. Inside this last folder there must be located the wordpress folders and files.
Check in your server if this path is created /wp-content/uploads/profiles/57/image.jpg. My plugin will create 57 folder inside profiles folder and copy the image.jpg.
I will do the same if I were in your situation, so I believe this is a good solution.