Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Hi there,

    this is how i fix the problem for my website :
    (i’ve rewrite a part of plugin )

    Edit file bp-fp-loader.php :

    Replace :
    $current_url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

    BY :

    if(is_ssl()){
    			$current_url  = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    		}else{
    			$current_url  = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    		}

    Now the code detect if we are in https or not and use the good protocol !

    then i call it from templete by :

    getDownloadFavoritesList();

    Hey i’m looking for very similar thing.
    I would like to add a button to each line to give delete capacity.

    this what i use :

    /************************************************
     Retourne la liste HTML des favoris pour l'utilisateur courant
    ************************************************/
    function getDownloadFavoritesList()
    	{
    
    		// recupere la list des posts marqué comme favoris
    		$posts_id = get_user_favorites($user_id = null, $site_id = null, $filters = null);
    
    		$out = '<ul class="">';
    		// boucle la liste des posts
    		foreach($posts_id as $post_id){
    				$out .= '<li> <a href="' . get_permalink($post_id) . '">'.get_the_title($post_id).'</a> <a href="#">X</a></li>';
    		}
    		$out .= '</ul>';
    
    		echo $out;
    	}

    But i didn’t find how attach delete action on the link X

Viewing 3 replies - 16 through 18 (of 18 total)