1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Template problem

Discussion in 'Styling and Customization Questions' started by madmartigan, Mar 19, 2012.

  1. madmartigan

    madmartigan Active Member

    I wrote wrong i mean how can i add a box to the sidebar i have a teamspeak module i wanna know how i can put this module in a box?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    madmartigan likes this.
  3. madmartigan

    madmartigan Active Member

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    What is the teamspeak code that you have? If it's HTML or javascript code then you can paste it into the template.
     
  5. madmartigan

    madmartigan Active Member

    Its html i dont get a box when i paste the code in to forum_list
     
  6. borbole

    borbole Well-Known Member

    Where do you want it to appear and can you post the html code?
     
  7. madmartigan

    madmartigan Active Member

    I want it to appear on the sidebar i had it working before i uppdated but i dont remember how i got it working.
    It gets vissible but i dont get the box around it on the sidebar.

    Here it is:

    Code:
    <span id="its882631"><a href="http://www.instantteamspeak.com/">teamspeak server</a> Hosting by InstantTeamSpeak.com</span><script type="text/javascript" src="http://view.light-speed.com/teamspeak3.php?IP=ts3.northland-gaming.com&PORT=10547&QUERY=9994&UID=882631&display=block&font=11px&background=transparent&server_info_background=%23D8D8D8&server_info_text=%23000000&server_name_background=transparent&server_name_text=%23000000&info_background=transparent&channel_background=transparent&channel_text=%23000000&username_background=transparent&username_text=%23FF0000"></script>
     
  8. borbole

    borbole Well-Known Member


    I take it that you already know where to place the code. Try this:

    HTML:
    <div class="section visitorPanel">
        <div class="secondaryContent">
            <div class="visitorText">
                <h3>Teamspeak</h3>   
                    <span id="its882631"><a href="http://www.instantteamspeak.com/">teamspeak server</a> Hosting by InstantTeamSpeak.com</span><script type="text/javascript" src="http://view.light-speed.com/teamspeak3.php?IP=ts3.northland-gaming.com&PORT=10547&QUERY=9994&UID=882631&display=block&font=11px&background=transparent&server_info_background=%23D8D8D8&server_info_text=%23000000&server_name_background=transparent&server_name_text=%23000000&info_background=transparent&channel_background=transparent&channel_text=%23000000&username_background=transparent&username_text=%23FF0000"></script>
            </div>
       
        </div>
    </div>
    The title of the box is harcoded. You can also use a language phrase if you want. By replacing:

    HTML:
    <h3>Teamspeak</h3>
    with:

    HTML:
    <h3>{xen:phrase teamspeak_title}</h3>
    Then create the teamspeak_title phrase and give it whatver value you want. You can change the name of the phrase if you want as well. That was as an example.
     
    madmartigan likes this.
  9. madmartigan

    madmartigan Active Member

    Thank you verry much =)
     
    borbole likes this.
  10. borbole

    borbole Well-Known Member

    You are welcome :)
     

Share This Page