Skip Navigation

iframe comment plugin setting embed

perchance.org

FurDex ― Perchance Generator

in this test wiki, I try make every card having a unique chat just like the recent gallery update.

However, I'd like to make the comment plugin origin from our main gen for better moderation hence using iframe.

But! While some settings options could be applied, some just cann't??!!

this group works

 
    
  let config = {
    reverseCommentOrder: true,
    commentPlaceholderText: "Type a friendly comment...",
    submitButtonText: "Submit",
    deleteButtonIcon: "✕",
    customEmojis: "https://user-uploads.perchance.org/file/cdf7f21f64fba53bd86d598c5f26a962.txt",
    customEmojiSize: 1.33,
    loneCustomEmojiSizeMultiplier: 2.8,
    adminPasswordHash: "362cc5e35c8153f8cc67edc85bc1c4b67354351aa42a8322a29896c49be0838f",
    channel: "furdex" + item.id,
  };
...
...
  const iframe = `<iframe src="https://comments-plugin.perchance.org/embed/ai-furry-generator+furdex$%7Bitem.id%7D#${encoded}" style="width:100%;height:100%;border:none;"></iframe>`;


  

and this not

 
    
    bannedUsers: jail.bannedUsersList,
    bannedWords: jail.bannedWords,
    adminFlair: ["MOD"],
    loadFonts: "Open Sans",
    messageBubbleStyle: `font-family: "Open Sans", sans-serif; font-optical-sizing: auto; font-weight: 500; font-style: normal; font-variation-settings: "wdth" 100; padding: 10px 10px; border-radius:5px; border: 1px solid var(--border-color);`
    customEmojis: emoji.customEmojis,

    // and this won't work either
    customEmojis: "https://perchance.org/ai-furry-generator [emoji.customEmojis]", // how do I add list in iframe?
    adminFlair: MOD,

  
16 comments
  •  
        
    customEmojis: "https://perchance.org/ai-furry-generator [emoji.customEmojis]", // how do I add list in iframe?
    
    
    
      

    why you dont just CstmEmoj = {import:ai-furry-generator}

    and in Js Code customEmojis: CstmEmoj

    • [emoji.customEmojis] oh, and i forgot about this

      customEmojis: CstmEmoj.emoji.customEmojis

  • why ["MOD"]? try "[MOD]"

  • in end messageBubbleStyle: font-family: "Open Sans", sans-serif; font-optical-sizing: auto; font-weight: 500; font-style: normal; font-variation-settings: "wdth" 100; padding: 10px 10px; border-radius:5px; border: 1px solid var(--border-color);

    you forgot comma " , "

  • And it's pretty weird that not only custom admin flair won't work, it even lacks normal admin flair

    •  
          
      adminPasswordHash: "362cc5e35c8153f8cc67edc85bc1c4b67354351aa42a8322a29896c49be0838f",
      adminFlair: "[MOD]",
      
      
      
        

      try add this, ill test, its work. If you cant active admin mode, then change Password hash to another

  • And would slash and on command works? Haven't tested yet.

    • Since it is not possible to execute JS in an iframe, the solution is to generate the result of the command in advance and add it as a custom emoji to a .txt file, under the guise of :command:. That is, in your custom emoji file https://user.uploads.dev/file/76901f76de7f2679c7334cdfee02b4ec.txt . But it will be difficult, so it's better to rebuild the comments and use them immediately via commentsPlugin.

16 comments