Page 1 of 10 1234 ... LastLast
Results 1 to 20 of 182

Thread: vba shoutbox side block

  1. #1
    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 Attached Files
    Last edited by DrOwn; 07-04-2005 at 01:36 PM.

  2. #2

    Default Re: vba shoutbox side block

    thanks alot!

  3. #3
    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. #4

    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. #5

    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="shoutboxscrolling="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. #6
    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. #7
    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. #8
    Junior Member
    Join Date
    Feb 2005
    Posts
    13

    Default Re: vba shoutbox side block

    nice, I removed the username field also.

  9. #9
    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?

  10. #10

    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. #11

    Default Re: vba shoutbox side block

    Installed and working perfect. Thanks

  12. #12

    Default Re: vba shoutbox side block

    Is there anyway to change the iframe's background color ?

  13. #13

    Default Re: vba shoutbox side block

    How would I change the color of the 'scroll bar' and 'comment' field?

  14. #14

    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="shoutboxscrolling="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. #15

    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. #16
    Member FD929's Avatar
    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. #17
    Member FD929's Avatar
    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 Attached Images
    Last edited by FD929; 03-26-2005 at 12:55 PM.

  18. #18

    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. #19
    Member FD929's Avatar
    Join Date
    Feb 2005
    Location
    Vacaville, Ca
    Posts
    54

    Default Re: vba shoutbox side block

    Very welcome. Glad it worked well for you.

  20. #20

    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.

Page 1 of 10 1234 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •