Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • Code University
  • [ZB] Editting a script from a friend
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
[ZB] Editting a script from a friend; Shoutbox
Tweet Topic Started: Mar 21 2009, 06:42 PM (437 Views)
Kevin Mar 27 2009, 10:23 PM Post #11
Member Avatar


Posts:
700
Group:
Former Staff
Member
#8
Joined:
Jul 2, 2008
Coding language
HTML/CSS
http://www.staredit.net/topic/6676/

I'm assuming that's the topic you got it from. If so, then I know why it isn't working.

What he provided you with isn't a code for a full shoutbox, it's a code that only shows something if the user is logged in. In the code, where it says "Enter Your Code Here!", that's where the shoutbox script would have to go. So you would need to get one from somewhere else, and put the code for it there.
Posted Image
Offline Profile Goto Top
 
DaMeiN Mar 27 2009, 10:40 PM Post #12
Member Avatar
Oo.SpawN.oO

Posts:
204
Group:
Member
Member
#2,589
Joined:
Mar 16, 2009
Coding language
HTML/CSS
Yeah, thats the one.

Do you know where I can get a said code?

If you mean something such as Shoutmix.net or something then please confirm.

Thanks either way :)

*** EDIT ***

If this is indeed what you meant, this is what I added to the code. Which did not do anything different.

( Inside Spoiler is the code )

Spoiler: click to toggle

Code:
 

<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<th align="center" width="2%" class='titlemedium'><img src="http://i6.ifrm.com/style_images/1/spacer.gif" alt="" width="28" height="1" /></th>
<th align="left" width="100%" class='titlemedium'>Shoutbox</th>
</tr> <tr>
<td class="row4" align="center"> </td>

<td class="row4"><b>
<script>
a = document.getElementById("top_info");
if (a.innerHTML.match("Guest")){
document.write("<B>You are not allowed to view the shoutbox.</b>");
}
else document.write("<!-- Begin ShoutMix - http://www.shoutmix.com -->
<iframe title="SniperForums" src="http://www5.shoutmix.com/?SniperForums" width="160" height="400" frameborder="0" scrolling="auto">
<a href="http://www5.shoutmix.com/?SniperForums">View shoutbox</a>
</iframe>
<br /><a href="http://www.shoutmix.com" title="Get your own free shoutbox chat widget at ShoutMix!">ShoutMix chat widget</a><br />
<!-- End ShoutMix -->");
</script><BR>
<form method="post">
<input type="button" value="Refresh"
onclick="window.location.reload()">
</form>
<br /><span class='desc'></span></td>
</tr> <tr>
<td class='darkrow2' colspan="5"> ZB Shout Center created by: <a href='http://www.youscripting.info'/>Fierce</a></td>
</tr>
<td class='darkrow3' colspan="5"><center>
<script type="text/javascript">
a = document.getElementById("userlinks");
b = a.getElementsByTagName("A");
for (i=0;i<b.length;i++)
if (b[i].href.match("admin")){
document.write("<a href='http://s15.zetaboards.com/Sniper_League/index/'/>Admin Login</a>")
}
</script>
</center></td>
</tr>
</table>
Edited by DaMeiN, Mar 27 2009, 10:46 PM.
Posted Image

† You fall to your knees, you beg you plead. Can I be someone else, for all the times I hate myself.. †
† You refuse to bend, so I keep bending until I break... †
Offline Profile Goto Top
 
HolySavior Mar 28 2009, 12:02 AM Post #13
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
oh man... this is a mess lol. when i have some time i will see what i can do.

silly third rate wanna be coders... :P
Offline Profile Goto Top
 
DaMeiN Mar 28 2009, 01:03 AM Post #14
Member Avatar
Oo.SpawN.oO

Posts:
204
Group:
Member
Member
#2,589
Joined:
Mar 16, 2009
Coding language
HTML/CSS
Lol, okay. Thanks :)
Posted Image

† You fall to your knees, you beg you plead. Can I be someone else, for all the times I hate myself.. †
† You refuse to bend, so I keep bending until I break... †
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code University · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 7:48 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy