vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   VBJv | mEssenger v2.02 (https://vborg.vbsupport.ru/showthread.php?t=127655)

ztempuser 09-26-2006 10:00 PM

VBJv | mEssenger v2.02
 
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/

ztempuser 09-27-2006 12:29 AM

the marquee in version version 2.02 isn't working. its giveing some trouble but i hope by version 2.05 it will be working great. by version 2.1 i should have a new gui for eveyone to use
things to do
  • any ideas not listed?
  • make it multi user chat
  • make some basic sounds
  • add webcam/mic chat ability
  • make a few gui skins and make it pickable by users
  • ability to intergrate with the arcade system*if your site has ibp system*
  • maybe add tab system to multi chat, example msn plus how u can have all your chats in one window
  • host chat rooms to public, and maybe display in a list where marquee is at
  • redo the whole chatwindow gui move things around a bit and include the user's avatar on the side
  • make some lines to use that call the messenger from your forum, so if your in a thread and u click on a user in the dropdown menu you will see option *chat with now* this will use conditions to make to see if the user is online then it will open a chat window ready to chat with the user

alraqee 09-27-2006 12:58 AM

waiting .......

thanks

unitedpunjab 09-27-2006 01:48 AM

any demo ??

azn_romeo_4u 09-27-2006 02:12 AM

looks like an awesome hack. i'll have demo out at

http://www.flyffworld.com/

when the download link is already

Hornstar 09-27-2006 04:34 AM

your demo link is giving me a 404 not found error http://www.flyffworld.com/forums/vbmessenger/

ztempuser 09-27-2006 04:39 AM

i know i went ahead and put it there cuz azn_romeo_4u will have it setup there, but i added that link after he signed off.

you can use my demo from my site www.el-halawa.net/forum/vbmessenger/

bashy 09-27-2006 05:10 AM

Hi peeps

Does this follow the forums style?

murrtex 09-27-2006 05:20 AM

Warning: main(./sources/lib/install.inc.php): failed to open stream: No such file or directory in

where is the "install.inc.php"

Karabaja 09-27-2006 09:42 AM

Thx for porting this, looks great but I got this error:

Cannot connect to database using Vbulletin Board site settings

Shazz 09-27-2006 01:08 PM

Is this like MSN? What do we need to get a account..

Veer 09-27-2006 01:22 PM

Its very nice mod :) Clicks Install.

Just uploaded all files and folders, and got (fatal error):

Quote:

Notice: Undefined variable: config in /home/XXXX/public_html/vbmessenger/sources/vbulletin_3.xx_plugin.php on line 30

Notice: Undefined variable: config in /home/XXXX/public_html/vbmessenger/sources/vbulletin_3.xx_plugin.php on line 31

Notice: Undefined variable: config in /home/XXXX/public_html/vbmessenger/sources/vbulletin_3.xx_plugin.php on line 32

Notice: Undefined variable: config in /home/XXXX/public_html/vbmessenger/sources/vbulletin_3.xx_plugin.php on line 33

Notice: Undefined variable: config in /home/XXXX/public_html/vbmessenger/sources/vbulletin_3.xx_plugin.php on line 34

Notice: Undefined variable: config in /home/XXXX/public_html/vbmessenger/sources/vbulletin_3.xx_plugin.php on line 35

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'XXXX'@'localhost' (using password: NO) in /home/XXXX/public_html/vbmessenger/index.php on line 65

VBJv|messenger error:
Cannot connect to database using Vbulletin Board site settings
Please guide me, thanks.

Karabaja 09-27-2006 02:55 PM

Quote:

Originally Posted by Pehchaan
Its very nice mod :) Clicks Install.

Just uploaded all files and folders, and got (fatal error):



Please guide me, thanks.

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

bashy 09-27-2006 05:30 PM

This dont work at all, I get a blank page at forums/vbmessenger/index.php

ztempuser 09-27-2006 07:28 PM

im very sorry everyone i found a type in the realse i have out what it was. and fixed, also i see most of you are haveing trouble with this connecting to your forums database. so there will be a update real soon (V2.03) it will have a config file you just update that file with the same info as in your sql connection to your forum's db, sorry for everything will update later today

bashy 09-28-2006 04:05 PM

Any more news on this 1 please?

Veer 09-28-2006 05:01 PM

Waiting for fixed release :)

ztempuser 09-28-2006 06:48 PM

im trying to firgure out why its showing up white for everyone, when i downloaded it and upload it it to forum root it worked normal and i even didn't get db error, but i guess since thats my site setup.

question to everyone
whats the name of the folder your vb is in? forum or forums?

bashy 09-28-2006 06:57 PM

Hi m8, Mine is forums

Veer 09-28-2006 07:09 PM

Mine is Root
/home/site/public_html :)

ztempuser 09-28-2006 07:27 PM

ok pehchaan you will have to edit some lines, i will realse a few versions (2.03)[when i finish the config file]
i will make one work for forums folders
i will make one work for forum folders
and i will make one work with your server root
again sorry for the troubles everyone

Spikeman 09-28-2006 07:40 PM

Surely you only need to make one version and change the paths in the config file? Or am I missing something?

Karabaja 09-28-2006 07:42 PM

Mine is in a root folder. I think this could be a problem due to some setting in php.ini but I am just guessing. You probably have something configured differently then the rest of us. I don't have time or enough experience to do the tests. But it would be probably a good thing if someone could turn on error displaying in php.ini and it should display an error when trying /vbmessenger/index.php instead of a blank page.

ztempuser 09-28-2006 07:46 PM

Quote:

Originally Posted by Spikeman
Surely you only need to make one version and change the paths in the config file? Or am I missing something?

this is a good idea i can add a line in the config file that tells where your forum is at. i will mess with this

da420 09-28-2006 08:00 PM

I will most definately be watching this thread closely, and once the bugs seem to have been worked out I will probably give installing a go. :)

Thanks for your hardwork blackwidow.

Veer 09-28-2006 08:14 PM

Quote:

Originally Posted by blackwidow
ok pehchaan you will have to edit some lines, i will realse a few versions (2.03)[when i finish the config file]
i will make one work for forums folders
i will make one work for forum folders
and i will make one work with your server root
again sorry for the troubles everyone

Sure i'll , as you suggest :)

Wish you all the best.

Spikeman 09-28-2006 08:17 PM

missing install.inc.php?

Veer 09-28-2006 08:31 PM

Quote:

Originally Posted by Spikeman
missing install.inc.php?

Yeah i think so, install.inc.php is not include in current (2.02) version.

ztempuser 09-28-2006 08:31 PM

its already added to 2.03 so its in next version already

Spikeman 09-28-2006 09:04 PM

Its ok I grabbed the old one hacked it and now got it all working a treat :)

bashy 09-28-2006 09:34 PM

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 :(

Spikeman 09-28-2006 10:11 PM

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.

Karabaja 09-28-2006 10:20 PM

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.

Spikeman 09-28-2006 10:24 PM

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.

Spikeman 09-28-2006 10:30 PM

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 :confused: then i changed the paths in vbulletin_3.xx_plugin changed some more paths and now works.

ztempuser 09-28-2006 10:57 PM

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

Breathex 09-29-2006 03:18 AM

loking forward to see v2.03

Spikeman 09-30-2006 02:26 AM

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.

Lionel 09-30-2006 03:26 AM

So how do we install without the install file in the zip?

COBRAws 09-30-2006 03:56 AM

any working demo?


All times are GMT. The time now is 06:08 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.01494 seconds
  • Memory Usage 1,862KB
  • 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
  • (8)bbcode_code_printable
  • (10)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
  • (40)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