Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases

Reply
 
Thread Tools
BB| Messenger 1.5 Details »»
BB| Messenger 1.5
Version: 1.00, by C.Birch C.Birch is offline
Developer Last Online: Jan 2016 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 07-08-2004 Last Update: Never Installs: 86
Is in Beta Stage  
No support by the author.

Please press install if you install this hack

Support Can Not Be Given For This Hack

BB|Messenger is a user to user messenger system for vb3 that runs off your user database.

This hack as been made for my own forums and has not been tested on any other forums, so its very likely that errors might be found on other system set up's.

To Install:

upload all the files in the same way that they are in side the zip.

once all files are upload load the page http://www.yourdomain.com/bbmessenger/
note that the address before bbmessenger/ will be the path to the folder on your site.

Follow the install page and your all done.

The only other thing that needs doing is the editing of the address's in the marquee.php file that you upload to your forums root.

Find:

PHP Code:
 echo "<tr>\n";
    echo 
"<td width=\"$marquee_width\" style=\"border-bottom: 1px inset #000000; background-color: #4C6CA4\" onMouseover=\"this.style.backgroundColor='#607DAE';\" onMouseOut=\"this.style.backgroundColor='#4C6CA4';\">\n";
    echo 
"<font size=1 face=\"Verdana, Arial, sans-serif, Helvetica, Times\">\n";
    echo 
"<b><a href=\"http://community.ultimate-music.net/showthread.php?s=&threadid=" $latestthread['threadid'] . "\" target='_blank'>" $latestthread['title'] . "</a></b><br>\n";
    echo 
"Started by: <a href=\"http://community.ultimate-music.net/member.php?s=&action=getinfo&username=" $latestthread['postusername'] . "\" target='_blank'>" $latestthread['postusername'] . "</a><br>\n";
    echo 
"Last Post by: <a href=\"http://community.ultimate-music.net/member.php?s=&action=getinfo&username=" $latestthread['lastposter'] . "\" target='_blank'>" $latestthread['lastposter'] . "</a><br>\n";
    echo 
$numreplies;
    echo 
"\n</font>\n";
    echo 
"</td>\n</tr>\n\n"
and edit it to meet your own needs.

User linking to the messenger

put a link anywhere you like on your forums linking to /bbmessenger/index.php

How To's

To edit the colours edit the css in the files in the style folder.

Support

Can not be given via my self due to work load please do not e-mail or pm asking for help in anyway because the reply will more and likely be no, this does not stop user's from helping each other with probs in this topic and if a fix or addon is made i will update the zip with it up on the asking of doing so.

Fix's

1) check your vBulletin cookies Prefix in vb's config file is set to bb like below:

// Prefix that all vBulletin cookies will have
// For example
$cookieprefix = 'bb';

if not set it to the above, if setting it to the above gives you errors with other hacks follow the steps on page 3 for editing messengers cookie call's.

this fix's the login error.

2) https://vborg.vbsupport.ru/showpost....&postcount=164 Zip will get updated when next version is out.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #242  
Old 08-20-2004, 10:29 AM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kru
I really can't login from my side. I tried every suggestions here but it won't work. Can anybody check if he can login from his side into it: http://www.spiritual-connections.com...nger/index.php , pleas?

Thank you for your support.
your cookies info is still wrong look:
Reply With Quote
  #243  
Old 08-20-2004, 10:48 AM
Kru's Avatar
Kru Kru is offline
 
Join Date: Nov 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by C.Birch
your cookies info is still wrong look:
well, I am glad to see where the problem is, now. Anyway how can I fix it.

In my config.php stands:

// Prefix that all vBulletin cookies will have
// For example
$cookieprefix = 'bb';
Reply With Quote
  #244  
Old 08-20-2004, 11:18 AM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah all your other cookie info reads with bb in front of it whats right apart from sessionhash what is giving you the prob because it can not read the cookie to see if your logged in because its not bbsessionhash whats odd with all the other cookie bits having the bb in front of them.

going download the zip and look see if i can see a edit because i had to format lastnight so dont have files to hand.
Reply With Quote
  #245  
Old 08-20-2004, 11:35 AM
C.Birch C.Birch is offline
 
Join Date: Apr 2002
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not anything in the files that could help and the main cookie is done by vb so it looks like theres a error there im not sure anyway got to fly got loads to do myself.
Reply With Quote
  #246  
Old 08-20-2004, 12:15 PM
Kru's Avatar
Kru Kru is offline
 
Join Date: Nov 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyway thank you very much for your try to help me. Maybe with the time I will find a way to fix it.
Reply With Quote
  #247  
Old 08-20-2004, 03:36 PM
Panic Panic is offline
 
Join Date: Mar 2004
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

I noticed a little problem with BB Messenger when having multiple windows opened and wondered if this was a limitation with using a combination of Java/PHP or whether there was a way of turning this off, ok here's the scenario.

When conversing with two people in seperate BB Messenger windows, say you are typing a message to user 1, user 2 sends you a message. Now the window focus is hijacked to user 2 window. If you weren't looking at the monitor, you in-invertently type part of the message to the wrong person. Any way of stopping that window hijacking the focus by commenting out some code or is this just a feature of java?

Thanks for your help.
Reply With Quote
  #248  
Old 08-20-2004, 06:21 PM
dstruct2k's Avatar
dstruct2k dstruct2k is offline
 
Join Date: Dec 2002
Location: Winnipeg
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Javascript is pushing that window to the topmost location on your screen, this should be editable somewhere in the clientscript.
Reply With Quote
  #249  
Old 08-21-2004, 02:04 PM
Panic Panic is offline
 
Join Date: Mar 2004
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, I edited the file /bbmessenger/style/messenger.html.php
and commented out the line :-

window["chat_{$VAR["sitecode"]}_" + id].focus();

This seems to stop the focus.
Reply With Quote
  #250  
Old 08-27-2004, 08:48 AM
johnbruce71 johnbruce71 is offline
 
Join Date: Aug 2004
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've tried everything on the last few pages but i'm still not able to use bbmessenger. Could anyone see if its just a problem on my side?

http://www.thebig7.co.uk/forum/bbmessenger

username: test
password: test

Thanks
Reply With Quote
  #251  
Old 08-27-2004, 10:27 AM
PitchouneN64ngc's Avatar
PitchouneN64ngc PitchouneN64ngc is offline
Senior Member
 
Join Date: Aug 2002
Location: France
Posts: 515
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a modification to purpose who will fix all bugs with cookie setting

Open ./bbmessenger/sources/boardmodule/vb3.inc.php

Find:

PHP Code:
function boardmodule_import_db_settings()
{
    require_once (
"../includes/config.php");
    global 
$VAR
Replace by:

PHP Code:
function boardmodule_import_db_settings()
{
    require_once (
"../includes/config.php");
    
define("COOKIE_PREFIX"$cookieprefix);
    global 
$VAR
Find:

PHP Code:
    if (!isset($_COOKIE["bbuserid"]) OR !ereg("^[0-9]*$"$_COOKIE["bbuserid"]))
    {
        return 
PERM_LOGGED_OUT;
    }
    if (!isset(
$_COOKIE["bbpassword"]) OR !ereg("^[0-9A-Fa-f]*$"$_COOKIE["bbpassword"]))
    {
        return 
PERM_LOGGED_OUT;
    }
 
    
$user db_query("SELECT userid, username, usergroupid, membergroupids, password, salt, pmunread as unreadpms FROM {prefix}user WHERE userid=" $_COOKIE["bbuserid"] . " LIMIT 1"); 
Replace by:

PHP Code:
    if (!isset($_COOKIE[COOKIE_PREFIX "userid"]) OR !ereg("^[0-9]*$"$_COOKIE[COOKIE_PREFIX "userid"]))
    {
        return 
PERM_LOGGED_OUT;
    }
    if (!isset(
$_COOKIE[COOKIE_PREFIX "password"]) OR !ereg("^[0-9A-Fa-f]*$"$_COOKIE[COOKIE_PREFIX "password"]))
    {
        return 
PERM_LOGGED_OUT;
    }
 
    
$user db_query("SELECT userid, username, usergroupid, membergroupids, password, salt, pmunread as unreadpms FROM {prefix}user WHERE userid=" $_COOKIE[COOKIE_PREFIX "userid"] . " LIMIT 1"); 
Find:

PHP Code:
if (md5$user["password"] . $VAR["vbulletinlicenceid"]) == $_COOKIE["bbpassword"]) 
Replace by:

PHP Code:
if (md5$user["password"] . $VAR["vbulletinlicenceid"]) == $_COOKIE[COOKIE_PREFIX "password"]) 
And normally, all your problems with cookies and login will be resolved

And this hack is great
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:57 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.09121 seconds
  • Memory Usage 2,337KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete