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)

LavaNoX 06-05-2002 05:05 PM

How do I make it so that my forum takes up 75% of the space, on the left, and the shoutbox takes up the rest of the space, on the right?

Mr L 06-10-2002 01:58 PM

...is it possible to add a function to enable uses only to post once every 60 seconds?

Otherwise, this has made a huge impact on my board in a positive way! Thank you!

firewars 06-10-2002 03:33 PM

Weird.
When shouting it goes to the webservers root and doesn't stay in the forums root :(
Any solutions?

TWTCommish 06-10-2002 04:13 PM

firewars: in your "shoutbox_postshout" template, replace "shoutbox.php" in the form's action attribute with "$bburl/shoutbox.php" -- I think that ought to do it.

HLodder: use the attached shoutbox.php file to prevent users from shouting more than once every 60 seconds. It's just a primitive little thing I threw together, but it works...I think. :D All it does is ignore their shout if it's been less than 60 seconds. No error or anything...this is quick and dirty at it's best. :D

Mr L 06-10-2002 04:18 PM

Chris,

Thanks for this. Very much appricated and now in use!!!

Cheers.

Harvey.

firewars 06-10-2002 04:53 PM

TWTCommish:

Thanks, but before applying your fix I thought about it and then I was sure it should work as it's in the same directory, but:

There is a slash (/) before it which makes it use the directory above the $bburl-directory and thus using root.
Thanks for telling me where to look, though: it works like a charm.
Impressive hack :)

firewars 06-10-2002 06:47 PM

Does anyone know how to change the timeformat?
I'm not talking about $time_posted, I was able to change that.
I am talking about $timestamp which is used in the forumhome_shoutbox-template.
Any idea?

TWTCommish 06-10-2002 06:50 PM

It's simple... find this line in your index.php file:

PHP Code:

$shout[timestamp]  = vbdate('n-j-y, g:i:s a'$shout[timestamp]); 

Modify the first argument passed to the vbdate() function (the text inside the single quotation marks) to a different format using the same characters you'd use for PHP's date() function.

Mr L 06-10-2002 07:19 PM

Can I ask, are you planning to release a later version of this hack and if so, can you offer any insight on what may be included?

Thanks!!!

TWTCommish 06-10-2002 07:30 PM

Yeah, I am, but not for awhile yet. I've detailed potential features in earlier posts. I don't feel like diggin' 'em up just now, though. I'll get back to you later. :D (sorry, I'm lazy, I guess)


All times are GMT. The time now is 12:51 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.01582 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_php_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