View Full Version : Chatbox Lite
Dream
07-19-2005, 10:00 PM
This is a very simple shoutbox.
For those of us who don't have the resources to spare for vBShout v2.0 (https://vborg.vbsupport.ru/showthread.php?t=93097).
Installation
Instructions in the zip.
aethro
07-20-2005, 05:43 AM
Very simple and very easy to install Thanks! :D
**EDIT**
The one thing i did notice is people are showing up in the who's online page as going too an unknown location ^^
** Edit 2**
I noticed this when I tried to use your code to only show it on index you forgot a " after 'index' so it should look like this
<if condition="THIS_SCRIPT == 'index'">
<br /><center><iframe src="chatbox_lite.php" width="95%" style="border: 0px"></iframe></center>
</if>
ForYou
07-20-2005, 09:27 AM
Hello ,
Is there a screenShot ,
Regards
Allan
07-20-2005, 11:41 AM
Hello ,
Is there a screenShot ,
Regards
yep lol ;)
Roxie
07-20-2005, 04:16 PM
Yes...a screenie would be nice.
gldtn
07-20-2005, 04:53 PM
Very simple and very easy to install Thanks! :D
**EDIT**
The one thing i did notice is people are showing up in the who's online page as going too an unknown location ^^
** Edit 2**
I noticed this when I tried to use your code to only show it on index you forgot a " after 'index' so it should look like this
<if condition="THIS_SCRIPT == 'index'">
<br /><center><iframe src="chatbox_lite.php" width="95%" style="border: 0px"></iframe></center>
</if>
The if condition did not work for me, vB3.5b3! But thats ok I just placed the code on the FORUMHOME template. Also I'm try to have this feature available to certain usergroups and can't get it to work for some reason.. anyone know how to do this?
I got;
<if condition="is_member_of($bbuserinfo, 6,5,7)">
<center><iframe src="chatbox_lite.php" width="95%" style="border: 0px"></iframe></center><br />
</if>
Jenta
07-20-2005, 05:10 PM
awesome, your my hero
i can remove my sig now! :)
Jenta
07-20-2005, 07:49 PM
Hello ,
Is there a screenShot ,
Regards
here's mine so far
https://vborg.vbsupport.ru/
john1744
07-20-2005, 10:21 PM
Hmm, when trying to run a query it says I must select a column, to what is it referring to?
aethro
07-21-2005, 01:40 AM
If you copied and pasted the entire query above it shouldn't ask for anything. I did a clean install with the above instructions and it worked fine :)
Dream
07-21-2005, 03:40 AM
simple update, it now logs ip addresses, if you already installed youll need to run this query using your table prefix
ALTER TABLE `sl_shout` ADD `ipaddress` VARCHAR( 16 ) DEFAULT '0' NOT NULL ;
also changed the template modifications in the first post, but you can place it anywhere
aethro
07-21-2005, 05:33 AM
Oo nice update dream :D
Dream
07-21-2005, 05:48 AM
Oo nice update dream :D
thanks :) and it looks a "little" nicer now
Dream THANK YOU SO MUCH !!! Works like a charm, and the little chat window can be used everythere on the forum. My users LOVE ME (Or you?)
EDIT:
This has to be HOTM cuzz its ub4r l33t - Nothing new BUT IT WAS SO WANTED.
Dream
07-22-2005, 12:33 AM
updated, added auto refresh, enjoy
Dream
07-22-2005, 01:35 AM
another small update, added current time next to the page links
Dream
07-22-2005, 09:04 PM
im adding /me code, but it kinda lags the parsing ;/
im gonna add "maximum page links" too, so you wont have 1-100 pages in there, with << first/last >> page
other than that, its good to go (unless I have ideas, and that happens...)
please post screenshots of yours working if you can, that would help me save some time so I dont have to set it on my test board to take screenshots etc
edit:
btw did anyone upgrade from version 0.1?
edit2:
its not hard to upgrade, all options can be disabled with false and true in the code
hello anybody there
edit3:
go figure why people install the first crappy version like mad and not the better one
peterska2
07-23-2005, 04:37 PM
nice. Thanks.
Dream
07-23-2005, 10:41 PM
you are welcome :)
updated, added "max page links" before showing first/last page links
the /me code was slowing down the script too much, so I didnt add it
edit: also added a screenshot
that's all folks
Here is mine :) http://www.NaKazdyTemat.com
Translated into Polish :)
Jenta
07-25-2005, 10:17 PM
i
edit3:
go figure why people install the first crappy version like mad and not the better one
for me, i havent had time to look at it
but i like the first version since it was really bare bones
all i want is simple without a lot of bells and whistles like that monstrocity they made for 3.0 (7 queries on forum home plus forumhome's own queries!)
anyways, when i have a few minutes to spare i will look at the latest and see about installing it :)
thanks again!!!
Dream
07-25-2005, 10:49 PM
you are welcome, its still bare bones, but a better looking one
its one query, plus one if you are using bbcodes I think but not sure (fetch_tag_list()), and another one if you shout or delete a shout
not counting queries done by global.php
hotrod1
07-25-2005, 11:57 PM
Great hack! Thanks and it was so easy to install!
Dream
08-08-2005, 04:05 AM
updated to RC2, its a product now ;)
Brinnie
08-08-2005, 01:22 PM
goes on the board index?
Boofo
08-08-2005, 02:20 PM
Will this allow then to use size code to make big letters? I want to avoid that if all possible. And how do you delete a shout? ;)
Dream
08-08-2005, 04:22 PM
yes it goes in the forum index, you can put it elsewhere editing templates
bofo, you can disable bbcode by editing the file and setting use_bbcode = false
theres an X next to each shout to delete them, only appears for mods
Boofo
08-08-2005, 04:27 PM
yes it goes in the forum index, you can put it elsewhere editing templates
bofo, you can disable bbcode by editing the file and setting use_bbcode = false
theres an X next to each shout to delete them, only appears for mods
I don't want to delete all bbcode usuage, just the ones that make the font too big. ;)
Dream
08-08-2005, 04:30 PM
you cant do that right now
the parser object im using doesnt have this option (disable only font sizes), not sure how i would do that, and how it would affect performance...
Boofo
08-08-2005, 04:36 PM
Shouldn't affect performance at all, I would think. ;)
Maybe have a font size that overrides the setting?
Dream
08-08-2005, 04:42 PM
it would, you would have to test for [ font ] with a regex on all shouts, its the only way i can think of doing it
Boofo
08-08-2005, 05:06 PM
I have an Admin (don't worry Biker, I won't mention your name) that likes to play with the shout box I am using now and use big letters. I am on a mission to stop him! ;)
I would like to place the box under "Forum Statistics". Where should I place the code? Thank you.
Dream
08-11-2005, 02:45 AM
I would like to place the box under "Forum Statistics". Where should I place the code? Thank you.
edit FORUMHOME template, put the chatbox code after
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
</td>
</tr>
</tbody>
Thanks but I meant under the whole table. I actually got it. It was after this code.
<td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
</if>
gothicuser
08-27-2005, 10:59 AM
Hi, I got a testbed on my home machine that I use to, well, test everything before going "live".
I have a totally clean vB 3.5.0 RC2 all up and running, working perfectly. No mods, no skins, totally untouched my my itchy little fingers....lol
All I get when I try and install either this mod OR the other "vBShout" is:
WARNING: Invalid argument supplied for foreach() in \includes\functions.php on line 772
I have absolutely no idea why, does anyone else please?
Dream
08-27-2005, 07:59 PM
are you running php on windows? maybe theres a problem in that php file with it
gothicuser
08-28-2005, 09:03 AM
are you running php on windows? maybe theres a problem in that php file with it
You could well be right. I am running under NT but have never suffered probs before, but having said that I have now upgraded to php 4.4.0 and (coincidentally) I have now experimented with six shout/chat boxes, none of which will install.
Wierd....... all other plugs install fine, just not the shouts........ :disappointed: :disappointed:
Wordplay
09-10-2005, 01:19 AM
anybody knows how to make this shoutbox show a miniture (resized version of the avatar of the user instead of the username if they are registered)? and of course the shout would then have to wrap next to it.
anybody out there that can help out with this?
mholtum
09-10-2005, 03:12 AM
:( Install was easy enough.. But ....
Database error in vBulletin 3.5.0 Release Candidate 3:
Invalid SQL:
SELECT count(shoutid) AS total FROM vb3_chatboxlite_shout;
MySQL Error : Table 'mholtum_forums.vb3_chatboxlite_shout' doesn't exist
Error Number : 1146
Date : Saturday, September 10th 2005 @ 12:07:32 AM
Script : XXXXXXXXXXXXXX/chatbox_lite.php?nofocus=1
Referrer : XXXXXXXXXX
IP Address : 70.162.7.101
Username : Unregistered
Classname : vb_database
What needs to be done?
Dream
09-10-2005, 08:44 AM
did you run the query to create the table?
mholtum
09-10-2005, 09:11 AM
No, it wasnt in the instructions.
First Step
Import product-chatbox_lite.xml using the Product Manager.
Second Step
Upload chatbox_lite.php to your forum root directory (you can edit it first to change some options).
Thirt Step
Edit the navbar template, find
+++++++++++++++++++++++++++++++++++++++++
//-->
</script>
+++++++++++++++++++++++++++++++++++++++++
before that, add
+++++++++++++++++++++++++++++++++++++++++
function openChatboxLite () {
chatbox = window.open('chatbox_lite.php','chatboxLite','heig ht=330,width=650,directories=n o,location=no,menubar=no,resizable=no,status=no,to olbar=no,scrollbars=yes');
return false;
}
+++++++++++++++++++++++++++++++++++++++++
find
+++++++++++++++++++++++++++++++++++++++++
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
+++++++++++++++++++++++++++++++++++++++++
after that, add
+++++++++++++++++++++++++++++++++++++++++
<td class="vbmenu_control"><a href="#" onclick="return openChatboxLite()">Chatbox</a></td>
+++++++++++++++++++++++++++++++++++++++++
Edit the FORUMHOME template, find
+++++++++++++++++++++++++++++++++++++++++
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
</td>
</tr>
</tbody>
+++++++++++++++++++++++++++++++++++++++++
before that, add
+++++++++++++++++++++++++++++++++++++++++
<!-- Chatbox Lite -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatboxlite')"><img id="collapseimg_forumhome_chatboxlite" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatboxlite].gif" alt="" border="0" /></a>
<a href="#" onclick="return openChatboxLite()">$vbphrase[chatboxlite_chatbox]</a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_chatboxlite" style="$vbcollapse[collapseobj_forumhome_chatboxlite]">
<tr>
<td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="chatbox_lite.php?nofocus=1" width="100%" style="border: 0px"></iframe></div></td>
</tr>
</tbody>
<!-- / Chatbox Lite -->
+++++++++++++++++++++++++++++++++++++++++
You can change text or translate finding the phrases with "chatboxlite_" prefix.
And it's done, enjoy :)
Dream
09-10-2005, 10:31 AM
oh no the product xml should have created the table, did you import it?...
check your database for the table, if you dont have it run
CREATE TABLE vb3_chatboxlite_shout (
`shoutid` INT( 10 ) NOT NULL AUTO_INCREMENT ,
`userid` INT( 10 ) NOT NULL ,
`username` VARCHAR( 100 ) NOT NULL ,
`shout` VARCHAR( 255 ) NOT NULL ,
`dateline` INT( 10 ) NOT NULL ,
`ipaddress` VARCHAR( 16 ) DEFAULT '0' NOT NULL ,
PRIMARY KEY ( `shoutid` )
);
the product manager should have run that though
Wordplay
09-10-2005, 01:48 PM
anybody knows how to make this shoutbox show a miniture (resized version of the avatar of the user instead of the username if they are registered)? and of course the shout would then have to wrap next to it.
anybody out there that can help out with this?
dream, could you help me out here?
Dream
09-10-2005, 07:32 PM
dream, could you help me out here?
you would have to change code
mholtum
09-11-2005, 02:55 AM
oh no the product xml should have created the table, did you import it?...
check your database for the table, if you dont have it run
CREATE TABLE vb3_chatboxlite_shout (
`shoutid` INT( 10 ) NOT NULL AUTO_INCREMENT ,
`userid` INT( 10 ) NOT NULL ,
`username` VARCHAR( 100 ) NOT NULL ,
`shout` VARCHAR( 255 ) NOT NULL ,
`dateline` INT( 10 ) NOT NULL ,
`ipaddress` VARCHAR( 16 ) DEFAULT '0' NOT NULL ,
PRIMARY KEY ( `shoutid` )
);
the product manager should have run that thoughThat seemed to work
Wordplay
09-11-2005, 09:30 AM
you would have to change code
you feel like helping me out with that?
Forumi Shqiptar
09-12-2005, 04:50 PM
Database error in vBulletin 3.5.0 Release Candidate 2:
Invalid SQL:
SELECT count(shoutid) AS total FROM vb3_chatboxlite_shout;
MySQL Error : Table 'humoristi_forum.vb3_chatboxlite_shout' doesn't exist
Error Number : 1146
Date : Monday, September 12th 2005 @ 08:49:38 PM
Script : http://humori.net/chatbox_lite.php
Referrer :
IP Address : ***************
Username : [Elisi]
Classname : vb_database
any help why is it doing this ?? what do i have to change and how can i change it please? many thanks for the replies
Dream
09-12-2005, 08:01 PM
run that query up there manually, im gonna check why the product xml isnt creating it later
Zelda-King
09-13-2005, 05:19 AM
I checked this out.
Got a similar problem here as with the vB 3.5 shoutbox: colours. The button/text colours need looking at, though... I'm sure it looks OK on a lot of boards. Other than that it's looking pretty neat. If that gets fixed I may well install.
Dream
09-14-2005, 11:41 PM
I checked this out.
Got a similar problem here as with the vB 3.5 shoutbox: colours. The button/text colours need looking at, though... I'm sure it looks OK on a lot of boards. Other than that it's looking pretty neat. If that gets fixed I may well install.
not sure what the problem is... the chatbox should use the same style the member is currently using
IFor[You]
09-18-2005, 05:49 AM
hey are you able to make it work with AJAX technology~?
Schwartz12
09-19-2005, 10:15 AM
']hey are you able to make it work with AJAX technology~?
that would be nice :)
how can you get it to the left of your window in vbadvanced ?
like these people got http://www.sex-is-zero.com/
Wordplay
09-23-2005, 11:38 AM
i used vbadvanced and made it a module, that is all. no editing the plugin itself required. somebody explain to me how to take out the TIME though and just not have that shown at all.
Dream
09-29-2005, 10:13 PM
i used vbadvanced and made it a module, that is all. no editing the plugin itself required. somebody explain to me how to take out the TIME though and just not have that shown at all.
in chatbox_lite.php, change this
$time = vbdate($vbulletin->options['timeformat'], $shout['dateline']);
// if shout wasn't made today, show day
if (vbdate('jny', $shout['dateline']) != vbdate('jny')) {
$time = vbdate($vbulletin->options['dateformat'], $shout['dateline'], true) . ' ' . $time;
}
echo '['.$time.'] <em>'.$shout['username'].$del.'</em>: '.$parsed.'<br />'
for this
echo '<em>'.$shout['username'].$del.'</em>: '.$parsed.'<br />';
Booth
09-30-2005, 02:46 AM
i used vbadvanced and made it a module, that is all. no editing the plugin itself required. somebody explain to me how to take out the TIME though and just not have that shown at all.
Would it be possible to let us know what you had to do to make it into a vbadvanced module? :nervous:
Wordplay
09-30-2005, 06:57 AM
thank you dream... thanks alot for getting at me about this.
but there's no way to have the avatars displayed instead of the name right? i know i'm asking for quite alot, but alot of people have been looking for this. i'm getting pms just for requesting it like:
did you find anything yet?
booth... sure why not... the next time i run into my admin cp, i'll certainly hook that up. now please just take my link out of your post.
dbembibre
09-30-2005, 07:13 AM
Dream, exist any posibility of integrate your great hack with the forums permissiones, i dont wont the chat open to all people.
Dream
09-30-2005, 08:16 AM
thank you dream... thanks alot for getting at me about this.
but there's no way to have the avatars displayed instead of the name right? i know i'm asking for quite alot, but alot of people have been looking for this. i'm getting pms just for requesting it like:
did you find anything yet?
booth... sure why not... the next time i run into my admin cp, i'll certainly hook that up. now please just take my link out of your post.
not sure where the avatars info is stored in the database, that might require more queries, and slow it down alot depending on your forum traffic, or it may be already there in the $vbulletin variable or something. ill check it out when i get some time.
Dream, exist any posibility of integrate your great hack with the forums permissiones, i dont wont the chat open to all people.
usergroup permissions is already implemented, you edit chatbox_lite.php and add in "$cantshout = array(x,x,x,x)" where x are the usergroups that cant use the chatbox.
with template conditionals you can show the chatbox only to a couple usergroups. people can still read it if they know the chatbox address though.
about implementing ajax in this hack, I dont see a point to it other than getting rid of the iframe border in Internet Explorer... and the page blinking doesnt bother me, I kinda like to see that the chatbox is refreshing.
dbembibre
09-30-2005, 08:46 AM
with template conditionals you can show the chatbox only to a couple usergroups. people can still read it if they know the chatbox address though.
Thanks, when install today i click Install :)
Booth
09-30-2005, 01:01 PM
booth... sure why not... the next time i run into my admin cp, i'll certainly hook that up. now please just take my link out of your post.
I didn't put your link in my post :ermm:
I've fixed it so it works in VBA now, works a treat so I'm clicking install :D
Wordplay
10-01-2005, 08:03 AM
not sure where the avatars info is stored in the database, that might require more queries, and slow it down alot depending on your forum traffic, or it may be already there in the $vbulletin variable or something. ill check it out when i get some time.
thanks alot!
buffness
10-02-2005, 08:14 PM
how do you make it show up onto rather then at the bottom of the forum homepage. Right below the bar with the links? Also, how do you change the text color? I also don't see any options to edit posts or limit certin users from using
csidlernet
10-05-2005, 02:46 AM
thanks!
/me installs
Mr.ciuk
10-06-2005, 08:41 PM
not sure where the avatars info is stored in the database, that might require more queries, and slow it down alot depending on your forum traffic, or it may be already there in the $vbulletin variable or something. ill check it out when i get some time.
usergroup permissions is already implemented, you edit chatbox_lite.php and add in "$cantshout = array(x,x,x,x)" where x are the usergroups that cant use the chatbox.
with template conditionals you can show the chatbox only to a couple usergroups. people can still read it if they know the chatbox address though.
about implementing ajax in this hack, I dont see a point to it other than getting rid of the iframe border in Internet Explorer... and the page blinking doesnt bother me, I kinda like to see that the chatbox is refreshing.
hallo !!!
sorry but another kind of question : if after doing this i want to show only for some groups chat what can i do ? thanks in advance :)
Is it possible to make chatbox's refresh more frequent? and is it possible to show links as links in the chatbox?.
TIA.
Lea Verou
10-25-2005, 12:45 PM
This would be exactly what I need if it was made as a vbadvanced block...
Wordplay
10-25-2005, 02:27 PM
loukrhtia that is really easy. dream did you ever look into that avatar display?
Lea Verou
10-25-2005, 02:38 PM
loukrhtia that is really easy. dream did you ever look into that avatar display?
If it's that easy can you please tell me how? :)
Bump.............. :ermm:
Is it possible to make chatbox's refresh more frequent? and is it possible to show links as links in the chatbox?.
TIA.
BANDiT600
10-28-2005, 08:31 PM
srh, try to open chatbox_lite.php and change settings in the beginning!
For links use BBCODE's!
BANDiT600
10-28-2005, 08:35 PM
Dream, hi, very nice hack, one of the best in my opinion! I have a question to you, how to remove limit of quantity of letters in message line???
BANDiT600
10-28-2005, 08:41 PM
And it will be nice if you make nicknames clickable, and on click inserts nickname in message line with following code:
nickname_here,one_space_here
Lea Verou
10-28-2005, 10:40 PM
This would be exactly what I need if it was made as a vbadvanced block...
Any updates on this? Sorry to bump but I really need such a block (all the other shoutboxes are too complex for my needs) and a member stated that it's easy :nervous:
sledfreak
11-23-2005, 11:29 AM
Is there a way to let only members enter in the shout box?
Lea Verou
11-23-2005, 04:50 PM
Is there a way to let only members enter in the shout box?
When importing the xml:
Database error in vBulletin 3.5.1:
Invalid SQL:
show tables like testvb_'sl_shout';
Rhoads
11-23-2005, 06:07 PM
Here is a vBadvanced chatbox module
Lea Verou
11-23-2005, 06:11 PM
Here is a vBadvanced chatbox module
YOU ROCK!!!
You just saved me some work, thank you so much!! Where is the install button for that? :p :p
Rhoads
11-23-2005, 06:39 PM
YOU ROCK!!!
You just saved me some work, thank you so much!! Where is the install button for that? :p :p
lol :laugh: :laugh:
sledfreak
11-30-2005, 06:49 PM
Does anyone know what this means?
Database error in vBulletin 3.5.0 Release Candidate 3:
Invalid SQL:
SELECT * FROM chatboxlite_shout ORDER BY dateline DESC LIMIT 0, 50;
MySQL Error : Error writing file 'D:\WINNT\TEMP\MY371' (Errcode: 28)
Error Number : 3
Date : Wednesday, November 30th 2005 @ 03:44:07 PM
Script : http://www.xxxxxxx.com/forum/chatbox_lite.php?nofocus=1
Referrer : http://www.xxxxxxx.com/forum/
IP Address : xx.xxx.xx.xxx
Username : xxxxxxx
Classname : vb_database
smokering
12-04-2005, 08:18 AM
thank you for the nice chatbox.
i have a question or two is there anyway to change the color of the font on the send and refresh buttons i have a dark board with light text and it is not very readable.
thanks again for the hack
kdh344
12-06-2005, 12:45 PM
Is this hack compatible with a 3.0.3 version of vbulletin?
I've found all of the code references in the install instructions but I'm not sure how to import - where in the admin do i find the "Product Manager" for the import of the xml file? The only thing I see under Import & Maintenance is "Import / Export" of source board format.
Thanking you in advance,
kdh
Bounce
12-11-2005, 02:28 AM
Works a treat
/me installs
any way of adding a smileys button,at present smileys work if you paste in the code from a smiley.. a button to clickable smileys would be nice? possible? :ermm:
Bounce
12-11-2005, 05:41 PM
Is this hack compatible with a 3.0.3 version of vbulletin?
I've found all of the code references in the install instructions but I'm not sure how to import - where in the admin do i find the "Product Manager" for the import of the xml file? The only thing I see under Import & Maintenance is "Import / Export" of source board format.
Thanking you in advance,
kdh
no 3.0.3 doesn't have the plug-in system , upgrade to 3.5.2 :o lol
Justdave
12-18-2005, 07:46 PM
Shoutbox slows down my site. Are you having the same problems with this version, if not, why not?
TIA
Dave
johnnypict
01-02-2006, 10:43 PM
Hi,
I'm concerned that if I pop this into the front of my forums page that the odd passer by may leave abusive language etc. Can't really ban them from the forum. Or is this only visible to registered people.
Is there away of banning certain words from appearing.
Thanks in advance. :squareeyed:
RichieBoy67
01-03-2006, 12:22 AM
How can I change the color of the text inside the buttons???
Thanks
Mastar
01-14-2006, 10:09 PM
Can we make the chatbox only visible to members??
Mastar
01-25-2006, 03:51 PM
Any help to my last post??? How can I make the chatbox visible to only members???
rudiviss1
01-25-2006, 05:11 PM
Yes, simply add these:
<if condition="$show['member']">
Before the Code
and the following after it:
</if>
If you want a notice, add this above where you add <if condition="$show['member']">:
<if condition="$show['guest']">
<p><b>ONLY FOR MEMBERS, SORRY!</b></p>
</if>
rudiviss1
01-25-2006, 05:13 PM
Hi,
I'm concerned that if I pop this into the front of my forums page that the odd passer by may leave abusive language etc. Can't really ban them from the forum. Or is this only visible to registered people.
Is there away of banning certain words from appearing.
Thanks in advance. :squareeyed:
This chat box uses the forum's post system, ie. tags that can be used in posts can be used in the chatbox. This is not confirmed but I think that the swear filter may be in effect too :ermm:
Why not just close it off to guests?? See above post :nervous:
Rudi
Mastar
01-26-2006, 04:29 PM
Yes, simply add these:
<if condition="$show['member']">
Before the Code
and the following after it:
</if>
If you want a notice, add this above where you add <if condition="$show['member']">:
<if condition="$show['guest']">
<p><b>ONLY FOR MEMBERS, SORRY!</b></p>
</if>
say I don't want certain usergroups to view the chatbox.... what would I add?
Mastar
01-28-2006, 12:29 PM
Can some create a cp in the admincp for chatbox like HERE (https://vborg.vbsupport.ru/showthread.php?p=884402#post884402)
Mikecp421
01-28-2006, 07:58 PM
excellent, thanks!
rudiviss1
01-29-2006, 07:37 AM
Can some create a cp in the admincp for chatbox like HERE (https://vborg.vbsupport.ru/showthread.php?p=884402#post884402)
Hi Mastar,
I don't know about the AdminCP integration but I could make a standalone PHP file that administrators only can use to edit their chatbox if that would help... :ermm:
rudiviss1
01-29-2006, 07:50 AM
say I don't want certain usergroups to view the chatbox.... what would I add?
:ermm:
From my current knowledge of how vB works, I think you have to go through the permissions of certain usergroups, what I don't know is how we get the Chatbox to show up in these permissions... :nervous:
Mastar
01-29-2006, 12:39 PM
Hi Mastar,
I don't know about the AdminCP integration but I could make a standalone PHP file that administrators only can use to edit their chatbox if that would help... :ermm:
Well thank you! I would like to see how that works, can you please?! THanks again.
rudiviss1
01-30-2006, 08:08 PM
Well thank you! I would like to see how that works, can you please?! THanks again.
Hello again Mastar, I will try my best although results cannot be guarenteed :nervous:
I will get to work on it ASAP, currently just working on my whole new Bulletin Board system, MageBB (http://www.rvracing.net/magebb) :)
Dennis B
01-30-2006, 11:13 PM
hmmmmm
I've installed this... but there doesn't seem to be an easy way to prune messages... it would be nice if at every interval the script would just prune messages that are either older than X hours/days/weeks or if there are more than X messages in the chat...
Otikeu
02-04-2006, 09:26 AM
Worked on my test board, but...
Database error in vBulletin 3.5.3:
Invalid SQL:
show tables like ghf_'sl_shout';
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ghf_'sl_shout'' at line 1
Error Number : 1064
Date : Saturday, February 4th 2006 @ 06:22:06 AM
Script : http://myurl.com/admincp/plugin.php
Referrer : http://myurl.com/admincp/plugin.php?do=productadd
IP Address : 69.10.160.68
Username : Otikeu
Classname : vb_database
I am currently using MySQL 4.1.14-standard. I get this error when trying to import the xml product file.
Thank you.
Otikeu
02-04-2006, 06:43 PM
Help please? Thanks...
rudiviss1
02-04-2006, 09:34 PM
hmm, is the test board on the same database as the other board? If so, this could be conflicting...
Otikeu
02-04-2006, 10:14 PM
hmm, is the test board on the same database as the other board? If so, this could be conflicting...
No, they were on seperate databases, just did that so I could see a live demo of some hacks and templates myself, before I upgraded my forum.
Anyways, it seems to be the wrong syntax... for some weird reason. maybe the issue is "'sl_" portion?
wdlove
02-04-2006, 11:50 PM
This is very exciting news also. Just need to convince my brother.
Dream
02-05-2006, 07:17 AM
i would hep you if I knew what was going on
say hmmm... is your test board running the same chatbox lite version as your live board? did you follow the instructions right?
wdlove
02-06-2006, 12:48 AM
I'm hoping that I will get to use this if my brother agrees.
Otikeu
02-13-2006, 08:23 PM
Any word on the previous support request? Thank you.
rudiviss1
02-13-2006, 09:24 PM
Any word on the previous support request? Thank you.
Yes ::
i would hep you if I knew what was going on
say hmmm... is your test board running the same chatbox lite version as your live board? did you follow the instructions right?
:)
* Work will be started on my CP Module for this within the next few days.
Otikeu
02-15-2006, 12:36 AM
Yes ::
:)
* Work will be started on my CP Module for this within the next few days.
Oh, haha stupid me.
Anyways, when I try to upload the product xml file, it seems to report that the synax doesn't agree.
Actually, my test board was 3.5.2, then I upgraded my main forum (the one I use, not the test) to the 3.5.3, which seems to not be agreeing correctly. I'll double check to see if it just doesn't work with 3.5.3 and report back.
Thanks!
Otikeu
02-15-2006, 01:02 AM
Well, it seems that the version isn't the issue, just the upgrade process could have caused it... here is the MySQL error I get when importing the product (aka it shows this when I click on "Import" and doesn't import the product)
Database error in vBulletin 3.5.3:
Invalid SQL:
show tables like ghf_'sl_shout';
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ghf_'sl_shout'' at line 1
Error Number : 1064
Date : Tuesday, February 14th 2006 @ 10:00:30 PM
Script : http://forums.xxxxxxxxxxxxx.com/admincp/plugin.php
Referrer : http://forums.xxxxxxxxxxxxx.com/admincp/plugin.php?do=productadd
IP Address : 69.10.160.68
Username : Otikeu
Classname : vb_database
My MySQL version is 4.1.14-standard. It works on a test board of vB 3.5.3, but won't work on my upgraded board of 3.5.3...
Asha'man
02-15-2006, 10:43 AM
Hi,
first of all, thanks for the really nice chatbox! :) It's running fine now in my brandnew vBulletin installation @http://www.celica-community.de
I had to patch a small thing to allow usernames containing ticks (as mine):
$username = ereg_replace("'","\\'",$vbulletin->userinfo['username']);
And then use $username in the rest of the code instead of $vbulletin->userinfo['username'].
It would be great if you could add a fix similar to this to your codebase. So I (and probably others) won't have to take care for the future. It also enhances your security. Someone might be able to inject SQL by using a malformed username or something. I think it's not trivial or maybe not even possible, but why not going the safes way?!
Cheers,
Thomas
Asha'man
02-15-2006, 10:46 AM
Otikeu: I had the same. Just change the statement in the xml to: show tables like 'sl_shout'.
But do this with care and only if you're sure the [yourprefix]sl_shout table is not existing already in your db. This is a nasty workaround to get it running, but it works.
Otikeu
02-15-2006, 10:08 PM
Otikeu: I had the same. Just change the statement in the xml to: show tables like 'sl_shout'.
But do this with care and only if you're sure the [yourprefix]sl_shout table is not existing already in your db. This is a nasty workaround to get it running, but it works.
Aw, yes that is what I thought, but wasn't too sure on what to do. However, I was gonna backup my database and then do that, but now that you've confirmed, I'll proceed with it heh. Thank you for the help, I'll post what the results are.
EDIT: It worked! Thank you!
while i try to importing the product it appear to error. this is what the program noticed>>>
Database error in vBulletin 3.5.3:
Invalid SQL:
show tables like vb3_'sl_shout';
MySQL Error : You have an error in your SQL syntax near 'vb3_'sl_shout'' at line 1
Error Number : 1064
Date : Thursday, February 23rd 2006 @ 01:28:10 AM
Script : http://vuth.com/forum/admincp/plugin.php
Referrer : http://vuth.com/forum/admincp/plugin.php?do=productadd
IP Address : 203.144.160.243
Username : admin
Classname : vb_database
Does anybody can tell me what happened with this? and what should i do to install it please..... :ermm:
Otikeu
03-14-2006, 01:58 AM
while i try to importing the product it appear to error. this is what the program noticed>>>
Does anybody can tell me what happened with this? and what should i do to install it please..... :ermm:
Same issue as I had, check the posts on this page.
Also, what file do I edit to modify Chatbox templates? Cause, I wanna take out the input text field so it doesn't auto refresh... and just customize it some more. Also, maybe for the next release, a /emote system? I can give you a list of good ones.
Replicators
03-14-2006, 07:43 AM
It's obvious that this mod is made for a lighter skin, if you have a dark skin then you cannot see the button letter's or the text people put into the box. I like this, a bit better than vbshout to be honest as it's much lighter on the db. If someone could tell me how i could change the font colors of the buttons and box text, i would be most happy.
Otikeu
03-21-2006, 10:16 PM
It's obvious that this mod is made for a lighter skin, if you have a dark skin then you cannot see the button letter's or the text people put into the box. I like this, a bit better than vbshout to be honest as it's much lighter on the db. If someone could tell me how i could change the font colors of the buttons and box text, i would be most happy.
The colors depend on your vBulletin's CSS customizations. It works on my dark layout.
You can check the coding, etc, through the chatbox_lite.php file.
WARNING! Basic PHP knowledge required.
Brandon Sheley
03-24-2006, 06:44 AM
just installed with no problems :)
* Brandon Sheley clicked install
ARCANE_B0SS
03-24-2006, 05:19 PM
can i use this hack with vb3.5.4 ????????
is there r any risk?????
Otikeu
03-25-2006, 07:19 AM
can i use this hack with vb3.5.4 ????????
is there r any risk?????
Yes, it works with 3.5 series. Please use correct english next time. Thank you.
UDPride
04-02-2006, 01:51 AM
This is an awesome hack thanks. A couple stupid questions because Im stupid:
Where does all the chat get stored? Are there ways to define how much chat to keep in the chat history when someone views it? And ways to completely purge it? Ways to limit how much can be stored in it?
Im just thinking from a maintenance/server usage perspective. Thanks.
UDPride
04-02-2006, 03:43 AM
Ive also noticed after several minutes a person logged in to the board who posts in the chatbox get named "Unregistered". They log back in and are their own nick for a while. Its like theres a timeout or something.
[05:40 AM] Unregistered X: test
[05:33 AM] Chris R X: weird
[05:24 AM] Unregistered X: back to unregistered - there must be a timeout causing this - i am still logged in
[05:24 AM] Unregistered X: clock looks better now - already "sprung" forward
[05:02 AM] ud69 X: dont forget we spring forward tonight
[05:02 AM] ud69 X: why is the clock off?
[05:01 AM] ud69 X: ok now
[05:01 AM] ud69 X: not it shows correctly
[05:01 AM] ud69 X: did so
[04:35 AM] Administrator X: log out and back in
Any way to fix this?
UDPride
04-02-2006, 09:35 PM
anybody with any ideas?
edit: oops. I think I found the variables in the php file. I decreased the refresh fro 300 seconds to 60.
That didnt seem to solve the problem though it does refresh after 1 minute. After nine minutes I got another "unregistered" even though Im still logged in:
[12:41 AM] Unregistered: yyy
[12:32 AM] Chris R: rat
[12:28 AM] Chris R: BOING
[12:26 AM] Chris R: Another test
[04-02-2006 10:38 PM] Unregistered: tt
[04-02-2006 10:37 PM] Unregistered: test
[04-02-2006 10:22 PM] Unregistered: another test
[04-02-2006 10:05 PM] Chris R: Idle test
[04-02-2006 08:03 PM] Chris R: oo
[04-02-2006 07:54 PM] Chris R: works?
As you can see at 12:32am I was logged in. At 12:41am I posted as "Unregistered." Ive also noticed that is physically logs you out of the message board. I go to another page on the message board and Im no longer logged in. This was never the case before this hack.
I wish I knew why this was happening.
rareclownfish
04-04-2006, 03:14 PM
is this working on 3.5.4?
bashy
04-04-2006, 05:44 PM
Hi peeps
I know its been mentioned but....
Any chance on getting this to work with AJAX please?
UDPride
04-08-2006, 07:08 AM
ive got ti working on 3.5.4 but the chatbox will log you out after 10-15min if you arent logged into the board with a "remember me".
Burley
04-09-2006, 08:38 PM
Does anybody know a way to remove the time/date indication from the shoutbox?
The same go's for the horizontal scrolling, anyway to remove that?
bashy
04-21-2006, 05:28 AM
Hi
How do you mass delete shouts or pages please?
I have this working on 3.5.4, but for some reason I can't see the text in the text input field.... any ideas? It's working, and the text shows in the shoutbox, but not where I'm typing....
bashy
05-01-2006, 12:42 PM
Hi
Its not showing any border around the chatbox see here (http://www.bashys-place.com/forums/index.php) please
Also the collapse feature is not working :(
All edits are correct apart from the locaion of the box
salata
05-01-2006, 08:16 PM
why is it that when members input "&" it messes up what they write?
bashy
05-10-2006, 07:17 PM
How do i add the link for the smiliey popup box please?
I would like the link to show as a button next to the refresh button?
Please advise?
Brandon Sheley
05-19-2006, 04:45 PM
I have this working on my site just fine, but I'm helping another member out and when i upload the product with the product manager i get this error..
Database error in vBulletin 3.5.4:
Invalid SQL:
show tables like vb'sl_shout';
MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'vb'sl_shout'' at line 1
Error Number : 1064
Date : Friday, May 19th 2006 @ 12:35:55 PM
Script : http://www.***.com/forums/admincp/plugin.php
Referrer : http://www.***.com/forums/admincp/plugin.php?do=productadd
IP Address : ***
Username : Loco.M
Classname : ***
? any ideas,, like i said, i have this on my site and it installed just fine ?
this board is new, it just has a style and vBa
thx
RFViet
05-19-2006, 05:00 PM
There was a hack named " vBshout box" . Is it different from chat box ??? If it is, then what is the difference ??
Brandon Sheley
05-19-2006, 05:04 PM
there is an ajax shoutbox that is okay, but not recommended for larger forums,, it was a few other issues too,
made by zero tolerance
RFViet
05-19-2006, 05:10 PM
Can this be seen from every forum or just main forum ???
bashy
05-19-2006, 05:16 PM
It can be made for every page but i could never get that to work :(
RFViet
05-19-2006, 05:26 PM
vB shoutbox doest it, I hope this one can !!!
bashy
05-19-2006, 05:29 PM
You could always try the code thats meant to go in the forumhome template and stick it somewhere in the navbar template, see if that shows up on all pages.. This is just a guess mind....I may have a go actually...bear with me and i will see if my idea works!! gis 5 minutes!!
bashy
05-19-2006, 05:34 PM
Hi again...
I have just added this
<!-- Chatbox Lite -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatboxlite')"><img id="collapseimg_forumhome_chatboxlite" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatboxlite].gif" alt="" border="0" /></a>
<a href="#" onclick="return openChatboxLite()">$vbphrase[chatboxlite_chatbox]</a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_chatboxlite" style="$vbcollapse[collapseobj_forumhome_chatboxlite]">
<tr>
<td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="chatbox_lite.php?nofocus=1" width="100%" style="border: 0px"></iframe></div></td>
</tr>
</tbody>
<!-- / Chatbox Lite -->
To the bottom of the navbar template
and it shows on every page just below the navbar, is this what ya after :)
This is on my test style...i dont see any probs on any other style either :)
bashy
05-19-2006, 05:43 PM
EDIT:
cant have my version on all the pages, for somereason it wont show the membners online properly
The above post is fine and should work ok!!
Brandon Sheley
05-19-2006, 05:46 PM
k, got this working.. had to edit the plugin,, thx guys :) this hack is nice
Brandon Sheley
05-19-2006, 07:06 PM
how do u delete shouts or prune shouts ?
thx
bashy
05-19-2006, 07:08 PM
The only way that i know of atm is through the phpmyadmin (database)
or 1 by 1 on the forum...
I have asked this before but didnt notice an answer on it :(
Brandon Sheley
05-19-2006, 07:11 PM
well we wont be able to use this,, the compatition for the site I'm helping is going in the chatbox and spaming his site :( guess I'll try a differant one then.. thx guys
RFViet
05-19-2006, 07:43 PM
Hi again...
I have just added this
<!-- Chatbox Lite -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatboxlite')"><img id="collapseimg_forumhome_chatboxlite" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatboxlite].gif" alt="" border="0" /></a>
<a href="#" onclick="return openChatboxLite()">$vbphrase[chatboxlite_chatbox]</a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_chatboxlite" style="$vbcollapse[collapseobj_forumhome_chatboxlite]">
<tr>
<td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="chatbox_lite.php?nofocus=1" width="100%" style="border: 0px"></iframe></div></td>
</tr>
</tbody>
<!-- / Chatbox Lite -->
To the bottom of the navbar template
and it shows on every page just below the navbar, is this what ya after :)
This is on my test style...i dont see any probs on any other style either :)
cool , you're gonna update ???
bashy
05-19-2006, 07:46 PM
I will if i can find a way to have it show the members online on all pages.
Ya see i use the Welcome Panel version (i modified it for my liking as well)
Now the welcome panel version shows members online in a box, but when i had this show on all pages it wouldnt show the online mebers for some reason..
If i manage to get them to show then yeah i will :)
devilsmania
05-24-2006, 06:09 PM
====
Hello, how do i show UserGroups Colors(colored nicknames, in other parts of the forum it works, but not inside theshoutbox) inside the Shoutbox ? actually users(posters) and text submitted is all black and normal size/style.
:s:s:s
thanks
====
putergirl
06-10-2006, 10:21 PM
hello, just installed this shoutbox and love it. I do have one problem tho.. the quotes and left and right arrows do not parse, it shows the code for them instead. Is there any way to fix this?
Thanks. :)
vchase
06-20-2006, 11:25 PM
EDIT: great hack!
bashy
06-21-2006, 05:15 AM
It looks like it dont like db prefix's but i could be wrong?
Chris 96 WS6
06-21-2006, 02:31 PM
The answer is alread in this thread. Go into the XML file and delete out the table prefix variable in the first line.
Chris 96 WS6
06-22-2006, 12:22 PM
Anybody have any pointers on how I could add a "who's in chat" feature to this?
RFViet
06-23-2006, 06:48 PM
I will if i can find a way to have it show the members online on all pages.
Ya see i use the Welcome Panel version (i modified it for my liking as well)
Now the welcome panel version shows members online in a box, but when i had this show on all pages it wouldnt show the online mebers for some reason..
If i manage to get them to show then yeah i will :)
Any luck yet ???:knockedout:
vchase
06-25-2006, 01:36 AM
The answer is alread in this thread. Go into the XML file and delete out the table prefix variable in the first line.
thanks! it works!!! **installed**
oberheimhaven
06-25-2006, 03:59 AM
I have been doing this for maybe a month installed 5 min bam it works greatly3.5.4 any updates coming up anytime soon? great job you all on here simple amaze me!
Ober
ab420
06-25-2006, 08:05 PM
Thank you VERY much for this! Installed!
SnickersTK
06-25-2006, 09:30 PM
I seriously love you for this dude!
ab420
06-25-2006, 10:10 PM
Is there any way to have 2 seperate shoutboxes in different parts of your forum? I can put in other places, but I'd like to have 2 with seperate conversations in them. Is there any simple way to do this, or does the code need to be completely modified?
EDIT-
Nevermind.. I figured out how to do it. I just went through the chatbox_lite.php file and every single time it said chatbox, I changed it to chatboxb, and saved the file as chatboxb_lite.php. Then I did the same thing to the product-chatbox_lite.xml file, and saved it as product-chatboxb_lite.xml, and finally did the same for the code in the template edits in the install file, and then just installed it like the first one. I did this so I could add a small chat box on my vBRadio page, so my members can talk about what they are listening to and stuff like that!
RFViet
06-29-2006, 06:05 PM
How to prevent unregisters to use chatbox ??
RFViet
06-30-2006, 12:56 PM
How to add color, smillies , font box to the chatbox ??
ab420
07-01-2006, 04:07 AM
Is there any way to make the user names in the chatbox a link to their profile?
ab420
07-01-2006, 03:28 PM
I was messing around with the chat box this morning, and this is what I came up with:
I have my chatbox only in a seperate window, so they have to click a link on the forum home page to open it. I don't want the big fully-functional chatbox on the home page, but I did want a way for people to see what's going on in there.
I took the chatbox_lite.php file, and renamed it chatboxc_lite.php
50151
That is the chatboxc_lite.php file I used. I edited it so you can't shout, delete or refresh from this box. What you can do is edit the options in this chatboxc_lite.php file, such as how many shouts per page, which I set to 3, and set show pages to false.
I removed the chatbox from the forum home page, as I said before, then I added this code right under $navbar in the forumhome template:
<tbody>
<tbody>
<tr>
<td align="center" colspan="2"><div align="center">
<a href="#" onclick="return openChatboxLite()">These are the last few comments in the $vbphrase[chatboxlite_chatbox]</a></div>
</td>
</tr>
</tbody>
<tr>
<td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center" height="50"><iframe src="chatboxc_lite.php?nofocus=1" width="100%" height="75" style="border: 0px"></iframe></div></td>
</tr>
</tbody>
What it does is shows the last few shouts, by allowing you to use a second set of options, but still works from the same database. By not allowing manual refreshes or shouting from the main page, the already minimal server load becomes almost nothing, but still allows people to see what's up in the chat room right when they get to your forum!
Screenshot:
50144
Cyruski
08-06-2006, 06:00 AM
is it ok with 3.6.0 ? I installed it but now worked for me, need help :)
beano33
08-08-2006, 11:51 PM
I installed this on 3.6 'Gold' today with no problems. Great hack! :D
Rahuldhanpat
08-13-2006, 06:10 AM
i have vbulletin 3.6 and when i tried to run the Hack_install.php the the error msg i m getting is this... help me please
Fatal error: Call to undefined function: query() in /hsphere/local/home/rahuldha/devghar.com/install/his_files/hack_install_b3.php on line 48
seangworld
11-16-2006, 04:16 AM
awesome, thanks man.
oh snap, i just noticed a 'similar link' to move the shoutbox to the welcome panel lol, i moved it myself and dropped it between the main body of my forum and the quote-it lol. heehee, im good, yeah that's right! :P
Dream
11-16-2006, 04:53 AM
Did importing the product file work for you? I think this product file has an error, but if it worked for you im wrong.
Been Told
11-21-2006, 08:53 PM
This is a really nice hack!
I needed to modify it very very slightly because I wanted to hide the chatbox from guests.
To achieve that, do this:
After installing the chatbox...
in Navbar find:
<td class="vbmenu_control"><a href="#" onclick="return openChatbox()">Chatbox</a></td>
Replace with:
<if condition="$show['member']"><td class="vbmenu_control"><a href="#" onclick="return openChatbox()">Chatbox</a></td></if>
In FORUMHOME find:
<!-- Chatbox -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatbox')"><img id="collapseimg_forumhome_chatbox" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatbox].gif" alt="" border="0" /></a>
<a href="#" onclick="return openChatbox()">$vbphrase[chatbox_chatbox]</a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_chatbox" style="$vbcollapse[collapseobj_forumhome_chatbox]">
<tr>
<td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="chatbox.php?nofocus=1" width="100%" style="border: 0px" frameborder="0"></iframe></div></td>
</tr>
</tbody>
<!-- / Chatbox -->
Replace with:
<!-- Chatbox -->
<if condition="$show['member']">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatbox')"><img id="collapseimg_forumhome_chatbox" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatbox].gif" alt="" border="0" /></a>
<a href="#" onclick="return openChatbox()">$vbphrase[chatbox_chatbox]</a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_chatbox" style="$vbcollapse[collapseobj_forumhome_chatbox]">
<tr>
<td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="chatbox.php?nofocus=1" width="100%" style="border: 0px" frameborder="0"></iframe></div></td>
</tr>
</tbody>
</if>
<!-- / Chatbox -->
What it does is, it checks if the person viewing the page has a user ID (i.e. is logged in) and it shows it only to people with a user ID. And since guests have no user ID, it hides the chatbox from the guests.
As I said, a great hack and a very nice alternative for bigger forums! :D
here's mine so far
http://img107.imageshack.us/img107/6790/shoutbox2xf.gif
I've just installed this mod and was wondering how I go about moving the shoutbar text down the bottom like the image above?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.