Manibuntu
Forum Replies Created
-
Hello, I get a white blank a page (only 1 page) in edit mode.
I solved this by addingdefine( 'WP_MEMORY_LIMIT', '256M' );in wp-config.phpMaybe that can help you
Forum: Plugins
In reply to: [Bp Force Profile] Infinite Loop after 4.3 UpdateHi 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 = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];BY :
if(is_ssl()){ $current_url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; }else{ $current_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; }Now the code detect if we are in https or not and use the good protocol !
Forum: Plugins
In reply to: [Favorites] Display Favorites btn beside each favorited postthen i call it from templete by :
getDownloadFavoritesList();Forum: Plugins
In reply to: [Favorites] Display Favorites btn beside each favorited postHey 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