vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Shoutbox 1.0 (https://vborg.vbsupport.ru/showthread.php?t=38698)

TWTCommish 05-15-2002 10:00 PM

vB Shoutbox 1.0
 
Well, people wanted it, so here it is: a vB-integrated Shoutbox. It's a little different than the one they used to have on this site, however. The moderation functions are VERY basic...but they'll be improved for 2.0, most likely, if there's any interest.

A short breakdown:
  • It's a chatroom-esque page that everyone can use.
  • Shouts that day, shouts in last 24 hours, shouts by YOU, and total shouts, are all tracked.
  • Leaderboard (top shouters) is tracked.
  • Clickable smilies automatically added below the add shout box.
  • "delete" link shown on all shouts if you're an admin or a moderator (usergroupids 5, 6, and 7 by default).
  • bbCode parsing included.
Attached is an archive containing all the files you'll need for the basic installation, AND for the optional features. NOTE: the vBHacker compatible file included within does NOT constitute a full installation. You'll still need to upload the shoutbox.php file to your main forums directory.

Enjoy. Here's a live demo: http://www.movieforums.net/shoutbox.php

Lesane 05-16-2002 01:56 PM

I have already a shoutbox running but still great, well done.

TWTCommish 05-16-2002 02:01 PM

Thanks. I dig the Shoutbox...but I wanted something a little more advanced with a few more features on my site, so I went for it. Thanks for the kind words. :)

FleaBag 05-16-2002 02:22 PM

I've been testing this on my forums too [www.gamerforums.com/board/shoutbox.php] and it's definitely what I was looking for - I recommend it to everyone! :D

Lesane 05-16-2002 02:26 PM

Quote:

Originally posted by TWTCommish
Thanks. I dig the Shoutbox...but I wanted something a little more advanced with a few more features on my site, so I went for it. Thanks for the kind words. :)
Your welcome and yes i see more features then the one i created from the old shoutbox, so i think i will install this one. ;)

ZiRu$ 05-16-2002 02:36 PM

very nice.....Will install later

Bald Bouncer 05-16-2002 03:22 PM

fantastic mate, I had only one small problem in shoutbox_postshout I had to change <form action="/shoutbox.php" too <form action="shoutbox.php"

also if anyone else wants to have the shoutbox on their forumhome page with more then 1 shout do the below,

PHP Code:

$shoutz $DB_site->query('SELECT u.username, s.userid, s.shout_text, s.timestamp FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT 10');
while (
$shout10top mysql_fetch_array($shoutz)):
    ++
$shout10topnbsp;
    
$shout[timestamp]  = vbdate('n-j-y, g:i:s a'$shout10top[timestamp]);
    
$shout[shout_text] = bbcodeparse($shout10top[shout_text]);
    
$shouts .= "<smallfont><b>Posted by <a href=\"member.php?s=$sesion[sessionhash]&action=getinfo&userid=$shout10top[userid]\" class=\"small\">$shout10top[username]</a><br> Posted @ $shout[timestamp]</b></smallfont><br/><smallfont>$shout[shout_text]</smallfont><br><br>";
endwhile;
eval(
"\$the_shoutbox .= \"".gettemplate("forumhome_shoutbox")."\";"); 

open forumhome_shoutbox and replace it with,

PHP Code:

  <tr id="cat">
    <
td bgcolor="{tableheadbgcolor}" colspan="6"><a href="$bburl/shoutbox.php?s=$session[sessionhash]title="The Shoutbox"><normalfont color="{tableheadtextcolor}"><b>The Shoutbox Latest Shout</normalfont></b></a></td>
  </
tr>
  
  <
tr>
    <
td bgcolor="{firstaltcolor}" colspan="6">$shouts</td>
  </
tr

thanks for the hack again mate, great work!

Velocd 05-16-2002 06:06 PM

Interesting..I have a shoutbox I downloaded yet to try but its called Shoutbox V2 and it was made by Mewtwo, Crater Seraph, and TWTCommish. Is this the same one you have just released? If so, you forgot to include 2 others who helped make it ^_^

filburt1 05-16-2002 06:09 PM

I get a JS error when I try to use the clickable smilies: "'message' is null or not an object'

EXCHANGE 05-16-2002 06:20 PM

I'll give this a try later, the demo looks really good to me

Good Work!

Dean C 05-16-2002 06:28 PM

look pretty nice...

John 05-16-2002 07:22 PM

:( - doesn't work at all, when I try to post a shout it tries to access webroot\shoutbox.php instead of webroot\forum\shoutbox.php - help?

John 05-16-2002 07:27 PM

And I have fixed it :) - in the template shoutbox_postshout, I changed:

PHP Code:

  <tr id="cat">
    <
td bgcolor="{tableheadbgcolor}" colspan="6"><a href="shoutbox.php?s=$session[sessionhash]title="The Shoutbox"><normalfont color="{tableheadtextcolor}"><b>The Shoutbox Latest Shout</normalfont></b></a></td>
  </
tr

to

PHP Code:

<table cellpadding="5" cellspacing="0" border="0" {tableinnerextrawidth="100%">
  <
form action="$bburl/shoutbox.php" method="post" name="vbform">
  <
input type="hidden" name="type" value="shout"


afterlab 05-16-2002 07:33 PM

Proud beta-tester for this.. Glad to see it's back in action.

John 05-16-2002 07:38 PM

Another small problem - when you click on a smilie, nothing happens - except for an error:

Line: 1
Char: 1
Error: Object Expected
Code: 0
URL: URLetc..\shoutbox.php?

TWTCommish 05-16-2002 08:58 PM

Quote:

thanks for the hack again mate, great work!
Thanks for pointing that out. I'll change it tonight. :)

Quote:

Interesting..I have a shoutbox I downloaded yet to try but its called Shoutbox V2 and it was made by Mewtwo, Crater Seraph, and TWTCommish. Is this the same one you have just released? If so, you forgot to include 2 others who helped make it ^_^
No one helped me make this hack. However, someone who I sent it to for beta testing purposes apparently made some change and is calling it "vB Shout Box 2.0" -- they sent me a copy and I'm basically trying to figure out what's going on. I certainly didn't know anything like this was going on and I'd rather not release a second version until I've added more.

Quote:

I get a JS error when I try to use the clickable smilies: "'message' is null or not an object'
I'm trying to get to the bottom of this. Hopefully I'll manage to figure things out.

Quote:

And I have fixed it
Thanks for your patience -- sorry about that! :)

I'll try to work out some of these bugs and re-upload tonight. Sorry for any inconvienence.

John 05-16-2002 09:40 PM

Quote:

Originally posted by TWTCommish

Thanks for your patience -- sorry about that! :)

I'll try to work out some of these bugs and re-upload tonight. Sorry for any inconvienence.

Apart from the smilies not working, everything is great - a fine hack! - No need to say sorry for anything!

Bald Bouncer 05-16-2002 09:59 PM

smilies seem to work fine for me?

John 05-16-2002 10:02 PM

Quote:

Originally posted by Bald Bouncer
smilies seem to work fine for me?
What version of vB are you running? I'm on 2.2.4, could this be the reason? :confused:

FleaBag 05-16-2002 10:10 PM

EDIT: I just realised someone had already said this. Oh well LOL.

I was a beta tester for this also, it works perfectly on my forums. I did tell TWT about the form error, rather than hard coding it you could use $bburl/shoutbox.php. But he frgot, though I'm not complaining because he never stops working! :)

TWTCommish 05-16-2002 10:13 PM

Yeah, that's what baffles me; I guess there's a difference in versions. Perhaps the vbcode.js file has changed recently?

John 05-16-2002 10:17 PM

<cries> My members are hurling abuse at me because the smilies don't work!

TWTCommish 05-16-2002 10:23 PM

What version of vB are you running? Can you send me your vbcode.js file?

John 05-16-2002 10:38 PM

Fixed it!

Now, this left me really confused. I had no "vbcode.js" file at all in my root directory, only a "code.js" - but the forum still functioned perfectly! (And I never changed it :confused:)

Put a fresh vbcode.js in the root and it works fine...

lordofgun 05-17-2002 12:21 AM

AWESOME AWESOME AWESOME!

/me clicks INSTALL!

lordofgun 05-17-2002 01:37 AM

is ther a way to make the ($the_shoutbox) work on the forumdisplay?

TWTCommish 05-17-2002 01:42 AM

Sure. In your forumdisplay.php file, replace this:

PHP Code:

eval("dooutput(\"".gettemplate('forumdisplay')."\");"); 

...with this...
PHP Code:

$shout             $DB_site->query_first("SELECT u.username, s.userid, s.shout_text, s.timestamp FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT 1");
$shout[timestamp]  = vbdate('n-j-y, g:i:s a'$shout[timestamp]);
$shout[shout_text] = bbcodeparse($shout[shout_text]);

eval(
"\$the_shoutbox .= \"".gettemplate("forumhome_shoutbox")."\";");
eval(
"dooutput(\"".gettemplate('forumdisplay')."\");"); 

Whatcha got in mind, out of curiousity? I'd be interested to see where you put it. :) You'd probably want to change the HTML in the forumhome_shoutbox template, however...it's designed specifically for the mainpage, what with the colspan and all.

lordofgun 05-17-2002 02:04 AM

THANKS BRUTHA!

i'd like to put it right above where the threads are listed. i';m not sure what kind of modifications i'll have to do...but i'm gonna play with it.

BEST HACK EVER! :D

lordofgun 05-17-2002 02:11 AM

BTW, if anyone wants to make something like the ($the_shoutbox) for the forum display, by all means, FEEL FREE! ;)

TWTCommish 05-17-2002 02:22 AM

Right above the threads? Yeah, I can do that. Hang on, I'll get back to you. Glad you dig the hack, BTW, though personally I think the next one I'll be releasing is even better. :D

lordofgun 05-17-2002 02:28 AM

sweet! i can't wait!

FYI - This hack worked PERFECTLY the first time i tried to install it! Great directions, couldn't ask for more!

scsa20 05-17-2002 02:38 AM

wait, are you guys going to make an add on for you to add a little window type thingy to the forumhome for the shoutout?? if so, that'll be cool :D

inphinity 05-17-2002 10:31 AM

v nice hack ;)

i've found that shift clicking (open in a new window) [Reload this Page] causes IE to endlessly loop (love javascript)

to do roughly the same thing without javascript i did:

edit shoutbox.php and just near the top (11 lines down) add
PHP Code:

if ($action=="reload") {
    
header ("Refresh: 0; URL=$PHP_SELF");
    exit;


then edit the shoutbox template and change the javascript reload link (_javascript_:window.location=window.location) to:

<a href="shoutbox.php?s=$session[sessionhash]&action=reload">[Reload this Page]</a>

Bald Bouncer 05-17-2002 11:13 AM

Ive added this to my forumhome page ... is there anyway to stop getting redirected to the shoutbox page once they post? :(

TWTCommish 05-17-2002 12:05 PM

I'm confused, Bald Bouncer: are you saying you want them to be taken back to the forums main page after they've posted a shout?

inphinity: very cool...I'll change that for the next version, for sure. :)

ceo_tfw 05-17-2002 03:09 PM

nice shout box, I have installed it and great stuff, is there a way to view all shouts in the admin cp under mass delete

Bald Bouncer 05-17-2002 03:20 PM

Quote:

Originally posted by TWTCommish
I'm confused, Bald Bouncer: are you saying you want them to be taken back to the forums main page after they've posted a shout?

yeah thats what i was saying ;)

Vivi Ornitier 05-17-2002 04:20 PM

Quote:

Originally posted by TWTCommish

No one helped me make this hack. However, someone who I sent it to for beta testing purposes apparently made some change and is calling it "vB Shout Box 2.0" -- they sent me a copy and I'm basically trying to figure out what's going on. I certainly didn't know anything like this was going on and I'd rather not release a second version until I've added more.

the person you sent it to is Crater Seraph, who sent it to me, and i also added an edit button and an install script (pretty useless since it has a vbhacker file).

c-pr0mpt 05-17-2002 04:45 PM

Works great bro. Now got to find some time to customize the look to match yaxay. Good job! :)

ceo_tfw 05-17-2002 08:27 PM

I would like to show more that 1 shout on my forum is this what I put and where does it go
PHP Code:

$shoutz $DB_site->query('SELECT u.username, s.userid, s.shout_text, s.timestamp FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT 10');
while (
$shout10top mysql_fetch_array($shoutz)):
    ++
$shout10topnbsp;
    
$shout[timestamp]  = vbdate('n-j-y, g:i:s a'$shout10top[timestamp]);
    
$shout[shout_text] = bbcodeparse($shout10top[shout_text]);
    
$shouts .= "<smallfont><b>Posted by <a href=\"member.php?s=$sesion[sessionhash]&action=getinfo&userid=$shout10top[userid]\" class=\"small\">$shout10top[username]</a><br> Posted @ $shout[timestamp]</b></smallfont><br/><smallfont>$shout[shout_text]</smallfont><br><br>";
endwhile;
eval(
"\$the_shoutbox .= \"".gettemplate("forumhome_shoutbox")."\";"); 



All times are GMT. The time now is 06:11 AM.

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.01714 seconds
  • Memory Usage 1,863KB
  • 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
  • (8)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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