Forum Replies Created

Viewing 15 replies - 31 through 45 (of 46 total)
  • Hey,

    Everything looks good now, no warning messages from Avast or Malwarebytes.

    Quick question: Does your Pro version offer the ability for us to specify specific language flags to apply to a WP menu?

    Right now the plugin applies an entire array of language flags (if not using select box) to the header menu shortcode. We only want to display an American and Chinese flag switcher in the main menu.

    Edit: Ah looking at your demo this does appear to be the case. Can we apply the flags are parent menu items (instead of dropdowns)?

    Thread Starter imaginemonkey

    (@imaginemonkey)

    Sure:

    <a class="link-to-pdf" title="player Profile" href="https://www.domain.com/wp-content/uploads/2015/12/sample.pdf" target="_blank" rel="attachment wp-att-3789"><img class="size-large wp-image-3789 aligncenter" src="https://www.domain.com/wp-content/uploads/2015/12/sample-pdf-791x1024.jpg" alt="thumbnail of Player – Player Profile" width="791" height="1024" /></a>
    Thread Starter imaginemonkey

    (@imaginemonkey)

    Hi,

    No, I selected “PDF Media File” for each thumbnail ??

    Yeah same here.

    JS:Injection-A [Trj]

    Blocked by Avast and Malwarebytes.

    Thread Starter imaginemonkey

    (@imaginemonkey)

    Figured it out. Holy christmas.

    I had the directory set to display users by last login. Well, these users had never logged in before so they weren’t showing. HA!

    Thread Starter imaginemonkey

    (@imaginemonkey)

    Hey Shimu666,

    No problem. I also ran into the same issue, so what I did was I made custom profile tabs and inserted the shortcode for WP Job Manager pages.

    // Add Job Dash Which Only Shows For Employer While Viewing Their Own Profile Page //
    
    add_filter('um_profile_tabs', 'add_custom_profile_tab1', 7 );
    function add_custom_profile_tab1( $jobtab ) {
    
    if ( um_is_myprofile() && ( um_user('role') == 'employer') ) {
    
      $jobtab['dashboard'] = array(
       'name' => 'Manage Jobs',
       'icon' => 'um-faicon-archive',
       'custom' => true,
      );
    
     }
    
     return $jobtab;
    
    }
    add_action('um_profile_content_dashboard_default', 'um_profile_content_dashboard_default');
    function um_profile_content_dashboard_default( $args ) {
    
        echo do_shortcode('[job_dashboard]');
    
    }
    
    // Add Subscription Tab Which Only Shows For Employer While Viewing Their Own Profile Page If WooCommerce Subscriptions Is Installed //
    
    add_filter('um_profile_tabs', 'add_custom_profile_tab2', 8 );
    function add_custom_profile_tab2( $subscriptiontab ) {
    
    if ( um_is_myprofile() && ( um_user('role') == 'employer') ) {
    
      $subscriptiontab['subscription'] = array(
        'name' => 'Subscription',
        'icon' => 'um-faicon-shopping-cart',
        'custom' => true,
        );
    
        }
    
        return $subscriptiontab;
    
    }
    add_action('um_profile_content_subscription_default', 'um_profile_content_subscription_default');
    function um_profile_content_subscription_default( $args ) {
    
    echo do_shortcode('[woocommerce_my_account]');
    
    }
    
    // Add Notifications Tab Which Shows For All Logged In User Roles If UM Notifications Is Installed //
    
    add_filter('um_profile_tabs', 'add_custom_profile_tab3', 19 );
    	function add_custom_profile_tab3( $notificationstab ) {
    
            if ( um_is_myprofile() ){
    
    	$notificationstab['notifications'] = array(
    		'name' => 'Notifications',
    		'icon' => 'um-faicon-bell',
            'custom' => true,
    	);
    
            }
    
    	return $notificationstab;
    
    }
    add_action('um_profile_content_notifications_default', 'um_profile_content_notifications_default');
    function um_profile_content_notifications_default( $args ) {
    
    echo do_shortcode('[ultimatemember_notifications]');
    
    }
    
    // Add Job Listing Tab Which Only Shows For Users Who Are Viewing An Employers Profile //
    
    add_filter('um_profile_tabs', 'add_custom_profile_tab4', 4 );
    	function add_custom_profile_tab4( $listingstab ) {
    
    if ( !um_is_myprofile() && ( um_user('role') == 'employer' ) ) {
    
    	$listingstab['jobslisting'] = array(
    		'name' => 'Job Listings',
    		'icon' => 'um-faicon-tasks',
            'custom' => true,
    	);
    
    }
    
    	return $listingstab;
    
    }
    add_action('um_profile_content_jobslisting_default', 'um_profile_content_jobslisting_default');
    function um_profile_content_jobslisting_default( $args ) {
    
    echo do_shortcode('[userjobs]');
    
    }
    
    // Add Job Alerts Tab Only Shows For Candidates While Viewing Their Own Profile Page //
    
    add_filter('um_profile_tabs', 'add_custom_profile_tab7', 11 );
    	function add_custom_profile_tab7( $alerttab ) {
    
    if ( um_is_myprofile() && ( um_user('role') == 'candidate') ) {
    
    	$alerttab['jobalerts'] = array(
    		'name' => 'Job Alerts',
    		'icon' => 'um-faicon-exclamation',
            'custom' => true,
    	);
    
    }
    
    	return $alerttab;
    
    }
    add_action('um_profile_content_jobalerts_default', 'um_profile_content_jobalerts_default');
    function um_profile_content_jobalerts_default( $args ) {
    
    echo do_shortcode('[job_alerts]');
    
    }
    
    // Add Job Bookmarks Tab Only Shows For Candidates While Viewing Their Own Profile Page //
    
    add_filter('um_profile_tabs', 'add_custom_profile_tab8', 12 );
    	function add_custom_profile_tab8( $bookmarks ) {
    
    if ( um_is_myprofile() && ( um_user('role') == 'candidate') ) {
    
    	$bookmarks['bookmarks'] = array(
    		'name' => 'Job Bookmarks',
    		'icon' => 'um-faicon-bookmark',
            'custom' => true,
    	);
    
    }
    
    	return $bookmarks;
    
    }
    add_action('um_profile_content_bookmarks_default', 'um_profile_content_bookmarks_default');
    function um_profile_content_bookmarks_default( $args ) {
    
    echo do_shortcode('[my_bookmarks]');
    
    }
    
    // Submit Job Tab Which Only Shows For Employers While Viewing Their Own Profile Page //
    
    add_filter('um_profile_tabs', 'add_custom_profile_tab10', 3 );
    	function add_custom_profile_tab10( $postjob ) {
    
    if ( um_is_myprofile() && ( um_user('role') == 'employer') ) {
    
    	$postjob['postjobs'] = array(
    		'name' => 'Submit Job',
    		'icon' => 'um-faicon-edit',
            'custom' => true,
    	);
    
    }
    
    	return $postjob;
    
    }
    add_action('um_profile_content_postjobs_default', 'um_profile_content_postjobs_default');
    function um_profile_content_postjobs_default( $args ) {
    
    echo do_shortcode('[submit_job_form]');
    
    }
    Thread Starter imaginemonkey

    (@imaginemonkey)

    Hey Mike,

    I’ve got one more question. Since we are using UM profiles as the “company” profile instead of the company directory WPJM addon – how can I show the UM Profile’s avatar in the listing thumb?

    I’ve removed “company details” from the job submission form – and I notice now that there is no job thumbnail because there is no “company” profile field any more.

    Thread Starter imaginemonkey

    (@imaginemonkey)

    Here’s the full code for reference. In UM I had to change the box modal css from “content-box” to “border-box’ to get the data aligned properly.

    Just insert the shortcode [userjobs] on your user role form as a “shortcode” field. And then paste the following code in your functions. This will show the latest jobs from employers on their profile:

    function userjobs_shortcode( $atts ) {
    
      // Attributes
      extract( shortcode_atts(
        array(
          'userid' => um_profile_id(),
        ), $atts )
      );
    
      // Code
    global $post;
    $args = array( 'author' =>  $userid, 'post_type' => 'job_listing', 'posts_per_page' => 10, 'order'=> 'ASC', 'orderby' => 'date' );
         echo '<h2>Latest Job Openings</h2>';
    $postslist = get_posts( $args );
    foreach ( $postslist as $post ) :
      setup_postdata( $post ); ?>
        <?php get_job_manager_template_part( 'content', 'job_listing' ); ?>
    <?php
    endforeach;
    wp_reset_postdata();
    }
    add_shortcode( 'userjobs', 'userjobs_shortcode' );

    Credit for the base code (before modification) goes to these users (and Jolley for directing the OP):

    https://premium.wpmudev.org/forums/topic/get-custom-posts-type-posts-of-certain-user-and-display-them-on-his-user-profile

    Thread Starter imaginemonkey

    (@imaginemonkey)

    Ah, I got it:

    foreach ( $postslist as $post ) :
      setup_postdata( $post ); ?>
        <?php get_job_manager_template_part( 'content', 'job_listing' ); ?>
    <?php
    endforeach;

    Thanks!

    Thread Starter imaginemonkey

    (@imaginemonkey)

    Awesome, awesome.

    Looking at the code above – could you help me understand how I would call the template? Would I copy the while or just the function? And would I place it after the “foreach” in my code?

    <?php while ( $jobs->have_posts() ) : $jobs->the_post(); ?>
    					<?php get_job_manager_template_part( 'content', 'job_listing' ); ?>
    				<?php endwhile; ?>
    Thread Starter imaginemonkey

    (@imaginemonkey)

    Thank you!

    What would be the function to call if I wanted to display the jobs image, the job type, and if it’s still open or filled? Similar to the information displayed in the [jobs] shortcode.

    Do you have documentation where I could find these?

    Thread Starter imaginemonkey

    (@imaginemonkey)

    Hey,

    Thanks for the feedback.

    So, after messing around last night, and using the UM API to reference profile ID’s, I was able to add some code to my functions PHP file which displays a users recent job listings on their profile page via a shortcode placed on the profile form.

    Referencing the author ID didn’t work because UM works by inserting its core profile shortcode on a page (similar to how you display jobs on a pre-made page with a shortcode). So, when I tried to reference the specific user on the profile being viewed, it would show jobs being called for the author of the page itself (who created it) instead of the UM profile ID.

    View post on imgur.com

    function userjobs_shortcode( $atts ) {
    
      // Attributes
      extract( shortcode_atts(
        array(
          'userid' => um_profile_id(),
        ), $atts )
      );
    
      // Code
    global $post;
    $args = array( 'author' =>  $userid, 'post_type' => 'job_listing', 'posts_per_page' => 10, 'order'=> 'ASC', 'orderby' => 'date' );
    $postslist = get_posts( $args );
    foreach ( $postslist as $post ) :
      setup_postdata( $post ); ?>
        <div>
        <?php the_date(); ?>
        <br />
        <?php the_shortlink(__(get_the_title())); ?>
        <?php the_excerpt(); ?>
      </div>
    <?php
    endforeach;
    wp_reset_postdata();
    }
    add_shortcode( 'userjobs', 'userjobs_shortcode' );
    Thread Starter imaginemonkey

    (@imaginemonkey)

    Awesome, thanks! Love the quick feedback, and the fact that you actually support this!

    I actually have the exact opposite issue as you, hahaha!

    I have one attribute “monitors” that will show the correct number of products assigned to it, but when you filter that attribute it will only show 1 monitor. I have tried everything, but unfortunately it doesn’t appear that this product is supported any longer by the development team.

    Thread Starter imaginemonkey

    (@imaginemonkey)

    And by “installed the plugin” – I am referring to the GA Dashboard Widget (not WL branding).

    So… once I installed the GA dashboard widget, any NEW administrators added to account cannot see it.

Viewing 15 replies - 31 through 45 (of 46 total)