| Author |
Message |
Jolanta New Member


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 |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15235 Location: Kansas
|
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! |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1393
|
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 |
|
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15235 Location: Kansas
|
Posted:
Mon Apr 04, 2005 10:36 pm |
|
As always, works like a charm!Now if I can just figure out my msnm id  |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1393
|
Posted:
Mon Apr 04, 2005 11:40 pm |
|
oh boy...  |
|
|
|
 |
Jolanta New Member


Joined: Apr 03, 2005 Posts: 8
|
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 |
|
|
|
 |
tangoman Involved


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 |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 15235 Location: Kansas
|
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 |
|
|
|
 |
tangoman Involved


Joined: Aug 06, 2005 Posts: 301
|
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? |
|
|
|
 |
|
|
|
|