Page 1 of 7

[2.0.19] XFire Messenger

Posted: Mon Jan 02, 2006 4:43 am
by Extensions Robot
MOD Name: XFire Messenger
Author: Mondego
MOD Description: Adds XFire Messenger to your board alongside AIM, MSN, YIM, and ICQ. This does NOT add a miniprofile anywhere. It has it's own button (2 images) displayed in the same fassion as the other messaging programs, and does not take up any more space than 1 standard button.

Gives users ability to add XFire Messenger upon registration and can change it in their profile.

Users can add other users to their XFire Friends list right from the boards, wherever they see the XFire button (either where they post, in their profile, within private messages, and optionally in the Group Control Panel).

Gives admins the ability to modify the users XFire address for all users in the User Management found in the ACP.

This mod integrates seemlessly as if XFire Messenger was included from a stock phpBB2 installation.


MOD Version: 1.0.3 (Updated 02/14/06)

Download File: XFire_Messenger_1.0.3.zip
mods overview page: View
File Size: 8208 Bytes

Security Score: 0

Support for this MOD needs to be asked within this topic. The phpBB Teams are not responsible or required to give anyone support for this MOD. By installing this MOD, the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version in the topic title. It may not work in any other versions of phpBB.

Posted: Tue Jan 03, 2006 12:13 am
by webmacster87
MOD Validated/Released

Notes:
Adds buttons for XFire Messenger to message a user or add a user to their Friends list. The XFire name is editable in the Edit Profile page.

Posted: Thu Jan 05, 2006 7:30 pm
by Lyolyo
Any Demo?

Posted: Fri Jan 06, 2006 1:10 am
by Mondego
sorry, no demo, but you can visit www.thegamerssyndicate.com to see a board that has it fully operational (minus the optional group control panel).

Posted: Sat Jan 07, 2006 5:49 pm
by drumstix42
Though I use the Profile Control Panel System, you can see it here:
http://www.advancedmod.com/forums/viewt ... =subSilver

And here:
http://www.advancedmod.com/forums/profi ... =subSilver

Posted: Sun Jan 08, 2006 4:37 pm
by xann
I edited exactly If I remember adn made the msql table in users "user_xfi" but i shows the xfire menus as just ":" and doesnt save or show buttons.

They only show up if I go into the admin CP and set it there.

Posted: Sun Jan 08, 2006 6:36 pm
by Mondego
xann wrote: I edited exactly If I remember adn made the msql table in users "user_xfi" but i shows the xfire menus as just ":" and doesnt save or show buttons.

They only show up if I go into the admin CP and set it there.


try to go over the install instructions again for these files:

includes/usercp_viewprofile.php
includes/usercp_register.php
templates/subSilver/profile_view_body.tpl
templates/subSilver/profile_add_body.tpl

is it just the xfire name won't show up, or does it not say "XFire Address", or both?

Posted: Tue Jan 17, 2006 4:26 pm
by DarthMactis
I edited all the files as instructed and i get this error


Could not update users table

DEBUG MODE

SQL Error : 1054 Unknown column 'user_xfi' in 'field list'

UPDATE phpbb_users SET user_email = 'darthmactis@gmail.com', user_icq = '', user_website = '', user_occ = '', user_from = '', user_interests = '', user_sig = '', user_sig_bbcode_uid = '', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = '', user_xfi = '', user_attachsig = 0, user_allowsmile = 1, user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 0, user_notify_pm = 1, user_popup_pm = 1, user_timezone = 0, user_dateformat = 'd M Y h:i a', user_lang = 'english', user_style = 2, user_active = 1, user_actkey = '' WHERE user_id = 2
Line : 528
File : usercp_register.php

any idea why?

Posted: Tue Jan 17, 2006 4:27 pm
by DarthMactis
I edited all the files as instructed and i get this error


Could not update users table

DEBUG MODE

SQL Error : 1054 Unknown column 'user_xfi' in 'field list'

UPDATE phpbb_users SET user_email = 'darthmactis@gmail.com', user_icq = '', user_website = '', user_occ = '', user_from = '', user_interests = '', user_sig = '', user_sig_bbcode_uid = '', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = '', user_xfi = '', user_attachsig = 0, user_allowsmile = 1, user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 0, user_notify_pm = 1, user_popup_pm = 1, user_timezone = 0, user_dateformat = 'd M Y h:i a', user_lang = 'english', user_style = 2, user_active = 1, user_actkey = '' WHERE user_id = 2
Line : 528
File : usercp_register.php

any idea why?

Posted: Tue Jan 17, 2006 8:34 pm
by Mondego
DarthMactis wrote: I edited all the files as instructed and i get this error


Could not update users table

DEBUG MODE

SQL Error : 1054 Unknown column 'user_xfi' in 'field list'

UPDATE phpbb_users SET user_email = 'darthmactis@gmail.com', user_icq = '', user_website = '', user_occ = '', user_from = '', user_interests = '', user_sig = '', user_sig_bbcode_uid = '', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = '', user_xfi = '', user_attachsig = 0, user_allowsmile = 1, user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 0, user_notify_pm = 1, user_popup_pm = 1, user_timezone = 0, user_dateformat = 'd M Y h:i a', user_lang = 'english', user_style = 2, user_active = 1, user_actkey = '' WHERE user_id = 2
Line : 528
File : usercp_register.php

any idea why?


yep, you have to add a field to the users table in the database. the query you'd use is the very last step in the instructions under "SQL"

Posted: Sun Feb 05, 2006 12:26 am
by Jard Dooku
If a user doesn't have the xfire field filled, it STILL says Xfire Messenger: in viewprofile when it shouldnt. It also doesnt show the xfire button on view-pivate message at all. Group CP is blank too. grrrrrrrrrrrr.......

Posted: Sun Feb 05, 2006 3:34 am
by Mondego
Jard Dooku wrote: If a user doesn't have the xfire field filled, it STILL says Xfire Messenger: in viewprofile when it shouldnt. It also doesnt show the xfire button on view-pivate message at all. Group CP is blank too. grrrrrrrrrrrr.......


if your messenger fields aren't displayed in your profile when they are empty than you are running a modification to make it so. even with no messengers chosen by the user, aim, icq, msn, and yim will still show up, but with nothing to the right of it.

you are right about the private messages though. i will add this feature shortly, hopefully within a week. i must have overlooked it.

Posted: Sun Feb 05, 2006 5:33 am
by Mondego
Jard Dooku wrote: If a user doesn't have the xfire field filled, it STILL says Xfire Messenger: in viewprofile when it shouldnt. It also doesnt show the xfire button on view-pivate message at all. Group CP is blank too. grrrrrrrrrrrr.......


here are the additions for private messages

privmsg.php

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
privmsg.php

#
#-----[ FIND ]------------------------------------------
#
	$sql = "SELECT u.username AS username_1, u.user_id AS user_id_1, 

#
#-----[ IN-LINE FIND ]------------------------------------------
#
 u.user_msnm,

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 u.user_xfi,

#
#-----[ FIND ]------------------------------------------
#
	$yim = ( $privmsg['user_yim'] ) ? '<a href="

#
#-----[ AFTER, ADD ]------------------------------------------
#
	// XFire mod by Chris Weidert
	if ( !empty($privmsg['user_xfi']) )
	{
		$xfi_add_img  = '<a href="xfire:add_friend?user=' . $privmsg['user_xfi'] . '">' . '<img src="' . $images['icon_xfi_add']  . '"' . ' alt="' . sprintf($lang['XFI_ADD'], $privmsg['user_xfi']) . '" title="' . sprintf($lang['XFI_ADD'], $privmsg['user_xfi']) . '" border="0" /></a>';
		$xfi_img = '<a href="http://www.xfire.com/xf/modules.php?name=XFire&file=profile&uname=' . $privmsg['user_xfi'] . '"><img src="' . $images['icon_xfi'] . '" alt="' . $lang['XFI'] . '" title="' . $lang['XFI'] . '" border="0" /></a>';
		$xfi =  '<a href="http://www.xfire.com/xf/modules.php?name=XFire&file=profile&uname=' . $privmsg['user_xfi'] . '">' . $lang['XFI'] . '</a>';
	}
	else
	{
		$xfi_add_img  = '';
		$xfi_img = '';
		$xfi = '';
	}
	// END XFire mod by Chris Weidert

#
#-----[ FIND ]------------------------------------------
#
		'MSN_IMG' => $msn_img,
		'MSN' => $msn,

#
#-----[ AFTER, ADD ]------------------------------------------
#
		'XFI_ADD_IMG' => $xfi_add_img, // XFire MOD by Chris Weidert
		'XFI_IMG' => $xfi_img, // XFire MOD by Chris Weidert
		'XFI' => $xfi, // XFire MOD by Chris Weidert
templates/subSilver/privmsgs_read_body.tpl

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/privmsgs_read_body.tpl

#
#-----[ FIND ]------------------------------------------
#
			  {WWW_IMG} {AIM_IMG} {YIM_IMG} {MSN_IMG} 

#
#-----[ IN-LINE FIND ]------------------------------------------
#
 {MSN_IMG}

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 {XFI_IMG}{XFI_ADD_IMG}
these changes have been submitted and a new version should be updated soon.

regarding groupcp.php, that is one of the files with the most changes. it requires that you make the changes from both files
  • xfire_messenger.txt
  • xfire_messenger_groupcp_tpls.txt

Posted: Sun Feb 05, 2006 7:32 am
by kruegersc4
Is this mod EasyMod compatable?

Posted: Sun Feb 05, 2006 2:15 pm
by Mondego
kruegersc4 wrote: Is this mod EasyMod compatable?


i've never actually used easymod. i thought it was a requirement though, for validation. i'll check for you.