[2.0.20] phpBB GTalk (Google Talk) Support

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
7
64%
Very Good
3
27%
Good
0
No votes
Fair
1
9%
Poor
0
No votes
 
Total votes: 11

Lukage
Registered User
Posts: 28
Joined: Mon Jul 17, 2006 8:19 pm

Post by Lukage » Fri Dec 22, 2006 6:36 pm

Seria wrote:
Lukage wrote:Quick bump.
Still no clue why the buttons aren't showing up....

i've also noticed something else.. the MSN picture doesn't show up in the profiles either...


It can't be launched for some reason so it has to come out as a text readout.

User avatar
Seria
Registered User
Posts: 137
Joined: Thu Dec 14, 2006 8:14 am
Location: out havin’ fun

Post by Seria » Fri Dec 22, 2006 7:28 pm

is this because these "chat buttons" are somehow trying to check their respective chat server to see if you're online or not?

is there a way to disable this "connection attempt" so that the button will show?
¿What do you call it when a blond dies her hair brunette?
Artificial intelligence ^_~ ...yes, im blond :P

I will offer as much help I can on mods that I have installed, just PM me. (i don't use easymod, so I can't help with that.)
Mods installed so far:48 {all manually and on 2.0.22}

Lukage
Registered User
Posts: 28
Joined: Mon Jul 17, 2006 8:19 pm

Post by Lukage » Sun Dec 24, 2006 8:26 pm

Seria wrote: is this because these "chat buttons" are somehow trying to check their respective chat server to see if you're online or not?

is there a way to disable this "connection attempt" so that the button will show?


Sure, but the button can't do anything...I don't see why you'd want it, though. Anyway, try to keep that in the MSN thread for it.

Has support for this mod been dropped then, since several people are getting the same problem(s)?

User avatar
Seria
Registered User
Posts: 137
Joined: Thu Dec 14, 2006 8:14 am
Location: out havin’ fun

Post by Seria » Sun Dec 24, 2006 9:34 pm

Lukage wrote: Has support for this mod been dropped then, since several people are getting the same problem(s)?

I hope not.

What I was saying was:
I don't care about the functionality of these chat buttons or how/why they decide to display the image, I just want the image to show if someone has entered text into that field.
¿What do you call it when a blond dies her hair brunette?
Artificial intelligence ^_~ ...yes, im blond :P

I will offer as much help I can on mods that I have installed, just PM me. (i don't use easymod, so I can't help with that.)
Mods installed so far:48 {all manually and on 2.0.22}

Lukage
Registered User
Posts: 28
Joined: Mon Jul 17, 2006 8:19 pm

Post by Lukage » Sun Dec 31, 2006 6:11 pm

Seria wrote:
Lukage wrote:Has support for this mod been dropped then, since several people are getting the same problem(s)?

I hope not.

What I was saying was:
I don't care about the functionality of these chat buttons or how/why they decide to display the image, I just want the image to show if someone has entered text into that field.


Right, the best I could suggest for MSN is looking at the viewtopic.php file and imitating that.

Still no clue why the GTalk one isn't working.

User avatar
Seria
Registered User
Posts: 137
Joined: Thu Dec 14, 2006 8:14 am
Location: out havin’ fun

Post by Seria » Sun Dec 31, 2006 11:52 pm

k, thanks
¿What do you call it when a blond dies her hair brunette?
Artificial intelligence ^_~ ...yes, im blond :P

I will offer as much help I can on mods that I have installed, just PM me. (i don't use easymod, so I can't help with that.)
Mods installed so far:48 {all manually and on 2.0.22}

aussiewal
Registered User
Posts: 169
Joined: Tue Nov 14, 2006 5:47 am
Location: Sydney, Australia

Post by aussiewal » Mon Jan 01, 2007 5:54 am

I'm having the same problem...

Installed with no errors but no icon shows on the profile, just text of the gtalk ID. Like the MSN Standard PHPBB2 Install

This causes security risks for my forum, will now have to uninstall it until this problem is fixed.

Will

mattyj33
Registered User
Posts: 28
Joined: Wed Dec 13, 2006 5:51 am

Groupcp Error

Post by mattyj33 » Fri Jan 12, 2007 3:03 pm

This one throws me.

When i got to usergroups, and view a particular group I get this error:

Warning: Missing argument 27 for generate_user_info() in /home/shooru/public_html/groupcp.php on line 32

and it just repeats over and over..

this is normal code that generates zero errors

Code: Select all

function generate_user_info(&$row, $date_format, $group_mod, &$from, &$posts, &$joined, &$poster_avatar, &$profile_img, &$profile,&$search_img, &$search, &$pm_img, &$pm, &$email_img, &$email, &$www_img, &$www, &$icq_status_img, &$icq_img, &$icq, &$aim_img, 
&$aim, &$msn_img, &$msn, &$yim_img, &$yim)
and this code gives errors with the gtalk items added.

Code: Select all

function generate_user_info(&$row, $date_format, $group_mod, &$from, &$posts, &$joined, &$poster_avatar, &$profile_img, &$profile,&$search_img, &$search, &$pm_img, &$pm, &$email_img, &$email, &$www_img, &$www, &$icq_status_img, &$icq_img, &$icq, &$aim_img, 
&$aim, &$msn_img, &$msn, &$gtalk_img, &$gtalk, &$yim_img, &$yim)
I cannot for the life of me see what the problem is

User avatar
Seria
Registered User
Posts: 137
Joined: Thu Dec 14, 2006 8:14 am
Location: out havin’ fun

Post by Seria » Sun Jan 28, 2007 7:15 pm

Update: This mod is functional on 2.0.22 (aside from its lil quirks)
I installed it on 2.0.21 then upgraded.
(I upgraded manually.)

happy forum-ing ^_^
¿What do you call it when a blond dies her hair brunette?
Artificial intelligence ^_~ ...yes, im blond :P

I will offer as much help I can on mods that I have installed, just PM me. (i don't use easymod, so I can't help with that.)
Mods installed so far:48 {all manually and on 2.0.22}

ladybuggirl
Registered User
Posts: 12
Joined: Sun Feb 04, 2007 12:28 am

Post by ladybuggirl » Sun Feb 04, 2007 12:35 am

does this mod work only with the subsilver template? i'm using the jasidog template and there is no imput field on the profile page, nor a button on any posts.

(it does show on the subsilver template though)

VISIBLETHUNDER
Registered User
Posts: 463
Joined: Fri Mar 02, 2007 8:41 pm
Location: Bolton (UK)
Contact:

Post by VISIBLETHUNDER » Sat Mar 03, 2007 8:58 pm

does this mod work only with the subsilver template?


Yes. I am am using the subsilver template and have this mod installed and working.

The only Issue i found was that EasyMOD 0.3.0 does not correctly alter the viewtopic.php file

This line of code was not added and had to be done manually.
#-----[ FIND ]------------------------------------------------
#
$sql = "SELECT u.username, u.user_id, u.user_posts
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, u.user_msnm
#
'-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, u.user_gtalk


After i had edited the file manually the mod worked perfectly.

As for the problems you are facing ladybuggirl

I'm guessing that you have a problem with the SQL table, did you add the code manually or did you use an installer?

ptlis
Registered User
Posts: 90
Joined: Thu Aug 19, 2004 2:22 pm
Location: Newcastle, UK
Contact:

Re: [2.0.20] phpBB GTalk (Google Talk) Support

Post by ptlis » Fri Apr 13, 2007 3:49 pm

I seem to have deselected "notify of replys to thread" at some point, so I was not aware of all these posts being made - it is purely chance than I happened to wander into this thread and notice them. I assure you this MOD is not dead and I will endeavour to answer questions more promptly in the future.

After a quick glance through the comments alot of the 'issues' are people stating that instead of the GTalk image appearing in their user's profile there is instead simply a textual representation of their user ID. At the time this was an intentional design decision due to the lack of an appropriate URI for passing the user's name to the GTalk application (e.g. Jabber has the "xmpp://" URI, AIM has "aim:"), after another look at the newer versions of the GTalk client (this MOD was written when the original v1.0 client was released) it now seems that they've added a URI scheme themselves (imaginatively "gtalk:").

I should have a hack to implement this within the framework of the current MOD (and ensure that it is made a part of any future releases of the GTalk MOD within /contrib/) here in short order once i've managed to get the gtalk URI scheme working on my machine (the protocol does not seem to be registered for me).

I'll post solutions the other problems mentioned once i've had a chance to investigate them further, also expect a new version that is known to play nicely with phpBB 2.22 in the very near future.

ptlis
I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.....my life is my own.

ptlis
Registered User
Posts: 90
Joined: Thu Aug 19, 2004 2:22 pm
Location: Newcastle, UK
Contact:

Re: [2.0.20] phpBB GTalk (Google Talk) Support

Post by ptlis » Sat Apr 14, 2007 12:02 am

Okay, as far as I can tell, for this to work you must be using the development version of GTalk. To use this mod the phpbb GTalk mod must already be installed.

Code: Select all

##############################################################
## MOD Title: phpBB GTalk (Google Talk) Support (gtalk URI)
## MOD Author: ptlis < ptlis@ptlis.net > (Brian Ridley) http://www.ptlis.net
## MOD Description:	Modifies the phpBB GTalk (Google Talk) Support mod to use
##                  the gtalk URI
## MOD Version: 1.0.0
##
## Installation Level: (Beginner)
## Installation Time: 2 Minutes
## Files To Edit: viewtopic.php
##                includes/usercp_viewprofile.php 
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##     As with the phpBB GTalk (Google Talk) Support, this has been tested with
##     phpBB 2.0.10 - 2.0.22 only, although I would imagine it should install
##     sucessfully on previous and/or future revisions of the 2.0.xx release.
##
##     This modification is Free software; you can redistribute it and/or
##     modify it under the terms of the GNU General Public License as published
##     by the Free Software Foundation; either version 2 of the License, or (at
##     your option) any later version.
##
##     http://www.fsf.org/licensing/licenses/gpl.html
##############################################################
## MOD History:
##
##   2007-04-14 - Version 1.0.0
##      - Initial addition of this mod to the /contrib/ section of the phpBB
##            GTalk (Google Talk)
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#
privmsgs.php
#
#-----[ FIND ]------------------------------------------------
#
$gtalk_img = ( $privmsg['user_gtalk'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_gtalk'] . '" alt="' . $lang['GTALK'] . '" title="' . $lang['GTALK'] . '" border="0" /></a>' : '';
#
#-----[ REPLACE WITH ]----------------------------------------
#
$gtalk_img = ( $privmsg['user_gtalk'] ) ? '<a href="gtalk:chat?jid=' . $privmsg['user_gtalk'] . '"><img src="' . $images['icon_gtalk'] . '" alt="' . $lang['GTALK'] . '" title="' . $lang['GTALK'] . '" border="0" /></a>' : '';
#
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------------
#
$gtalk_img = ( $profiledata['user_gtalk'] ) ? $profiledata['user_gtalk'] : '&nbsp;';
#
#-----[ REPLACE WITH ]----------------------------------------
#
$gtalk_img = ( $profiledata['user_gtalk'] ) ? '<a href="gtalk:chat?jid=' . $profiledata['user_gtalk'] . '"><img src="' . $images['icon_gtalk'] . '" alt="' . $lang['GTALK'] . '" title="' . $lang['GTALK'] . '" border="0" /></a>' : '&nbsp;';
#
#-----[ OPEN ]------------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------------
#
$gtalk_img = ( $postrow[$i]['user_gtalk'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_gtalk'] . '" alt="' . $lang['GTALK'] . '" title="' . $lang['GTALK'] . '" border="0" /></a>' : '';
#
#-----[ REPLACE WITH ]----------------------------------------
#
$gtalk_img = ( $postrow[$i]['user_gtalk'] ) ? '<a href="gtalk:chat?jid=' . $postrow[$i]['user_gtalk'] . '"><img src="' . $images['icon_gtalk'] . '" alt="' . $lang['GTALK'] . '" title="' . $lang['GTALK'] . '" border="0" /></a>' : '';
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
I'd appreciate if people would test this, and if there are any problems please post detailed accounts of them here.
ladybuggirl wrote: does this mod work only with the subsilver template? i'm using the jasidog template and there is no imput field on the profile page, nor a button on any posts.

(it does show on the subilver template though)


Out of the box it does not (due to the relative crudeness of phpBB's templating system), however modifying other templates to support this is relatively trivial if you're familiar with HTML (the only issue is creating an appropriate GTalk image).

The following files need to be opened within your favourite text editor:
templates/[template name]/privmsgs_read_body.tpl
templates/[template name]/profile_add_body.tpl
templates/[template name]/profile_view_body.tpl
templates/[template name]/viewtopic_body.tpl
templates/[template name]/admin/user_edit_body.tpl


In each of these files there should be a single block of markup dealing with MSN, e.g. in profile_view_body.tpl for the subSilver template:

Code: Select all

		<tr> 
		  <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_MESSENGER}:</span></td>
		  <td class="row1" valign="middle"><span class="gen">{MSN}</span></td>
		</tr>
To add GTalk support for this file you must literally duplicate this chuck of markup below itself, then in the second instance of it replace the template variables L_MESSENGER with L_GTALK and MSN with GTALK. Follow this procedure for each of the five template files above.

Next you need to open templates/[template name]/[template name].cfg and search for $images['icon_msnm'] = "$current_template_images/{LANG}/icon_msnm.gif";, after this you need to add $images['icon_gtalk'] = "$current_template_images/{LANG}/icon_gtalk.gif";.

Finally, create an appropriate GTalk image, name it icon_gtalk.gif and place it in templates/[template name]/images/lang_english/ (or whatever language you're using within your phpBB installation).
Following these simple steps you can add GTalk support to any template.

ptlis
I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.....my life is my own.

abhishek1711
Registered User
Posts: 528
Joined: Tue Apr 17, 2007 6:08 am
Location: India
Contact:

Re: [2.0.20] phpBB GTalk (Google Talk) Support

Post by abhishek1711 » Sun Apr 22, 2007 1:07 pm

hii does this work with easymod? i tried bt doesnt showup in the easy mod install panel on admin cp

User avatar
Raimon
Former Team Member
Posts: 12089
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [2.0.20] phpBB GTalk (Google Talk) Support

Post by Raimon » Sun Apr 22, 2007 5:13 pm

So far i know works this mod fine with easymod, have you upload the mod in the right directory from easymod?
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

Post Reply

Return to “[2.0.x] MOD Database Releases”

Who is online

Users browsing this forum: No registered users and 3 guests