vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 01-27-2005, 06:17 PM
DrOwn DrOwn is offline
Junior Member
 
Join Date: Oct 2004
Posts: 18
Default vba shoutbox side block

Shoutbox side block, the shoutbox has been fixed and updated.

http://www.vbadvanced.com/forum/show...&postcount=130
Attached Files
File Type: txt shoutbox install.txt (3.4 KB, 745 views)
File Type: php shoutbox.php (6.5 KB, 561 views)
__________________
http://www.majesticforum.com/

Last edited by DrOwn; 07-04-2005 at 01:36 PM.
  #2  
Old 01-28-2005, 10:03 AM
gorp gorp is offline
Member
 
Join Date: Dec 2004
Posts: 76
Default Re: vba shoutbox side block

thanks alot!
  #3  
Old 01-28-2005, 04:01 PM
buurman buurman is offline
Junior Member
 
Join Date: Jan 2005
Posts: 21
Default Re: vba shoutbox side block

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.
  #4  
Old 01-28-2005, 07:31 PM
gorp gorp is offline
Member
 
Join Date: Dec 2004
Posts: 76
Default Re: vba shoutbox side block

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.
  #5  
Old 01-29-2005, 12:34 AM
gorp gorp is offline
Member
 
Join Date: Dec 2004
Posts: 76
Default Re: vba shoutbox side block

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:

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 --> 
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).
  #6  
Old 01-31-2005, 09:09 AM
buurman buurman is offline
Junior Member
 
Join Date: Jan 2005
Posts: 21
Default Re: vba shoutbox side block

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.
  #7  
Old 02-02-2005, 05:09 AM
buurman buurman is offline
Junior Member
 
Join Date: Jan 2005
Posts: 21
Default Re: vba shoutbox side block

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?
  #8  
Old 02-08-2005, 08:45 PM
jfreels jfreels is offline
Junior Member
 
Join Date: Feb 2005
Posts: 13
Default Re: vba shoutbox side block

nice, I removed the username field also.
  #9  
Old 02-09-2005, 10:57 AM
DrOwn DrOwn is offline
Junior Member
 
Join Date: Oct 2004
Posts: 18
Default Re: vba shoutbox side block

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?
__________________
http://www.majesticforum.com/
  #10  
Old 02-21-2005, 03:04 AM
SalTheWop SalTheWop is offline
Member
 
Join Date: Jan 2005
Posts: 76
Default Re: vba shoutbox side block

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" ?
  #11  
Old 02-21-2005, 03:54 AM
Lizard King's Avatar
Lizard King Lizard King is offline
Tortu
 
Join Date: May 2004
Location: Istanbul
Posts: 147
Default Re: vba shoutbox side block

Installed and working perfect. Thanks
  #12  
Old 02-23-2005, 04:13 PM
Lizard King's Avatar
Lizard King Lizard King is offline
Tortu
 
Join Date: May 2004
Location: Istanbul
Posts: 147
Default Re: vba shoutbox side block

Is there anyway to change the iframe's background color ?
  #13  
Old 02-23-2005, 09:16 PM
DGTLMIK DGTLMIK is offline
Member
 
Join Date: Feb 2005
Posts: 53
Default Re: vba shoutbox side block

How would I change the color of the 'scroll bar' and 'comment' field?
  #14  
Old 02-24-2005, 04:08 PM
Lizard King's Avatar
Lizard King Lizard King is offline
Tortu
 
Join Date: May 2004
Location: Istanbul
Posts: 147
Default Re: vba shoutbox side block

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 --> 
  #15  
Old 02-25-2005, 12:36 PM
DGTLMIK DGTLMIK is offline
Member
 
Join Date: Feb 2005
Posts: 53
Default Re: vba shoutbox side block

Quote:
Originally Posted by SalTheWop
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" ?
I have this same problem, anyone find a fix?
  #16  
Old 02-26-2005, 06:31 PM
FD929's Avatar
FD929 FD929 is offline
Member
 
Join Date: Feb 2005
Location: Vacaville, Ca
Posts: 54
Default Re: vba shoutbox side block

Quote:
Originally Posted by buurman
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?
You need to change the maxlength in the shoutbox.php as well as the template.
  #17  
Old 02-26-2005, 06:47 PM
FD929's Avatar
FD929 FD929 is offline
Member
 
Join Date: Feb 2005
Location: Vacaville, Ca
Posts: 54
Default Re: vba shoutbox side block

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 -->
Attached Images
File Type: gif tri-dn.gif (870 Bytes, 2428 views)
File Type: gif tri-up.gif (895 Bytes, 2428 views)

Last edited by FD929; 03-26-2005 at 12:55 PM.
  #18  
Old 02-27-2005, 06:51 AM
Lizard King's Avatar
Lizard King Lizard King is offline
Tortu
 
Join Date: May 2004
Location: Istanbul
Posts: 147
Default Re: vba shoutbox side block

Quote:
Originally Posted by FD929
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="100%">
<tr><td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] $mods[title]</strong></span>
<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" valign="top" align="right" width="12" height="12" alt="" border="0"></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" valign="bottom" align="right" width="12" height="12" alt="" border="0"></a></td></tr>

<tr><td class="alt1"><span class="smallfont">
<DIV ID=oDiv STYLE="width: 158px; height: 254px; overflow: hidden;">
<iframe marginwidth="2" marginheight="2" name="shoutbox" noresize scrolling="no" align="middle" frameborder="0" height="250" 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 -->
Worked perfect. Thanks for sharing it.
  #19  
Old 02-27-2005, 10:35 AM
FD929's Avatar
FD929 FD929 is offline
Member
 
Join Date: Feb 2005
Location: Vacaville, Ca
Posts: 54
Default Re: vba shoutbox side block

Very welcome. Glad it worked well for you.
  #20  
Old 02-27-2005, 06:58 PM
PtP PtP is offline
Member
 
Join Date: Jun 2004
Posts: 37
Default Re: vba shoutbox side block

Quote:
Originally Posted by FD929
Very welcome. Glad it worked well for you.
I grabbed that one as well, looks much cleaner thanks mate

And thanks to the original poster of the shoutbox as well.
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[REQ] - Top 10 or Latest Links side block. ricoche Modifications 1 01-27-2005 09:36 AM
Vote and News... side by side... pulsetoday Add-On Modules & Modifications 0 10-27-2004 12:15 PM
How would I put this statement in a side block? Itworx4me Troubleshooting / "How do I..." Questions 12 06-16-2004 12:43 PM


All times are GMT -4. The time now is 07:28 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.