vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   BVShoutbox 1.0 (https://vborg.vbsupport.ru/showthread.php?t=59602)

Black Vivi 01-02-2004 10:00 PM

BVShoutbox 1.0
 
Features:
  • Displays vBCodes and other post code allowances. (Depending on what the use is allowed in their signatures [for now])
  • Admins can edit or delete shouts from the Admin CP.
  • Built-in /me code.
  • Archive page and IFrame on forumhome for shouting and reading.
  • Archive page has multiple pages.
  • Stats on archive page.

I plan to have added the following by the time vB 3.0.0 is released:
  • Uses phrases for the Admin CP and shoutbox.
  • Users can edit and delete their own shouts.
  • User and usergroup permissions for the shoutbox. (canview, canshout etc)
  • Seperate options for vBCodes in the shoutbox, instead of the same ones as for signatures.
  • More options in the Admin CP. (mass delete, mass edit etc)

This has been tested on vB3 Gamma and RC 1

A demo can be seen here:
http://www.rubb3rducky.com/index.php?
http://www.rubb3rducky.com/shoutbox.php?

TheAnt 01-03-2004 09:10 PM

I installed this months ago :P

Link14716 01-03-2004 09:10 PM

Bah, now I got even more competition, eh?

https://vborg.vbsupport.ru/showthread.php?t=59548

VampireMan 01-03-2004 09:29 PM

Nice and easy install :) *clicks install*

dede1 01-03-2004 11:26 PM

My English is not good sorry. I have a problem thereby!

It nothing indicated with me except a white field if one on Shoutbox
clicks comes this error message:

Fatal error: Call to undefined function: construct_edit_toolbar() in /var/www/html/Board/shoutbox.php on line 758

Where does the Fehler?Oder lie I which surveyed?

The line does not give it in php the file.

ENZcom 01-04-2004 01:19 AM

Is there a way to ban HTML?

Link14716 01-04-2004 01:21 AM

It's either an admin option or a file edit, either way it's simple.

*plug* My hack has at as an admin option.

Dan 01-04-2004 02:52 AM

Nice one :D Not sure which to use though.

monstergamer 01-04-2004 04:20 AM

is there a way to delete shouts?

TheAnt 01-04-2004 04:21 AM

Yes, by going to admincp/shout.php

monstergamer 01-04-2004 04:52 AM

damn i did not even see it
cause i knew i added some thing in the admincp

Gio Takahashi 01-04-2004 04:59 AM

Its very nice, and it works 98%. but there is a problem, a minimal one however.

In Who is online page, When a member is on the forum index page, it shows that they are viewing the shoutbox when they are actually viewing the forum home.

dede1 01-04-2004 07:41 AM

My problem is settled, I php the files wrongly highly loaded

NuclioN 01-04-2004 09:09 AM

I hope you add the function to shout on the forumhome as in Pose21on's chatbox that would turn it into a great interactive communication device. It would be even greater when the messages appear without a refresh as in IRC chats. :)

monstergamer 01-04-2004 09:43 AM

Quote:

Originally Posted by Gio Takahashi
Its very nice, and it works 98%. but there is a problem, a minimal one however.

In Who is online page, When a member is on the forum index page, it shows that they are viewing the shoutbox when they are actually viewing the forum home.

same here
that is the only prob i have with it now

Black Vivi 01-04-2004 09:29 PM

Sorry about the users online locations.
Replace your shoutbox.php file with the one attached to fix the problem.

I've updated the zip file so there shouldn't be any problems with the users online in the future.

proxyMX 01-04-2004 11:23 PM

stupid thing just gave me html style var errors

it took far too long to install and was a messy uninstall, dont recommend it

Lord Les 01-05-2004 03:27 AM

It went like a Charm , Love it .. Easy and I have been wanting to re add this hack for a Longtime!

Thank you , Highly recommend it

thuffner 01-05-2004 04:02 AM

Quote:

Originally Posted by Black Vivi
Sorry about the users online locations.
Replace your shoutbox.php file with the one attached to fix the problem.

I've updated the zip file so there shouldn't be any problems with the users online in the future.

Put the new shout.php in and am still having a problem with the Who's Online. Other than that this hack is amazing. Such a great alternative to Chat Rooms, which, IMO, are unreliable. My users are raving that it is great how every member can access it.

BRAVO! *installs*

Lord Les 01-05-2004 11:23 AM

Is there a way to remove the Bottom scroll ?
Thanks great stuff

monstergamer 01-05-2004 11:38 AM

Quote:

Originally Posted by Black Vivi
Sorry about the users online locations.
Replace your shoutbox.php file with the one attached to fix the problem.

I've updated the zip file so there shouldn't be any problems with the users online in the future.

did not work for me :(

Quote:

Is there a way to remove the Bottom scroll ?
Thanks great stuff
i would like this as well, but for right i just turned both them off

Black Vivi 01-05-2004 03:30 PM

Quote:

Is there a way to remove the Bottom scroll?
where's the bottom scroll?

For the two people that are having problems, what vB version are you using?

It wasn't updating the location for me with that new file. But I have redone it and it should work this time.

monstergamer 01-05-2004 04:38 PM

Quote:

Originally Posted by Black Vivi
where's the bottom scroll?

For the two people that are having problems, what vB version are you using?

It wasn't updating the location for me with that new file. But I have redone it and it should work this time.

did not work again and i am using RC1
screen shot below

Lord Les 01-05-2004 05:12 PM

Quote:

Originally Posted by Black Vivi
where's the bottom scroll?

For the two people that are having problems, what vB version are you using?

It wasn't updating the location for me with that new file. But I have redone it and it should work this time.

Would like to remove the bottom Scroll bar and the close Shoutbox works until you go back to the page.

All is good just some odd things we would love to know how to clean up :)

monstergamer 01-05-2004 06:27 PM

Quote:

Originally Posted by Lord Les
Would like to remove the bottom Scroll bar and the close Shoutbox works until you go back to the page.

All is good just some odd things we would love to know how to clean up :)

yes i to notice the collapse buttom dose not work after going to other pages and coming back to that page, so i took it out but would like it back

Black Vivi 01-05-2004 09:09 PM

For the bottom scroll, try changing the table width in the shoutbox_main template to 98%.

I'm still working on the location thing...
I know it's the shoutbox IFrame, so I might have to take that out and change it so it's part of the forum homepage.

Lord Les 01-05-2004 09:45 PM

Tried the change to 98% still bars.. :)

monstergamer 01-05-2004 10:21 PM

Quote:

Originally Posted by Lord Les
Tried the change to 98% still bars.. :)

same here

@ Lord Les if you go to the shoutbox_iframe
and find
PHP Code:

 src="shoutbox.php?$session[sessionurl]do=main" scrolling="auto" 

and turn scrolling to no insted of auto, it turns the bars off
looks better but i would like the one bar on the side as well

thuffner 01-05-2004 10:34 PM

Yeah the 98% thing fits all the text on the frame perfectly, but does not get rid of the scrollbar...

Great hack. :)

monstergamer 01-05-2004 11:12 PM

i had the answer along

in shoutbox_iframe

find
PHP Code:

 <frame name="shoutview" id="chat" src="shoutbox.php?$session[sessionurl]do=main" scrolling="auto" marginwidth="5" marginheight="5" noresize="noresize" frameborder="0"

and replace with
PHP Code:

 <frame name="shoutview" id="chat" src="shoutbox.php?$session[sessionurl]do=main" scrolling="yes" marginwidth="5" marginheight="5" noresize="noresize" frameborder="0"

worked for me
now the only thing i see needing fixed is the Unknown Location thing

thuffner 01-06-2004 06:59 AM

That works great monstergamer. Be sure to change the code twice in the template too, once for registered users and once for unregistered users. :)

Black Vivi 01-06-2004 03:12 PM

Thanks for that monstergamer.
I've updated the zip so there shouldn't be any bottom scroll with future users, and have sent an update.

I have an idea for the unknown location thing, which I will be testing in a while.

monstergamer 01-06-2004 03:18 PM

Quote:

Originally Posted by Black Vivi
Thanks for that monstergamer.
I've updated the zip so there shouldn't be any bottom scroll with future users, and have sent an update.

I have an idea for the unknown location thing, which I will be testing in a while.

i well be happy to let you know if it works :)
glad to help fix that one prob

Rocol 01-07-2004 05:57 PM

@ Black Vivi ... I am running vB RC2 and have just installed your shoutbox .. all went well and the shoutbox works perfectly .. however .. I still have the problem with all Logged in users appearing, on Who is Online, as Viewing the Shoutbox, even though they are elsewhere.

I have tried replacing the shoutbox.php, with both the updated versions .. but still the problem persists. Can you throw any light on a possible solution please ;)


Edit .. all is Ok Now M8 .. looks as though it was a server prob .. uploaded the file a few times and it seems to have cured the problem .. Keep up the good work :up: :cool:

monstergamer 01-07-2004 07:19 PM

Quote:

Originally Posted by rocol
@ Black Vivi ... I am running vB RC2 and have just installed your shoutbox .. all went well and the shoutbox works perfectly .. however .. I still have the problem with all Logged in users appearing, on Who is Online, as Viewing the Shoutbox, even though they are elsewhere.

I have tried replacing the shoutbox.php, with both the updated versions .. but still the problem persists. Can you throw any light on a possible solution please ;)


Edit .. all is Ok Now M8 .. looks as though it was a server prob .. uploaded the file a few times and it seems to have cured the problem .. Keep up the good work :up: :cool:

what file did you upload the last shoubox file he released

yours still shows users Viewing Shoutbox when on the index
but guest and spiders are Viewing Index

monstergamer 01-08-2004 12:41 AM

i have to thank Rocol for this code that i am about to post here...
i did change it from what he gave me, but he get full credit for it
this code right here well now show the members VIEWING THE INDEX in the whos online
the only thing is that it shows them looking at the index when they are looking at the shoutbox.php but it dose not show Unknown Location any more...:D

to make this change
in includes/functions_online.php

FIND
PHP Code:

case 'bugs':
   
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'Bugs'); // Don't report 'bugs' as needing to be translated please :p
   
break; 

ADD BELOW THAT
PHP Code:

/// Shoutbox ///
  
case 'shoutbox':
   
$userinfo['action'] = $vbphrase['viewing_forum'];
   if (
$seeforum)
   {
    if (
$wol_link[$forumid])
    {
     
$userinfo['action'] = $vbphrase['followed_forum_link'];
    }
    
$userinfo['where'] = "<a href=\"forumdisplay.php?$session[sessionurl]f=$forumid\">$forumtitle</a>";
   }
   break;
  
/// End Of Shoutbox /// 

FIND
PHP Code:

case 'bugs.php':
  
$userinfo['activity'] = 'bugs';
  break; 

ADD BELOW THAT
PHP Code:

/// Shoutbox ///
 
case 'shoutbox.php':
  
$userinfo['activity'] = 'index';
  break;
 
/// End Of Shoutbox /// 


Tenpit 01-08-2004 05:08 AM

This is great!

Just one thing, how would you make the Shouts automatically refresh, say every 30 seconds?

Thanks
Tenpit

Souli 01-08-2004 02:37 PM

OK it is a very nice Hack - the best shoutbox here ;)

First i found a small bug in the collapse code

old code
PHP Code:


Open the template FORUMHOME
Find this
:

$navbar

<!-- shoutbox -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="$stylevar[tablewidth]align="center">
<
thead>
    <
tr>
        <
td class="tcat" colspan="2">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_shoutbox')"><img id="collapseimg_forumhome_shoutbox" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_shoutbox].gif" alt="" border="0" /></a>
            <
a href="shoutbox.php?$session[sessionurl]">Shoutbox</a></td>
    </
tr>
</
thead>
<
tbody id="collapseobj_forumhome_shoutbox" style="$vbcollapse[collapseobj_forumhome_activeusers]">    <tr>
        <
td class="alt1" width="100%">
            <
iframe src="shoutbox.php?$session[sessionurl]do=iframe" width="100%" height="120" scrolling="no" frameborder="0" border="0" name="shoutbox"></iframe>
        </
td>
    </
tr>
</
tbody>
</
table>
<!-- 
end shoutbox -->

<
br /> 

My new code (replace it)

PHP Code:

<!-- shoutbox -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="$stylevar[tablewidth]align="center">
<
thead>
    <
tr>
        <
td class="tcat" colspan="2">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_shoutbox')"><img id="collapseimg_forumhome_shoutbox" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_shoutbox].gif" alt="" border="0" /></a>
            <
a href="shoutbox.php?$session[sessionurl]">Shoutbox</a></td>
    </
tr>
</
thead>
<
tbody id="collapseobj_forumhome_shoutbox" style="$vbcollapse[collapseobj_forumhome_shoutbox]">
    <
tr>
        <
td class="alt1" width="100%">
            <
iframe src="shoutbox.php?$session[sessionurl]do=iframe" width="100%" height="120" scrolling="no" frameborder="0" border="0" name="shoutbox"></iframe>
        </
td>
    </
tr>
</
tbody>
</
table>
<
br />
<!-- 
end shoutbox --> 

thx
Soul

monstergamer 01-08-2004 03:42 PM

Quote:

OK it is a very nice Hack - the best shoutbox here ;)

First i found a small bug in the collapse code
good work, i notice this when i frist installed it, but i just took the collapse code out
but thanx for making it work again

*updated shoutbox now*

magnus 01-08-2004 05:21 PM

Quote:

Originally Posted by Tenpit
This is great!

Just one thing, how would you make the Shouts automatically refresh, say every 30 seconds?

Thanks
Tenpit

In the shoutbox_main template:

Find:
HTML Code:

<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
Add below:
HTML Code:

<meta http-equiv="refresh" content="15;URL=shoutbox.php?$session[sessionurl]do=main">
* You can change the "15" to however many seconds you wish.


All times are GMT. The time now is 02:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01730 seconds
  • Memory Usage 1,878KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (9)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete