vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Chat Modifications - Dream's Chatbox (https://vborg.vbsupport.ru/showthread.php?t=131002)

DementedMindz 05-08-2007 06:08 PM

no no say for example you post on my site I wont see your message in the shoutbox until I refresh the page. when it should show right away cause of the ajax. as for the messages part what would happen is say your the admin you only erase the top 2 messages cause they were spam or something if I hit the refresh button on the shoutbox I will see them messages.

DementedMindz 05-08-2007 06:12 PM

Quote:

Originally Posted by Legende (Post 1243816)
How can i do this? ;p

I just want it for usergroup 6 and 7 to show


<if condition="is_member_of($bbuserinfo, 6,7)">
your shout box code
</if>

Dream 05-08-2007 06:30 PM

Quote:

Originally Posted by DementedMindz (Post 1243841)
no no say for example you post on my site I wont see your message in the shoutbox until I refresh the page. when it should show right away cause of the ajax. as for the messages part what would happen is say your the admin you only erase the top 2 messages cause they were spam or something if I hit the refresh button on the shoutbox I will see them messages.

That shouldn't be happening. Can you send me your forum address in a PM?

Ajax doesn't mean the message appears right away, it has a refresh rate too. If you set it to 10 seconds it could give you the impression that they appear right away, it's the way vBShout works.

Dream 05-08-2007 06:36 PM

I was able to reproduce the IE7 refresh bug in my testboard, I'll be working on a fix :)

Maybe I should drop the custom code and just use the vB ajax functions.

DementedMindz 05-08-2007 06:38 PM

strange cause when I had done your post here https://vborg.vbsupport.ru/showpost....&postcount=261 then the shout would appear right away but since the update it has stopped appearing right away and in the old one I even had refresh off also in admincp since I didnt think it would be needed cause of the ajax.

Dream 05-08-2007 06:39 PM

When you send a message it should appear right away. With the IE7 bug that may not happen.

Were you using the no ajax version or the 1.4 before? The IE7 refresh bug is with 1.4 and 1.5.

DementedMindz 05-08-2007 06:45 PM

nah when I was using the ajax version before this one and did these mods to the php file (chatbox.php) https://vborg.vbsupport.ru/showpost....&postcount=261 they would appear right away but since the update they wont appear right away... well let me clear it up they appear for the user who posted the shout right away but for everyone else they have to hit the refresh button or they have to refresh the page in order to see new shouts. where as with the version before this with them mods it would appear right away.

Dream 05-08-2007 06:46 PM

How many seconds is your refresh interval set to?

DementedMindz 05-08-2007 06:48 PM

0 for disabled since i didnt ever use it and didnt use it in the previous version either

DementedMindz 05-08-2007 06:51 PM

just tried it on 10 and same thing didnt show the newest shout until page refresh

Dream 05-08-2007 06:51 PM

That's the problem, 0 disables ajax refreshing, you can only see new messages by clicking the refresh button.

Set that option to the number of seconds you want for the messages to update.

You need to reload the page for this new setting to take effect.

DementedMindz 05-08-2007 06:56 PM

yeah I had it on 0 since I been using it and it would work fine maybe its this I-E bug who knows cause I been testing it with one name on I-E and one on firefox. what about the error with the smilieys is that in the same I-E bug?

Dream 05-08-2007 07:05 PM

The smilies button is working fine in my testboard with IE7.

Did you edit chatbox.php?

edit: I'll have to go now, I'll be back later

DementedMindz 05-08-2007 07:07 PM

nope its all stock if you click the smilieys button it will give you a error like I posted a few pages back with the screen shot im just going to remove it now and try another one thanks anyway.

jerseyda6 05-08-2007 07:54 PM

is there a way to put the box on the top of the page?

jerseyda6 05-08-2007 08:08 PM

and can you make the box bigger at all?

odonel 05-08-2007 08:11 PM

Quote:

Originally Posted by Dream (Post 1243772)
If you create a BBCode for Flash you can.


Hmm why would you want to do this?


Can you post your autopost options?

Theres an option for moderator usergroups in the chatbox options that should show an X in each message to delete them.

here is the option part of autopost

// ########################## OPTIONS ############################
$user = 'admin';
$userid = 1;
$message = 'Good morning all!';

arco 05-08-2007 09:17 PM

Quote:

Originally Posted by jerseyda6 (Post 1243919)
is there a way to put the box on the top of the page?

The instructions are in the zipfile.

Dream 05-09-2007 12:20 AM

Updated, version 1.6

Fixed IE7 bug, the ajax code now uses vB's ajax functions.

Dream 05-09-2007 12:25 AM

Quote:

Originally Posted by odonel (Post 1243935)
here is the option part of autopost

// ########################## OPTIONS ############################
$user = 'admin';
$userid = 1;
$message = 'Good morning all!';

I fixed the chatbox_autopost.php for you, the new file is in the 1.6 zip.

arco 05-09-2007 12:30 AM

Thanks Dream.

I'm gonna test it real soon. Some people have been asking how to make the height of the chatbox bigger, so I have added a setting so they can add their desired height in pixels. I will make the changes to the 1.6 version and send it to you for reviewing and possible inclusion in next version.

Dream 05-09-2007 12:33 AM

Sure, it's a template mod right?

arco 05-09-2007 01:47 AM

Ajax works fine with IE7 now. :up:

And here's the hack i made. It adds one new setting and a change to the template adding code.

Dream 05-09-2007 01:56 AM

Thanks arco, that's a nice idea, but I can see people changing the chatbox height easily by editing the template.

arco 05-09-2007 02:32 AM

Quote:

Originally Posted by Dream (Post 1244108)
Thanks arco, that's a nice idea, but I can see people changing the chatbox height easily by editing the template.

Yeah sure they can, but not everyone is that clever to do it manually. :erm: To have it as user-friendly as possible, all stuff like that should be changeable in the settings imo. Template editing should also be avoided if possible. Just look at some of the other mods, like Cyb ones for example. No template editing at all, just import the product xml and choose in settings where the mod should appear. It's things like that what really takes a mod to new levels.

Dream 05-09-2007 02:33 AM

Ah but I'm a lazy sob :p

edit: besides, auto edit templates wont work for people with custom styles

arco 05-09-2007 02:39 AM

Lol.... ok then. :)

seangworld 05-09-2007 07:21 AM

Quote:

Originally Posted by Legende (Post 1243816)
How can i do this? ;p

I just want it for usergroup 6 and 7 to show

if you install the hack as a module and use vbadvanced you can set permissions for who sees what via admincp > vba cmps > quick permissions editor.

seangworld 05-09-2007 07:31 AM

ya the ie7 bug is gone, just a slight delay after i hit the 'send' button.
but that damn 'array' is still there.

arco 05-09-2007 10:53 AM

I exported the vBadvanced module, so people just need to upload it through the CMPS instead of adding the code themself. Maybe you can add it to the zipfile and the frontpage Dream?

Dream 05-09-2007 05:32 PM

seangworld, what browser are you using?

arco I'll do that.

edit: seangworld, I think you put the guests user group as chatbox moderator, I think guests can delete messages in your chatbox

da420 05-09-2007 07:36 PM

I have about 1/2 of the firefox 2.0 users are complaining about the chat box showing nothing but a blank chat box, no text entry all intermittently, and others are saying it's not refreshing, or submitting posts to it.

Dream 05-09-2007 11:19 PM

I read your chatbox, is it a style issue? Some users were saying it wasn't working just on the Blue style.

I tested here with firefox and it seems to be refreshing fine, on the green and blue styles.

If this keeps happening, ask them if they get any javascript errors.

edit: yes it isn't working in the Blue Fluid style, how strange O_o

edit: yes it doesn't work only in the Blue Wave Fluid style, on all others it seems to work

edit: do you have any custom javascript installed in the Blue Wave Fluid style? I'm getting a big error here when the chatbox is loaded (exception, when you get an exception it means it's a big error)

seangworld 05-10-2007 12:56 AM

Quote:

Originally Posted by Dream (Post 1244478)
seangworld, what browser are you using?

arco I'll do that.

edit: seangworld, I think you put the guests user group as chatbox moderator, I think guests can delete messages in your chatbox


yes i did actually. and ya know what? it took care of the frickin lag i was having on my site. i was wondering wtf was going on!! hehe, didnt think it was the chatbox.:p

Dream 05-10-2007 12:57 AM

Whats your refresh interval set to? If you set it too low it could require more server resources.

And sorry man, I couldn't reproduce your array problem in any browser I have.

edit: seang redo your forum home top chatbox edit in the new instructions to fix the collapse image

Sir_Yaro 05-10-2007 02:41 PM

Hi Dream.
Is there any chance to make this hack work with 3.5.x?
That would be briliant cause existing 3.5 version is extremly far from perfection....

Dream 05-10-2007 06:39 PM

I don't have time to support two versions, sorry.

But I don't see why this version shouldn't work in 3.5, could you try for me? The only problem I would see is product file incompatibility.

Sir_Yaro 05-10-2007 08:01 PM

Quote:

Originally Posted by Dream (Post 1245110)
I don't have time to support two versions, sorry.

But I don't see why this version shouldn't work in 3.5, could you try for me? The only problem I would see is product file incompatibility.

yup, product files are incompatible.
Code:

Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
        (`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
        ('1', '5', 'Chatbox - WOL Support', 'online_location_process', 'if($filename==\'chatbox.php\'){$userinfo[\'activity\'] = \'dream_chatbox\';}', 'chatbox_lite');

MySQL Error  : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date        : Thursday, May 10th 2007 @ 09:58:43 PM
Script      : http://xxx/forum/admincp/plugin.php
Referrer    : http://xxx/forum/admincp/plugin.php?do=productadd
IP Address  : 89.xxxxxxx
Username    : Sir_Yaro
Classname    : vB_Database


Dream 05-11-2007 02:20 AM

I'll look into making a product file compatible with 3.5.

Dream 05-11-2007 04:52 AM

Updated, version 1.7

- Added /me code. Users can use the /me code in front of messages to denote an action.

- When posting the posted message now appears right away, as opposed to having to wait for a refresh. This is faster and uses a little less resources.

- Added Chatbox height option. To use it, redo your forumhome template edit. If you like your Chatbox size you don't need to do it.

And here's a :lol: smilie for you to use with the /me code :)


All times are GMT. The time now is 11:34 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.01954 seconds
  • Memory Usage 1,821KB
  • 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
  • (9)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
  • (40)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