WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Moderation
How can I remove the span tag around the flag button for updates in (2 posts)

  1. Jon Hardison
    Member
    Posted 1 year ago #

    Hi:
    I'm using a theme that has styles applied directly to div.activity-meta. When I enable your plugin, I'm seeing the button, but not the text because you've included a span tag.

    Is there a way I can remove that span tag? Just not sure where to look for it.

    Thanx for your help. :-)
    Jon-

    PS - Great Plug-in. Exactly what I needed. ;-)

    http://wordpress.org/extend/plugins/bp-moderation/

  2. webwarrior.wng
    Member
    Posted 1 year ago #

    I want to show the Flag button to the current user even he/she is not an admin. I tried with generate_link($args) function but i don't know where i am doing wrong. Please Help Me Anyone...!
    the code is printing on the current user's post as i need but why the button is not coming.

    Here is the Code:

    if ($args) {				
    
    		global $activities_template;
    		$current_user = wp_get_current_user();
    		$act_UID=$activities_template->activity->user_id;
    			if($act_UID== $current_user->ID)
    			{
    				//echo $this->generate_link($args);
    				echo 'Flag must be here as "generate_link($args)" function has been called ...';
    			}
    
    		}

    Thanks

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum's parser.]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic