vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Chatbox Lite (https://vborg.vbsupport.ru/showthread.php?t=92537)

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.
Code:

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','height=330,width=650,directories=n  o,location=no,menubar=no,resizable=no,status=no,toolbar=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

[sql]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` )
);[/sql]

the product manager should have run that though

Wordplay 09-10-2005 01:48 PM

Quote:

Originally Posted by Wordplay
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

Quote:

Originally Posted by Wordplay
dream, could you help me out here?

you would have to change code

mholtum 09-11-2005 02:55 AM

Quote:

Originally Posted by Dream
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

[sql]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` )
);[/sql]

the product manager should have run that though

That seemed to work

Wordplay 09-11-2005 09:30 AM

Quote:

Originally Posted by Dream
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.


All times are GMT. The time now is 08:06 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.01170 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)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