Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 2
Goto page 1, 2  Next
 
Reply with quote Download Post 
Post Php121 Instant Messenger 
 
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.
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
If anyone would be willing to help me work this around for IP, my site will be the guinea pig!
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
It seems easy, you just need to know where these lines are now.

Open forum.php
Find
Code: [Download] [Hide] [Select]
        $sql = 'SELECT user_id, username, user_allow_viewonline, user_level, user_lastlogon

In-line, Find
Code: [Download] [Hide] [Select]
user_lastlogon

In-line After, add
Code: [Download] [Hide] [Select]
, php121_user_chatting

Find
Code: [Download] [Hide] [Select]
            $colored_user = colorize_username($todayrow['user_id'], false);

Replace with
Code: [Download] [Hide] [Select]
            //***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
Code: [Download] [Hide] [Select]
<!-- END switch_new_download -->

After, add
Code: [Download] [Hide] [Select]
<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>

Open templates/mg_themes/overall_header.tpl
Find
Code: [Download] [Hide] [Select]
        <a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;

After, add
Code: [Download] [Hide] [Select]
        <a href="javascript:poptastic('php121/php121im.php');">Instant Messenger</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;


Try if it works, and if it does, it would be great to add it to customizations forum.
I have it working here.


Greets!

 
Off Topic
:
PS: please don't move this to customizations yet...

 




____________
Gabriel Anca
 
KasLimonSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
Nice MODification Kas
 




____________
ThE KuKa - www.phpBB-Es.COM - Custom Installations phpBB
 
ThE KuKaSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
ThE KuKa wrote: [View Post]
Nice MODification Kas
I haven't done a modification, I've just adapted it to Icy Phoenix

Greetings!
 




____________
Gabriel Anca
 
KasLimonSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
Yes! is a modification LOL
 




____________
ThE KuKa - www.phpBB-Es.COM - Custom Installations phpBB
 
ThE KuKaSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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:
Spoiler: [ Show ]


Should anything be changed in the Extra Database Options section?
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
You should only change the highlighted lines:
Spoiler: [ Show ]


Try to apply this code changes
KasLimon wrote: [View Post]
Open templates/mg_themes/overall_header.tpl
Find
Code: [Download] [Hide] [Select]
        &lt;a href="{FULL_SITE_PATH}{U_INDEX}"&gt;{L_INDEX}&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" /&gt;&amp;nbsp;

After, add
Code: [Download] [Hide] [Select]
        &lt;a href="javascript:poptastic('php121/php121im.php');"&gt;Instant Messenger&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" /&gt;&amp;nbsp;
To all files who start with overall_header in templates/mg_themes dir.

I'll try to add it in a block

Greets!
 




____________
Gabriel Anca
 
KasLimonSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.  

Spoiler: [ Show ]

 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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:
Spoiler: [ Show ]


Greets!
 




____________
Gabriel Anca
 
KasLimonSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!

php121 CMS Integration.zip
Description:  
Download
Filename: php121 CMS Integration.zip
Filesize: 2.11 KB
Downloaded: 120 Time(s)

 




____________
Gabriel Anca
 
KasLimonSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
Of course you can add it to any place

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!

New php121 config file.zip
Description:  
Download
Filename: New php121 config file.zip
Filesize: 2.97 KB
Downloaded: 118 Time(s)
php121 CMS Integration.zip
Description:  
Download
Filename: php121 CMS Integration.zip
Filesize: 2.39 KB
Downloaded: 124 Time(s)

 




____________
Gabriel Anca
 
KasLimonSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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!
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 2
Goto page 1, 2  Next


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You 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