FANDOM

A FANDOM user
  Loading editor
  • Hi, sorry to bug you, but you seem to be the only person that knows how that template works. I recently made a wiki and I want to add the show/hide feature - I copied the one we use on another wiki to mine  but is not working at all. I see all this talk about js and css but I have no clue what to change there, or if I'm missing something else. Hope you can help me out. Thank you.

      Loading editor
  • Hey, I saw your message here that you are unable to create a new thread in the forums. Are you still having this issue? What happens when you click on the Preview or Post button? Or are the buttons grayed-out (disabled) and it won't let you click on them?

    -- if the buttons are grayed-out, make sure you are filling in the body of the message, not just the title part. The buttons are initially grayed-out until you've typed at least 1 letter into the body of the message (to prevent people from posting blank messages on accident or as spam). Here's a picture:

    Start a discussion example

      Loading editor
  • Here's some JS you can use if you like.

    $( hideComments( ["Ralok"], "(spam)" ) );
    
    function hideComments(usernameList, replacementText) {
        var comments = $('.article-comm-text');
        var numComments = comments.size();
        var numUsers = usernameList.length;
        for (var i = 0; i < numComments; i++) {
            for (var j = 0; j < numUsers; j++) {
                if ($(comments[i].parentNode.parentNode).attr('data-user') === usernameList[j]) {
                    comments[i].innerHTML = '<p>' + replacementText + '</p>';
                }
            }
        }
    }
    

    The first parameter is an array of usernames whose comments you'd like to hide. E.g. ["Ralok", "User2", "Somebody else"].

    The second parameter is the replacement text: "(spam)"

    Per your earlier request.

      Loading editor
    • A FANDOM user
        Loading editor
  • New test.

      Loading editor
    • OK. It looks like it is threaded. Where is the editing toolbar? Do wikilinks work? User:Timeshifter

        Loading editor
    • It looks like wiki links work. I think regular talk pages are much better. Toolbar, complex multi-threaded indentation, image sizing and placement is easier, image floats, and much more. Can't illustrate and discuss problems well with this.

        Loading editor
    • A FANDOM user
        Loading editor
  • Testing.

      Loading editor
See archived talk page
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.