Welcome Guest [Log In] [Register]
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
[CODE] Shout X v2.0!
Topic Started: Nov 27 2006, 09:19 AM (3,506 Views)
Hendrick
Member Avatar
†Found the point of Life†
 *   *   *   *  
Shout X v2.0![/color]
Automated PHP[/color]


Preview:
Code on Support Forum
Admin CP

Note: Due to bandwidth issues, you must have 25 post in our forum before you can activate your shoutbox. You can install this if you wish, but it will not work unless you have 25 post on our forum.

To Upgrade, read the SECOND post!

Ok, the features:

Quote:
 



  • Automated!


  • ACP


  • The ability to ban members.


  • Emotions and BB Code


  • Automatically gets the username.


  • Colored User Names




Now, to install. Only a few, simple steps!

First, lets register your Shout Box! Your shout box needs to be on our server, so you can have your own unique Shout Box!
Register Your Shout Box
Fill out that forum, and then your step one is complete!


Ok, now, off to step two, the installing it to your forum!

First, log into your Admin CP.
Then, go to your Board Wraps. In the header and Body section, find:
Code:
 

<% BOARD %>


Below that, add this:
Quote:
 

<script>
var iSpan = document.createElement('SPAN')
iSpan.innerHTML = "&nbsp;• <a href='http://shoutx.commx.info/2/admin/index.php' target='_blank'><b>Shout CP</b></a>"
if(document.getElementById('userlinks').innerHTML.match(/admin cp/i) != null){
var e = document.getElementById('userlinks').getElementsByTagName('TD')[0];
e.insertBefore( iSpan ,e.childNodes[e.childNodes.length-1]);
}
</script>


No editing is needed in the above part.


Now, find:
Code:
 

<% BOARD HEADER %>


Below that, add:

Quote:
 

<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
}
}
</script>

<div class="tableborder">
  <div class='maintitle' align='left'><img src='http://209.85.62.23/style_images/1/nav_m.gif' border='0' alt='' width='8' height='8'>&nbsp;<!---Notice  Removing the copyright, (what is next) is against the law, and can be pursicuted in the Court of Law in the United States.  It can result in a fine, or even jail time--><a href="http://commx.info/">Shout X</a><!---End Copyright--></div>
      <table width="100%" border="0" cellspacing="1" cellpadding="4">
        <tr>
          <th align="left" width="100%" class='titlemedium'>&nbsp;</th>
        </tr>        <tr>
          <td class="row4" align="center"><script>
username=getu();
{
if(username != "Guest")
{
document.write('<center><iframe frameborder=0 src="http://shoutx.commx.info/2/index.php?b=Account&u=');
document.write(username);
document.write('" scrolling="no" height=170 width=100%></iframe></center>');
}
if(username=="Guest")
{
document.write('Sorry.  Guest cannot view the shoutbox.');
}
}
</script></td><tr>
          <td class='darkrow2' colspan="5">&nbsp;</td>
        </tr>
      </table>
</div>


Ok, so, now you have to change a few things.

Change the green to the name you registered on the register page.

Now hit edit, and you are done! Enjoy.

Official support forum.
Communications X Forum
Offline Profile Quote Post Goto Top
 
Hendrick
Member Avatar
†Found the point of Life†
 *   *   *   *  
Ok, once you do this, you can NOT undo this.

First, log into this ACP:

http://shoutx.commx.info/2/admin/


Second, go to your board wrappers.

Find:

Code:
 
<a href='http://shoutx.commx.info/admin/index.php' target='_blank'><b>Shout CP</b>


Change too:

Code:
 
<a href='http://shoutx.commx.info/2/admin/index.php' target='_blank'><b>Shout CP</b>


Now find:

Code:
 
document.write('<center><iframe frameborder=0 src="http://shoutx.commx.info/index.php?b=


Change to:

Code:
 
document.write('<center><iframe frameborder=0 src="http://shoutx.commx.info/2/index.php?b=


Your done!
Offline Profile Quote Post Goto Top
 
Mysticwizard2005
Member Avatar
Graphics Wizard
 *   *   *   *  
I like this alot but is there a way to make it collapsable? and have it remembered with cookies?
Offline Profile Quote Post Goto Top
 
Death_to_Varden
Member
 *   *  
This code gave me nothing but problems :(
Offline Profile Quote Post Goto Top
 
giantcomet4
Member
 *   *  
It is a wonderful code. Love it. Works fine however, sometimes I get this error:

Warning: mysql_connect() [function.mysql-connect]: Too many connections in /home/arcadex/public_html/shoutx/2/database.php on line 2
I cannot connect to the database because: Too many connections

I am guessing it is because the server is being overloaded.
Not sure if you can fix it or not.

I can live with it though :)
Offline Profile Quote Post Goto Top
 
AllCriedOut
Member
 *   *  
Yusshhh! Hopefully it works with [URL Removed due to previous spamming] now. Hey, do you ever think you'll be able to create a shop for IF like the one on your forum (I know it's an IPB fourm)?
Offline Profile Quote Post Goto Top
 
Death_to_Varden
Member
 *   *  
giantcomet4
November 27, 2006 03:13 PM
It is a wonderful code. Love it. Works fine however, sometimes I get this error:

Warning: mysql_connect() [function.mysql-connect]: Too many connections in /home/arcadex/public_html/shoutx/2/database.php on line 2
I cannot connect to the database because: Too many connections

I am guessing it is because the server is being overloaded.
Not sure if you can fix it or not.

I can live with it though :)

It gives me that warning all the time. And it adds /////////////////////////////////////// After a wole bunch of peoples names and eventually stopped working period... -_- -_- -_- I enjoyed it while it worked though...
Offline Profile Quote Post Goto Top
 
Hendrick
Member Avatar
†Found the point of Life†
 *   *   *   *  
Mysticwizard2005- Maybe on the next version. About cookies, I believe thats how I coded this one (rather than sessions.)

giantcomet4- Sorry about that. Had a little issue with the SQL. All should be fine now though!

AllCriedOut- Zetaboards is supposed to have it's own shop. Really no point to code one for now... It would just get replaced with ZB
Offline Profile Quote Post Goto Top
 
giantcomet4
Member
 *   *  
Hendrick
November 28, 2006 08:48 AM
giantcomet4- Sorry about that. Had a little issue with the SQL. All should be fine now though!


Thanks :D
Didn't know it could be fixed
Offline Profile Quote Post Goto Top
 
Mysticwizard2005
Member Avatar
Graphics Wizard
 *   *   *   *  
Hendrick
November 28, 2006 08:48 AM
Mysticwizard2005- Maybe on the next version. About cookies, I believe thats how I coded this one (rather than sessions.)

I'll be watching for the next version. I'm doing testing on my test site. Making sure there is no bugs before I replace my cbox shoutbox.

Now the big question. Do you mind if I play with the code and try to add a cookie remembered Collapse for it? Please PM me the answer. Thanks.

Again Great code mate. Keep up the fantastic work. :)
Offline Profile Quote Post Goto Top
 
Physical Poetess
Member Avatar
Member
 *   *  
Great code! Very newbie friendly. Is there anyway the shoutbox can be moved to the portal? :rofl:
Offline Profile Quote Post Goto Top
 
Shadow of Nobody
Member Avatar
Your eyes cant lie
 *   *   *  
Does this have a word filter?
Offline Profile Quote Post Goto Top
 
marc29
Mr. Z
 *   *  
i forgot my password for the first shoutbox. when i register for this one it say that my shoutbox is already registered to that forum. how can i delete my old account on shout Xv.1?


The bad word filter does not work.
Offline Profile Quote Post Goto Top
 
marc29
Mr. Z
 *   *  
wow i install the code. it works for about an hour. then once my member come on my site, the shoutbox crashes. It now can't be displayed.
Offline Profile Quote Post Goto Top
 
Hendrick
Member Avatar
†Found the point of Life†
 *   *   *   *  
Mysticwizard2005- Feel free if you wish. Just don't take out the text in the main title part, that says Shout X. It's the only copyright, and for how much bandwidth this code takes up (Almost as much as the arcade, and that says something,) we at least want people to visit our site every now and then.

Physical Poetess- I'm not good with the IF portal. I'm sure that theres somehow/someway you can, but none that I know of.

Shadow of Nobody- Yes, theres a word filter.

marc29- The bad word filter does work, it just case sensitive. Hopefully this will be fixed in the next version.

marc29 again- Can you define crashes? I've been testing this for a month now, and so have other people (Just visit our forum, and you can get into all of our beta spots.) We haven't had any issues with this crashing. Not one report.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Code Snippets · Next Topic »
Add Reply