Forum Replies Created
-
AuthorPosts
-
scott
ParticipantEXAMPLE CODE BELOW BUT THE CALLOUTS FOR FIELDS SUCH AS “DISCIPLINE” or “POSITION” DONT WORK AS THE FORM-BUILDER ADDON STORES THESE ENTRIES IN DIFFERENT TABLES TO WHERE THE MAIN MEMBERS ARE.
—————————————————–
<?php
global $wpdb;
$table_name = $wpdb->prefix . “swpm_members_tbl”;
$blogusers = $wpdb->get_results( “SELECT * FROM $table_name” );foreach( $wpdb->get_results(“SELECT * FROM swpm_form_builder_custom WHERE id LIKE’ . $id . ‘;”) as $key => $row) {
// each column in your row will be accessible like this
$my_column = $row->field_id;}foreach ( $blogusers as $user ) {
echo
‘<div class=”col-md-3″>
<div>
<p>Member Name: <br>’ . esc_html( $user->first_name ) . ‘ ‘ . esc_html( $user->last_name ) . ‘</p><br>’;echo ‘<p>Organisation: <br>’ . esc_html( $user->company_name ) . ‘</p><br>’;
echo ‘<p>Discipline: ‘ . esc_html( $my_column->discipline ) . ‘</p><br>’;
echo ‘<p>Position: ‘ . esc_html( $user->user_nicename ) . ‘</p><br>’;
echo ‘<p>Research Interest: ‘ . esc_html( $user->research_interest ) . ‘</p><br>’;echo ‘</div></div>’;
}?>
scott
ParticipantI received your manual email. thanks.
Could you please forward the receipt also as this didnt come through either.
scott
ParticipantThanks,
I even tried setting up a new account on here to use the forum but no email came through for that either.
I’ve received other emails to my email address so it’s not an issue with my gmail.
Scott
scott
ParticipantHi,
Thanks for your replies.
There are multiple admins on my site and so different people have access to the “edit profile” screen in the backend. With this in mind I have been asked to make the “edit profile” experience as simple as possible – therefore removing unnecessary fields.
If this is being kept as part of the plugin is it at all possible that you could add classes to the <tr> so at least they can be commented out by class name rather than having to edit one of the plugin’s core files?
Thanks
Scott
scott
ParticipantThanks for your reply.
I have bought the form builder addon but that doesnt give the option to remove rows/fields that are already present (by default) in the admin -> edit-profile screen.
Rows such as “gender” are not in my signup form or profile form but still appear in the edit-profile panel.
-
AuthorPosts