Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

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
  #22  
Old 07-09-2004, 12:18 PM
ranger2kxlt ranger2kxlt is offline
 
Join Date: Jan 2003
Location: Plano, TX
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like Nex.... idea of only allowing to talk with admins or mods...gives the site a "live support" touch.
Reply With Quote
  #23  
Old 07-09-2004, 12:19 PM
nexialys
Guest
 
Posts: n/a
Default

Nuclion... it's working perfectly on a vB3... don't say it's not working just because your situation is not ok... yes the code may need some tweaks, but as C.Birch will not give more support, i suggest you wait and see if someone else have the same bug as you do... someone will have an answer.,
Reply With Quote
  #24  
Old 07-09-2004, 12:21 PM
nexialys
Guest
 
Posts: n/a
Default

btw Nuclion, did you filled this: $VAR["vbulletinlicenceid"] ?! the cookie will not work if you don't enter your license number in the proper file, because it is said so...

in sources/boardmodule/vb3.inc.php

...
Reply With Quote
  #25  
Old 07-09-2004, 12:25 PM
M1th's Avatar
M1th M1th is offline
 
Join Date: Jul 2002
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only problem I see with adding permissions to it is the fact that the index.php file is in the /messenger/ directory.

I tried to add a permission check by adding this to the bbmessenger/index.php file:


PHP Code:
 require_once('../global.php');
 
  
//permissions check
 
if (!($permissions['adminpermissions'] & ISMODERATOR))
 {
     
print_no_permission();
 } 
BUT, it wont work since the global.php file also needs an init.php but it's located in the includes/ dir.

So as you can see, we have a directory problem here.
Reply With Quote
  #26  
Old 07-09-2004, 12:29 PM
nexialys
Guest
 
Posts: n/a
Default

simple:
Code:
chdir('../');
require_once('global.php');

  //permissions check
if (!( $permissions['adminpermissions'] & ISMODERATOR))
{
    print_no_permission();
}
problem with this suggestion is that it will close the chat for non admin, so you can't chat with them. i may come with a suggestion later, where admins and mods are listed, but no other... users are not listed but can chat with shown persons...
Reply With Quote
  #27  
Old 07-09-2004, 12:35 PM
M1th's Avatar
M1th M1th is offline
 
Join Date: Jul 2002
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

True, but is there a way to end the "chdir('../');" call after the permission check? cuz it wil interfere with other calls later in the code.
Reply With Quote
  #28  
Old 07-09-2004, 12:35 PM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nexialys
btw Nuclion, did you filled this: $VAR["vbulletinlicenceid"] ?! the cookie will not work if you don't enter your license number in the proper file, because it is said so...

in sources/boardmodule/vb3.inc.php

...
It appears twice in the file. Is this number that one on top of each php file or your actual vb licence number when you login in the vbulletin.com member area?
Reply With Quote
  #29  
Old 07-09-2004, 12:39 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow, this hack looks nice!
Reply With Quote
  #30  
Old 07-09-2004, 12:51 PM
nexialys
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by NuclioN
It appears twice in the file. Is this number that one on top of each php file or your actual vb licence number when you login in the vbulletin.com member area?
no, it's the number of your license... usually is like: L000000. you see it on top of all your files, like:
Code:
<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.0.3 - Licence Number L000000
btw, the autodetect may work this out, but sometimes it's not working great... did you hacked your board in some way ?!
Reply With Quote
  #31  
Old 07-09-2004, 01:01 PM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a clean installed vb 303 with only the vbadvanced portal. After entering that code the problem remains.
Reply With Quote
Reply


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 09:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08676 seconds
  • Memory Usage 2,313KB
  • 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
  • (2)bbcode_code
  • (2)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
  • (1)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
  • (7)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