Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Edit Profile Sidebar Changes

  1. #1
    Thread Starter
    Expired Customer homesift's Avatar
    Join Date
    Feb 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Edit Profile Sidebar Changes

    This is my first support question and I wanted to say thanks for the great software.

    What I want to do is modify the sidebar on the edit profile page to be the same as it is on the user dashboard.

    I know I need to change the below call on the edit-profile.php page but I'm not sure what to change it to:

    Code:
    <div id="sidebar">
    	<?php get_sidebar( app_template_base() ); ?>
    </div>
    I tried replacing the above code with the sidebar-dashboard.php code on the edit-profile.php page and it sets up the sidebar properly but the data doesn't populate in the sidebar. For example the member since doesn't populate a date, the avatar image is not showing, the account stats are all 0 etc... Any help would be greatly appreciated.

    Code:
    <div id="sidebar">
    	<aside id="dashboard-side-nav">
    
    		<div class="avatar">
    			<?php if ( $is_own_dashboard ) {
    				echo html_link( va_get_the_author_listings_url( $dashboard_user->ID, true ), get_avatar( $dashboard_user->ID, 45 ) );
    			 } else {
    				 echo html_link( va_get_the_author_listings_url( $dashboard_user->ID ), get_avatar( $dashboard_user->ID, 45 ) );
    			 }
    			?>
    		</div>
    		<div class="user_meta">
    			<p><?php $is_own_dashboard ? _e( 'Welcome, ' , APP_TD ) : ''; ?><b><?php echo $dashboard_user->display_name; ?></b></p>
    			<p class="smaller"><?php _e( 'Member Since: ', APP_TD ); ?><?php echo mysql2date( get_option('date_format'), $dashboard_user->user_registered ); ?></p>
    		</div>
    		<ul class="links">
    			<li class="faves"><?php
    			if ( $is_own_dashboard ) {
    			echo html_link( va_get_the_author_faves_url( $dashboard_user->ID, true ), __( 'My Favorites', APP_TD ) );
    			} else {
    			echo html_link( va_get_the_author_faves_url( $dashboard_user->ID ), __( 'My Favorites', APP_TD ) );
    			}
    			?></li>
    			<li class="reviews"><?php
    			if ( $is_own_dashboard ) {
    			echo html_link( va_get_the_author_reviews_url( $dashboard_user->ID, true ), __( 'My Reviews', APP_TD ) );
    			} else {
    			echo html_link( va_get_the_author_reviews_url( $dashboard_user->ID ), __( 'My Reviews', APP_TD ) );
    			}
    			?></li>
    			<li class="view-listings"><?php
    			if ( $is_own_dashboard ) {
    			echo html_link( va_get_the_author_listings_url( $dashboard_user->ID, true ), __( 'My Listings', APP_TD ) );
    			} else {
    			echo html_link( va_get_the_author_listings_url( $dashboard_user->ID ), __( 'My Listings', APP_TD ) );
    			}
    			?></li>
    			<?php if ( $is_own_dashboard ) { ?>
    			<li class="edit-profile"><?php echo html_link( appthemes_get_edit_profile_url(), __( 'Edit Profile', APP_TD ) ); ?></li>
    			<li class="add-listings"><?php echo html_link( va_get_listing_create_url(), __( 'Add Business', APP_TD ) ); ?></li>
    			<?php if ( $dashboard_user->has_claimed ) { ?>
    				<li class="claimed-listings"><?php echo html_link( va_get_claimed_listings_url(), __( 'Claimed Listings', APP_TD ) ); ?></li>
    			<?php } ?>
    			<?php } ?>
    		</ul>
    
    	</aside>
    
    	<?php if ( va_dashboard_show_account_info( $dashboard_user, $is_own_dashboard ) ) { ?>
    
    	<aside id="dashboard-acct-info">
    		<div class="section-head">
    			<h3><?php _e( 'Account Information', APP_TD ); ?></h3>
    		</div>
    
    		<ul class="links">
    			<?php if ( $is_own_dashboard || !empty( $dashboard_user->email_public ) ) { ?>
    			<li class="email"><a href="mailto:<?php echo $dashboard_user->user_email; ?>"><?php echo $dashboard_user->user_email; ?></a></li>
    			<?php } ?>
    			<?php if ( !empty( $dashboard_user->twitter ) && $is_own_dashboard || !empty( $dashboard_user->twitter ) ) { ?>
    			<li class="twitter"><a href="<?php echo $dashboard_user->twitter; ?>" target="_blank"><?php echo $dashboard_user->twitter; ?></a></li>
    			<?php } ?>
    			<?php if ( !empty( $dashboard_user->facebook ) && $is_own_dashboard || !empty( $dashboard_user->facebook ) ) { ?>
    			<li class="facebook"><a href="<?php echo $dashboard_user->facebook; ?>" target="_blank"><?php echo $dashboard_user->facebook; ?></a></li>
    			<?php } ?>
    			<?php if ( !empty( $dashboard_user->user_url ) && $is_own_dashboard || !empty( $dashboard_user->user_url ) ) { ?>
    			<li class="website"><a href="<?php echo $dashboard_user->user_url; ?>" target="_blank"><?php echo $dashboard_user->user_url; ?></a></li>
    			<?php } ?>
    		</ul>
    
    	</aside>
    
    	<?php } ?>
    	<aside id="dashboard-acct-stats">
    		<div class="section-head">
    			<h3><?php _e( 'Account Stats', APP_TD ); ?></h3>
    		</div>
    		<?php
    		$stats = va_dashboard_get_user_stats($dashboard_user);
    		?>
    		<ul class="stats">
    			<li><?php printf( __('Active Listings: %d', APP_TD ), $stats['listings_live'] ); ?></li>
    			<li><?php printf( __('Pending Listings: %d', APP_TD ), $stats['listings_pending'] ); ?></li>
    			<li><?php printf( __('Expired Listings: %d', APP_TD ), $stats['listings_expired'] ); ?></li>
    			<li><?php printf( __('Total: %d', APP_TD ), $stats['listings_total'] ); ?></li>
    		</ul>
    		<ul class="stats">
    			<li><?php printf( __('Active Reviews: %d', APP_TD ), $stats['reviews_live'] ); ?></li>
    			<li><?php printf( __('Pending Reviews: %d', APP_TD ), $stats['reviews_pending'] ); ?></li>
    			<li><?php printf( __('Total Reviews: %d', APP_TD ), $stats['reviews_total'] ); ?></li>
    		</ul>
    
    	</aside>
    </div>

  2. #2
    Thread Starter
    Expired Customer homesift's Avatar
    Join Date
    Feb 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Expired Customer homesift's Avatar
    Join Date
    Feb 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    Expired Customer homesift's Avatar
    Join Date
    Feb 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    Thread Starter
    Expired Customer homesift's Avatar
    Join Date
    Feb 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #8
    Thread Starter
    Expired Customer homesift's Avatar
    Join Date
    Feb 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #9
    Forum Member margas's Avatar
    Join Date
    Oct 2012
    Location
    Australia
    Posts
    40
    Thanks
    1
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #10
    Expired Customer annac's Avatar
    Join Date
    Dec 2013
    Location
    Barcelona (Catalonia - Europe)
    Posts
    114
    Thanks
    17
    Thanked 16 Times in 15 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. User Profile Sidebar
    By ggriffin in forum Report Vantage Bugs (Legacy)
    Replies: 3
    Last Post: June 7th, 2012, 11:52 AM
  2. Replies: 1
    Last Post: April 15th, 2012, 06:06 PM
  3. How to allow users edit profile?
    By cyclebarter in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: January 28th, 2012, 10:09 AM
  4. Profile Sidebar
    By baja23 in forum ClassiPress General Discussion
    Replies: 1
    Last Post: August 16th, 2011, 06:42 AM
  5. profile sidebar widgets
    By amelie in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: July 9th, 2011, 02:05 AM