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 Chatbox 1.2.4 (https://vborg.vbsupport.ru/showthread.php?t=42725)

zootsuit 08-26-2002 06:29 AM

I love this hack!

Just have a question...Is there any way this can be put in the footer so we can see it on every page? Or maybe on the Active Threads page since that's where all of my members hangout anyway?

p0s3id0n 08-26-2002 07:07 AM

@ zootsuit : to move the shoutbox to any place you want, you just have to change the position of the $shoutbox var in the forumhome template, and you can put it in the footer if you like.
But if in the footer, the shoutbox wont be reduceable (i know this word doesnt exist ;)).
It could work if the part added to index.php was an include and it was included in each script calling the footer... errr... or maybe if someone has another idea :).
Or if you added that part to showthread.php... and err... some other scripts ...

@ erwin : for the timstamps part, i will make an update this evening, since in france it is 10am and i must work to earn a living ;). I think i can do this change to the script relatively easily (i hope i will ;)).

zootsuit 08-26-2002 07:31 AM

I tried to place the $shoutbox in the actual footer template and all it showed was the word "open." Weird.

Any ideas so it can show on every page [not just index]?

Erwin 08-26-2002 11:09 AM

Quote:

Originally posted by zootsuit
I tried to place the $shoutbox in the actual footer template and all it showed was the word "open." Weird.

Any ideas so it can show on every page [not just index]?

Are you sure? You'd be adding a couple of queries and an iframe to all your pages. :) That may slow down your site somewhat. Remember, each time you move to a different page, shoutbox.php has to be called again. Why not popup a shoutbox window rather than putting it in the footer?

p0s3id0n 08-26-2002 12:12 PM

Yup, i think the popup would be a good idea if some of
your members want to keep an eye on the shoutbox
while surfing the forum...

I added an option on mine where the members can add the
shoutbox as a desktop element :), so they can have a look
at what's happening on the forum when they reduce their
windows.

p0s3id0n 08-26-2002 01:31 PM

by the way how does a hack change from beta to full release ??
I mean, do i have to post it again in the full release section or
is it better to wait for a mod to move the thread ??

just asking he ;).

p0s3id0n 08-26-2002 07:19 PM

@ erwin : here you are with the timezoneoffset modification
for each user to see the shouts in their time zone :
In shoutbox.php, look for :
PHP Code:

$date $get["date"]; 

and in index.php , look for :
PHP Code:

$date $shout_row["date"]; 

and add just after each :
PHP Code:

$date date("Y")."-".substr($date,4,2)."-".substr($date,1,2)." ".substr($date,7,2).":".substr($date,10,2);
$date date("[d/m|H:i]",strtotime($date)+($bbuserinfo['timezoneoffset']*3600)); 

and here you are :):)... maybe you are not used to my frenchie
way of writing datetimes, you could modify the way it is written
by changing the "[d/m|H:i]" part and looking that page from the
php manual if you need : http://www.php.net/manual/en/function.date.php

zootsuit 08-27-2002 12:35 AM

Quote:

Originally posted by p0s3id0n
Yup, i think the popup would be a good idea if some of
your members want to keep an eye on the shoutbox
while surfing the forum...

I added an option on mine where the members can add the
shoutbox as a desktop element :), so they can have a look
at what's happening on the forum when they reduce their
windows.

:(

I have absolutely no idea how to do that.

Is there a thread here that would show me? Because having it on the main page is really not what I was looking for...

What you just described...a popup of some kind would be phenomenal! Then I could just link to that on the index page, right? or...err... :cross-eyed:

Vile 08-27-2002 12:40 AM

Great hack, installed just fine. Question...What would I need to edit to change the background color?

Thanks.

p0s3id0n 08-27-2002 04:18 AM

@ Knightmare : Just go to the admin CP and in the shoutbox
section choose configuration. There you have all you need
to change the background color, and some other colors too ;);).

[edit]errr. for the background of the reduced shoutbox... the
colors are those from your styles.... so maybe you can change
the font colors of the shoutbox for it to be more 'readable' (argh
frenchie cant write ;)).[/edit]

@zootsuit : I'll have a look on the changes you have to make
for the shoutbox to be in a popup :).

[edit]here we are ;)...
i think that, for the shoutbox to be in a popup, you just have
to add, on the footer, for example, something like :
Code:

<center><a href="javascript:window.open('shoutbox.php','left=100,top=100,height=130,width=150,scrollbars=0,status=0, location=0,resizable=0,menubar=0');">Shoutbox popup</a></center>
Don't forget to get rid of the space between java and script :p.

I cant remember if the top bar is included in the size of a popup
or if the size is the internal size so you will maybe have to change
the height parameter :)...

Tell me if it fits :D[/edit]


All times are GMT. The time now is 12:21 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.01380 seconds
  • Memory Usage 1,751KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (2)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