vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Instant Messenger - Chat - Site Pager Fully Integrated (https://vborg.vbsupport.ru/showthread.php?t=69709)

Natch 09-22-2004 04:45 AM

The integration needs fixing from the default what you can download, but I resolved it recently...

It's a small file edit to one of your flashchat files: the integration is already done by the suthor of the script, but it kinda breaks if you have a cookie prfix...

Open up yopur FlashChat/inc/cmses/vbulletinCMS.php file and replace your stock function vBulletinCMS() function with this one below:
PHP Code:

      function vBulletinCMS() {
         global 
$cookieprefix;
         
$this->loginStmt = new Statement("SELECT userid AS id, password, salt FROM {$GLOBALS['fc_config']['db']['pref']}user WHERE username=?");
         
$this->getUserStmt = new Statement("SELECT userid AS id, username AS login, usergroupid FROM {$GLOBALS['fc_config']['db']['pref']}user WHERE userid=?");
         
$this->getUsersStmt = new Statement("SELECT userid AS id, username AS login, usergroupid FROM {$GLOBALS['fc_config']['db']['pref']}user");

         
$this->userid = isset($_COOKIE[$cookieprefix 'userid'])?$_COOKIE[$cookieprefix 'userid']:null;
         
//$this->userid = isset($_COOKIE[$cookieprefix = 'bb' . 'userid'])?$_COOKIE[$cookieprefix = 'bb' . 'userid']:null;
      


With this fix, the package with the vbulletin intagration set up properly nmeans your users dont have to login to your forum and your FlashChat - just logging into the forum means they can just launch the chat and are logged in...

Cap'n Steve 09-22-2004 05:12 AM

Looks very nice. Good luck with the testing.

???`S?LV?R???` 09-22-2004 05:31 AM

Natch.... Mind turning this into a module for vbadvanced cmps? (it'd be awesome)

Natch 09-22-2004 06:13 AM

The chat into a module ?

You mean a full-page module ... I get ya.

Could be done - and it's a good idea ;) I'll work on it ;)

Natch 09-22-2004 06:43 AM

OK - here's a quick job of it - you should play around with the height sizing of the iframe and the table cell to match your forum style.

Create a new template adv_portal_flashchat
PHP Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder" width="100%">
    <
tr>
        <
td class="tcat">
            <
strong><span class="smallfont">$vba_options[portal_blockbullet$vboptions[bbtitleChatRooms</strong></span>
        </
td>
    </
tr>
</
table>
<
table align="center" border="0" cellpadding="0" cellspacing="$stylevar[cellspacing]class="tborder" width="100%" height="600">
    <
tr>
        <
td class="alt1">
        <
div align="center"><iframe src="$vboptions[bburl]/FlashChat/flashchat.php" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></div>
        </
td>
    </
tr>
</
tbody>
</
table

Then make a new CMPS page with Title FlashChat, Identifier chat and Template adv_portal_flashchat - then set it up however you like and link to it with $vboptions[homeurl]/?page=chat

This has been deliberately not made collapsible cos if you collapse the FlashChat module it will log you out ;)

Logician 09-22-2004 06:45 AM

Quote:

Originally Posted by nexialys
this forum is for RELEASES, not for testing... also, you talk about a price... if your tool is paid, you can't advertise here.

@nexialys: As it is demonstrated in this thread, such posts and replies to hack authors can cause hard feelings and discourage the hack authors to share their other hacks with the community.

If you believe a thread or hack is against rules, please use "REPORT" button and allow staff to do the moderating. Even if we take an action for a hack release thread, we do it with care and explain our reasons to the hack authors so that he won't regard the community as unappreciative or unrespectful for his time.

I understand that you are not happy with a site rule we have, but your attempts to demonstrate your opposition to it in other's threads is making more harm than good. Thanks in advance for your understanding.

Natch 09-22-2004 07:08 AM

Additional: to make your vBulletin menus drop-down over the top of your FlashChat window, use this modification to your inc/flashChatTag.php file:

Find:
PHP Code:

        $tag .= "<EMBED src=\"$movie\" FlashVars=\"$fv\" menu=\"false\" quality=\"high\" scale=\"noscale\" salign=\"LT\" WIDTH=\"$width\" HEIGHT=\"$height\" NAME=\"$id\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" BASE=\"$base\"></EMBED>"

Replace with:
PHP Code:

        $tag .= "<PARAM NAME=\"wmode\" VALUE=\"transparent\" />";
        
$tag .= "<EMBED src=\"$movie\" FlashVars=\"$fv\" menu=\"false\" quality=\"high\" scale=\"noscale\" salign=\"LT\" WIDTH=\"$width\" HEIGHT=\"$height\" NAME=\"$id\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" BASE=\"$base\" wmode=\"transparent\"></EMBED>"


???`S?LV?R???` 09-22-2004 07:24 AM

nice job on the vbadvanced cmps module, btw can you post the flashchat intergration? since the guy that started this thread never posted it.

yinyang 09-22-2004 08:17 AM

Quote:

Originally Posted by Natch
The integration needs fixing from the default what you can download, but I resolved it recently...

It's a small file edit to one of your flashchat files: the integration is already done by the suthor of the script, but it kinda breaks if you have a cookie prfix...

Open up yopur FlashChat/inc/cmses/vbulletinCMS.php file and replace your stock function vBulletinCMS() function with this one below:
PHP Code:

      function vBulletinCMS() {
         global 
$cookieprefix;
         
$this->loginStmt = new Statement("SELECT userid AS id, password, salt FROM {$GLOBALS['fc_config']['db']['pref']}user WHERE username=?");
         
$this->getUserStmt = new Statement("SELECT userid AS id, username AS login, usergroupid FROM {$GLOBALS['fc_config']['db']['pref']}user WHERE userid=?");
         
$this->getUsersStmt = new Statement("SELECT userid AS id, username AS login, usergroupid FROM {$GLOBALS['fc_config']['db']['pref']}user");

         
$this->userid = isset($_COOKIE[$cookieprefix 'userid'])?$_COOKIE[$cookieprefix 'userid']:null;
         
//$this->userid = isset($_COOKIE[$cookieprefix = 'bb' . 'userid'])?$_COOKIE[$cookieprefix = 'bb' . 'userid']:null;
      


With this fix, the package with the vbulletin intagration set up properly nmeans your users dont have to login to your forum and your FlashChat - just logging into the forum means they can just launch the chat and are logged in...


natch, this is simply awesome and works like a charm!

yinyang 09-22-2004 08:31 AM

natch, is there any way you could write something that would show who's in chat live?

-yinyang

PS - that template is simply awesome.


All times are GMT. The time now is 07:24 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.01193 seconds
  • Memory Usage 1,783KB
  • 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
  • (5)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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