Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VBJv | mEssenger v2.02 Details »»
VBJv | mEssenger v2.02
Version: 2.02, by ztempuser ztempuser is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.6.1 Rating:
Released: 09-26-2006 Last Update: 09-26-2006 Installs: 86
Additional Files  
No support by the author.

Vbulletin Java Messenger
v2: instant messenger for instant community.

Hello everyone, first i would like to point this to the 2 year old Hack


now this thread didn't have hardly any support, but after i waited for almost a year now for someone to port this over to the latest vb, i came accross it again a week ago and i said thats it its time for it to get ported, so i went to work going through all the scripts seeing whats needs to be changed

What is this?
this is a messenger for vbulletin that is in jave it uses the forum's user tables from your database to host the user system, so automaticly the users are signed up for the forum's messenger.

What i have to change?
templates - (1)

To install:
i have made the codes work where you upload the VBmessenger folder with in your forums folder, if you would like it else where you will have to edit a few lines which im not gonna go through right now.

upload the folder VBmessenger to your forum root
upload the php fiile marquee.php to the forum root as well

test to see if it works, it should work, if not and it says give VB ID number then go to forum/vbmessenger/sources/vbulletin_3.xx_plugin.php and on line 15 you will see this
Code:
$VAR["vbulletinlicenceid"]  = "";
enter your vbulletin id code "code goes here";
if you need help remembering or finding your vbulletin id code, then open up any vbulletin php file and at the top it gives you your id code

How To's
To edit the colours edit the css in the files in the Style folder.
so files:
  • chatwindow.html.php
  • messenger.html.php
  • userbanned.html.php
  • pleaselogin.html.php
  • openmessenger.html.php
Makeing the marquee work right
you must update this in the marquee.php which is located at this point in your forum root
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://domain.com/showthread.php?s=&threadid=" . $latestthread['threadid'] . "\" target='_blank'>" . $latestthread['title'] . "</a></b><br>\n";
    echo "Started by: <a href=\"http://domain.com/member.php?s=&action=getinfo&username=" . $latestthread['postusername'] . "\" target='_blank'>" . $latestthread['postusername'] . "</a><br>\n";
    echo "Last Post by: <a href=\"http://domain.com/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";

How to add instant popup link instead of going to the domain.com/vbmessenger/ index to open messenger
add the following java to the header:
Code:
<script language="Javascript1.3">
function launchbbm()
{
    s001 = window.open("index.php?func=m_frameset", "", "width=233, height=450, address=no, toolbar=no, status=yes");
    location.href="../index.php";
}

</script>
then where every you want your link add the link like this:
Code:
<a href="javascript:void(0)" onclick="launchbbm()">your link</a>
or any other type of link you want be it a image or what main thing is that the link stops as:
Code:
href="javascript:void(0)" onclick="launchbbm()">
because thats calling the java.

You must add the javascript to the "headinclude" template for your forum, and you have to edit the code to reflect the proper path to your forum or else all you will get is your forum main page when you click the link.

Support and Help
I will try my best to help with anyone's problems but i can't offer full support im not extreamly good at codeing nor debugging, but i can try and help to my best.
i also don't mind if anyone helps fellow users with support that would be nice.
i tired to make the code as easy as possible to install with no bugs, the only thing you would need to change is probably on some boards maybe ur Vbulletin ID number thats about it, otherwise upload zip and enjoy



IF YOU USE THIS PLEAS DON'T FORGET THE MAGICAL BUTTON

i would like to give most props to the 2 users who made this in the first place
C.Birch and TomUK
TomUK is the original writer of this scripts for bb|messenger, he wrote it for his friend C.Birch who then later took it and made it work for vb, then after 2 years of complete no support i took it and made it into V2.0 to work with the new 3.6.1 Vbulletin, its a shame to see this project go down and lost like this its a great SIMPLE addon that is FULLY customizeable to all sites.
i have changed the name and i will work on a new style in a week or so after i get some other work done, if ANYONE would like to help with this project its would be very nice just pm me with ur changes/ your version i will take a look and update this thread and give some credit. as far as features go i have a big list of things i want to do to this, i just need someone to help in codeing the ideas.
in the original thread it was said that C. birch is no longer in charge of the script but it was not said who took over so i guess, i have now,
any questions feel free to ask

Updates
  • v2.02 the code uses images that link read with /forum/ in it, i forgot to make thise read with ./ instead that way forums with the forum located at forums/ can also use this with no changes
  • v2.01 i just added the final touch to the intergration code for 3.6, now this addon to your forum is THE EASIEST THING IN THE WORLD all you do it upload to forum root and start useing it, its that easy, the intergrator read your db and forum settings automaticly

Demo is hosted by user azn_romeo_4u at http://www.flyffworld.com/forums/vbmessenger/

Show Your Support

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

Comments
  #32  
Old 09-28-2006, 09:34 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spikeman
Its ok I grabbed the old one hacked it and now got it all working a treat
Can you not help us out, we aint all coders m8
Reply With Quote
  #33  
Old 09-28-2006, 10:11 PM
Spikeman Spikeman is offline
 
Join Date: Aug 2006
Location: UK
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Karabaja
Yes thats the same error I got in my logs. I tried editing vbulletin_3.xx_plugin.php to add db info right in the file like:
Code:
$VAR["db_username"]     = 'mydbusername';
$VAR["db_password"]     = 'mydbpassword';
and so on.
And then I didn't get error that it can't connect to database but I got just blank page when I go to /vbmessenger/index.php
Do not change any of the mysql settings as those settings are pulled from your own config file.
Reply With Quote
  #34  
Old 09-28-2006, 10:20 PM
Karabaja's Avatar
Karabaja Karabaja is offline
 
Join Date: Feb 2006
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spikeman
Do not change any of the mysql settings as those settings are pulled from your own config file.
I realize that they are supposed be pulled from config file but as you can see from Pehchaan's error log they are not, or not correctly at least. And I was getting:
Cannot connect to database using Vbulletin Board site settings

After I changed it like I wrote it didn't display that error anymore so it must have connected to database fine. But it just displayed a blank page.
Anyway, I hope we'll see 2.03 soon. Looking forward to it.
Reply With Quote
  #35  
Old 09-28-2006, 10:24 PM
Spikeman Spikeman is offline
 
Join Date: Aug 2006
Location: UK
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bashy
Can you not help us out, we aint all coders m8
Its working on my site, but at the moment you have to be registered for messenger to log you straight in, have tested messenging one to one and all is good, just trying to fix marquee.php, alot of the code is old.

Give me a little time (maybe hour) and i will give you some more here as i work through it.
Reply With Quote
  #36  
Old 09-28-2006, 10:30 PM
Spikeman Spikeman is offline
 
Join Date: Aug 2006
Location: UK
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Karabaja
I realize that they are supposed be pulled from config file but as you can see from Pehchaan's error log they are not, or not correctly at least. And I was getting:
Cannot connect to database using Vbulletin Board site settings

After I changed it like I wrote it didn't display that error anymore so it must have connected to database fine. But it just displayed a blank page.
Anyway, I hope we'll see 2.03 soon. Looking forward to it.
I got the blank screen first time in then i uploaded the install.inc file then i changed the paths in vbulletin_3.xx_plugin changed some more paths and now works.
Reply With Quote
  #37  
Old 09-28-2006, 10:57 PM
ztempuser ztempuser is offline
 
Join Date: Nov 2005
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes as i had said before the marquee.php is very old im haveing trouble with it

i hope i can get the 2.03 version up by tonight
i been busy moveing my server
Reply With Quote
  #38  
Old 09-29-2006, 03:18 AM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

loking forward to see v2.03
Reply With Quote
  #39  
Old 09-30-2006, 02:26 AM
Spikeman Spikeman is offline
 
Join Date: Aug 2006
Location: UK
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is marquee.php, it should work ok, I need to clean the code up some, just need to find a spare 10mins which always turns into an hour

Code:
<?php
// you may edit the below to suit your own needs

define('MARQUEE_SPEED', '2');
define('MARQUEE_WIDTH', '100%');
define('MARQUEE_HEIGHT', '145');
define('MARQUEE_NAME', 'Latest Posts');
define('THREAD_LIMIT', '20');

// no need to change anything below this line :)


error_reporting(E_ALL & ~E_NOTICE);
require ('global.php');

?>
<!-- Scrolling Marquee -->
<body bgcolor="#91BEDE" text="#000000" rightmargin="0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#000000" vlink="#000000" alink="#000000">
<marquee id="threadticker" direction=up scrollAmount=<?php echo MARQUEE_SPEED; ?> style="width:<?php echo MARQUEE_WIDTH; ?>;height:<?php echo MARQUEE_HEIGHT; ?>;border:0px solid black;
padding:0px" onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=<?php echo MARQUEE_SPEED; ?>">

<table border=0 cellpadding=4 cellspacing=0 width="<?php echo MARQUEE_WIDTH; ?>"> 
<tr>

<td colspan=3>
<font size=2 face="Verdana, Arial, sans-serif, Helvetica, Times">
<b><a href="<?php echo $bburl; ?>"><?php echo MARQUEE_NAME; ?></b></font>
</td>
</tr>

<?php

// connect to the database and pull the info we need.

$threads = $db->query_read("
SELECT threadid, forumid, title, replycount, lastposter, postuserid, postusername 
FROM " . TABLE_PREFIX . "thread AS thread 
ORDER BY thread.lastpost DESC LIMIT 10");

while ($thread = $db->fetch_array($threads)) {

// make sure the user has the permission to view the current thread.
$forumperms =& $vbulletin->userinfo['forumpermissions']["$forumid"]; {
 

// if he can, go ahead and output the goods.

    $postctr++;
    if ($thread['replycount'] == 0) {
      $numreplies = "No Replies";
    }
    elseif ($thread['replycount'] == 1) {
      $numreplies = "Reply";
    } 
    else {
     $numreplies = $thread['replycount'];
     $numreplies .= " Replies";	
    }

    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=\"$bburl/forums/showthread.php?s=&threadid=" . $thread['threadid'] . "\" target='_blank'>" . $thread['title'] . "</a></b><br>\n";
    echo "Started by: <a href=\"$bburl/forums/member.php?s=&action=getinfo&username=" . $thread['postusername'] . "\" target='_blank'>" . $thread['postusername'] . "</a><br>\n";
    echo "Last Post by: <a href=\"$bburl/forums/member.php?s=&action=getinfo&username=" . $thread['lastposter'] . "\" target='_blank'>" . $thread['lastposter'] . "</a><br>\n";
    echo $numreplies;
    echo "\n</font>\n";
    echo "</td>\n</tr>\n\n";
        
  }
}
?>

</marquee>

<!-- End Scrolling Marquee -->
I thought it just easier to cut and paste and replace entire contents of file.
Reply With Quote
  #40  
Old 09-30-2006, 03:26 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So how do we install without the install file in the zip?
Reply With Quote
  #41  
Old 09-30-2006, 03:56 AM
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Location: Buenos Aires
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any working demo?
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 04:50 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.04936 seconds
  • Memory Usage 2,339KB
  • 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_code
  • (5)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
  • (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