Support » Plugin: WP-UserOnline » shortcode any widget and WP-UserOnline

  • HI

    How to find the id ?
    Image attach http://img11.hostingpics.net/pics/638623201701170015.png

    Install the plugin – amr shortcode any widget and WP-UserOnline

    For me the integral; shortcode in my functions.php
    The shortcode here does not work

    add_action('asgarosforum_statistics_custom_element', 'my_function_footer', 10, 1);
    function my_function_footer() {
    echo '<div class="af-topic-icons">'.do_shortcode('[do_widget id=useronline-4]').'</div>';  
    }

    The shortcode here does not work
    [do_widget id=useronline-4] – replace ?

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • It does not work
    Image attached?
    http://img11.hostingpics.net/pics/780191201701160135.png

    • This reply was modified 2 years, 4 months ago by  kingteamdunet. Reason: edit

    Hello,

    Need help that can

    Thank you

    Hi,

    Need help, and like that?
    To see who is online

    add_action('asgarosforum_statistics_custom_element', 'my_function_footer', 10, 1);
    function my_function_footer() {
    	?>
    	<?php if (function_exists('get_most_users_online')): ?>
            <div class="statistics-element">
    		    <div class="element-number dashicons-before dashicons-groups"><?php echo get_most_users_online(); ?></div><div class="element-name">Utilisateur en ligne</div></div>
        <?php endif;
    }

    Thank you

    Hi,

    I would like to display?
    There are currently 1 user online: 0 Members, 0 Guests and 0 Bots.
    Not found for Guests and Bots
    Need a helping hand I’m not a developer, I’m a beginner I’m learning

    add_action('asgarosforum_statistics_custom_element', 'my_function_footer', 10, 1);
    function my_function_footer() {
    	?>
    	<?php if (function_exists('get_most_users_online')): ?>
    	<div id="statistics">
    	    <div id="statistics-header">
    		    <strong class="dashicons-before dashicons-chart-line">Qui est en ligne</strong>
    		</div>
            <div id="statistics-body">
    		    <div class="statistics-element">
    		        <div class="element-number dashicons-before dashicons-groups">
    				Il y a <?php echo get_users_online_count(); ?>					
    				</div>
    				<div class="element-name">
    				Utilisateur en ligne actuellement
    				</div>
    			</div>		
    		    <div class="statistics-element">
    		        <div class="element-number dashicons-before dashicons-groups">
    				    <?php echo get_users_online_count(); ?>					
    				</div>
    				<div class="element-name">
    				Membres en ligne
    				</div>
    			</div>
    		    <div class="statistics-element">
    		        <div class="element-number dashicons-before dashicons-groups">
    				   	<?php echo get_users_online_count(); ?>				
    				</div>
    				<div class="element-name">
    				Invités en ligne
    				</div>
    			</div>
    		    <div class="statistics-element">
    		        <div class="element-number dashicons-before dashicons-groups">
    				    <?php echo get_users_online_count(); ?>					
    				</div>
    				<div class="element-name">
    				Bots en ligne
    				</div>
    			</div>			
    		</div>
    	</div>	
        <?php endif;
    }
    
    add_action('asgarosforum_after_post_author', 'my_function', 10, 1);

    Thank you

    Hello,

    Would it be possible to have the php code to display
    Online Guests and Bots Online
    The code here <?php echo get_users_online_count(); ?> only displays Members online

    Thank you

    Hello,

    I’m still waiting for a developer’s response.

    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘shortcode any widget and WP-UserOnline’ is closed to new replies.