ICQ-Fix for phpBB

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
cYbercOsmOnauT
Beiträge: 10
Registriert: Mo 29.Mai, 2006 03:21

ICQ-Fix for phpBB

Beitrag von cYbercOsmOnauT »

Mirabilis changed the addlink to add people directly to your icq by clicking on a link. That's the reason why you only see an errorpage when you click on an icq-icon of a user.

This bug is not the fault of the phpBB group.

Code: Alles auswählen

#
#-----[ OPEN ]------------------------------------------
#
groupcp.php

#
#-----[ FIND ]------------------------------------------
#
		$icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $row['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
		$icq =  '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $row['user_icq'] . '">' . $lang['ICQ'] . '</a>';

#
#-----[ REPLACE WITH ]------------------------------------------
#
		$icq_img = '<a href="http://www.icq.com/people/cmd.php?action=add&uin=' . $row['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
		$icq =  '<a href="http://www.icq.com/people/cmd.php?action=add&uin=' . $row['user_icq'] . '">' . $lang['ICQ'] . '</a>';

#
#-----[ OPEN ]------------------------------------------
#
memberlist.php

#
#-----[ FIND ]------------------------------------------
#
			$icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $row['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
			$icq =  '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $row['user_icq'] . '">' . $lang['ICQ'] . '</a>';
			
#
#-----[ REPLACE WITH ]------------------------------------------
#
			$icq_img = '<a href="http://www.icq.com/people/cmd.php?action=add&uin=' . $row['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
			$icq =  '<a href="http://www.icq.com/people/cmd.php?action=add&uin=' . $row['user_icq'] . '">' . $lang['ICQ'] . '</a>';
			
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php

#
#-----[ FIND ]------------------------------------------
#
		$icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $privmsg['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
		$icq =  '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $privmsg['user_icq'] . '">' . $lang['ICQ'] . '</a>';
		
#
#-----[ REPLACE WITH ]------------------------------------------
#
		$icq_img = '<a href="http://www.icq.com/people/cmd.php?action=add&uin=' . $privmsg['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
		$icq =  '<a href="http://www.icq.com/people/cmd.php?action=add&uin=' . $privmsg['user_icq'] . '">' . $lang['ICQ'] . '</a>';

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
			$icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $postrow[$i]['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
			$icq =  '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $postrow[$i]['user_icq'] . '">' . $lang['ICQ'] . '</a>';
			
#
#-----[ REPLACE WITH ]------------------------------------------
#
			$icq_img = '<a href="http://www.icq.com/people/cmd.php?action=add&uin=' . $postrow[$i]['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
			$icq =  '<a href="http://www.icq.com/people/cmd.php?action=add&uin=' . $postrow[$i]['user_icq'] . '">' . $lang['ICQ'] . '</a>';

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php

#
#-----[ FIND ]------------------------------------------
#
	$icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $profiledata['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
	$icq =  '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $profiledata['user_icq'] . '">' . $lang['ICQ'] . '</a>';
	
#
#-----[ REPLACE WITH ]------------------------------------------
#
	$icq_img = '<a href="http://www.icq.com/people/cmd.php?action=add&uin=' . $profiledata['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
	$icq =  '<a href="http://www.icq.com/people/cmd.php?action=add&uin=' . $profiledata['user_icq'] . '">' . $lang['ICQ'] . '</a>';

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Cheers,
Tekin
Zuletzt geändert von cYbercOsmOnauT am Fr 09.Jun, 2006 11:56, insgesamt 1-mal geändert.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Thx for this!
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Benutzeravatar
bce
Beiträge: 858
Registriert: Do 14.Okt, 2004 18:46
Kontaktdaten:

Beitrag von bce »

suba :cool:


what is when the user has no icq installed?
Benutzeravatar
AmigaLink
Beiträge: 5843
Registriert: Mi 03.Mär, 2004 09:05
Wohnort: NRW
Kontaktdaten:

Beitrag von AmigaLink »

what is when the user has no icq installed?
The same as before install the snippet. ;)
With users without icq entry, the ICQ button is not indicated. :)
[center].: Web Relax .::. Essen mit Freude .::. AmigaLink.de :.
______________________________________

Kein Support per PM, ICQ oder eMail!!!
[/center]
Benutzeravatar
bce
Beiträge: 858
Registriert: Do 14.Okt, 2004 18:46
Kontaktdaten:

Beitrag von bce »

alles klar.. ok.. thx ;)
cYbercOsmOnauT
Beiträge: 10
Registriert: Mo 29.Mai, 2006 03:21

Beitrag von cYbercOsmOnauT »

I am sorry. Yesterday I forgot the occurances of the icqlinks in the scripts groupcp.php, memberlist.php and privmsg.php. I updated the code-sequence of my first post. Please be sure to modify the upper three files too to make it work 100%.

Hint for the experienced admins: The only thing that changes is the link. The old one was http://wwp.icq.com/scripts/search.dll?to=[ICQ#] and became http://www.icq.com/people/cmd.php?action=add&uin=[ICQ#].

If you are using a different browser than the internet explorer it can happen that a download window appears when you click on an icq-icon. It gives you the possibility to download cmd.php or start it with ICQRun. Choose out the option to start it with ICQRun and don't forget to set the checkbox to always act like this.

Regards,
Tekin
? Supporter bei phpBB.de ?
Antworten