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-17-2002 08:37 PM

In forumhome_shoutbox replace the $shout[shout_text] variable with your $shouts variable. I think that'll do it.

ceo_tfw 05-17-2002 08:53 PM

not sure where I put this
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")."\";"); 


TWTCommish 05-17-2002 09:12 PM

That's the code you put in the index.php file instead of the code listed in the instructions. Stick it in place of that, and in the same spot. That should do it. :)

S0uL 05-18-2002 01:16 AM

i installed this with vbhacker and it said everything installed right. but doesnt show on forumhome. and the $the_shoutbox is in forumhome.

TWTCommish 05-18-2002 01:21 AM

Make sure it edited your index.php file successfully...and then, go shout. It needs at least one shout if it's going to display anything on your main forum page. :)

S0uL 05-18-2002 01:21 AM

nevermind i fixed it. vbhacker didnt add the fourmhome_shoutbox

tweak 05-18-2002 03:09 AM

I put this in INDEX.PHP and my page is now WHite. Pure white, No forum ????


Quote:

Originally posted by ceo_tfw
not sure where I put this
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")."\";"); 



TWTCommish 05-18-2002 03:37 AM

Is that ALL you have in your index.php file? You're not supposed to replace the entire contents of it...

tweak 05-18-2002 04:52 AM

No no I just replaced this and the page was all white. Any reason why???

PHP Code:

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


Quote:

Originally posted by TWTCommish
Is that ALL you have in your index.php file? You're not supposed to replace the entire contents of it...

ceo_tfw 05-18-2002 07:48 AM

Quote:

Originally posted by tweak
I put this in INDEX.PHP and my page is now WHite. Pure white, No forum ????






I put this in the index.php and I just seen the page die on me so I had to say OH ship, so I am not sure what then to do,,,,,,,


All times are GMT. The time now is 03:30 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.01533 seconds
  • Memory Usage 1,752KB
  • 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
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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