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-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


All times are GMT. The time now is 12:00 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.01570 seconds
  • Memory Usage 1,737KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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