Author |
Message |
Jolanta
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/blank.gif)
Joined: Apr 03, 2005
Posts: 8
|
Posted:
Sun Apr 03, 2005 10:27 pm |
|
Hi
in 7.5 the msn icon is missing in the user profile... I tracked down theis code in Modules/Forums/viewtopic.php lines 1028 thru 1036
Code:$aim_img = ( $postrow[$i]['user_aim'] ) ? '<a href="aim:goim?screenname=' . $postrow[$i]['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $images['icon_aim'] . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : '';
$aim = ( $postrow[$i]['user_aim'] ) ? '<a href="aim:goim?screenname=' . $postrow[$i]['user_aim'] . '&message=Hello+Are+you+there?">' . $lang['AIM'] . '</a>' : '';
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");
$msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
$msn = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '">' . $lang['MSNM'] . '</a>' : '';
$yim_img = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
$yim = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&.src=pg">' . $lang['YIM'] . '</a>' : '';
|
This looks ok to me, but there must be something missing... can anybody advise
Thanks
Jolanta |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Apr 04, 2005 8:11 pm |
|
It's missing in mine too. I never noticed it because until about a week ago I never used msm. We'll have to look into it. Thanks! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
chatserv
Member Emeritus
![](modules/Forums/images/avatars/Risque/fhf215.jpg)
Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Mon Apr 04, 2005 9:34 pm |
|
Try using this fix/mod (author listed as oc5iD):
Code:OPEN: /includes/usercp_viewprofile.php
------------ [FIND ] ---------------------------
$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : ' ';
$msn = $msn_img;
#
#------------ [ REPLACE WITH ] -------------------
#
$msn_img = ( $profiledata['user_msnm'] ) ? '<a href="http://members.msn.com/' . $profiledata['user_msnm'] . '" target="_blank"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
#
#------------ SAVE AND CLOSE --------------
#
OPEN: /templates/Your_Template/profile_view_body.tpl or themes/Your_Theme/forum/profile_view_body.tpl
#
#------------- [ FIND ] -----------------------
#
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_MESSENGER}:</td>
<td>{MSN}</td>
</tr>
#
#------------ [ REPLACE WITH ] ------------------
#
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_MESSENGER}:</td>
<td>{MSN_IMG}</td>
</tr>
#
# ------- SAVE AND CLOSE -----------
#
OPEN /viewtopic.php
------------- [ FIND ] --------------
$msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
-------------- [ REPLACE WITH ] -------------------
$msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="http://members.msn.com/' . $postrow[$i]['user_msnm'] . '" target="_blank"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
#
# --------- SAVE AND CLOSE -------------
#
Upload icon_msnm.gif to /templates/Your_Template/images or themes/Your_Theme/forum/images
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Apr 04, 2005 10:36 pm |
|
As always, works like a charm!Now if I can just figure out my msnm id ![Confused](modules/Forums/images/smiles/icon_confused.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
chatserv
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Apr 04, 2005 11:40 pm |
|
oh boy... ![ROTFL](modules/Forums/images/smiles/rotfl.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Jolanta
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Apr 05, 2005 1:15 am |
|
Hi Guys
Worked like a charm for me too...
chatserv does it again... THANK YOU CHATSERV
Thank you also to Raven for the fantastic ravenphpscripts.com
and most of all a big THANK YOU to the original fix author oc5iD
Jolanta |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
tangoman
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 06, 2005
Posts: 301
|
Posted:
Tue Sep 20, 2005 4:42 pm |
|
chatserv wrote: | Try using this fix/mod (author listed as oc5iD):
Code:OPEN: /includes/usercp_viewprofile.php
------------ [FIND ] ---------------------------
$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : ' ';
$msn = $msn_img;
#
#------------ [ REPLACE WITH ] -------------------
#
$msn_img = ( $profiledata['user_msnm'] ) ? '<a href="http://members.msn.com/' . $profiledata['user_msnm'] . '" target="_blank"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
#
#------------ SAVE AND CLOSE --------------
#
OPEN: /templates/Your_Template/profile_view_body.tpl or themes/Your_Theme/forum/profile_view_body.tpl
#
#------------- [ FIND ] -----------------------
#
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_MESSENGER}:</td>
<td>{MSN}</td>
</tr>
#
#------------ [ REPLACE WITH ] ------------------
#
<tr>
<td align="right" nowrap="nowrap" class="explaintitle">{L_MESSENGER}:</td>
<td>{MSN_IMG}</td>
</tr>
#
# ------- SAVE AND CLOSE -----------
#
OPEN /viewtopic.php
------------- [ FIND ] --------------
$msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
-------------- [ REPLACE WITH ] -------------------
$msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="http://members.msn.com/' . $postrow[$i]['user_msnm'] . '" target="_blank"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
#
# --------- SAVE AND CLOSE -------------
#
Upload icon_msnm.gif to /templates/Your_Template/images or themes/Your_Theme/forum/images
| |
But I am using PHP-Nuke version 7.6 and am not able to make the 3rd code change because I do not have a file named, viewtopic.php |
_________________ I am using PHPNuke Version 7.6 with patch 3.0, CNB YA 4.4.2, NukeSentinel(tm) 2.3.2 and Nuke Royal. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 20, 2005 5:21 pm |
|
v7.6 come stock and standard (as has every version since 6.5 ) with modules/Forums/viewtopic.php |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
tangoman
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Sep 20, 2005 5:42 pm |
|
Aaaaaaah...Thanks Raven,
Of course you are quite correct. As I do now see, modules/Forums/viewtopic.php is indeed a file I have, but the instructions only advised of viewtopic.php hence I was lost.
I have now made all changes however there does appear to be a problem.
The MSNM new window does appear, but it just stays blue for about 20 seconds before displaying any information.
Because the page is just the color blue and it appears nothing is actually downloading, the user thinks nothing is happening and could well think there is a fault. Do you have any idea about this delay? Is it usual/normal etc? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|