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)

kewl1uk 04-11-2007 06:10 PM

Quote:

Originally Posted by Dream (Post 1223957)
The vBAdvanced portal pages must not be loading the javascript to open the popup for some reason. Send me your forum link via PM and I can have a look for you.

As for the Chatbox popup to always stay on top, I don't think thats possible, the popup is a browser window, and I don't think there's an option for a browser window to stay on top all times, but I could be mistaken. Page authors could abuse that kind of option I think.

CMPS doesn't include the forum directory even when chatbox.php is added to Navbar Replacements. I hard-coded mine in the navbar template.

kewl1uk 04-11-2007 07:41 PM

Usergroup controls are now in Admin options but are duplicated in chatbox.php. Do we still place usergroup IDs in chatbox.php or ignore it:
Quote:

$moderator_usergroups = array(); //usergroup ids that can delete shouts
$cantshout = array(); //usergroup ids that are not allowed to shout
$cantview = array(); //usergroup ids that are not allowed to view shouts

BadgerDog 04-11-2007 10:14 PM

Any way of having the Who is ON display, or the one in the User's Profile, display that they are in CHATBOX, or something other then:

Unknown Location
/chatbox.php


Thanks

Regards,
Badger

Dream 04-12-2007 12:03 AM

Quote:

Originally Posted by kewl1uk (Post 1225253)
Usergroup controls are now in Admin options but are duplicated in chatbox.php. Do we still place usergroup IDs in chatbox.php or ignore it:

No ignore it. The new chatbox.php fills them. You are using the new chatbox.php right?

Quote:

Originally Posted by BadgerDog (Post 1225413)
Any way of having the Who is ON display, or the one in the User's Profile, display that they are in CHATBOX, or something other then:

Unknown Location
/chatbox.php


Thanks

Regards,
Badger

I'll add WOL support in the next version.

BadgerDog 04-12-2007 09:01 AM

Quote:

Originally Posted by Dream (Post 1225486)
I'll add WOL support in the next version.


Thank you...... :)

Regards,
Badger

Hiranmanu 04-13-2007 11:52 AM

Wow this is excellent. Going to install it later on. Got some emails from my host that vBSHOUT is causing the server CPU to spike to high levels.

Looks great

Keep up the good work

Kimiko 04-15-2007 05:59 PM

Thank you! So far so good!

INSTALLED

Patria 04-16-2007 08:03 AM

Suggestion: After WOL support you could maybe add the option to show the people who are chatting on the frontpage (Forumhome).

Thanks! :)

BadgerDog 04-16-2007 01:27 PM

Hi Dream ....

I also added the optional part to the NavBar so it appears up there. I notice now that when I open the forums page, the "chatbox" is open for business. If I close it, leave the page, then return, it's open again. Is there anyway to have it retain the last setting (open or closed) that the user left it at?

Thanks

Regards,
Badger

MelH 04-18-2007 09:59 PM

Is it possible for users to delete their own shouts? If so how is that activated?

If not is there a way of doing it?

Zidane007nl 04-23-2007 02:11 PM

When I overwrite chatbox.php with the new one (1.1) I'm getting a database error:

Quote:

Invalid SQL:
SELECT * FROM chatbox ORDER BY dateline ASC LIMIT 0,;

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 '' at line 1

GBSteve 04-23-2007 04:31 PM

that comma is killing you.

Quote:

LIMIT 0,;

Zidane007nl 04-23-2007 09:31 PM

Yeah, but when I remove the comma from the query it doens't show any shouts.

Dream 04-24-2007 01:45 AM

Did you update the product file?

Dream 04-24-2007 01:47 AM

Quote:

Originally Posted by Patria (Post 1228842)
Suggestion: After WOL support you could maybe add the option to show the people who are chatting on the frontpage (Forumhome).

Thanks! :)

That?s interesting, but I think it should be done as an add-on. I?ll give it more thought after I release the update of this mod.

Dream 04-24-2007 01:48 AM

Quote:

Originally Posted by MelH (Post 1230837)
Is it possible for users to delete their own shouts? If so how is that activated?

If not is there a way of doing it?

There?s no way to do that currently. I?ll see in adding that in the next version.

Dream 04-24-2007 01:49 AM

Quote:

Originally Posted by BadgerDog (Post 1228985)
Hi Dream ....

I also added the optional part to the NavBar so it appears up there. I notice now that when I open the forums page, the "chatbox" is open for business. If I close it, leave the page, then return, it's open again. Is there anyway to have it retain the last setting (open or closed) that the user left it at?

Thanks

Regards,
Badger

I?m talking to you over PMs.

Dream 04-24-2007 05:52 PM

Updated, version 1.2

Added option to let users delete their own messages.

Added option to show username links with user group colors. Note this may raise resource usage.

Added WOL support.

Added option to change the HTML tag used around usernames.

Added smilies! :)

Let me know how this works out for you.

snoop1979 04-24-2007 06:00 PM

love this hack thanks, is there a way to put it in all forums (not one for each forum)

Dream 04-24-2007 06:06 PM

You can try to add the code in "chatbox below navbar.txt" in the navbar template.

auctionguy 04-24-2007 06:14 PM

Nice upgrade!! Installed and working great!!

Zidane007nl 04-24-2007 07:57 PM

Quote:

Originally Posted by Dream (Post 1234399)
Did you update the product file?

I tried that, but I get "Table 'chatbox' already exists" (with overwrite activated). Also with the just released version.

optrex 04-24-2007 08:18 PM

smilies don't animate, but a great start :)

arco 04-24-2007 09:50 PM

Nice mod! Will follow the progress of this for sure. :)

I'm posting this hoping it will help others who want the chatbox as a module in vBadvanced.

In vBa CMPS:

Add Module -> Template
Template to Include: adv_portal_chatbox
Template Content:
Code:

<tr>
    <td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="{$vbulletin->options[bburl]}/chatbox.php?nofocus=1" width="100%" style="border: 0px; height: 300px" frameborder="0"></iframe></div></td>
</tr>

That's it. :)

Edit: I have it as a side module, so I have "height: 300px". Adjust that to your liking if you want it shorter/longer or have it in the center module position.

Download the module and import it in the vBa CMPS if you want to avoid the manual editing.

Dream 04-24-2007 10:38 PM

Quote:

Originally Posted by Zidane007nl (Post 1234912)
I tried that, but I get "Table 'chatbox' already exists" (with overwrite activated). Also with the just released version.

Did you uninstall it before? You may have to delete your chatbox table from your database and try again.
Quote:

Originally Posted by optrex (Post 1234922)
smilies don't animate, but a great start :)

??

Dream 04-28-2007 06:21 AM

Quote:

Originally Posted by arco (Post 1234958)
Nice mod! Will follow the progress of this for sure. :)

This mod is pretty much final, unless you guys come up with something interesting I didn't think of.

Thanks for the vbAdvanced instructions, I'll add them in the zip file :)

I updated the install instructions, everyone should remove this line from the javascript function openChatbox() in the navbar template

return false;

To fix a problem when clicking a chatbox link in Who's Online.

BadgerDog 04-28-2007 09:10 AM

Quote:

Originally Posted by arco (Post 1234958)
Nice mod! Will follow the progress of this for sure. :)

I'm posting this hoping it will help others who want the chatbox as a module in vBadvanced.

In vBa CMPS:

Add Module -> Template
Template to Include: adv_portal_chatbox
Template Content:
Code:

<tr>
    <td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="{$vbulletin->options[bburl]}/chatbox.php?nofocus=1" width="100%" style="border: 0px; height: 300px" frameborder="0"></iframe></div></td>
</tr>

That's it. :)

I have vbadvanced installed, but I didn't have to do this to get Chatbox working as per Dream's standard instructions. Did I miss something?

Regards,
Badger

Dream 04-28-2007 10:01 AM

Do you have it as a module in vBadvanced Badger? I don't use vBadvanced, so I can't help.

A user awhile ago had some problems with the Chatbox installed as a module and the function to open the Chatbox popup. I think the solution is in this thread somewhere.

arco 04-28-2007 02:55 PM

Quote:

Originally Posted by BadgerDog (Post 1236918)
I have vbadvanced installed, but I didn't have to do this to get Chatbox working as per Dream's standard instructions. Did I miss something?

Regards,
Badger

My instructions are only for having the chatbox showing as a module on the vBadvanced frontpage. If you have the chatbox elsewhere on the forum you just follow Dreams instructions. I don't use the popup or have it anywhere else on the forum, just as a side module on the vBadvanced frontpage. :)

BadgerDog 04-29-2007 09:20 AM

Quote:

Originally Posted by arco (Post 1237083)
My instructions are only for having the chatbox showing as a module on the vBadvanced frontpage. If you have the chatbox elsewhere on the forum you just follow Dreams instructions. I don't use the popup or have it anywhere else on the forum, just as a side module on the vBadvanced frontpage. :)

Thanks...

I have "vBadvanced CMPS 2.2.0 vBadvanced Content Management &amp; Portal System" installed as an add-on product along with Dream's Chatbox.

On my front page it says "Powered by vBadvanced CMPS v2.2.0".

I use the chatbox on the "Forums" page only, so I guess I'm ok. It's been working fine and the latest addtions are great.

Regards,
Badger

arco 04-29-2007 02:55 PM

Quote:

Originally Posted by BadgerDog (Post 1237489)
I use the chatbox on the "Forums" page only, so I guess I'm ok. It's been working fine and the latest addtions are great.

Yep, you're fine then. :)

Dream 04-29-2007 06:18 PM

Updated, version 1.3

Now when the Chatbox auto-refreshes, the message the user was typing isn't lost.

This is not perfect, because by the time the Chatbox refreshes it gets the message, and the user has time to type more stuff while the page is loading, so it may lose some letters.

BadgerDog 04-29-2007 06:32 PM

Installed v1.3 update... works fine.... :up:

BTW, my animated smiles work fine in the chatbox....

Regards,
Badger

Fungsten 04-29-2007 10:02 PM

This is when I try to upload the Product XML from the ACP.

Quote:

Database error in vBulletin 3.6.5:
Invalid SQL:
CREATE TABLE chatbox (
`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` )
);;
Never had that before. :confused:

Dream 04-29-2007 10:07 PM

That shouldn't be happening, and I don't know why it's happening to you.

Anyway, use the attached product file. It's the version 1.3 product file with the code to create the database table removed.

Fungsten 04-29-2007 10:13 PM

It worked.

Quote:

Originally Posted by Dream (Post 1237846)
That shouldn't be happening, and I don't know why it's happening to you.

Anyway, use the attached product file. It's the version 1.3 product file with the code to create the database table removed.

On Edit:

Where the chatbox should be I get a "404 Error". Question, in the code it says:

Quote:


<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>

When editing the Forumhome temp there is this:

Quote:

<!-- end logged-in users -->
</if>
just above the portion of the template you want to edit.

Dream 04-30-2007 12:20 AM

Did you upload chatbox.php to your forum main folder?

You need to find that <tbody></tbody> code and add the Chatbox code right before it.

Fungsten 04-30-2007 12:27 AM

to the forum. Now it works! Thanks!!

Quote:

Originally Posted by Dream (Post 1237923)
Did you upload chatbox.php to your forum main folder?

You need to find that <tbody></tbody> code and add the Chatbox code right before it.

On Edit:

I logged into my test forum with a regular account and though I have in the settings not to show to that group the Chatbox area says something like "chatbox can't be viewed". IS that the way it is? Thanks.

Dream 04-30-2007 01:11 AM

Yes, thats only so that group can't view the contents. If you want to hide the entire chatbox you need to do some template coding, but I wouldn't know the exact code to tell you.

Fungsten 04-30-2007 01:13 AM

I think I might, possibly, could know a way to do that.

Quote:

Originally Posted by Dream (Post 1237949)
Yes, thats only so that group can't view the contents. If you want to hide the entire chatbox you need to do some template coding, but I wouldn't know the exact code to tell you.



All times are GMT. The time now is 02:23 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.02053 seconds
  • Memory Usage 1,841KB
  • 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
  • (24)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