Author |
Message |
tangoman
Involved


Joined: Aug 06, 2005
Posts: 301
|
Posted:
Tue Sep 20, 2005 1:06 pm |
|
Hi All,
I have the same problems as described in the following 2 postings:
http://www.ravenphpscripts.com/posts938-highlight-msnm.html
AND
http://www.ravenphpscripts.com/posts5125-highlight-msnm.html
However I am using PHP-Nuke 7.6, (more details below) and wonder if either of these would be the solution/fix for me to use.
Also, as Chatserv pointed out in the aformentioned postings, I do note that if you click the MSNM icon in the forums, (which, unlike the actual registered user profiles, IS presently visible), you land on the users profile page. This is different to clicking on any of the other messenger icons, (eg Yahoo Mesenger), because if you click them, you arrive on the actual messenger page.
What is the point of the MSNM icon directing you to the users profile when you click it? There is already a Profile icon that does this when clicked? |
_________________ I am using PHPNuke Version 7.6 with patch 3.0, CNB YA 4.4.2, NukeSentinel(tm) 2.3.2 and Nuke Royal. |
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Tue Sep 20, 2005 1:29 pm |
|
Hi Tangoman,
I think these solutions will resolve your problem, too. Backup the files before changing, and give it a test... |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
tangoman

|
Posted:
Tue Sep 20, 2005 1:31 pm |
|
Thanks Kevin,
But what is the point of the MSNM icon directing you to the users profile when you click it? There is already a Profile icon that does this when clicked? |
|
|
|
 |
kguske

|
Posted:
Tue Sep 20, 2005 1:42 pm |
|
Sorry, I thought it was obvious that the point is...well, it's a bug. The fact that it went so long without being noticed and / or corrected is a testament to the popularity of MSN Messenger...
Fix it and be happy... |
|
|
|
 |
tangoman

|
Posted:
Tue Sep 20, 2005 1:54 pm |
|
Kevin,
Your wisdom never ceases to amaze me!!!
There are 2 more questions about this matter though.
Firstly, as well as substituting the current text/MSNM ID for the MSNM icon, will these fixes also make you land on the MSNM page when you click the icon, (like when you click the Yahoo IM icon)?
Also, when you click the Users website icon, the external site opens in a new window. When you click the Users Yahoo IM icon, a new window does not open. Is there a fix for this? |
|
|
|
 |
kguske

|
Posted:
Tue Sep 20, 2005 2:13 pm |
|
I am glad you are so easily impressed...
If you look at those posts, you will notice that Raven's MSN icon does what you want, including opening in a new window.
I believe Only registered users can see links on this board! Get registered or login! has what you need.
I haven't searched for a change to open Yahoo in a new window, but it's probably not much different than what Chatserv posted for MSN. |
|
|
|
 |
tangoman

|
Posted:
Tue Sep 20, 2005 4:04 pm |
|
|
|
 |
kguske

|
Posted:
Tue Sep 20, 2005 4:32 pm |
|
The link I Only registered users can see links on this board! Get registered or login! is the one I would use. It's a later date and appears to have everything you want in the fix. |
|
|
|
 |
tangoman

|
Posted:
Tue Sep 20, 2005 4:44 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 in the above code change/modification, the 3rd step is to make changes to the file named viewtopic.php
I am using PHP-Nuke Version 7.6 and do not have a file with this name? |
|
|
|
 |
tangoman

|
Posted:
Fri Sep 23, 2005 11:42 am |
|
|
|
 |
chatserv
Member Emeritus

Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Fri Sep 23, 2005 12:13 pm |
|
What should it be opening then? You could edit the link in the files you edited to make the icon appear, one of them has the link. |
|
|
|
 |
tangoman

|
Posted:
Fri Sep 23, 2005 12:35 pm |
|
I assumed that akin to the Yahoo IM icon taking you to a 'sign in' page when a person clicks it, the MSNM IM icon should also do the same.
Once specific reason for me thinking this is that, although a user profile IS displayed, there are no actual details of the persons MSNM 'name' on the page that currently resolves.
I do not understand what you are refering to when you write, 'You could edit the link in the files you edited to make the icon appear, one of them has the link.'? |
|
|
|
 |
chatserv

|
Posted:
Fri Sep 23, 2005 1:14 pm |
|
The link is here:
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>' : '';
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>' : '';
As set by default it points to http://members.msn.com/usermsnid
if you know what url it should really point to you can edit it in that viewtopic.php and usercp_viewprofile.php code, i hardly ever use msn so i wouldn't know much about it. |
|
|
|
 |
|