Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
vB Shoutbox 1.0 Details »»
vB Shoutbox 1.0
Version: 1.00, by TWTCommish TWTCommish is offline
Developer Last Online: Dec 2022 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-15-2002 Last Update: Never Installs: 263
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 05-23-2002, 07:40 PM
DarkDraco07's Avatar
DarkDraco07 DarkDraco07 is offline
 
Join Date: Apr 2002
Posts: 414
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry, i didnt know
Reply With Quote
  #63  
Old 05-23-2002, 07:46 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um, you should probably go back and edit your post so you can remove the attachment, then.
Reply With Quote
  #64  
Old 05-23-2002, 07:50 PM
Jeremy W. Jeremy W. is offline
 
Join Date: May 2002
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Chris, I just wanted to say again how truly solid this is

I had installed Sinecure's shoutbox and it took me 2 hours to customize it and make it work properly. I dropped yours in and bang it worked. Since users had been using Sinecure's, they were quite shocked when everything switched to the new one.

In 1 hour there have been 200 shouts. The users love it, thank you again so much!
Reply With Quote
  #65  
Old 05-23-2002, 07:53 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much - I'm glad you like it. My users love it, too.
Reply With Quote
  #66  
Old 05-23-2002, 08:07 PM
Jeremy W. Jeremy W. is offline
 
Join Date: May 2002
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No worries mate, good work deserves praise

Any plans for upgrades? (who's shouting, etc)?
Reply With Quote
  #67  
Old 05-23-2002, 08:28 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I do plan, I think, to upgrade this script after awhile...assuming it continues to get this positive reaction. "Who's Shouting" is a very good idea...I guess it'd work a little bit like "Users Browsing this Forum"? I suppose I never thought of it because my board isn't big enough to warrant such a thing. And I've been busy with two other significant hacks.

I had a few other ideas, too:
  • Comprehensive admin script to edit/delete shouts easily (perhaps in bulk for the latter?)
  • Who's Shouting? (good idea )
  • Shoutbox Search
  • Shoutbox Smilie Selector (allow admins to easily select which smilies they want below their text box)
  • Shouts in last 24 hours (as an admin, and user options)
  • Refresh intervals: allow user to select how often the page should refresh, if at all.
That's all for now...a few of those are quite easy of course, but I'd rather do things in bunches. If anyyone else has any other suggestions, don't hesitate to speak up.
Reply With Quote
  #68  
Old 05-23-2002, 08:33 PM
Jeremy W. Jeremy W. is offline
 
Join Date: May 2002
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, it would be just like the "Who's browsing this forum".

A few things I've noticed is that the breadcrumb doesnt' show up properly (http://www.ringquest.com/forums/shoutbox.php), and smilies don't show up in posts at all...

I'd just like to say that I'm addicted to your hacks *L* Of the 20 odd new features this week, I think nearly half were yours One day I need to learn PHP *L*
Reply With Quote
  #69  
Old 05-23-2002, 08:49 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Open shoutbox.php, and find this:

PHP Code:
eval("\$shoutbits .= \"".gettemplate("shoutboxbit",1,0)."\";"); 
...right before it, add this...

PHP Code:
$shout_text  bbcodeparse($shout_text); 
Let me know if that helps with the smilies. If it doesn't, add this:

PHP Code:
$shout_text  bbcodeparse($shout_text01); 
That should help. I think. I hope. You probably have that line in your file already...but without the ", 0, 1" in the function call.
Reply With Quote
  #70  
Old 05-23-2002, 10:06 PM
Jeremy W. Jeremy W. is offline
 
Join Date: May 2002
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It now reads something like:

Code:
        $color       = ($num++ % 2 == 0) ? '{firstaltcolor}' : '{secondaltcolor}';
        $totalshouts = number_format($DB_site->num_rows($shouts));
        $time_posted = vbdate('n-j-y, g:i:s a', $timestamp);
        $shout_text  = bbcodeparse($shout_text);
        
          if ($bbuserinfo[usergroupid] == 6) {
            eval("\$adminoptions = \"".gettemplate("shoutbox_adminoptions",1,0)."\";");
          }
        $shout_text  = bbcodeparse($shout_text, 0, 1);
        eval("\$shoutbits .= \"".gettemplate("shoutboxbit",1,0)."\";");
      }
But still no smilies (from old or new posts)

I mean, it's not a big deal but they would add lots of "ambience"
Reply With Quote
  #71  
Old 05-23-2002, 10:07 PM
TWTCommish's Avatar
TWTCommish TWTCommish is offline
 
Join Date: Oct 2001
Location: Pittsburgh, PA, USA
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:

Code:
        $color       = ($num++ % 2 == 0) ? '#F1F1F1' : '#DFDFDF';
        $totalshouts = number_format($DB_site->num_rows($shouts));
        $time_posted = vbdate('n-j-y, g:i:s a', $timestamp);
        $shout_text  = bbcodeparse($shout_text, 0, 1);
        
          if ($bbuserinfo[usergroupid] == 6) {
            eval("\$adminoptions = \"".gettemplate("shoutbox_adminoptions",1,0)."\";");
          }
        eval("\$shoutbits .= \"".gettemplate("shoutboxbit",1,0)."\";");
      }
Reply With Quote
Reply

Thread Tools

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


All times are GMT. The time now is 04:15 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.07580 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete