latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Danny Albeck

Sorry, I've not written a description yet. I'll get to it soon!


Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Edit Profile Front-End – Hard Coded

By:  Danny Albeck in: Community Forum

voices: 2
replies: 1

4 years, 3 months ago  Cristián Lávaque

Multi Checkbox custom field author.php page

By:  Danny Albeck in: Community Forum

voices: 2
replies: 8

4 years, 3 months ago  Bruce

Upload documents and assign them to accounts

By:  Danny Albeck in: Unofficial Extensions/Hacks

voices: 1
replies: 1

4 years, 9 months ago  Danny Albeck

Viewing 3 topics - 1 through 3 (of 3 total)

My Latest Replies (From Various Topics)

Viewing 6 replies - 1 through 6 (of 6 total)
Author Replies
Author Replies
Posted: Thursday Sep 27th, 2012 at 4:30 pm #26730
Danny Albeck
Username: dalbeck

I am looking for an answer on this now as well. Using the members-list plugin for a directory, and I need my users to be able to edit the address fields that are generated by this plugin and not the custom ones created with S2 Member because they don’t sync up with the radius search.

Hope there can be some insight on this one.

Posted: Wednesday Sep 26th, 2012 at 9:56 am #26568
Danny Albeck
Username: dalbeck

Bruce,

I feel like its a step in the right direction. There are no errors now, but it doesn’t output any of the results from that field. I just double checked the users profile in WordPress to make sure they have a few options checked off and there are.

Any ideas?

Thank you for all of your help!

Posted: Tuesday Sep 25th, 2012 at 12:25 pm #26448
Danny Albeck
Username: dalbeck

Hmm, I feel like I might be missing something here, and I apologize if I am being a pest Bruce. Here is my entire author.php file, with the snippet included that you provided above.

<?php get_header(); ?>

<section id="title">

	<article>
		<h2>Become A Member</h2>
	</article>

</section><!--end of title-->

<section id="container">

	<article id="content">

		<aside id="left">

			<?php get_sidebar(); ?>

		</aside><!--end of left-->

		<aside id="right">

			<article>

			    <?php
			    	$thisauthor = get_userdata(intval($author));
			    ?>

			    <h2><?php echo $thisauthor->display_name; ?>, <?php echo get_user_field('profile_certifications', $thisauthor->ID);  ?></h2>

			    <?php if (have_posts()) : ?>

			    <?php endif; ?>

			    <article class="profile-details">

				    <aside class="picture">

				    	<? if(function_exists('get_avatar')) { echo get_avatar($thisauthor->user_email, 96, "" ); } ?>

				    </aside><!--end of .picture-->

				    <ul class="profile-info">
				    	<li><strong><?php echo get_user_field('profile_company', $thisauthor->ID);  ?></strong></li>
				    	<li><?php echo get_user_field('profile_address1', $thisauthor->ID);  ?></li>
				    	<li><?php echo get_user_field('profile_address2', $thisauthor->ID);  ?></li>
				    	<li><?php echo get_user_field('profile_city', $thisauthor->ID);  ?>, <?php echo get_user_field('profile_state', $thisauthor->ID);  ?> <?php echo get_user_field('profile_zip_code', $thisauthor->ID);  ?></li>
				    </ul>

				    <ul class="profile-info">
				    	<li><strong>Phone:</strong> <?php echo get_user_field('profile_phone', $thisauthor->ID);  ?></li>
				    	<li><strong>Fax:</strong> <?php echo get_user_field('profile_fax', $thisauthor->ID);  ?></li>
				    	<li><strong>Email:</strong> <a href="mailto:<? echo $thisauthor->user_email; ?>"><? echo $thisauthor->user_email; ?></a></li>
				    	<li><a href="<?php echo $thisauthor->user_url; ?>" target="_blank"><?php echo $thisauthor->user_url; ?></a></li>
				    </ul>

			    </article><!--end of .profile-details-->

			    <h3>Disciplines/Expertise/Services</h3>

			    <?php
				    function get_s2member_custom_fields($user_id) {
					    if($user_id === NULL)
						    $user_id = $theUserID;
						    $return = array();
						    $user = get_user_option('s2member_custom_fields', $user_id);
				    foreach ((array)json_decode($GLOBALS['WS_PLUGIN__']['s2member']['o']['custom_reg_fields'], true) as $field) {
					    if (isset($user[$field['id']])) {
					    $return[$field['id']]['label'] = $field['label'];
				    if (empty($field['options']))
				    	$return[$field['id']]['value'] = $user[$field['id']];
				    else {
				    	$field['options'] = strpos($field['options'], "\n") ? explode("\n", $field['options']) : (array)$field['options'];
				    foreach ($field['options'] as $option) {
				   	 $option = explode('|', $option);
				   	 $options[$option[0]] = $option[1];
				    }
				    foreach ((array)$user[$field['id']] as $choice)
				    	$return[$field['id']]['options'][$choice] = $options[$choice];
				    }
				    	}
				    }
				    return $return;
				    	}
				    $s2_custom_fields = get_s2member_custom_fields($theUserID);
				    echo $var['profile_disciplines']['options'][0]['label'];
			    ?>

			    <h3>Industries/Environments</h3>

			    <ul>
			    	<li><?php echo get_user_field('profile_industries', $thisauthor->ID); ?></li>
			    </ul>

			    <h3>Experience</h3>

			    <p><?php echo get_user_field('profile_experience', $thisauthor->ID); ?></p>

			    <h3>Speaking Topics</h3>

			    <p><?php echo get_user_field('profile_speaking_topics', $thisauthor->ID); ?></p>

			    <h3>Prior Speaking Experience/Engagements</h3>

			    <p><?php echo get_user_field('profile_engagements', $thisauthor->ID); ?></p>

			    <h3>Publications</h3>

			    <p><?php echo get_user_field('profile_publications', $thisauthor->ID); ?></p>

			    <h3><a href="<?php echo get_permalink('72'); ?>">Disclosure</a></h3>

			</article>

		</aside><!--end of right-->

	</article><!--end of content-->

</section><!--end of container-->

<?php get_footer(); ?>

I don’t see where I have the function being called multiple times.

Posted: Tuesday Sep 25th, 2012 at 8:24 am #26423
Danny Albeck
Username: dalbeck

Bruce,

I get the following error:

Fatal error: Cannot redeclare get_s2member_custom_fields() in /wp-content/themes/iapsc/author.php on line 62

Thanks for getting back to me, hope we can figure something out.

Posted: Saturday Apr 7th, 2012 at 3:46 pm #10294
Danny Albeck
Username: dalbeck

Ok, so I was just looking around online and came across this: http://codecanyon.net/item/wordpress-file-centre/112012?WT.ac=category_thumb&WT.seg_1=category_thumb&WT.z_author=Spadez8

This is exactly what I am looking for, just curious if there is something similar for S2, as I would love to just use this system. Thanks everyone!

Posted: Wednesday Mar 14th, 2012 at 10:36 am #8111
Danny Albeck
Username: dalbeck

I am also looking for a way to import users without email addresses.

Viewing 6 replies - 1 through 6 (of 6 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.