The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Problem with using CSS stylesheet.

    avatar
    yuriko
    New Member


    Posts : 2
    Reputation : 1
    Language : English, Japanese, Cantonese, Chinese

    Solved Problem with using CSS stylesheet.

    Post by yuriko 23.06.15 6:36

    Technical Details

    Forum version : #phpBB3
    Position : Founder
    Concerned browser(s) : Google Chrome
    Who the problem concerns : Yourself
    Forum link : http://yuri-village.fengbb.com/

    Description of problem

    I saw the post in this forum, about how to personalize chatbox.
    URL: CLICK HERE!
    I decided to add these function to my chatbox in the forum so I followed the steps instructed.

    But where should I paste the code in? ( I mean which position in the CSS stylesheet )

    I need help...

    Let's take an example, I want to "Add a message on login"

    Code:
    $(window).load(function() {
      var chatbox_script = function() {
        $('#chatbox_option_co').click(function(){
          $('#chatbox').addClass('recently-connected');
          setTimeout(function(){ $('#chatbox').removeClass('recently-connected') }, 60000)
        })
      };
      var s=document.createElement('script');s.text="("+chatbox_script.toString()+")();";$('object[data^="/chatbox/index.forum"],iframe[src^="/chatbox/index.forum"]').each(function(){try{$(this.contentDocument||this.contentWindow.document).find("#chatbox").closest("html").find("head").first().each(function(){this.appendChild(s.cloneNode(true))})}catch(a){}})
    });
    Code:
    #chatbox.recently-connected:after {
      font-family: "trebuchet ms", serif;
      font-size: 1.5em; line-height:1.5em; font-weight: bold; color: #8BC34A;
      box-shadow:0 0 5px #AED581; display:block; background: #F1F8E9; margin:auto;
      width:80%; margin:1.5% auto; padding:1%; white-space: pre;
      content: "Welcome to the chatbox =D \a If you are alone, place a log on the fire.";
    }


    CLICK HERE!

    What should I do to add this function to my chatbox?


    Last edited by yuriko on 26.06.15 19:41; edited 1 time in total
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Problem with using CSS stylesheet.

    Post by SLGray 23.06.15 20:21

    The first  code is a JavaScript code:  AP > Modules > HTML/JavaScript > JacvaScript Management.



    Problem with using CSS stylesheet. Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    yuriko
    New Member


    Posts : 2
    Reputation : 1
    Language : English, Japanese, Cantonese, Chinese

    Solved Re: Problem with using CSS stylesheet.

    Post by yuriko 26.06.15 19:41

    Thank you. I know what to do now ^^
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19327
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Problem with using CSS stylesheet.

    Post by Ape 27.06.15 2:37

    Topic solved and archived



    Problem with using CSS stylesheet. Left1212Problem with using CSS stylesheet. Center11Problem with using CSS stylesheet. Right112
    Problem with using CSS stylesheet. Ape_b110
    Problem with using CSS stylesheet. Ape1010

      Current date/time is 23.09.24 17:31