• Resolved morgenmedia

    (@morgenmedia)


    I’ve created a simple solution to exclude albums as “profile pictures”. Just replace this in albums.php:

    if(rowItemscnt==4){
    			curhtml +="<div class=\"threecol\"><a class=\"albumlink\" href=\""+photoslink+ "\" ><div class=\"albumthumb\" style=\"background-image: url("+ imgsrc +") \" /></div></a><br/><a class=\"albumlinktitle\"  href=\""+photoslink+ "\">"+ albumname +"</a></div> <!-- last col -->";
    			curhtml += "  <!-- End Row Loop-->" ;
    			// output row
    			addhtml(curhtml);
    			 curhtml ="";
    			rowItemscnt = 0;
    
    }else{
    			curhtml +="<div class=\"threecol\"><a class=\"albumlink\"  href=\""+photoslink+ "\" ><div class=\"albumthumb\" style=\"background-image: url("+ imgsrc +") \" /></div></a><br/><a class=\"albumlinktitle\"  href=\""+photoslink+ "\">"+ albumname +"</a></div>";
    }

    With this:

    if(data.data[i].name != "Profile Pictures"){
    	//print output
    	if(rowItemscnt==4){
    				curhtml +="<div class=\"threecol\"><a class=\"albumlink\" href=\""+photoslink+ "\" ><div class=\"albumthumb\" style=\"background-image: url("+ imgsrc +") \" /></div></a><br/><a class=\"albumlinktitle\"  href=\""+photoslink+ "\">"+ albumname +"</a></div> <!-- last col -->";
    				curhtml += "  <!-- End Row Loop-->" ;
    				// output row
    				addhtml(curhtml);
    				 curhtml ="";
    				rowItemscnt = 0;
    
    	}else{
    				curhtml +="<div class=\"threecol\"><a class=\"albumlink\"  href=\""+photoslink+ "\" ><div class=\"albumthumb\" style=\"background-image: url("+ imgsrc +") \" /></div></a><br/><a class=\"albumlinktitle\"  href=\""+photoslink+ "\">"+ albumname +"</a></div>";
    	}
    }

    Just add the album name you want to exclude to: if(data.data[i].name != “Profile Pictures”). In this case i’ve excluded the profile picture album but you can use every album name.

    It’s not a great solution but it works! 🙂

    https://ww.wp.xz.cn/plugins/facebook-album-sync/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Solution to exclude albums’ is closed to new replies.