Read the statement by Michael Teeuw here.
Inserting a script output into the compliments module
-
I’ve have a javascript file that checks the date to display a certain message and if the date doesn’t match will output a random quote I have in an array. At the at moment I have that working ok but i’m stuck on how to take the var it has and put that in the module. I’m thinking that I could possibly add the anytime array into that java file for the remote file to pull it from it but I’m not sure if this would work
{ "anytime" : [ text ],with the var=text
Also i’m not sure if it would refresh throughout the day like the normal compliments do.Would anyone mind giving me some advice? Thank you
-
So i was rereading the wiki and noticed the remote file needs to be in .json format while the script is in .js. I’m sure that will make things more difficult
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login