Shoutbox side block, the shoutbox has been fixed and updated.
http://www.vbadvanced.com/forum/show...&postcount=130
Shoutbox side block, the shoutbox has been fixed and updated.
http://www.vbadvanced.com/forum/show...&postcount=130
Last edited by DrOwn; 07-04-2005 at 01:36 PM.
thanks alot!
Was really waiting for a good shoutbox, and finaly a hero made one!!
thx friend!!!
BTW, installed it, tested it, workz great.
Had to edit the template, for a extra "s" in forum. (I use /forums/)
Also, still, the small s tricked me for the module, even after u mentioned it, what can I say.. im a copy/paste addict...
Thx for this great addon.!!
Last edited by buurman; 01-28-2005 at 04:05 PM.
The shoutbox works great. Can anyone tell me the best way to add a collapsible window to the shoutbox? I tried using some of the methods posted here elsewhere, but I can';t seem to figure out what to remove from this one to add the collapsible part in to. Any help would be appreciated.
I finally managed to figure it out (somewhat) using a pre-exisiting collapsible template for the polls box, but I am sure it can be doen cleaner, so if anyone can clean it up to relate to the shoutbox and not the poll module, that would be cool, but hey it works for now:
replace your adv_portal_shoutbox template with this:
As I said, it's not pretty but the best I could do, and would appreciate someone helping me understand how to fix it up correctly (though it does work).PHP Code:
<!-- Shoutbox -->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder"width="100%">
<thead>
<tr><td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('poll$pollinfo[pollid]')"><img id="collapseimg_poll$pollinfo[pollid]" src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_poll.gif" alt="" border="0" /></a>
<span class="smallfont"><strong>$vba_options[portal_blockbullet] $mods[title]</strong></span></td></tr>
</thead>
<tbody id="collapseobj_poll$pollinfo[pollid]" style="$collapseobj_poll">
<tr><td class="alt1"><span class="smallfont">
<iframe marginwidth="2" marginheight="2" name="shoutbox" scrolling="yes" align="middle" frameborder="0" height="150" width="100%" src="forum/shoutbox.php" id="shoutbox"></iframe>
<form action="forum/shoutbox.php" method="post" target="shoutbox">
<input type="hidden" name="setting" value="save" />
<input type="text" name="name" value="$bbuserinfo[username]" size="20" />
<input type="text" name="comment" value="comment" size="20" maxlength="100" />
<input type="submit" value="Shout" /></form></span>
</td></tr></table><br />
<!-- Shoutbox -->
I also made the usename text field "hidden" cause I dont really see the function of that text field, now you dont see the field, but still works great.
<input type="text" name="name" value="$bbuserinfo[username]" size="20" />
to change, replace "text" to "hidden" in that line.
This is strange, if I change the maxlength to 500, u can typa a lot more, but the shoutbox will cut off the text, so it doesnt show all the text in the shoutbox.
How can I fix this, any ideas?
nice, I removed the username field also.
gorp-
The only thing I can see wrong is that the shout box collapseobj_ dont have a another new name for example "shoutbox" its useing the poll collapseobj.
If you use poll then wont the poll block jump up and down when you click the shoutbox?
I have installed this hack.Works great.One thing though ,and you will probably think Im a bit anal for even mentioning it.When viewing Whos Online anyone who is on the index page is listed as being at "Unknown Location - /forum/shoutbox.php " ,any way of getting it back to "Viewing Index" ?
Installed and working perfect. Thanks
Is there anyway to change the iframe's background color ?
How would I change the color of the 'scroll bar' and 'comment' field?
I wanted to take out the user name filed and also change the size. I also wanted to change the iframe background color but I couldn't. But when I someone try to shout the form is loading index.php in that module. Can anyone tell me how to fix it ?
PHP Code:
<!-- Shoutbox -->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder"width="100%">
<tr><td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] $mods[title]</strong></span></td></tr>
<tr><td class="alt1"><span class="smallfont">
<iframe frameclass="alt2" marginwidth="2" marginheight="2" name="shoutbox" scrolling="yes" align="middle" frameborder="0" height="300" width="100%" src="http://forum.ayyas.com/shoutbox.php" id="shoutbox"></iframe>
<form action="http://forum.ayyas.com/shoutbox.php" method="post" target="shoutbox">
<input type="hidden" name="setting" value="save" />
<input type="text" name="comment" value="" size="20" maxlength="100" />
<input type="submit" value="Shout" /></form></span>
</td></tr></table><br />
<!-- Shoutbox -->
I have this same problem, anyone find a fix?Originally Posted by SalTheWop
You need to change the maxlength in the shoutbox.php as well as the template.Originally Posted by buurman
I can't stand all the scroll bars so I did some minor editing. My box can be seen at www.530riders.net
If you like my box, go into adv_portal_shoutbox and replace everything with:
Code:<!-- Shoutbox --> <script type="text/javascript"> var timer_id; function scroll_iframe(frm,inc,dir) { if (timer_id) clearTimeout(timer_id); if (window.frames[frm]) { if (dir == "v") window.frames[frm].scrollBy(0, inc); else window.frames[frm].scrollBy(inc, 0); timer_id = setTimeout("scroll_iframe('" + frm + "'," + inc + ",'" + dir + "')", 20); } } function stopScroll() { if (timer_id) clearTimeout(timer_id); } </script> <table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="90%"> <tr><td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] $mods[title]</strong></span> <tr> <td class="alt2" align="right"><a href="javascript:;" onmouseover="scroll_iframe('shoutbox', -4, 'v'); window.status='Hover here to scroll up.'; return true" onmouseout="stopScroll(); window.status=''; return true"><img src="/forums/images/tri-up.gif" width="20" height="20" alt="" border="0" align="right" valign='top'></a> <a href="javascript:;" onmouseover="scroll_iframe('shoutbox', 4, 'v'); window.status='Hover here to scroll down.'; return true" onmouseout="stopScroll(); window.status=''; return true"><img src="/forums/images/tri-dn.gif" width="20" height="20" alt="" border="0" align="right" valign='top'></a></td> </tr> </tr> <tr><td class="alt1"><span class="smallfont"> <DIV ID=oDiv STYLE="width: 158px; height: 375px; overflow: hidden;"> <iframe marginwidth="2" marginheight="2" name="shoutbox" noresize scrolling="no" align="middle" frameborder="0" height="375" width="100%" src="forums/shoutbox.php" id="shoutbox"></iframe></DIV> <form action="forums/shoutbox.php" method="post" target="shoutbox"> <input type="hidden" name="setting" value="save" /> <input type="hidden" name="name" value="$bbuserinfo[username]" size="20" /> <input type="text" name="comment" value="" size="20" maxlength="100" /><br> <input type="submit" value="Shout" /></form></span> </td> </tr> </table> <br /> <!-- Shoutbox -->
Last edited by FD929; 03-26-2005 at 12:55 PM.
Worked perfect. Thanks for sharing it.Originally Posted by FD929
Very welcome. Glad it worked well for you.![]()
I grabbed that one as well, looks much cleaner thanks mateOriginally Posted by FD929
And thanks to the original poster of the shoutbox as well.
There are currently 1 users browsing this thread. (0 members and 1 guests)