|
Reid
|
Jan 23 2010, 01:01 AM
Post #1
|
È una trappola!
- Posts:
- 6,767
- Group:
- Developer
- Member
- #223,645
- Joined:
- October 30, 2006
- I'm Browsing With
- Firefox
|
This topic has been moved from our official support board.
Originally posted by: GrandTheftGamer - [CX
-
Radio X v1.0] Radio X v1.0What 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: testFeatures: Currently, there are 28 stations spanning across 9 music genres. Installation Instructions:
- Log into your Admin CP and go to the Board Wrappers area under the Skinning & Styles section.
- 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>
- 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.
|