We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[CX] Radio X v1.0; By GrandTheftGamer
Topic Started: Jan 23 2010, 01:01 AM (105 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: GrandTheftGamer
[CX
 
Radio X v1.0]Radio X v1.0


What Is It?: Radio X is a code that allows forum users to play various radio stations that can be found on the web.

Preview: http://z10.invisionfree.com/PopeMan_Produc...x.php?act=radio
Username and password are both: test

Features: Currently, there are 28 stations spanning across 9 music genres.

Installation Instructions:

  1. Log into your Admin CP and go to the Board Wrappers area under the Skinning & Styles section.
  2. In the Header & Body section, find:
    Code:
     

    <% BOARD %>


    ABOVE that, add:

    Code:
     

    <script>
    function getu()
    {
    if(document.getElementById('userlinks').innerHTML.match('Logged in as:'))
    {
    get=document.getElementById('userlinks').rows[0].cells[0]
    user=get.getElementsByTagName('a')[0].innerHTML
    return user
    }
    else
    {
    user="Guest"
    return user
    }
    }
    if (location.href.indexOf("act=radio") != -1) {
    document.write('<div style="display:none">')
    }
    </script>


  3. Under the <% BOARD %> tag, add:

    Quote:
     
    <script>
    /*
    Adding NaviBar Links
    By Webworldx
    */
    var aLink=new Array()
    aLink[0]='<img src="http://radiox.commx.info/1/radiox.png" border="0" alt="" /> <a href="http://z10.invisionfree.com/PopeMan_Productions/index.php?act=radio">Radio</a>'

    var uCell = document.getElementsByTagName('TD')
    for (i=0;i<uCell.length;i++){
    if (uCell.align=="right" && uCell.innerHTML.match("act=calendar") && uCell.innerHTML.match("act=Help")){
    var addLink=""
    for (j=0;j<aLink.length;j++){
    addLink+=aLink[j]+" "
    }

    uCell.innerHTML=addLink+uCell.innerHTML
    }}
    </script>
    <script>
    username=getu()
    if (location.href.indexOf("act=radio") != -1)
    {
    if(username != "Guest")
    {
    navstrip.innerHTML+="-> <b><a href='http://z10.invisionfree.com/PopeMan_Productions/index.php?act=radio'>Radio</a></b>"
    document.write('</div>');
    document.write('<center><iframe frameborder=0 src="http://radiox.commx.info/1/');
    document.write('" height=900 width=100%></iframe></center>');
    }
    if(username=="Guest")
    {
    document.write('</div>');
    document.write('<div class="tableborder"><div class="maintitle">Not Allowed</div><div class="tablepad"><center>Sorry, guests are not allowed to use the radio.<br>Please login to view the radio.</center></div></div>');
    document.write('<br>');
    }
    }
    </script>

Anything in bold should be changed to your forum URL address.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply