@CyanKali It should have replace all compliment. At that particular date.
well, yesterday was the 26 right ? you let the 27 so I guess it just wasn’t the rigth date to activate.
Try changing the date. (well, today must be the 27 so It should work today ahah).
@pauabaer you could use the compliment module. add the thing I had and then go on the config.js file and replace all the compliments by empty strings so it will display nothing when not the date
{
module: "compliments",
position: "lower_third",
header: "",
config: {
compliments: {
anytime: [ "" ],
morning: [ "" ],
afternoon: [ "" ],
evening: [ "" ]
}
}
},
Or you could change the code so the module hide itself when the date isn’t right
// Override dom generator.
getDom: function() {
var complimentText = this.randomCompliment();
if (moment().format('MMM D') == 'Apr 27')
{
this.show();
complimentText = "Happy birthday"
}
else
this.hide();
var compliment = document.createTextNode(complimentText);
var wrapper = document.createElement("div");
wrapper.className = this.config.classes ? this.config.classes : "thin xlarge bright";
wrapper.appendChild(compliment);
return wrapper;
},