http://www.php121.com/
I used this on my old forum with ezPortal. It was great and worked perfectly. It doesn't require a lot to be done but the instructions are a little tricky. This mod would show who was online by displaying a chat bubble next to their name in the Who Is Online section, would show who/how many people are using Instant Messgener, and it was fully integrated with your existing database. This way users would not have to register again. It wouldn't ask for your password/username because it was integrated. Great mod and it's free.
Anyone here think they could work this into IP?
Here is the download page:
http://www.php121.com/download.php
- Wasn't sure where to post this topic, so I posted it here! Sorry.
Php121 Instant Messenger
Subject: Re: Php121 Instant Messenger
If anyone would be willing to help me work this around for IP, my site will be the guinea pig!
Subject: Re: Php121 Instant Messenger
It seems easy, you just need to know where these lines are now.
Open forum.php
Find
In-line, Find
In-line After, add
Find
Replace with
Open templates/mg_themes/overall_include.tpl
Find
After, add
Open templates/mg_themes/overall_header.tpl
Find
After, add
Try if it works, and if it does, it would be great to add it to customizations forum.
I have it working here.
Greets!
Open forum.php
Find
$sql = 'SELECT user_id, username, user_allow_viewonline, user_level, user_lastlogon
In-line, Find
In-line After, add
Find
Replace with
//***PHP121***
$php121 = '';
if ( ($todayrow['php121_user_chatting'] != 0) && ($todayrow['php121_user_chatting'] != NULL )&& (time()-$todayrow['php121_user_chatting']) < 90 )
{
$php121 = " <a href="#" onClick="window.open('php121/php121sendim.php?to=$todayrow[user_id]','$todayrow[user_id]','left=20, top=20,width=600,height=500,toolbar=0,resizeable=0');"><img src="php121/php121online.gif" height="11" width="11" border=0 ALT="Send instant message"></a>";
}
//***END PHP121***
$colored_user = colorize_username($todayrow['user_id'], false) . $php121;
$php121 = '';
if ( ($todayrow['php121_user_chatting'] != 0) && ($todayrow['php121_user_chatting'] != NULL )&& (time()-$todayrow['php121_user_chatting']) < 90 )
{
$php121 = " <a href="#" onClick="window.open('php121/php121sendim.php?to=$todayrow[user_id]','$todayrow[user_id]','left=20, top=20,width=600,height=500,toolbar=0,resizeable=0');"><img src="php121/php121online.gif" height="11" width="11" border=0 ALT="Send instant message"></a>";
}
//***END PHP121***
$colored_user = colorize_username($todayrow['user_id'], false) . $php121;
Open templates/mg_themes/overall_include.tpl
Find
After, add
<script type="text/javascript">
<!--
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=500,width=240,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=yes,status=no,resizable=yes,fullscreen=no');
if (window.focus) {newwindow.focus()}
}
-->
</script>
<!--
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=500,width=240,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=yes,status=no,resizable=yes,fullscreen=no');
if (window.focus) {newwindow.focus()}
}
-->
</script>
Open templates/mg_themes/overall_header.tpl
Find
<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
After, add
<a href="javascript:poptastic('php121/php121im.php');">Instant Messenger</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
Try if it works, and if it does, it would be great to add it to customizations forum.
I have it working here.
Greets!
:
Subject: Re: Php121 Instant Messenger
Greetings!
I haven't done a modification, I've just adapted it to Icy Phoenix :PThE KuKa wrote: [View Post]
Greetings!
Subject: Re: Php121 Instant Messenger
KasLimon,
Great work! I've made all the changes you posted, but the Instant Messenger link still does not show at the top when I am using the Black Pearl template.
Would it be possible to put the Instant Messenger link in a block? Also, do you have your test site setup to show who is using Instant Messenger? It should show a chat bubble next to their username in the Who Is Online section in the forum.
I was also pretty confused about the SQL directions in the docs folder. It says to: Edit configuration: Copy php121config.php-PHPBB to php121config.php, replacing the existing file. Edit php121config.php and change all the variables to match your database and website configuration.
In the php121config.php-PHPBB file, you have to change a variety of variables. The file lists:
Should anything be changed in the Extra Database Options section?
Great work! I've made all the changes you posted, but the Instant Messenger link still does not show at the top when I am using the Black Pearl template.
Would it be possible to put the Instant Messenger link in a block? Also, do you have your test site setup to show who is using Instant Messenger? It should show a chat bubble next to their username in the Who Is Online section in the forum.
I was also pretty confused about the SQL directions in the docs folder. It says to: Edit configuration: Copy php121config.php-PHPBB to php121config.php, replacing the existing file. Edit php121config.php and change all the variables to match your database and website configuration.
In the php121config.php-PHPBB file, you have to change a variety of variables. The file lists:
Spoiler: [ Show ]
Should anything be changed in the Extra Database Options section?
Subject: Re: Php121 Instant Messenger
You should only change the highlighted lines:
Try to apply this code changes
I'll try to add it in a block :roll:
Greets!
Spoiler: [ Show ]
Try to apply this code changes
To all files who start with overall_header in templates/mg_themes dir.KasLimon wrote: [View Post]
I'll try to add it in a block :roll:
Greets!
Subject: Re: Php121 Instant Messenger
After some trouble, I finally got it up and running. I'm now going to make those extra code changes to see if the bubble will show up in the WIO section.
Thanks for all your help Kas!
Thanks for all your help Kas!
Subject: Re: Php121 Instant Messenger
Ok, Instead of having the link in the navigation bar at the top, I think it would best suit me in a block that I could move anywhere. Let me know if you found a way for this to work.
Thanks Kas.
Also, the Chat Bubble is showing in the wrong place. It should be showing next to the users that are currently online, not in the who has been online line. :?:
Thanks Kas.
Also, the Chat Bubble is showing in the wrong place. It should be showing next to the users that are currently online, not in the who has been online line. :?:
Spoiler: [ Show ]
Subject: Re: Php121 Instant Messenger
It will not be easy at all to add it into a block... I'll try later.
To show it in current online list:
Greets!
To show it in current online list:
Spoiler: [ Show ]
Greets!
Subject: Re: Php121 Instant Messenger
Integrating with CMS blocks was much easier than I thought
Just upload the attached package and add php121 block.
Please tell me if it works, and if it does, I'll post the steps to integrate php121 and IP in a new topic.
Greets!
Just upload the attached package and add php121 block.
Please tell me if it works, and if it does, I'll post the steps to integrate php121 and IP in a new topic.
Greets!
| php121 CMS Integration.zip | ||
| Description: | ![]() Download |
|
| Filename: | php121 CMS Integration.zip | |
| Filesize: | 2.11 KB | |
| Downloaded: | 121 Time(s) | |
Subject: Re: Php121 Instant Messenger
Kas, it works!
The chat bubbles appear in the WIO block, which is great! A user can click the chat box to initiate a chat with another user. I also like the way you made this into a block. Users are signed into Instant Messenger as soon as they log in. You made this into a block, with a height dimension field...could you also make a width dimension field? This would allow me to put this block on the left or right side instead of just in the middle.
As always Kas, great work!
To test this out:
www.thelocclan.com
User: test
Password: 1234
It's at the bottom of the index.php page.
The chat bubbles appear in the WIO block, which is great! A user can click the chat box to initiate a chat with another user. I also like the way you made this into a block. Users are signed into Instant Messenger as soon as they log in. You made this into a block, with a height dimension field...could you also make a width dimension field? This would allow me to put this block on the left or right side instead of just in the middle.
As always Kas, great work!
To test this out:
www.thelocclan.com
User: test
Password: 1234
It's at the bottom of the index.php page.
Subject: Re: Php121 Instant Messenger
Of course you can add it to any place :mricy:
I've added to the block some abilities so now you can:
Upload the files included in this new package.
After uploading, delete the php121 block and add it again.
Also, I'd like you to test this php121config file I've attached.
It should work without editing it, just upload it to php121 folder.
Remember to make a backup first.
I'm adding this to Customizations forum in a while.
Greets!
I've added to the block some abilities so now you can:
- Set block height
- Set block width
- Set block alignment (so if you don't set width to 100% you can align it)
Upload the files included in this new package.
After uploading, delete the php121 block and add it again.
Also, I'd like you to test this php121config file I've attached.
It should work without editing it, just upload it to php121 folder.
Remember to make a backup first.
I'm adding this to Customizations forum in a while.
Greets!
Subject: Re: Php121 Instant Messenger
I've got to go do some running around, but I'll be back shortly to test this all out for you.
Thanks for your work!
Thanks for your work!
Page 1 of 2
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.1739s (PHP: 14% SQL: 86%)
SQL queries: 12 - Debug Off - GZIP Enabled
