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)

Oldfart 06-22-2002 03:48 PM

So there's no fix for the incorrect timestamp on shout messages?

Oh well its a great hack, thank you very much for putting your time and effort into this I appreciate it. ;)

DOH!!! never mind the timestamp works perfectly. I had my time offset incorrectly set. :)

Thanks again

TWTCommish 06-22-2002 03:51 PM

Open your shoutbox.php file and replace this...

Code:

$time_posted = vbdate('n-j-y, g:i:s a', $timestamp);
...with this...
Code:

$time_posted = vbdate('n-j-y, g:i:s a', $timestamp - $timeoffset);
That should do it. I think. I hope. :D

Oldfart 06-22-2002 03:55 PM

Sorry I edited my last post to let you know I made a mistake.

I didn't have my time offset correctly set in the forum. :)

Sorries ;)

Oldfart 06-22-2002 03:58 PM

Oh one last thing.
Is it possiable to make a button link for the shoutbox on my forum mainpage like the foum buttons at the top of the forum screen.

If so which template of .php file would I edit

Oldfart 06-22-2002 04:37 PM

Ok I tried to put the link on the bottom of my forum main page like you have it on your forum. But it doesn't show up at all on my forum.

I also tried to locate the plain text hack for it in the install_shoutbox.txt and all i found was the forumjump hack. Where can I locate the link hack please?

Enjoy Marcus 06-28-2002 05:01 PM

Quote:

Originally posted by TWTCommish
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.

hi, i have done this but it still doesn't show up on my main forum page...? :(

TWTCommish 06-28-2002 05:31 PM

Did you add the forumhome_shoutbox template, and the $the_shoutbox variable to the forumhome template?

Enjoy Marcus 06-28-2002 05:35 PM

ahh that was the problem, i never added the forumhome_shoutbox, thanks alot dude. really nice hack btw

Enjoy Marcus 06-28-2002 07:22 PM

argghhh, i got the hack working great on my test board, but on my main board the smilies don't wanna work, help! i also tried changing the code like you suggested to Jeremy W

Wildthinks 06-28-2002 08:38 PM

On my Opera works fine, but when I use mozilla or IE (6.x) ... after click "shout now" I get a Dowenloadbox for Shoutbox.php and in mozilla I see cryptical text...
any hints, whats wrong?

try it here: http://swishzone.net/vb/shoutbox.php


All times are GMT. The time now is 07:01 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.01636 seconds
  • Memory Usage 1,744KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_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